injectivejs 1.6.3 → 1.6.5

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 (95) hide show
  1. package/README.md +230 -24
  2. package/binary.d.ts +1 -1
  3. package/binary.js +1 -1
  4. package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
  5. package/cosmos/authz/v1beta1/tx.registry.js +67 -0
  6. package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
  7. package/cosmos/bank/v1beta1/tx.registry.js +85 -0
  8. package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
  9. package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
  10. package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
  11. package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
  12. package/cosmos/gov/v1/tx.registry.d.ts +95 -0
  13. package/cosmos/gov/v1/tx.registry.js +139 -0
  14. package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
  15. package/cosmos/gov/v1beta1/tx.registry.js +85 -0
  16. package/cosmos/group/v1/tx.registry.d.ts +179 -0
  17. package/cosmos/group/v1/tx.registry.js +265 -0
  18. package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
  19. package/cosmos/staking/v1beta1/tx.registry.js +139 -0
  20. package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
  21. package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
  22. package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
  23. package/cosmwasm/wasm/v1/tx.registry.js +319 -0
  24. package/esm/binary.js +1 -1
  25. package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
  26. package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
  27. package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
  28. package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
  29. package/esm/cosmos/gov/v1/tx.registry.js +136 -0
  30. package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
  31. package/esm/cosmos/group/v1/tx.registry.js +262 -0
  32. package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
  33. package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
  34. package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
  35. package/esm/extern.js +1 -1
  36. package/esm/helper-func-types.js +1 -1
  37. package/esm/helpers.js +1 -1
  38. package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
  39. package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
  40. package/esm/ibc/core/client/v1/tx.registry.js +136 -0
  41. package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
  42. package/esm/injective/auction/v1beta1/tx.registry.js +46 -0
  43. package/esm/injective/exchange/v1beta1/tx.registry.js +640 -0
  44. package/esm/injective/insurance/v1beta1/tx.registry.js +82 -0
  45. package/esm/injective/ocr/v1beta1/tx.registry.js +172 -0
  46. package/esm/injective/oracle/v1beta1/tx.registry.js +154 -0
  47. package/esm/injective/peggy/v1/msgs.registry.js +262 -0
  48. package/esm/injective/permissions/v1beta1/tx.registry.js +136 -0
  49. package/esm/injective/tokenfactory/v1beta1/tx.registry.js +118 -0
  50. package/esm/injective/wasmx/v1/tx.registry.js +118 -0
  51. package/esm/registry.js +1 -1
  52. package/esm/types.js +1 -1
  53. package/esm/utf8.js +1 -1
  54. package/esm/varint.js +1 -1
  55. package/extern.d.ts +1 -1
  56. package/extern.js +1 -1
  57. package/helper-func-types.d.ts +1 -1
  58. package/helper-func-types.js +1 -1
  59. package/helpers.d.ts +1 -1
  60. package/helpers.js +1 -1
  61. package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
  62. package/ibc/applications/transfer/v1/tx.registry.js +49 -0
  63. package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
  64. package/ibc/core/channel/v1/tx.registry.js +355 -0
  65. package/ibc/core/client/v1/tx.registry.d.ts +95 -0
  66. package/ibc/core/client/v1/tx.registry.js +139 -0
  67. package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
  68. package/ibc/core/connection/v1/tx.registry.js +103 -0
  69. package/injective/auction/v1beta1/tx.registry.d.ts +35 -0
  70. package/injective/auction/v1beta1/tx.registry.js +49 -0
  71. package/injective/exchange/v1beta1/tx.registry.d.ts +431 -0
  72. package/injective/exchange/v1beta1/tx.registry.js +643 -0
  73. package/injective/insurance/v1beta1/tx.registry.d.ts +59 -0
  74. package/injective/insurance/v1beta1/tx.registry.js +85 -0
  75. package/injective/ocr/v1beta1/tx.registry.d.ts +119 -0
  76. package/injective/ocr/v1beta1/tx.registry.js +175 -0
  77. package/injective/oracle/v1beta1/tx.registry.d.ts +107 -0
  78. package/injective/oracle/v1beta1/tx.registry.js +157 -0
  79. package/injective/peggy/v1/msgs.registry.d.ts +179 -0
  80. package/injective/peggy/v1/msgs.registry.js +265 -0
  81. package/injective/permissions/v1beta1/tx.registry.d.ts +95 -0
  82. package/injective/permissions/v1beta1/tx.registry.js +139 -0
  83. package/injective/tokenfactory/v1beta1/tx.registry.d.ts +83 -0
  84. package/injective/tokenfactory/v1beta1/tx.registry.js +121 -0
  85. package/injective/wasmx/v1/tx.registry.d.ts +83 -0
  86. package/injective/wasmx/v1/tx.registry.js +121 -0
  87. package/package.json +2 -2
  88. package/registry.d.ts +1 -1
  89. package/registry.js +1 -1
  90. package/types.d.ts +1 -1
  91. package/types.js +1 -1
  92. package/utf8.d.ts +1 -1
  93. package/utf8.js +1 -1
  94. package/varint.d.ts +1 -1
  95. package/varint.js +1 -1
package/README.md CHANGED
@@ -22,29 +22,41 @@ npm install injectivejs
22
22
  ## Table of contents
23
23
 
24
24
  - [InjectiveJS](#injectivejs)
25
- - [Install](#install)
26
- - [Table of contents](#table-of-contents)
25
+ - [Install](#install)
26
+ - [Table of contents](#table-of-contents)
27
27
  - [Usage](#usage)
28
28
  - [RPC Clients](#rpc-clients)
29
29
  - [Tx Helpers](#tx-helpers)
30
- - Injective
31
- - [Auction](#auction-messages)
32
- - [Exchange](#exchange-messages)
33
- - [Insurance](#insurance-messages)
34
- - [OCR](#ocr-messages)
35
- - [Oracle](#oracle-messages)
36
- - [Peggy](#peggy-messages)
37
- - Cosmos, CosmWasm, and IBC
38
- - [CosmWasm](#cosmwasm-messages)
39
- - [IBC](#ibc-messages)
40
- - [Cosmos](#cosmos-messages)
41
- - [Wallets and Signers](#connecting-with-wallets-and-signing-messages)
42
- - [Stargate Client](#initializing-the-stargate-client)
30
+ - [Auction](#auction)
31
+ - [Exchange](#exchange)
32
+ - [Insurance](#insurance)
33
+ - [OCR](#ocr)
34
+ - [Oracle](#oracle)
35
+ - [Peggy](#peggy)
36
+ - [CosmWasm](#cosmwasm)
37
+ - [IBC](#ibc)
38
+ - [Cosmos](#cosmos)
39
+ - [Composing Messages](#composing-messages)
40
+ - [Auction Messages](#auction-messages)
41
+ - [Exchange Messages](#exchange-messages)
42
+ - [Insurance Messages](#insurance-messages)
43
+ - [OCR Messages](#ocr-messages)
44
+ - [Oracle Messages](#oracle-messages)
45
+ - [Peggy Messages](#peggy-messages)
46
+ - [CosmWasm Messages](#cosmwasm-messages)
47
+ - [IBC Messages](#ibc-messages)
48
+ - [Cosmos Messages](#cosmos-messages)
49
+ - [Connecting with Wallets and Signing Messages](#connecting-with-wallets-and-signing-messages)
50
+ - [Initializing the Stargate Client](#initializing-the-stargate-client)
43
51
  - [Creating Signers](#creating-signers)
44
52
  - [Broadcasting Messages](#broadcasting-messages)
53
+ - [All In One Example](#all-in-one-example)
45
54
  - [Advanced Usage](#advanced-usage)
46
55
  - [Developing](#developing)
56
+ - [Codegen](#codegen)
57
+ - [Publishing](#publishing)
47
58
  - [Credits](#credits)
59
+ - [License](#license)
48
60
 
49
61
  ## Usage
50
62
 
@@ -77,6 +89,10 @@ const exchangeBalance = await getExchangeBalances({});
77
89
 
78
90
  For tx messages, there're helper functions to sign and broadcast messages:
79
91
 
92
+ For more detailed usage on how to use these functions, please see the starship tests in the [networks/injective repo](https://github.com/cosmology-tech/interchainjs/tree/main/networks/injective/starship/__tests__)
93
+
94
+ There're also react and vue hooks for helper functions. Please see [injective-react](https://github.com/cosmology-tech/interchainjs/tree/main/libs/injective-react) and [injective-vue](https://github.com/cosmology-tech/interchainjs/tree/main/libs/injective-vue) repos for more information.
95
+
80
96
  ```js
81
97
  import {
82
98
  createDeposit,
@@ -85,13 +101,13 @@ import {
85
101
  } from "injectivejs/injective/exchange/v1beta1/tx.rpc.func";
86
102
  ```
87
103
 
88
- #### Auction Messages
104
+ #### Auction
89
105
 
90
106
  ```js
91
107
  import { createBid } from "injectivejs/injective/auction/v1beta1/tx.rpc.func";
92
108
  ```
93
109
 
94
- #### Exchange Messages
110
+ #### Exchange
95
111
 
96
112
  ```js
97
113
  import {
@@ -133,7 +149,7 @@ import {
133
149
  } from "injectivejs/injective/exchange/v1beta1/tx.rpc.func";
134
150
  ```
135
151
 
136
- #### Insurance Messages
152
+ #### Insurance
137
153
 
138
154
  ```js
139
155
  import {
@@ -143,7 +159,7 @@ import {
143
159
  } from "injectivejs/injective/insurance/v1beta1/tx.rpc.func";
144
160
  ```
145
161
 
146
- #### OCR Messages
162
+ #### OCR
147
163
 
148
164
  ```js
149
165
  import {
@@ -158,7 +174,7 @@ import {
158
174
  } from "injectivejs/injective/ocr/v1beta1/tx.rpc.func";
159
175
  ```
160
176
 
161
- #### Oracle Messages
177
+ #### Oracle
162
178
 
163
179
  ```js
164
180
  import {
@@ -172,7 +188,7 @@ import {
172
188
  } from "injectivejs/injective/oracle/v1beta1/tx.rpc.func";
173
189
  ```
174
190
 
175
- #### Peggy Messages
191
+ #### Peggy
176
192
 
177
193
  ```js
178
194
  import {
@@ -192,7 +208,7 @@ import {
192
208
  } from "injectivejs/injective/peggy/v1/msgs.rpc.func";
193
209
  ```
194
210
 
195
- #### CosmWasm Messages
211
+ #### CosmWasm
196
212
 
197
213
  ```js
198
214
  import {
@@ -215,13 +231,13 @@ import {
215
231
  } from "injectivejs/cosmwasm/wasm/v1/tx.rpc.func";
216
232
  ```
217
233
 
218
- #### IBC Messages
234
+ #### IBC
219
235
 
220
236
  ```js
221
237
  import { createTransfer } from "injectivejs/ibc/applications/transfer/v1/tx.rpc.func";
222
238
  ```
223
239
 
224
- #### Cosmos Messages
240
+ #### Cosmos
225
241
 
226
242
  ```js
227
243
  import {
@@ -250,6 +266,183 @@ import {
250
266
  } from "injectivejs/cosmos/gov/v1beta1/tx.rpc.func";
251
267
  ```
252
268
 
269
+ ### Composing Messages
270
+
271
+ Import the `injective` object from `injectivejs`.
272
+
273
+ ```js
274
+ import { MessageComposer } from "injectivejs/injective/exchange/v1beta1/tx.registry";
275
+
276
+ const { createSpotLimitOrder, createSpotMarketOrder, deposit } =
277
+ MessageComposer.withTypeUrl;
278
+ ```
279
+
280
+ #### Auction Messages
281
+
282
+ ```js
283
+ import { MessageComposer } from "injectivejs/injective/auction/v1beta1/tx.registry";
284
+
285
+ const { bid } = MessageComposer.withTypeUrl;
286
+ ```
287
+
288
+ #### Exchange Messages
289
+
290
+ ```js
291
+ import { MessageComposer } from "injectivejs/injective/exchange/v1beta1/tx.registry";
292
+
293
+ const {
294
+ adminUpdateBinaryOptionsMarket,
295
+ batchCancelBinaryOptionsOrders,
296
+ batchCancelDerivativeOrders,
297
+ batchCancelSpotOrders,
298
+ batchCreateDerivativeLimitOrders,
299
+ batchCreateSpotLimitOrders,
300
+ batchUpdateOrders,
301
+ cancelBinaryOptionsOrder,
302
+ cancelDerivativeOrder,
303
+ cancelSpotOrder,
304
+ createBinaryOptionsLimitOrder,
305
+ createBinaryOptionsMarketOrder,
306
+ createDerivativeLimitOrder,
307
+ createDerivativeMarketOrder,
308
+ createSpotLimitOrder,
309
+ createSpotMarketOrder,
310
+ deposit,
311
+ exec,
312
+ externalTransfer,
313
+ increasePositionMargin,
314
+ instantBinaryOptionsMarketLaunch,
315
+ instantExpiryFuturesMarketLaunch,
316
+ instantPerpetualMarketLaunch,
317
+ instantSpotMarketLaunch,
318
+ liquidatePosition,
319
+ rewardsOptOut,
320
+ subaccountTransfer,
321
+ withdraw,
322
+ } = MessageComposer.withTypeUrl;
323
+ ```
324
+
325
+ #### Insurance Messages
326
+
327
+ ```js
328
+ import { MessageComposer } from "injectivejs/injective/insurance/v1beta1/tx.registry";
329
+
330
+ const { createInsuranceFund, requestRedemption, underwrite } =
331
+ MessageComposer.withTypeUrl;
332
+ ```
333
+
334
+ #### OCR Messages
335
+
336
+ ```js
337
+ import { MessageComposer } from "injectivejs/injective/ocr/v1beta1/tx.registry";
338
+
339
+ const {
340
+ acceptPayeeship,
341
+ createFeed,
342
+ fundFeedRewardPool,
343
+ setPayees,
344
+ transferPayeeship,
345
+ transmit,
346
+ updateFeed,
347
+ withdrawFeedRewardPool,
348
+ } = MessageComposer.withTypeUrl;
349
+ ```
350
+
351
+ #### Oracle Messages
352
+
353
+ ```js
354
+ import { MessageComposer } from "injectivejs/injective/oracle/v1beta1/tx.registry";
355
+
356
+ const {
357
+ relayBandRates,
358
+ relayCoinbaseMessages,
359
+ relayPriceFeedPrice,
360
+ relayProviderPrices,
361
+ requestBandIBCRates,
362
+ } = MessageComposer.withTypeUrl;
363
+ ```
364
+
365
+ #### Peggy Messages
366
+
367
+ ```js
368
+ import { MessageComposer } from "injectivejs/injective/peggy/v1/tx.registry";
369
+
370
+ const {
371
+ cancelSendToEth,
372
+ confirmBatch,
373
+ depositClaim,
374
+ eRC20DeployedClaim,
375
+ requestBatch,
376
+ sendToEth,
377
+ setOrchestratorAddresses,
378
+ submitBadSignatureEvidence,
379
+ valsetConfirm,
380
+ valsetUpdateClaim,
381
+ withdrawClaim,
382
+ } = MessageComposer.withTypeUrl;
383
+ ```
384
+
385
+ #### CosmWasm Messages
386
+
387
+ ```js
388
+ import { MessageComposer } from "injectivejs/cosmwasm/wasm/v1/tx.registry";
389
+
390
+ const {
391
+ clearAdmin,
392
+ executeContract,
393
+ instantiateContract,
394
+ migrateContract,
395
+ storeCode,
396
+ updateAdmin,
397
+ } = MessageComposer.withTypeUrl;
398
+ ```
399
+
400
+ #### IBC Messages
401
+
402
+ ```js
403
+ import { MessageComposer } from "injectivejs/ibc/applications/transfer/v1/tx.registry";
404
+
405
+ const { transfer } = MessageComposer.withTypeUrl;
406
+ ```
407
+
408
+ #### Cosmos Messages
409
+
410
+ ```js
411
+ import { MessageComposer } from "injectivejs/cosmos/distribution/v1beta1/tx.registry";
412
+
413
+ const {
414
+ fundCommunityPool,
415
+ setWithdrawAddress,
416
+ withdrawDelegatorReward,
417
+ withdrawValidatorCommission,
418
+ } = MessageComposer.fromPartial;
419
+ ```
420
+
421
+ ```js
422
+ import { MessageComposer } from "injectivejs/cosmos/bank/v1beta1/tx.registry";
423
+
424
+ const { multiSend, send } = MessageComposer.fromPartial;
425
+ ```
426
+
427
+ ```js
428
+ import { MessageComposer } from "injectivejs/cosmos/staking/v1beta1/tx.registry";
429
+
430
+ const {
431
+ beginRedelegate,
432
+ createValidator,
433
+ delegate,
434
+ editValidator,
435
+ undelegate,
436
+ } = MessageComposer.fromPartial;
437
+ ```
438
+
439
+ ```js
440
+ import { MessageComposer } from "injectivejs/cosmos/gov/v1beta1/tx.registry";
441
+
442
+ const { deposit, submitProposal, vote, voteWeighted } =
443
+ cosmos.gov.v1beta1.MessageComposer.fromPartial;
444
+ ```
445
+
253
446
  ## Connecting with Wallets and Signing Messages
254
447
 
255
448
  ⚡️ For web interfaces, we recommend using [interchain-kit](https://github.com/cosmology-tech/interchain-kit/). Continue below to see how to manually construct signers and clients.
@@ -308,6 +501,19 @@ const fee: StdFee = {
308
501
  const response = await stargateClient.signAndBroadcast(address, [msg], fee);
309
502
  ```
310
503
 
504
+ ### All In One Example
505
+
506
+ For a comprehensive example of how to use InjectiveJS to send messages, please see the example [here](https://github.com/cosmology-tech/create-cosmos-app/blob/main/examples/injective/components/SendMsg.tsx). This example demonstrates how to:
507
+
508
+ - Initialize the client.
509
+ - Create and sign messages.
510
+ - Broadcast transactions.
511
+ - Handle responses and errors.
512
+
513
+ The example provides a complete walkthrough of setting up the client, creating a message for sending tokens, and broadcasting the transaction to the Injective blockchain.
514
+
515
+ Follow the [instructions](https://github.com/cosmology-tech/create-cosmos-app/tree/main/examples/injective) in the example to set up your InjectiveJS client and start sending messages to the Injective blockchain.
516
+
311
517
  ## Advanced Usage
312
518
 
313
519
  If you want to manually construct a stargate client
package/binary.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
package/binary.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -0,0 +1,47 @@
1
+ import { TelescopeGeneratedType } from "../../../types";
2
+ import { MsgGrant, MsgExec, MsgRevoke } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
4
+ export declare const MessageComposer: {
5
+ encoded: {
6
+ grant(value: MsgGrant): {
7
+ typeUrl: string;
8
+ value: Uint8Array;
9
+ };
10
+ exec(value: MsgExec): {
11
+ typeUrl: string;
12
+ value: Uint8Array;
13
+ };
14
+ revoke(value: MsgRevoke): {
15
+ typeUrl: string;
16
+ value: Uint8Array;
17
+ };
18
+ };
19
+ withTypeUrl: {
20
+ grant(value: MsgGrant): {
21
+ typeUrl: string;
22
+ value: MsgGrant;
23
+ };
24
+ exec(value: MsgExec): {
25
+ typeUrl: string;
26
+ value: MsgExec;
27
+ };
28
+ revoke(value: MsgRevoke): {
29
+ typeUrl: string;
30
+ value: MsgRevoke;
31
+ };
32
+ };
33
+ fromPartial: {
34
+ grant(value: MsgGrant): {
35
+ typeUrl: string;
36
+ value: MsgGrant;
37
+ };
38
+ exec(value: MsgExec): {
39
+ typeUrl: string;
40
+ value: MsgExec;
41
+ };
42
+ revoke(value: MsgRevoke): {
43
+ typeUrl: string;
44
+ value: MsgRevoke;
45
+ };
46
+ };
47
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageComposer = exports.registry = void 0;
4
+ const tx_1 = require("./tx");
5
+ exports.registry = [["/cosmos.authz.v1beta1.MsgGrant", tx_1.MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", tx_1.MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", tx_1.MsgRevoke]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ grant(value) {
9
+ return {
10
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrant",
11
+ value: tx_1.MsgGrant.encode(value).finish()
12
+ };
13
+ },
14
+ exec(value) {
15
+ return {
16
+ typeUrl: "/cosmos.authz.v1beta1.MsgExec",
17
+ value: tx_1.MsgExec.encode(value).finish()
18
+ };
19
+ },
20
+ revoke(value) {
21
+ return {
22
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevoke",
23
+ value: tx_1.MsgRevoke.encode(value).finish()
24
+ };
25
+ }
26
+ },
27
+ withTypeUrl: {
28
+ grant(value) {
29
+ return {
30
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrant",
31
+ value
32
+ };
33
+ },
34
+ exec(value) {
35
+ return {
36
+ typeUrl: "/cosmos.authz.v1beta1.MsgExec",
37
+ value
38
+ };
39
+ },
40
+ revoke(value) {
41
+ return {
42
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevoke",
43
+ value
44
+ };
45
+ }
46
+ },
47
+ fromPartial: {
48
+ grant(value) {
49
+ return {
50
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrant",
51
+ value: tx_1.MsgGrant.fromPartial(value)
52
+ };
53
+ },
54
+ exec(value) {
55
+ return {
56
+ typeUrl: "/cosmos.authz.v1beta1.MsgExec",
57
+ value: tx_1.MsgExec.fromPartial(value)
58
+ };
59
+ },
60
+ revoke(value) {
61
+ return {
62
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevoke",
63
+ value: tx_1.MsgRevoke.fromPartial(value)
64
+ };
65
+ }
66
+ }
67
+ };
@@ -0,0 +1,59 @@
1
+ import { TelescopeGeneratedType } from "../../../types";
2
+ import { MsgSend, MsgMultiSend, MsgUpdateParams, MsgSetSendEnabled } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
4
+ export declare const MessageComposer: {
5
+ encoded: {
6
+ send(value: MsgSend): {
7
+ typeUrl: string;
8
+ value: Uint8Array;
9
+ };
10
+ multiSend(value: MsgMultiSend): {
11
+ typeUrl: string;
12
+ value: Uint8Array;
13
+ };
14
+ updateParams(value: MsgUpdateParams): {
15
+ typeUrl: string;
16
+ value: Uint8Array;
17
+ };
18
+ setSendEnabled(value: MsgSetSendEnabled): {
19
+ typeUrl: string;
20
+ value: Uint8Array;
21
+ };
22
+ };
23
+ withTypeUrl: {
24
+ send(value: MsgSend): {
25
+ typeUrl: string;
26
+ value: MsgSend;
27
+ };
28
+ multiSend(value: MsgMultiSend): {
29
+ typeUrl: string;
30
+ value: MsgMultiSend;
31
+ };
32
+ updateParams(value: MsgUpdateParams): {
33
+ typeUrl: string;
34
+ value: MsgUpdateParams;
35
+ };
36
+ setSendEnabled(value: MsgSetSendEnabled): {
37
+ typeUrl: string;
38
+ value: MsgSetSendEnabled;
39
+ };
40
+ };
41
+ fromPartial: {
42
+ send(value: MsgSend): {
43
+ typeUrl: string;
44
+ value: MsgSend;
45
+ };
46
+ multiSend(value: MsgMultiSend): {
47
+ typeUrl: string;
48
+ value: MsgMultiSend;
49
+ };
50
+ updateParams(value: MsgUpdateParams): {
51
+ typeUrl: string;
52
+ value: MsgUpdateParams;
53
+ };
54
+ setSendEnabled(value: MsgSetSendEnabled): {
55
+ typeUrl: string;
56
+ value: MsgSetSendEnabled;
57
+ };
58
+ };
59
+ };
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageComposer = exports.registry = void 0;
4
+ const tx_1 = require("./tx");
5
+ exports.registry = [["/cosmos.bank.v1beta1.MsgSend", tx_1.MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", tx_1.MsgMultiSend], ["/cosmos.bank.v1beta1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/cosmos.bank.v1beta1.MsgSetSendEnabled", tx_1.MsgSetSendEnabled]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ send(value) {
9
+ return {
10
+ typeUrl: "/cosmos.bank.v1beta1.MsgSend",
11
+ value: tx_1.MsgSend.encode(value).finish()
12
+ };
13
+ },
14
+ multiSend(value) {
15
+ return {
16
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend",
17
+ value: tx_1.MsgMultiSend.encode(value).finish()
18
+ };
19
+ },
20
+ updateParams(value) {
21
+ return {
22
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams",
23
+ value: tx_1.MsgUpdateParams.encode(value).finish()
24
+ };
25
+ },
26
+ setSendEnabled(value) {
27
+ return {
28
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled",
29
+ value: tx_1.MsgSetSendEnabled.encode(value).finish()
30
+ };
31
+ }
32
+ },
33
+ withTypeUrl: {
34
+ send(value) {
35
+ return {
36
+ typeUrl: "/cosmos.bank.v1beta1.MsgSend",
37
+ value
38
+ };
39
+ },
40
+ multiSend(value) {
41
+ return {
42
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend",
43
+ value
44
+ };
45
+ },
46
+ updateParams(value) {
47
+ return {
48
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams",
49
+ value
50
+ };
51
+ },
52
+ setSendEnabled(value) {
53
+ return {
54
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled",
55
+ value
56
+ };
57
+ }
58
+ },
59
+ fromPartial: {
60
+ send(value) {
61
+ return {
62
+ typeUrl: "/cosmos.bank.v1beta1.MsgSend",
63
+ value: tx_1.MsgSend.fromPartial(value)
64
+ };
65
+ },
66
+ multiSend(value) {
67
+ return {
68
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend",
69
+ value: tx_1.MsgMultiSend.fromPartial(value)
70
+ };
71
+ },
72
+ updateParams(value) {
73
+ return {
74
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams",
75
+ value: tx_1.MsgUpdateParams.fromPartial(value)
76
+ };
77
+ },
78
+ setSendEnabled(value) {
79
+ return {
80
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled",
81
+ value: tx_1.MsgSetSendEnabled.fromPartial(value)
82
+ };
83
+ }
84
+ }
85
+ };