@injectivelabs/sdk-ts 1.0.319 → 1.0.321

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/core/accounts/AccountParser.d.ts +4 -0
  2. package/dist/core/accounts/AccountParser.d.ts.map +1 -0
  3. package/dist/core/accounts/AccountParser.js +22 -0
  4. package/dist/core/accounts/AccountParser.js.map +1 -0
  5. package/dist/core/accounts/index.d.ts +2 -0
  6. package/dist/core/accounts/index.d.ts.map +1 -1
  7. package/dist/core/accounts/index.js +4 -0
  8. package/dist/core/accounts/index.js.map +1 -1
  9. package/dist/core/accounts/signers/OfflineAminoSigner.d.ts +19 -0
  10. package/dist/core/accounts/signers/OfflineAminoSigner.d.ts.map +1 -0
  11. package/dist/core/accounts/signers/OfflineAminoSigner.js +71 -0
  12. package/dist/core/accounts/signers/OfflineAminoSigner.js.map +1 -0
  13. package/dist/core/accounts/signers/OfflineDirectSigner.d.ts +20 -0
  14. package/dist/core/accounts/signers/OfflineDirectSigner.d.ts.map +1 -0
  15. package/dist/core/accounts/signers/OfflineDirectSigner.js +71 -0
  16. package/dist/core/accounts/signers/OfflineDirectSigner.js.map +1 -0
  17. package/dist/core/accounts/signers/index.d.ts +3 -0
  18. package/dist/core/accounts/signers/index.d.ts.map +1 -0
  19. package/dist/core/accounts/signers/index.js +8 -0
  20. package/dist/core/accounts/signers/index.js.map +1 -0
  21. package/dist/core/accounts/signers/types/amino-signer.d.ts +9 -0
  22. package/dist/core/accounts/signers/types/amino-signer.d.ts.map +1 -0
  23. package/dist/core/accounts/signers/types/amino-signer.js +3 -0
  24. package/dist/core/accounts/signers/types/amino-signer.js.map +1 -0
  25. package/dist/core/accounts/signers/types/index.d.ts +4 -0
  26. package/dist/core/accounts/signers/types/index.d.ts.map +1 -0
  27. package/dist/core/{transaction/client/types.js → accounts/signers/types/index.js} +1 -1
  28. package/dist/core/accounts/signers/types/index.js.map +1 -0
  29. package/dist/core/accounts/signers/types/proto-signer.d.ts +9 -0
  30. package/dist/core/accounts/signers/types/proto-signer.d.ts.map +1 -0
  31. package/dist/core/accounts/signers/types/proto-signer.js +3 -0
  32. package/dist/core/accounts/signers/types/proto-signer.js.map +1 -0
  33. package/dist/core/index.d.ts +1 -2
  34. package/dist/core/index.d.ts.map +1 -1
  35. package/dist/core/index.js +1 -2
  36. package/dist/core/index.js.map +1 -1
  37. package/dist/core/modules/MsgBase.d.ts +1 -1
  38. package/dist/core/modules/MsgBase.d.ts.map +1 -1
  39. package/dist/core/modules/MsgBase.js +1 -2
  40. package/dist/core/modules/MsgBase.js.map +1 -1
  41. package/dist/core/modules/exchange/index.d.ts +1 -0
  42. package/dist/core/modules/exchange/index.d.ts.map +1 -1
  43. package/dist/core/modules/exchange/index.js +15 -0
  44. package/dist/core/modules/exchange/index.js.map +1 -1
  45. package/dist/core/modules/exchange/utils/classes/OrderHashManager.d.ts +3 -0
  46. package/dist/core/modules/exchange/utils/classes/OrderHashManager.d.ts.map +1 -0
  47. package/dist/core/modules/exchange/utils/classes/OrderHashManager.js +7 -0
  48. package/dist/core/modules/exchange/utils/classes/OrderHashManager.js.map +1 -0
  49. package/dist/core/modules/exchange/utils/classes/index.d.ts +2 -0
  50. package/dist/core/modules/exchange/utils/classes/index.d.ts.map +1 -0
  51. package/dist/core/modules/exchange/utils/classes/index.js +6 -0
  52. package/dist/core/modules/exchange/utils/classes/index.js.map +1 -0
  53. package/dist/core/modules/exchange/utils/index.d.ts +2 -0
  54. package/dist/core/modules/exchange/utils/index.d.ts.map +1 -0
  55. package/dist/core/{transaction → modules/exchange}/utils/index.js +1 -1
  56. package/dist/core/modules/exchange/utils/index.js.map +1 -0
  57. package/dist/core/modules/index.d.ts +1 -0
  58. package/dist/core/modules/index.d.ts.map +1 -1
  59. package/dist/core/modules/index.js +1 -0
  60. package/dist/core/modules/index.js.map +1 -1
  61. package/dist/core/{transaction/client → modules/tx/api}/TxGrpcApi.d.ts +1 -1
  62. package/dist/core/modules/tx/api/TxGrpcApi.d.ts.map +1 -0
  63. package/dist/core/{transaction/client → modules/tx/api}/TxGrpcApi.js +10 -10
  64. package/dist/core/modules/tx/api/TxGrpcApi.js.map +1 -0
  65. package/dist/core/{transaction/client → modules/tx/api}/TxRestApi.d.ts +1 -1
  66. package/dist/core/modules/tx/api/TxRestApi.d.ts.map +1 -0
  67. package/dist/core/{transaction/client → modules/tx/api}/TxRestApi.js +5 -5
  68. package/dist/core/modules/tx/api/TxRestApi.js.map +1 -0
  69. package/dist/core/{transaction/client → modules/tx/api}/index.d.ts +2 -4
  70. package/dist/core/modules/tx/api/index.d.ts.map +1 -0
  71. package/dist/core/{transaction/client → modules/tx/api}/index.js +2 -4
  72. package/dist/core/modules/tx/api/index.js.map +1 -0
  73. package/dist/core/{transaction → modules/tx/broadcaster}/MsgBroadcasterWithPk.d.ts +4 -4
  74. package/dist/core/modules/tx/broadcaster/MsgBroadcasterWithPk.d.ts.map +1 -0
  75. package/dist/core/{transaction → modules/tx/broadcaster}/MsgBroadcasterWithPk.js +8 -8
  76. package/dist/core/modules/tx/broadcaster/MsgBroadcasterWithPk.js.map +1 -0
  77. package/dist/core/modules/tx/broadcaster/index.d.ts +2 -0
  78. package/dist/core/modules/tx/broadcaster/index.d.ts.map +1 -0
  79. package/dist/core/modules/tx/broadcaster/index.js +18 -0
  80. package/dist/core/modules/tx/broadcaster/index.js.map +1 -0
  81. package/dist/core/modules/tx/eip712/eip712.d.ts +144 -0
  82. package/dist/core/modules/tx/eip712/eip712.d.ts.map +1 -0
  83. package/dist/core/{eip712 → modules/tx/eip712}/eip712.js +0 -0
  84. package/dist/core/modules/tx/eip712/eip712.js.map +1 -0
  85. package/dist/core/{eip712 → modules/tx/eip712}/index.d.ts +0 -0
  86. package/dist/core/modules/tx/eip712/index.d.ts.map +1 -0
  87. package/dist/core/{eip712 → modules/tx/eip712}/index.js +0 -0
  88. package/dist/core/modules/tx/eip712/index.js.map +1 -0
  89. package/dist/core/{eip712 → modules/tx/eip712}/maps.d.ts +0 -0
  90. package/dist/core/modules/tx/eip712/maps.d.ts.map +1 -0
  91. package/dist/core/{eip712 → modules/tx/eip712}/maps.js +1 -1
  92. package/dist/core/modules/tx/eip712/maps.js.map +1 -0
  93. package/dist/core/{eip712 → modules/tx/eip712}/types.d.ts +0 -0
  94. package/dist/core/modules/tx/eip712/types.d.ts.map +1 -0
  95. package/dist/core/{eip712 → modules/tx/eip712}/types.js +0 -0
  96. package/dist/core/modules/tx/eip712/types.js.map +1 -0
  97. package/dist/core/{eip712 → modules/tx/eip712}/utils.d.ts +0 -0
  98. package/dist/core/modules/tx/eip712/utils.d.ts.map +1 -0
  99. package/dist/core/{eip712 → modules/tx/eip712}/utils.js +0 -0
  100. package/dist/core/modules/tx/eip712/utils.js.map +1 -0
  101. package/dist/core/modules/tx/index.d.ts +7 -0
  102. package/dist/core/modules/tx/index.d.ts.map +1 -0
  103. package/dist/core/{transaction → modules/tx}/index.js +3 -2
  104. package/dist/core/modules/tx/index.js.map +1 -0
  105. package/dist/core/{transaction → modules/tx}/tx.d.ts +63 -92
  106. package/dist/core/modules/tx/tx.d.ts.map +1 -0
  107. package/dist/core/modules/tx/tx.js +201 -0
  108. package/dist/core/modules/tx/tx.js.map +1 -0
  109. package/dist/core/{transaction → modules/tx}/types/index.d.ts +0 -0
  110. package/dist/core/modules/tx/types/index.d.ts.map +1 -0
  111. package/dist/core/{transaction → modules/tx}/types/index.js +0 -0
  112. package/dist/core/modules/tx/types/index.js.map +1 -0
  113. package/dist/core/{transaction → modules/tx}/types/tx-rest-client.d.ts +0 -0
  114. package/dist/core/modules/tx/types/tx-rest-client.d.ts.map +1 -0
  115. package/dist/core/{transaction → modules/tx}/types/tx-rest-client.js +0 -0
  116. package/dist/core/modules/tx/types/tx-rest-client.js.map +1 -0
  117. package/dist/core/modules/tx/types/tx.d.ts +101 -0
  118. package/dist/core/modules/tx/types/tx.d.ts.map +1 -0
  119. package/dist/core/{transaction → modules/tx}/types/tx.js +0 -0
  120. package/dist/core/modules/tx/types/tx.js.map +1 -0
  121. package/dist/core/{transaction/client/utils.d.ts → modules/tx/utils/api.d.ts} +1 -1
  122. package/dist/core/modules/tx/utils/api.d.ts.map +1 -0
  123. package/dist/core/{transaction/client/utils.js → modules/tx/utils/api.js} +1 -1
  124. package/dist/core/modules/tx/utils/api.js.map +1 -0
  125. package/dist/core/{transaction/client → modules/tx/utils/classes}/TxClient.d.ts +0 -0
  126. package/dist/core/modules/tx/utils/classes/TxClient.d.ts.map +1 -0
  127. package/dist/core/{transaction/client → modules/tx/utils/classes}/TxClient.js +1 -1
  128. package/dist/core/modules/tx/utils/classes/TxClient.js.map +1 -0
  129. package/dist/core/modules/tx/utils/constants.d.ts +3 -0
  130. package/dist/core/modules/tx/utils/constants.d.ts.map +1 -0
  131. package/dist/core/modules/tx/utils/constants.js +7 -0
  132. package/dist/core/modules/tx/utils/constants.js.map +1 -0
  133. package/dist/core/modules/tx/utils/helpers.d.ts +7 -0
  134. package/dist/core/modules/tx/utils/helpers.d.ts.map +1 -0
  135. package/dist/core/modules/tx/utils/helpers.js +46 -0
  136. package/dist/core/modules/tx/utils/helpers.js.map +1 -0
  137. package/dist/core/modules/tx/utils/index.d.ts +6 -0
  138. package/dist/core/modules/tx/utils/index.d.ts.map +1 -0
  139. package/dist/core/modules/tx/utils/index.js +22 -0
  140. package/dist/core/modules/tx/utils/index.js.map +1 -0
  141. package/dist/core/modules/tx/utils/tx.d.ts +64 -0
  142. package/dist/core/modules/tx/utils/tx.d.ts.map +1 -0
  143. package/dist/core/modules/tx/utils/tx.js +134 -0
  144. package/dist/core/modules/tx/utils/tx.js.map +1 -0
  145. package/dist/core/stargate/SigningStargateClient.d.ts +1 -0
  146. package/dist/core/stargate/SigningStargateClient.d.ts.map +1 -0
  147. package/dist/core/stargate/SigningStargateClient.js +32 -0
  148. package/dist/core/stargate/SigningStargateClient.js.map +1 -0
  149. package/dist/core/stargate/StargateClient.d.ts +5 -0
  150. package/dist/core/stargate/StargateClient.d.ts.map +1 -0
  151. package/dist/core/stargate/StargateClient.js +40 -0
  152. package/dist/core/stargate/StargateClient.js.map +1 -0
  153. package/dist/core/stargate/index.d.ts +2 -0
  154. package/dist/core/stargate/index.d.ts.map +1 -0
  155. package/dist/core/stargate/index.js +6 -0
  156. package/dist/core/stargate/index.js.map +1 -0
  157. package/dist/utils/numbers.d.ts.map +1 -1
  158. package/dist/utils/numbers.js +1 -2
  159. package/dist/utils/numbers.js.map +1 -1
  160. package/package.json +6 -5
  161. package/dist/core/eip712/eip712.d.ts +0 -144
  162. package/dist/core/eip712/eip712.d.ts.map +0 -1
  163. package/dist/core/eip712/eip712.js.map +0 -1
  164. package/dist/core/eip712/index.d.ts.map +0 -1
  165. package/dist/core/eip712/index.js.map +0 -1
  166. package/dist/core/eip712/maps.d.ts.map +0 -1
  167. package/dist/core/eip712/maps.js.map +0 -1
  168. package/dist/core/eip712/types.d.ts.map +0 -1
  169. package/dist/core/eip712/types.js.map +0 -1
  170. package/dist/core/eip712/utils.d.ts.map +0 -1
  171. package/dist/core/eip712/utils.js.map +0 -1
  172. package/dist/core/transaction/MsgBroadcasterWithPk.d.ts.map +0 -1
  173. package/dist/core/transaction/MsgBroadcasterWithPk.js.map +0 -1
  174. package/dist/core/transaction/client/TxClient.d.ts.map +0 -1
  175. package/dist/core/transaction/client/TxClient.js.map +0 -1
  176. package/dist/core/transaction/client/TxGrpcApi.d.ts.map +0 -1
  177. package/dist/core/transaction/client/TxGrpcApi.js.map +0 -1
  178. package/dist/core/transaction/client/TxRestApi.d.ts.map +0 -1
  179. package/dist/core/transaction/client/TxRestApi.js.map +0 -1
  180. package/dist/core/transaction/client/index.d.ts.map +0 -1
  181. package/dist/core/transaction/client/index.js.map +0 -1
  182. package/dist/core/transaction/client/types.d.ts +0 -15
  183. package/dist/core/transaction/client/types.d.ts.map +0 -1
  184. package/dist/core/transaction/client/types.js.map +0 -1
  185. package/dist/core/transaction/client/utils.d.ts.map +0 -1
  186. package/dist/core/transaction/client/utils.js.map +0 -1
  187. package/dist/core/transaction/index.d.ts +0 -6
  188. package/dist/core/transaction/index.d.ts.map +0 -1
  189. package/dist/core/transaction/index.js.map +0 -1
  190. package/dist/core/transaction/tx.d.ts.map +0 -1
  191. package/dist/core/transaction/tx.js +0 -202
  192. package/dist/core/transaction/tx.js.map +0 -1
  193. package/dist/core/transaction/types/index.d.ts.map +0 -1
  194. package/dist/core/transaction/types/index.js.map +0 -1
  195. package/dist/core/transaction/types/tx-rest-client.d.ts.map +0 -1
  196. package/dist/core/transaction/types/tx-rest-client.js.map +0 -1
  197. package/dist/core/transaction/types/tx.d.ts +0 -43
  198. package/dist/core/transaction/types/tx.d.ts.map +0 -1
  199. package/dist/core/transaction/types/tx.js.map +0 -1
  200. package/dist/core/transaction/utils/helpers.d.ts +0 -84
  201. package/dist/core/transaction/utils/helpers.d.ts.map +0 -1
  202. package/dist/core/transaction/utils/helpers.js +0 -177
  203. package/dist/core/transaction/utils/helpers.js.map +0 -1
  204. package/dist/core/transaction/utils/index.d.ts +0 -2
  205. package/dist/core/transaction/utils/index.d.ts.map +0 -1
  206. package/dist/core/transaction/utils/index.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { Any } from 'cosmjs-types/google/protobuf/any';
2
+ import { Account } from '@cosmjs/stargate';
3
+ export declare const accountParser: (ethAccount: Any) => Account;
4
+ //# sourceMappingURL=AccountParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountParser.d.ts","sourceRoot":"","sources":["../../../src/core/accounts/AccountParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kCAAkC,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,eAAO,MAAM,aAAa,eAAgB,GAAG,KAAG,OAgB/C,CAAA"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountParser = void 0;
4
+ const account_pb_1 = require("@injectivelabs/chain-api/injective/types/v1beta1/account_pb");
5
+ const accountParser = (ethAccount) => {
6
+ const account = account_pb_1.EthAccount.deserializeBinary(ethAccount.value);
7
+ const baseAccount = account.getBaseAccount();
8
+ const pubKey = baseAccount.getPubKey();
9
+ return {
10
+ address: baseAccount.getAddress(),
11
+ pubkey: pubKey
12
+ ? {
13
+ type: '/injective.crypto.v1beta1.ethsecp256k1.PubKey',
14
+ value: pubKey.getValue_asB64(),
15
+ }
16
+ : null,
17
+ accountNumber: baseAccount.getAccountNumber(),
18
+ sequence: baseAccount.getSequence(),
19
+ };
20
+ };
21
+ exports.accountParser = accountParser;
22
+ //# sourceMappingURL=AccountParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountParser.js","sourceRoot":"","sources":["../../../src/core/accounts/AccountParser.ts"],"names":[],"mappings":";;;AAEA,4FAAwF;AAEjF,MAAM,aAAa,GAAG,CAAC,UAAe,EAAW,EAAE;IACxD,MAAM,OAAO,GAAG,uBAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,KAAmB,CAAC,CAAA;IAC5E,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAG,CAAA;IAC7C,MAAM,MAAM,GAAG,WAAW,CAAC,SAAS,EAAE,CAAA;IAEtC,OAAO;QACL,OAAO,EAAE,WAAW,CAAC,UAAU,EAAE;QACjC,MAAM,EAAE,MAAM;YACZ,CAAC,CAAC;gBACE,IAAI,EAAE,+CAA+C;gBACrD,KAAK,EAAE,MAAM,CAAC,cAAc,EAAE;aAC/B;YACH,CAAC,CAAC,IAAI;QACR,aAAa,EAAE,WAAW,CAAC,gBAAgB,EAAE;QAC7C,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE;KACpC,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,aAAa,iBAgBzB"}
@@ -2,4 +2,6 @@ export * from './PrivateKey';
2
2
  export * from './PublicKey';
3
3
  export * from './Address';
4
4
  export * from './BaseAccount';
5
+ export * from './signers';
6
+ export { accountParser as injectiveAccountParser } from './AccountParser';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/accounts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/accounts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -14,8 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.injectiveAccountParser = void 0;
17
18
  __exportStar(require("./PrivateKey"), exports);
18
19
  __exportStar(require("./PublicKey"), exports);
19
20
  __exportStar(require("./Address"), exports);
20
21
  __exportStar(require("./BaseAccount"), exports);
22
+ __exportStar(require("./signers"), exports);
23
+ var AccountParser_1 = require("./AccountParser");
24
+ Object.defineProperty(exports, "injectiveAccountParser", { enumerable: true, get: function () { return AccountParser_1.accountParser; } });
21
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B;AAC3B,4CAAyB;AACzB,gDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B;AAC3B,4CAAyB;AACzB,gDAA6B;AAC7B,4CAAyB;AACzB,iDAAyE;AAAhE,uHAAA,aAAa,OAA0B"}
@@ -0,0 +1,19 @@
1
+ import { AminoSignResponse, StdSignDoc } from '@cosmjs/amino';
2
+ import { AccountData, OfflineAminoSigner } from './types/amino-signer';
3
+ export declare class EthSecp256k1Wallet implements OfflineAminoSigner {
4
+ /**
5
+ * Creates a EthSecp256k1Wallet from the given private key
6
+ *
7
+ * @param privKey The private key.
8
+ * @param prefix The bech32 address prefix (human readable part). Defaults to "inj".
9
+ */
10
+ static fromKey(privKey: Uint8Array, prefix?: string): Promise<EthSecp256k1Wallet>;
11
+ private readonly privateKey;
12
+ private readonly publicKey;
13
+ private readonly prefix;
14
+ private constructor();
15
+ private get address();
16
+ getAccounts(): Promise<readonly AccountData[]>;
17
+ signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
18
+ }
19
+ //# sourceMappingURL=OfflineAminoSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfflineAminoSigner.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/signers/OfflineAminoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAoB,UAAU,EAAE,MAAM,eAAe,CAAA;AAG/E,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,qBAAa,kBAAmB,YAAW,kBAAkB;IAC3D;;;;;OAKG;WACiB,OAAO,CACzB,OAAO,EAAE,UAAU,EACnB,MAAM,SAAQ,GACb,OAAO,CAAC,kBAAkB,CAAC;IAQ9B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IAEvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAE/B,OAAO;IAMP,OAAO,KAAK,OAAO,GAElB;IAEY,WAAW,IAAI,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC;IAU9C,SAAS,CACpB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,iBAAiB,CAAC;CAmB9B"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EthSecp256k1Wallet = void 0;
13
+ const amino_1 = require("@cosmjs/amino");
14
+ const PrivateKey_1 = require("../PrivateKey");
15
+ const PublicKey_1 = require("../PublicKey");
16
+ class EthSecp256k1Wallet {
17
+ /**
18
+ * Creates a EthSecp256k1Wallet from the given private key
19
+ *
20
+ * @param privKey The private key.
21
+ * @param prefix The bech32 address prefix (human readable part). Defaults to "inj".
22
+ */
23
+ static fromKey(privKey, prefix = 'inj') {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const publicKey = PrivateKey_1.PrivateKey.fromHex(Buffer.from(privKey).toString('hex'))
26
+ .toPublicKey()
27
+ .toPubKeyBytes();
28
+ return new EthSecp256k1Wallet(privKey, publicKey, prefix);
29
+ });
30
+ }
31
+ constructor(privKey, pubKey, prefix) {
32
+ this.privateKey = PrivateKey_1.PrivateKey.fromHex(Buffer.from(privKey).toString('hex'));
33
+ this.publicKey = PublicKey_1.PublicKey.fromBytes(pubKey);
34
+ this.prefix = prefix;
35
+ }
36
+ get address() {
37
+ return this.publicKey.toAddress().toBech32(this.prefix);
38
+ }
39
+ getAccounts() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ return [
42
+ {
43
+ algo: 'eth_secp256k1',
44
+ address: this.address,
45
+ pubkey: this.publicKey.toPubKeyBytes(),
46
+ },
47
+ ];
48
+ });
49
+ }
50
+ signAmino(signerAddress, signDoc) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ if (signerAddress !== this.address) {
53
+ throw new Error(`Address ${signerAddress} not found in wallet`);
54
+ }
55
+ const messageBytes = (0, amino_1.serializeSignDoc)(signDoc);
56
+ const signature = yield this.privateKey.sign(Buffer.from(messageBytes));
57
+ return {
58
+ signed: signDoc,
59
+ signature: {
60
+ pub_key: {
61
+ type: 'tendermint/PubKeyEthSecp256k1',
62
+ value: this.publicKey.toBase64(),
63
+ },
64
+ signature: Buffer.from(signature).toString('base64'),
65
+ },
66
+ };
67
+ });
68
+ }
69
+ }
70
+ exports.EthSecp256k1Wallet = EthSecp256k1Wallet;
71
+ //# sourceMappingURL=OfflineAminoSigner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfflineAminoSigner.js","sourceRoot":"","sources":["../../../../src/core/accounts/signers/OfflineAminoSigner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA+E;AAC/E,8CAA0C;AAC1C,4CAAwC;AAGxC,MAAa,kBAAkB;IAC7B;;;;;OAKG;IACI,MAAM,CAAO,OAAO,CACzB,OAAmB,EACnB,MAAM,GAAG,KAAK;;YAEd,MAAM,SAAS,GAAG,uBAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;iBACvE,WAAW,EAAE;iBACb,aAAa,EAAE,CAAA;YAElB,OAAO,IAAI,kBAAkB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;QAC3D,CAAC;KAAA;IAQD,YAAoB,OAAmB,EAAE,MAAkB,EAAE,MAAc;QACzE,IAAI,CAAC,UA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} from '@cosmjs/proto-signing';
2
+ import { SignDoc } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
3
+ import { AccountData, OfflineDirectSigner } from './types/proto-signer';
4
+ export declare class DirectEthSecp256k1Wallet implements OfflineDirectSigner {
5
+ /**
6
+ * Creates a DirectEthSecp256k1Wallet from the given private key
7
+ *
8
+ * @param privKey The private key.
9
+ * @param prefix The bech32 address prefix (human readable part). Defaults to "inj".
10
+ */
11
+ static fromKey(privKey: Uint8Array, prefix?: string): Promise<DirectEthSecp256k1Wallet>;
12
+ private readonly privateKey;
13
+ private readonly publicKey;
14
+ private readonly prefix;
15
+ private constructor();
16
+ private get address();
17
+ getAccounts(): Promise<readonly AccountData[]>;
18
+ signDirect(address: string, signDoc: SignDoc): Promise<DirectSignResponse>;
19
+ }
20
+ //# sourceMappingURL=OfflineDirectSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfflineDirectSigner.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/signers/OfflineDirectSigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,uBAAuB,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAG3D,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAEvE,qBAAa,wBAAyB,YAAW,mBAAmB;IAClE;;;;;OAKG;WACiB,OAAO,CACzB,OAAO,EAAE,UAAU,EACnB,MAAM,SAAQ,GACb,OAAO,CAAC,wBAAwB,CAAC;IAQpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IAEvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAE/B,OAAO;IAMP,OAAO,KAAK,OAAO,GAElB;IAEY,WAAW,IAAI,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC;IAU9C,UAAU,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,kBAAkB,CAAC;CAoB/B"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DirectEthSecp256k1Wallet = void 0;
13
+ const proto_signing_1 = require("@cosmjs/proto-signing");
14
+ const PrivateKey_1 = require("../PrivateKey");
15
+ const PublicKey_1 = require("../PublicKey");
16
+ class DirectEthSecp256k1Wallet {
17
+ /**
18
+ * Creates a DirectEthSecp256k1Wallet from the given private key
19
+ *
20
+ * @param privKey The private key.
21
+ * @param prefix The bech32 address prefix (human readable part). Defaults to "inj".
22
+ */
23
+ static fromKey(privKey, prefix = 'inj') {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const publicKey = PrivateKey_1.PrivateKey.fromHex(Buffer.from(privKey).toString('hex'))
26
+ .toPublicKey()
27
+ .toPubKeyBytes();
28
+ return new DirectEthSecp256k1Wallet(privKey, publicKey, prefix);
29
+ });
30
+ }
31
+ constructor(privKey, pubKey, prefix) {
32
+ this.privateKey = PrivateKey_1.PrivateKey.fromHex(Buffer.from(privKey).toString('hex'));
33
+ this.publicKey = PublicKey_1.PublicKey.fromBytes(pubKey);
34
+ this.prefix = prefix;
35
+ }
36
+ get address() {
37
+ return this.publicKey.toAddress().toBech32(this.prefix);
38
+ }
39
+ getAccounts() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ return [
42
+ {
43
+ algo: 'eth_secp256k1',
44
+ address: this.address,
45
+ pubkey: this.publicKey.toPubKeyBytes(),
46
+ },
47
+ ];
48
+ });
49
+ }
50
+ signDirect(address, signDoc) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ const signBytes = (0, proto_signing_1.makeSignBytes)(signDoc);
53
+ if (address !== this.address) {
54
+ throw new Error(`Address ${address} not found in wallet`);
55
+ }
56
+ const signature = yield this.privateKey.sign(Buffer.from(signBytes));
57
+ return {
58
+ signed: signDoc,
59
+ signature: {
60
+ pub_key: {
61
+ type: 'tendermint/PubKeyEthSecp256k1',
62
+ value: this.publicKey.toBase64(),
63
+ },
64
+ signature: Buffer.from(signature).toString('base64'),
65
+ },
66
+ };
67
+ });
68
+ }
69
+ }
70
+ exports.DirectEthSecp256k1Wallet = DirectEthSecp256k1Wallet;
71
+ //# sourceMappingURL=OfflineDirectSigner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfflineDirectSigner.js","sourceRoot":"","sources":["../../../../src/core/accounts/signers/OfflineDirectSigner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyE;AAEzE,8CAA0C;AAC1C,4CAAwC;AAGxC,MAAa,wBAAwB;IACnC;;;;;OAKG;IACI,MAAM,CAAO,OAAO,CACzB,OAAmB,EACnB,MAAM,GAAG,KAAK;;YAEd,MAAM,SAAS,GAAG,uBAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;iBACvE,WAAW,EAAE;iBACb,aAAa,EAAE,CAAA;YAElB,OAAO,IAAI,wBAAwB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;QACjE,CAAC;KAAA;IAQD,YAAoB,OAAmB,EAAE,MAAkB,EAAE,MAAc;QACzE,IAAI,CAAC,UAAU,GAAG,uBAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,Q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EthSecp256k1Wallet } from './OfflineDirectSigner';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/signers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AACxF,OAAO,EAAE,wBAAwB,IAAI,iCAAiC,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InjectiveDirectEthSecp256k1Wallet = exports.InjectiveEthSecp256k1Wallet = void 0;
4
+ var OfflineAminoSigner_1 = require("./OfflineAminoSigner");
5
+ Object.defineProperty(exports, "InjectiveEthSecp256k1Wallet", { enumerable: true, get: function () { return OfflineAminoSigner_1.EthSecp256k1Wallet; } });
6
+ var OfflineDirectSigner_1 = require("./OfflineDirectSigner");
7
+ Object.defineProperty(exports, "InjectiveDirectEthSecp256k1Wallet", { enumerable: true, get: function () { return OfflineDirectSigner_1.DirectEthSecp256k1Wallet; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/accounts/signers/index.ts"],"names":[],"mappings":";;;AAAA,2DAAwF;AAA/E,iIAAA,kBAAkB,OAA+B;AAC1D,6DAAqG;AAA5F,wIAAA,wBAAwB,OAAqC"}
@@ -0,0 +1,9 @@
1
+ import { Algo as CosmjsAlgo, AccountData as CosmjsAccountData, OfflineAminoSigner as CosmjsOfflineAminoSigner } from '@cosmjs/amino';
2
+ export type Algo = CosmjsAlgo | 'eth_secp256k1';
3
+ export interface AccountData extends Omit<CosmjsAccountData, 'algo'> {
4
+ algo: Algo;
5
+ }
6
+ export interface OfflineAminoSigner extends Omit<CosmjsOfflineAminoSigner, 'getAccounts'> {
7
+ readonly getAccounts: () => Promise<readonly AccountData[]>;
8
+ }
9
+ //# sourceMappingURL=amino-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amino-signer.d.ts","sourceRoot":"","sources":["../../../../../src/core/accounts/signers/types/amino-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,IAAI,UAAU,EAClB,WAAW,IAAI,iBAAiB,EAChC,kBAAkB,IAAI,wBAAwB,EAC/C,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,eAAe,CAAA;AAE/C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAClE,IAAI,EAAE,IAAI,CAAA;CACX;AAED,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,wBAAwB,EAAE,aAAa,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAAA;CAC5D"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=amino-signer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amino-signer.js","sourceRoot":"","sources":["../../../../../src/core/accounts/signers/types/amino-signer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { OfflineAminoSigner } from './amino-signer';
2
+ import { OfflineDirectSigner } from './proto-signer';
3
+ export type InjectiveOfflineSigner = OfflineAminoSigner | OfflineDirectSigner;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/accounts/signers/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG,mBAAmB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/accounts/signers/types/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { Algo as CosmjsAlgo, AccountData as CosmjsAccountData, OfflineDirectSigner as CosmjsOfflineDirectSigner } from '@cosmjs/proto-signing';
2
+ export type Algo = CosmjsAlgo | 'eth_secp256k1';
3
+ export interface AccountData extends Omit<CosmjsAccountData, 'algo'> {
4
+ algo: Algo;
5
+ }
6
+ export interface OfflineDirectSigner extends Omit<CosmjsOfflineDirectSigner, 'getAccounts'> {
7
+ readonly getAccounts: () => Promise<readonly AccountData[]>;
8
+ }
9
+ //# sourceMappingURL=proto-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proto-signer.d.ts","sourceRoot":"","sources":["../../../../../src/core/accounts/signers/types/proto-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,IAAI,UAAU,EAClB,WAAW,IAAI,iBAAiB,EAChC,mBAAmB,IAAI,yBAAyB,EACjD,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,eAAe,CAAA;AAE/C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAClE,IAAI,EAAE,IAAI,CAAA;CACX;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAAA;CAC5D"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=proto-signer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proto-signer.js","sourceRoot":"","sources":["../../../../../src/core/accounts/signers/types/proto-signer.ts"],"names":[],"mappings":""}
@@ -1,5 +1,4 @@
1
1
  export * from './modules';
2
- export * from './eip712';
3
- export * from './transaction';
4
2
  export * from './accounts';
3
+ export * from './stargate';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./modules"), exports);
18
- __exportStar(require("./eip712"), exports);
19
- __exportStar(require("./transaction"), exports);
20
18
  __exportStar(require("./accounts"), exports);
19
+ __exportStar(require("./stargate"), exports);
21
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB;AACxB,gDAA6B;AAC7B,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B"}
@@ -1,4 +1,4 @@
1
- import { TypedDataField } from '../eip712';
1
+ import { TypedDataField } from './tx/eip712';
2
2
  /**
3
3
  * @category Messages
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"MsgBase.d.ts","sourceRoot":"","sources":["../../../src/core/modules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,MAAM,EAAE,cAAc,EAAE,CAAC;IAS9C,QAAQ,IAAI;QACjB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;KACzC;IAWM,gBAAgB,IAAI,MAAM;CAGlC"}
@@ -16,8 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.MsgBase = void 0;
18
18
  const snakecase_keys_1 = __importDefault(require("snakecase-keys"));
19
- const eip712_1 = require("../eip712");
20
- // import { hardcodedEip712Types } from '../eip712/eip712types'
19
+ const eip712_1 = require("./tx/eip712");
21
20
  const utils_1 = require("./utils");
22
21
  /**
23
22
  * @category Messages
@@ -1 +1 @@
1
- {"version":3,"file":"MsgBase.js","sourceRoot":"","sources":["../../../src/core/modules/MsgBase.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oEAA0C;AAC1C,sCAIkB;AAClB,+DAA+D;AAC/D,mCAA0C;AAE1C;;GAEG;AACH,MAAsB,OAAO;IAS3B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAcM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IACxD,CAAC;IAEM,aAAa;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAsB,CAAA;QAEhD,OAAO,IAAA,gCAAuB,EAAC;YAC7B,MAAM,EAAE,KAA4B;YACpC,WAAW,EAAE,KAAK,CAAC,IAAI;SACxB,CAAC,CAAA;IACJ,CAAC;IAEM,QAAQ;QAIb,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;QAC5B,MAAM,KAAoB,KAA+C,EAAnE,EAAE,IAAI,OAA6D,EAAxD,IAAI,cAAf,QAAiB,CAAkD,CAAA;QACzE,M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B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAA,wBAAgB,EAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;IAC9D,CAAC;CACF;AAvDD,0BAuDC"}
@@ -20,4 +20,5 @@ export { default as MsgTransferAndExecute } from './msgs/MsgTransferAndExecute';
20
20
  export { default as MsgMultiExecute } from './msgs/MsgMultiExecute';
21
21
  export { default as MsgReclaimLockedFunds } from './msgs/MsgReclaimLockedFunds';
22
22
  export { default as MsgExternalTransfer } from './msgs/MsgExternalTransfer';
23
+ export * from './utils';
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/modules/exchange/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AACjG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,0CAA0C,CAAA;AACvG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,sCAAsC,CAAA;AAC/F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AACjG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAA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,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AACjG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACzF,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,yCAAyC,CAAA;AACrG,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,0CAA0C,CAAA;AACvG,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,oCAAoC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,mCAAmC,EAAE,MAAM,4CAA4C,CAAA;AAC3G,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,cAAc,SAAS,CAAA"}
@@ -1,4 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
18
  };
@@ -48,4 +62,5 @@ var MsgReclaimLockedFunds_1 = require("./msgs/MsgReclaimLockedFunds");
48
62
  Object.defineProperty(exports, "MsgReclaimLockedFunds", { enumerable: true, get: function () { return __importDefault(MsgReclaimLockedFunds_1).default; } });
49
63
  var MsgExternalTransfer_1 = require("./msgs/MsgExternalTransfer");
50
64
  Object.defineProperty(exports, "MsgExternalTransfer", { enumerable: true, get: function () { return __importDefault(MsgExternalTransfer_1).default; } });
65
+ __exportStar(require("./utils"), exports);
51
66
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/modules/exchange/index.ts"],"names":[],"mappings":";;;;;;AAAA,wFAAiG;AAAxF,iKAAA,OAAO,OAAkC;AAClD,4EAAqF;AAA5E,qJAAA,OAAO,OAA4B;AAC5C,8FAAuG;AAA9F,uKAAA,OAAO,OAAqC;AACrD,4EAAqF;AAA5E,qJAAA,OAAO,OAA4B;AAC5C,oEAA6E;AAApE,6IAAA,OAAO,OAAwB;AACxC,gEAAyE;AAAhE,yIAAA,OAAO,OAAsB;AACtC,sFAA+F;AAAtF,+JAAA,OAAO,OAAiC;AACjD,wFAAiG;AAAxF,iKAAA,OAAO,OAAkC;AAClD,0EAAmF;AAA1E,mJAAA,OAAO,OAA2B;AAC3C,4EAAqF;AAA5E,qJAAA,OAAO,OAA4B;AAC5C,gDAAyD;AAAhD,yHAAA,OAAO,OAAc;AAC9B,kDAA2D;AAAlD,2HAAA,OAAO,OAAe;AAC/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AAO,OAA+B;AAC/C,kGAA2G;AAAlG,2KAAA,OAAO,OAAuC;AACvD,sEAA+E;AAAtE,+IAAA,OAAO,OAAyB;AACzC,0DAAmE;AAA1D,mIAAA,OAAO,OAAmB;AACnC,sEAA+E;AAAtE,+IAAA,OAAO,OAAyB;AACzC,kEAA2E;AAAlE,2IAAA,OAAO,OAAuB;AAEvC,0CAAuB"}
@@ -0,0 +1,3 @@
1
+ export declare class OrderHashManager {
2
+ }
3
+ //# sourceMappingURL=OrderHashManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderHashManager.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/utils/classes/OrderHashManager.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAgB;CAE5B"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderHashManager = void 0;
4
+ class OrderHashManager {
5
+ }
6
+ exports.OrderHashManager = OrderHashManager;
7
+ //# sourceMappingURL=OrderHashManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderHashManager.js","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/utils/classes/OrderHashManager.ts"],"names":[],"mappings":";;;AAAA,MAAa,gBAAgB;CAE5B;AAFD,4CAEC"}
@@ -0,0 +1,2 @@
1
+ export { OrderHashManager } from './OrderHashManager';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/utils/classes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderHashManager = void 0;
4
+ var OrderHashManager_1 = require("./OrderHashManager");
5
+ Object.defineProperty(exports, "OrderHashManager", { enumerable: true, get: function () { return OrderHashManager_1.OrderHashManager; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/utils/classes/index.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './classes';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/modules/exchange/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./helpers"), exports);
17
+ __exportStar(require("./classes"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/modules/exchange/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
@@ -9,5 +9,6 @@ export * from './insurance';
9
9
  export * from './peggy';
10
10
  export * from './staking';
11
11
  export * from './wasm';
12
+ export * from './tx';
12
13
  export * from './msgs';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,MAAM,CAAA;AACpB,cAAc,QAAQ,CAAA"}
@@ -25,5 +25,6 @@ __exportStar(require("./insurance"), exports);
25
25
  __exportStar(require("./peggy"), exports);
26
26
  __exportStar(require("./staking"), exports);
27
27
  __exportStar(require("./wasm"), exports);
28
+ __exportStar(require("./tx"), exports);
28
29
  __exportStar(require("./msgs"), exports);
29
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,iDAA8B;AAC9B,wCAAqB;AACrB,wCAAqB;AACrB,8CAA2B;AAC3B,0CAAuB;AACvB,4CAAyB;AACzB,yCAAsB;AACtB,yCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,iDAA8B;AAC9B,wCAAqB;AACrB,wCAAqB;AACrB,8CAA2B;AAC3B,0CAAuB;AACvB,4CAAyB;AACzB,yCAAsB;AACtB,uCAAoB;AACpB,yCAAsB"}
@@ -2,7 +2,7 @@ import { ServiceClient } from '@injectivelabs/chain-api/cosmos/tx/v1beta1/servic
2
2
  import { BroadcastModeMap } from '@injectivelabs/chain-api/cosmos/tx/v1beta1/service_pb';
3
3
  import { TxRaw } from '@injectivelabs/chain-api/cosmos/tx/v1beta1/tx_pb';
4
4
  import { TxClientBroadcastOptions, TxClientBroadcastResponse, TxClientSimulateResponse, TxConcreteApi } from '../types/tx';
5
- import { TxResponse } from './types';
5
+ import { TxResponse } from '../types/tx';
6
6
  export declare class TxGrpcApi implements TxConcreteApi {
7
7
  txService: ServiceClient;
8
8
  endpoint: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TxGrpcApi.d.ts","sourceRoot":"","sources":["../../../../../src/core/modules/tx/api/TxGrpcApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEd,MAAM,+DAA+D,CAAA;AACtE,OAAO,EAIL,gBAAgB,EAGjB,MAAM,uDAAuD,CAAA;AAK9D,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AAExE,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,aAAa,EACd,MAAM,aAAa,CAAA;AAYpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAMxC,qBAAa,SAAU,YAAW,aAAa;IACtC,SAAS,EAAE,aAAa,CAAA;IAExB,QAAQ,EAAE,MAAM,CAAA;gBAEX,QAAQ,EAAE,MAAM;IAOf,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAiDtD,WAAW,CACtB,MAAM,EAAE,MAAM,EACd,OAAO,SAAoD,GAC1D,OAAO,CAAC,UAAU,CAAC;IAiCT,QAAQ,CAAC,KAAK,EAAE,KAAK;IA4BrB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,wBAAwB;IA+C1D,cAAc,CACzB,KAAK,EAAE,KAAK,EACZ,aAAa,GAAE,gBAAgB,CAAC,MAAM,gBAAgB,CAAsC;IAuC9F,OAAO,CAAC,OAAO;CAqBhB"}