-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from forbole/dev
Dev
- Loading branch information
Showing
22 changed files
with
372 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/@cosmjs/stargate/build/accounts.js b/node_modules/@cosmjs/stargate/build/accounts.js | ||
index 55753d0..849f1ec 100644 | ||
--- a/node_modules/@cosmjs/stargate/build/accounts.js | ||
+++ b/node_modules/@cosmjs/stargate/build/accounts.js | ||
@@ -58,6 +58,11 @@ function accountFromAny(input) { | ||
utils_1.assert(baseAccount); | ||
return accountFromBaseAccount(baseAccount); | ||
} | ||
+ // custom | ||
+ case "/desmos.profiles.v1beta1.Profile": { | ||
+ const baseAccount = auth_1.ProfileAccount.decode(value).baseAccount; | ||
+ return accountFromBaseAccount(baseAccount); | ||
+ } | ||
default: | ||
throw new Error(`Unsupported type: '${typeUrl}'`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/node_modules/cosmjs-types/cosmos/auth/v1beta1/auth.js b/node_modules/cosmjs-types/cosmos/auth/v1beta1/auth.js | ||
index 0673e21..adc499d 100644 | ||
--- a/node_modules/cosmjs-types/cosmos/auth/v1beta1/auth.js | ||
+++ b/node_modules/cosmjs-types/cosmos/auth/v1beta1/auth.js | ||
@@ -355,4 +355,25 @@ if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
} | ||
+ | ||
+exports.ProfileAccount = { | ||
+ decode(input, length) { | ||
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
+ let end = length === undefined ? reader.len : reader.pos + length; | ||
+ const message = Object.assign({}, baseModuleAccount); | ||
+ message.permissions = []; | ||
+ while (reader.pos < end) { | ||
+ const tag = reader.uint32(); | ||
+ switch (tag >>> 3) { | ||
+ case 1: | ||
+ message.baseAccount = exports.BaseAccount.decode(any_1.Any.decode(reader, reader.uint32()).value); | ||
+ break; | ||
+ default: | ||
+ reader.skipType(tag & 7); | ||
+ break; | ||
+ } | ||
+ } | ||
+ return message; | ||
+ }, | ||
+}; | ||
//# sourceMappingURL=auth.js.map | ||
\ No newline at end of file |
Oops, something went wrong.