injectivejs 1.6.2 → 1.6.4

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 (107) hide show
  1. package/README.md +373 -2
  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/client.d.ts +13 -0
  9. package/cosmos/client.js +59 -0
  10. package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
  11. package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
  12. package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
  13. package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
  14. package/cosmos/gov/v1/tx.registry.d.ts +95 -0
  15. package/cosmos/gov/v1/tx.registry.js +139 -0
  16. package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
  17. package/cosmos/gov/v1beta1/tx.registry.js +85 -0
  18. package/cosmos/group/v1/tx.registry.d.ts +179 -0
  19. package/cosmos/group/v1/tx.registry.js +265 -0
  20. package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
  21. package/cosmos/staking/v1beta1/tx.registry.js +139 -0
  22. package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
  23. package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
  24. package/cosmwasm/client.d.ts +16 -0
  25. package/cosmwasm/client.js +53 -0
  26. package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
  27. package/cosmwasm/wasm/v1/tx.registry.js +319 -0
  28. package/esm/binary.js +1 -1
  29. package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
  30. package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
  31. package/esm/cosmos/client.js +31 -0
  32. package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
  33. package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
  34. package/esm/cosmos/gov/v1/tx.registry.js +136 -0
  35. package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
  36. package/esm/cosmos/group/v1/tx.registry.js +262 -0
  37. package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
  38. package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
  39. package/esm/cosmwasm/client.js +25 -0
  40. package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
  41. package/esm/extern.js +1 -1
  42. package/esm/helper-func-types.js +1 -1
  43. package/esm/helpers.js +1 -1
  44. package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
  45. package/esm/ibc/client.js +28 -0
  46. package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
  47. package/esm/ibc/core/client/v1/tx.registry.js +136 -0
  48. package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
  49. package/esm/injective/auction/v1beta1/tx.registry.js +46 -0
  50. package/esm/injective/client.js +33 -0
  51. package/esm/injective/exchange/v1beta1/tx.registry.js +640 -0
  52. package/esm/injective/insurance/v1beta1/tx.registry.js +82 -0
  53. package/esm/injective/ocr/v1beta1/tx.registry.js +172 -0
  54. package/esm/injective/oracle/v1beta1/tx.registry.js +154 -0
  55. package/esm/injective/peggy/v1/msgs.registry.js +262 -0
  56. package/esm/injective/permissions/v1beta1/tx.registry.js +136 -0
  57. package/esm/injective/tokenfactory/v1beta1/tx.registry.js +118 -0
  58. package/esm/injective/wasmx/v1/tx.registry.js +118 -0
  59. package/esm/registry.js +1 -1
  60. package/esm/types.js +1 -1
  61. package/esm/utf8.js +1 -1
  62. package/esm/varint.js +1 -1
  63. package/extern.d.ts +1 -1
  64. package/extern.js +1 -1
  65. package/helper-func-types.d.ts +1 -1
  66. package/helper-func-types.js +1 -1
  67. package/helpers.d.ts +1 -1
  68. package/helpers.js +1 -1
  69. package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
  70. package/ibc/applications/transfer/v1/tx.registry.js +49 -0
  71. package/ibc/client.d.ts +16 -0
  72. package/ibc/client.js +56 -0
  73. package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
  74. package/ibc/core/channel/v1/tx.registry.js +355 -0
  75. package/ibc/core/client/v1/tx.registry.d.ts +95 -0
  76. package/ibc/core/client/v1/tx.registry.js +139 -0
  77. package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
  78. package/ibc/core/connection/v1/tx.registry.js +103 -0
  79. package/injective/auction/v1beta1/tx.registry.d.ts +35 -0
  80. package/injective/auction/v1beta1/tx.registry.js +49 -0
  81. package/injective/client.d.ts +16 -0
  82. package/injective/client.js +61 -0
  83. package/injective/exchange/v1beta1/tx.registry.d.ts +431 -0
  84. package/injective/exchange/v1beta1/tx.registry.js +643 -0
  85. package/injective/insurance/v1beta1/tx.registry.d.ts +59 -0
  86. package/injective/insurance/v1beta1/tx.registry.js +85 -0
  87. package/injective/ocr/v1beta1/tx.registry.d.ts +119 -0
  88. package/injective/ocr/v1beta1/tx.registry.js +175 -0
  89. package/injective/oracle/v1beta1/tx.registry.d.ts +107 -0
  90. package/injective/oracle/v1beta1/tx.registry.js +157 -0
  91. package/injective/peggy/v1/msgs.registry.d.ts +179 -0
  92. package/injective/peggy/v1/msgs.registry.js +265 -0
  93. package/injective/permissions/v1beta1/tx.registry.d.ts +95 -0
  94. package/injective/permissions/v1beta1/tx.registry.js +139 -0
  95. package/injective/tokenfactory/v1beta1/tx.registry.d.ts +83 -0
  96. package/injective/tokenfactory/v1beta1/tx.registry.js +121 -0
  97. package/injective/wasmx/v1/tx.registry.d.ts +83 -0
  98. package/injective/wasmx/v1/tx.registry.js +121 -0
  99. package/package.json +6 -6
  100. package/registry.d.ts +1 -1
  101. package/registry.js +1 -1
  102. package/types.d.ts +1 -1
  103. package/types.js +1 -1
  104. package/utf8.d.ts +1 -1
  105. package/utf8.js +1 -1
  106. package/varint.d.ts +1 -1
  107. package/varint.js +1 -1
@@ -0,0 +1,64 @@
1
+ import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx";
2
+ export const registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount]];
3
+ export const MessageComposer = {
4
+ encoded: {
5
+ createVestingAccount(value) {
6
+ return {
7
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
8
+ value: MsgCreateVestingAccount.encode(value).finish()
9
+ };
10
+ },
11
+ createPermanentLockedAccount(value) {
12
+ return {
13
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
14
+ value: MsgCreatePermanentLockedAccount.encode(value).finish()
15
+ };
16
+ },
17
+ createPeriodicVestingAccount(value) {
18
+ return {
19
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
20
+ value: MsgCreatePeriodicVestingAccount.encode(value).finish()
21
+ };
22
+ }
23
+ },
24
+ withTypeUrl: {
25
+ createVestingAccount(value) {
26
+ return {
27
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
28
+ value
29
+ };
30
+ },
31
+ createPermanentLockedAccount(value) {
32
+ return {
33
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
34
+ value
35
+ };
36
+ },
37
+ createPeriodicVestingAccount(value) {
38
+ return {
39
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
40
+ value
41
+ };
42
+ }
43
+ },
44
+ fromPartial: {
45
+ createVestingAccount(value) {
46
+ return {
47
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
48
+ value: MsgCreateVestingAccount.fromPartial(value)
49
+ };
50
+ },
51
+ createPermanentLockedAccount(value) {
52
+ return {
53
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
54
+ value: MsgCreatePermanentLockedAccount.fromPartial(value)
55
+ };
56
+ },
57
+ createPeriodicVestingAccount(value) {
58
+ return {
59
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
60
+ value: MsgCreatePeriodicVestingAccount.fromPartial(value)
61
+ };
62
+ }
63
+ }
64
+ };
@@ -0,0 +1,25 @@
1
+ import { Registry } from "@cosmjs/proto-signing";
2
+ import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import * as cosmwasmWasmV1TxRegistry from "./wasm/v1/tx.registry";
4
+ export const cosmwasmAminoConverters = {};
5
+ export const cosmwasmProtoRegistry = [...cosmwasmWasmV1TxRegistry.registry];
6
+ export const getSigningCosmwasmClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
7
+ const registry = new Registry([...defaultTypes, ...cosmwasmProtoRegistry]);
8
+ const aminoTypes = new AminoTypes({
9
+ ...cosmwasmAminoConverters
10
+ });
11
+ return {
12
+ registry,
13
+ aminoTypes
14
+ };
15
+ };
16
+ export const getSigningCosmwasmClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => {
17
+ const { registry, aminoTypes } = getSigningCosmwasmClientOptions({
18
+ defaultTypes
19
+ });
20
+ const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
21
+ registry: registry,
22
+ aminoTypes
23
+ });
24
+ return client;
25
+ };
@@ -0,0 +1,316 @@
1
+ import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract, MsgRemoveCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddresses, MsgStoreAndMigrateContract, MsgUpdateContractLabel } from "./tx";
2
+ export const registry = [["/cosmwasm.wasm.v1.MsgStoreCode", MsgStoreCode], ["/cosmwasm.wasm.v1.MsgInstantiateContract", MsgInstantiateContract], ["/cosmwasm.wasm.v1.MsgInstantiateContract2", MsgInstantiateContract2], ["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract], ["/cosmwasm.wasm.v1.MsgMigrateContract", MsgMigrateContract], ["/cosmwasm.wasm.v1.MsgUpdateAdmin", MsgUpdateAdmin], ["/cosmwasm.wasm.v1.MsgClearAdmin", MsgClearAdmin], ["/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig", MsgUpdateInstantiateConfig], ["/cosmwasm.wasm.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmwasm.wasm.v1.MsgSudoContract", MsgSudoContract], ["/cosmwasm.wasm.v1.MsgPinCodes", MsgPinCodes], ["/cosmwasm.wasm.v1.MsgUnpinCodes", MsgUnpinCodes], ["/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract", MsgStoreAndInstantiateContract], ["/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses", MsgRemoveCodeUploadParamsAddresses], ["/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses", MsgAddCodeUploadParamsAddresses], ["/cosmwasm.wasm.v1.MsgStoreAndMigrateContract", MsgStoreAndMigrateContract], ["/cosmwasm.wasm.v1.MsgUpdateContractLabel", MsgUpdateContractLabel]];
3
+ export const MessageComposer = {
4
+ encoded: {
5
+ storeCode(value) {
6
+ return {
7
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
8
+ value: MsgStoreCode.encode(value).finish()
9
+ };
10
+ },
11
+ instantiateContract(value) {
12
+ return {
13
+ typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
14
+ value: MsgInstantiateContract.encode(value).finish()
15
+ };
16
+ },
17
+ instantiateContract2(value) {
18
+ return {
19
+ typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
20
+ value: MsgInstantiateContract2.encode(value).finish()
21
+ };
22
+ },
23
+ executeContract(value) {
24
+ return {
25
+ typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
26
+ value: MsgExecuteContract.encode(value).finish()
27
+ };
28
+ },
29
+ migrateContract(value) {
30
+ return {
31
+ typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
32
+ value: MsgMigrateContract.encode(value).finish()
33
+ };
34
+ },
35
+ updateAdmin(value) {
36
+ return {
37
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
38
+ value: MsgUpdateAdmin.encode(value).finish()
39
+ };
40
+ },
41
+ clearAdmin(value) {
42
+ return {
43
+ typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
44
+ value: MsgClearAdmin.encode(value).finish()
45
+ };
46
+ },
47
+ updateInstantiateConfig(value) {
48
+ return {
49
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
50
+ value: MsgUpdateInstantiateConfig.encode(value).finish()
51
+ };
52
+ },
53
+ updateParams(value) {
54
+ return {
55
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
56
+ value: MsgUpdateParams.encode(value).finish()
57
+ };
58
+ },
59
+ sudoContract(value) {
60
+ return {
61
+ typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
62
+ value: MsgSudoContract.encode(value).finish()
63
+ };
64
+ },
65
+ pinCodes(value) {
66
+ return {
67
+ typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
68
+ value: MsgPinCodes.encode(value).finish()
69
+ };
70
+ },
71
+ unpinCodes(value) {
72
+ return {
73
+ typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
74
+ value: MsgUnpinCodes.encode(value).finish()
75
+ };
76
+ },
77
+ storeAndInstantiateContract(value) {
78
+ return {
79
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
80
+ value: MsgStoreAndInstantiateContract.encode(value).finish()
81
+ };
82
+ },
83
+ removeCodeUploadParamsAddresses(value) {
84
+ return {
85
+ typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
86
+ value: MsgRemoveCodeUploadParamsAddresses.encode(value).finish()
87
+ };
88
+ },
89
+ addCodeUploadParamsAddresses(value) {
90
+ return {
91
+ typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
92
+ value: MsgAddCodeUploadParamsAddresses.encode(value).finish()
93
+ };
94
+ },
95
+ storeAndMigrateContract(value) {
96
+ return {
97
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
98
+ value: MsgStoreAndMigrateContract.encode(value).finish()
99
+ };
100
+ },
101
+ updateContractLabel(value) {
102
+ return {
103
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
104
+ value: MsgUpdateContractLabel.encode(value).finish()
105
+ };
106
+ }
107
+ },
108
+ withTypeUrl: {
109
+ storeCode(value) {
110
+ return {
111
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
112
+ value
113
+ };
114
+ },
115
+ instantiateContract(value) {
116
+ return {
117
+ typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
118
+ value
119
+ };
120
+ },
121
+ instantiateContract2(value) {
122
+ return {
123
+ typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
124
+ value
125
+ };
126
+ },
127
+ executeContract(value) {
128
+ return {
129
+ typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
130
+ value
131
+ };
132
+ },
133
+ migrateContract(value) {
134
+ return {
135
+ typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
136
+ value
137
+ };
138
+ },
139
+ updateAdmin(value) {
140
+ return {
141
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
142
+ value
143
+ };
144
+ },
145
+ clearAdmin(value) {
146
+ return {
147
+ typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
148
+ value
149
+ };
150
+ },
151
+ updateInstantiateConfig(value) {
152
+ return {
153
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
154
+ value
155
+ };
156
+ },
157
+ updateParams(value) {
158
+ return {
159
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
160
+ value
161
+ };
162
+ },
163
+ sudoContract(value) {
164
+ return {
165
+ typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
166
+ value
167
+ };
168
+ },
169
+ pinCodes(value) {
170
+ return {
171
+ typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
172
+ value
173
+ };
174
+ },
175
+ unpinCodes(value) {
176
+ return {
177
+ typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
178
+ value
179
+ };
180
+ },
181
+ storeAndInstantiateContract(value) {
182
+ return {
183
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
184
+ value
185
+ };
186
+ },
187
+ removeCodeUploadParamsAddresses(value) {
188
+ return {
189
+ typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
190
+ value
191
+ };
192
+ },
193
+ addCodeUploadParamsAddresses(value) {
194
+ return {
195
+ typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
196
+ value
197
+ };
198
+ },
199
+ storeAndMigrateContract(value) {
200
+ return {
201
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
202
+ value
203
+ };
204
+ },
205
+ updateContractLabel(value) {
206
+ return {
207
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
208
+ value
209
+ };
210
+ }
211
+ },
212
+ fromPartial: {
213
+ storeCode(value) {
214
+ return {
215
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
216
+ value: MsgStoreCode.fromPartial(value)
217
+ };
218
+ },
219
+ instantiateContract(value) {
220
+ return {
221
+ typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
222
+ value: MsgInstantiateContract.fromPartial(value)
223
+ };
224
+ },
225
+ instantiateContract2(value) {
226
+ return {
227
+ typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
228
+ value: MsgInstantiateContract2.fromPartial(value)
229
+ };
230
+ },
231
+ executeContract(value) {
232
+ return {
233
+ typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
234
+ value: MsgExecuteContract.fromPartial(value)
235
+ };
236
+ },
237
+ migrateContract(value) {
238
+ return {
239
+ typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
240
+ value: MsgMigrateContract.fromPartial(value)
241
+ };
242
+ },
243
+ updateAdmin(value) {
244
+ return {
245
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
246
+ value: MsgUpdateAdmin.fromPartial(value)
247
+ };
248
+ },
249
+ clearAdmin(value) {
250
+ return {
251
+ typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
252
+ value: MsgClearAdmin.fromPartial(value)
253
+ };
254
+ },
255
+ updateInstantiateConfig(value) {
256
+ return {
257
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
258
+ value: MsgUpdateInstantiateConfig.fromPartial(value)
259
+ };
260
+ },
261
+ updateParams(value) {
262
+ return {
263
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
264
+ value: MsgUpdateParams.fromPartial(value)
265
+ };
266
+ },
267
+ sudoContract(value) {
268
+ return {
269
+ typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
270
+ value: MsgSudoContract.fromPartial(value)
271
+ };
272
+ },
273
+ pinCodes(value) {
274
+ return {
275
+ typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
276
+ value: MsgPinCodes.fromPartial(value)
277
+ };
278
+ },
279
+ unpinCodes(value) {
280
+ return {
281
+ typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
282
+ value: MsgUnpinCodes.fromPartial(value)
283
+ };
284
+ },
285
+ storeAndInstantiateContract(value) {
286
+ return {
287
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
288
+ value: MsgStoreAndInstantiateContract.fromPartial(value)
289
+ };
290
+ },
291
+ removeCodeUploadParamsAddresses(value) {
292
+ return {
293
+ typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
294
+ value: MsgRemoveCodeUploadParamsAddresses.fromPartial(value)
295
+ };
296
+ },
297
+ addCodeUploadParamsAddresses(value) {
298
+ return {
299
+ typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
300
+ value: MsgAddCodeUploadParamsAddresses.fromPartial(value)
301
+ };
302
+ },
303
+ storeAndMigrateContract(value) {
304
+ return {
305
+ typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
306
+ value: MsgStoreAndMigrateContract.fromPartial(value)
307
+ };
308
+ },
309
+ updateContractLabel(value) {
310
+ return {
311
+ typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
312
+ value: MsgUpdateContractLabel.fromPartial(value)
313
+ };
314
+ }
315
+ }
316
+ };
package/esm/extern.js 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.1
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
  */
@@ -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.1
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/esm/helpers.js 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.1
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
  */
@@ -0,0 +1,46 @@
1
+ import { MsgTransfer, MsgUpdateParams } from "./tx";
2
+ export const registry = [["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], ["/ibc.applications.transfer.v1.MsgUpdateParams", MsgUpdateParams]];
3
+ export const MessageComposer = {
4
+ encoded: {
5
+ transfer(value) {
6
+ return {
7
+ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
8
+ value: MsgTransfer.encode(value).finish()
9
+ };
10
+ },
11
+ updateParams(value) {
12
+ return {
13
+ typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams",
14
+ value: MsgUpdateParams.encode(value).finish()
15
+ };
16
+ }
17
+ },
18
+ withTypeUrl: {
19
+ transfer(value) {
20
+ return {
21
+ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
22
+ value
23
+ };
24
+ },
25
+ updateParams(value) {
26
+ return {
27
+ typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams",
28
+ value
29
+ };
30
+ }
31
+ },
32
+ fromPartial: {
33
+ transfer(value) {
34
+ return {
35
+ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
36
+ value: MsgTransfer.fromPartial(value)
37
+ };
38
+ },
39
+ updateParams(value) {
40
+ return {
41
+ typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams",
42
+ value: MsgUpdateParams.fromPartial(value)
43
+ };
44
+ }
45
+ }
46
+ };
@@ -0,0 +1,28 @@
1
+ import { Registry } from "@cosmjs/proto-signing";
2
+ import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry";
4
+ import * as ibcCoreChannelV1TxRegistry from "./core/channel/v1/tx.registry";
5
+ import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry";
6
+ import * as ibcCoreConnectionV1TxRegistry from "./core/connection/v1/tx.registry";
7
+ export const ibcAminoConverters = {};
8
+ export const ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreChannelV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry, ...ibcCoreConnectionV1TxRegistry.registry];
9
+ export const getSigningIbcClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
10
+ const registry = new Registry([...defaultTypes, ...ibcProtoRegistry]);
11
+ const aminoTypes = new AminoTypes({
12
+ ...ibcAminoConverters
13
+ });
14
+ return {
15
+ registry,
16
+ aminoTypes
17
+ };
18
+ };
19
+ export const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => {
20
+ const { registry, aminoTypes } = getSigningIbcClientOptions({
21
+ defaultTypes
22
+ });
23
+ const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
24
+ registry: registry,
25
+ aminoTypes
26
+ });
27
+ return client;
28
+ };