injectivejs 1.6.3 → 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 (106) hide show
  1. package/binary.d.ts +1 -1
  2. package/binary.js +1 -1
  3. package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
  4. package/cosmos/authz/v1beta1/tx.registry.js +67 -0
  5. package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
  6. package/cosmos/bank/v1beta1/tx.registry.js +85 -0
  7. package/cosmos/client.d.ts +13 -0
  8. package/cosmos/client.js +59 -0
  9. package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
  10. package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
  11. package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
  12. package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
  13. package/cosmos/gov/v1/tx.registry.d.ts +95 -0
  14. package/cosmos/gov/v1/tx.registry.js +139 -0
  15. package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
  16. package/cosmos/gov/v1beta1/tx.registry.js +85 -0
  17. package/cosmos/group/v1/tx.registry.d.ts +179 -0
  18. package/cosmos/group/v1/tx.registry.js +265 -0
  19. package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
  20. package/cosmos/staking/v1beta1/tx.registry.js +139 -0
  21. package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
  22. package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
  23. package/cosmwasm/client.d.ts +16 -0
  24. package/cosmwasm/client.js +53 -0
  25. package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
  26. package/cosmwasm/wasm/v1/tx.registry.js +319 -0
  27. package/esm/binary.js +1 -1
  28. package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
  29. package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
  30. package/esm/cosmos/client.js +31 -0
  31. package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
  32. package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
  33. package/esm/cosmos/gov/v1/tx.registry.js +136 -0
  34. package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
  35. package/esm/cosmos/group/v1/tx.registry.js +262 -0
  36. package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
  37. package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
  38. package/esm/cosmwasm/client.js +25 -0
  39. package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
  40. package/esm/extern.js +1 -1
  41. package/esm/helper-func-types.js +1 -1
  42. package/esm/helpers.js +1 -1
  43. package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
  44. package/esm/ibc/client.js +28 -0
  45. package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
  46. package/esm/ibc/core/client/v1/tx.registry.js +136 -0
  47. package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
  48. package/esm/injective/auction/v1beta1/tx.registry.js +46 -0
  49. package/esm/injective/client.js +33 -0
  50. package/esm/injective/exchange/v1beta1/tx.registry.js +640 -0
  51. package/esm/injective/insurance/v1beta1/tx.registry.js +82 -0
  52. package/esm/injective/ocr/v1beta1/tx.registry.js +172 -0
  53. package/esm/injective/oracle/v1beta1/tx.registry.js +154 -0
  54. package/esm/injective/peggy/v1/msgs.registry.js +262 -0
  55. package/esm/injective/permissions/v1beta1/tx.registry.js +136 -0
  56. package/esm/injective/tokenfactory/v1beta1/tx.registry.js +118 -0
  57. package/esm/injective/wasmx/v1/tx.registry.js +118 -0
  58. package/esm/registry.js +1 -1
  59. package/esm/types.js +1 -1
  60. package/esm/utf8.js +1 -1
  61. package/esm/varint.js +1 -1
  62. package/extern.d.ts +1 -1
  63. package/extern.js +1 -1
  64. package/helper-func-types.d.ts +1 -1
  65. package/helper-func-types.js +1 -1
  66. package/helpers.d.ts +1 -1
  67. package/helpers.js +1 -1
  68. package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
  69. package/ibc/applications/transfer/v1/tx.registry.js +49 -0
  70. package/ibc/client.d.ts +16 -0
  71. package/ibc/client.js +56 -0
  72. package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
  73. package/ibc/core/channel/v1/tx.registry.js +355 -0
  74. package/ibc/core/client/v1/tx.registry.d.ts +95 -0
  75. package/ibc/core/client/v1/tx.registry.js +139 -0
  76. package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
  77. package/ibc/core/connection/v1/tx.registry.js +103 -0
  78. package/injective/auction/v1beta1/tx.registry.d.ts +35 -0
  79. package/injective/auction/v1beta1/tx.registry.js +49 -0
  80. package/injective/client.d.ts +16 -0
  81. package/injective/client.js +61 -0
  82. package/injective/exchange/v1beta1/tx.registry.d.ts +431 -0
  83. package/injective/exchange/v1beta1/tx.registry.js +643 -0
  84. package/injective/insurance/v1beta1/tx.registry.d.ts +59 -0
  85. package/injective/insurance/v1beta1/tx.registry.js +85 -0
  86. package/injective/ocr/v1beta1/tx.registry.d.ts +119 -0
  87. package/injective/ocr/v1beta1/tx.registry.js +175 -0
  88. package/injective/oracle/v1beta1/tx.registry.d.ts +107 -0
  89. package/injective/oracle/v1beta1/tx.registry.js +157 -0
  90. package/injective/peggy/v1/msgs.registry.d.ts +179 -0
  91. package/injective/peggy/v1/msgs.registry.js +265 -0
  92. package/injective/permissions/v1beta1/tx.registry.d.ts +95 -0
  93. package/injective/permissions/v1beta1/tx.registry.js +139 -0
  94. package/injective/tokenfactory/v1beta1/tx.registry.d.ts +83 -0
  95. package/injective/tokenfactory/v1beta1/tx.registry.js +121 -0
  96. package/injective/wasmx/v1/tx.registry.d.ts +83 -0
  97. package/injective/wasmx/v1/tx.registry.js +121 -0
  98. package/package.json +2 -2
  99. package/registry.d.ts +1 -1
  100. package/registry.js +1 -1
  101. package/types.d.ts +1 -1
  102. package/types.js +1 -1
  103. package/utf8.d.ts +1 -1
  104. package/utf8.js +1 -1
  105. package/varint.d.ts +1 -1
  106. package/varint.js +1 -1
@@ -0,0 +1,262 @@
1
+ import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx";
2
+ export const registry = [["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], ["/cosmos.group.v1.MsgExec", MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup]];
3
+ export const MessageComposer = {
4
+ encoded: {
5
+ createGroup(value) {
6
+ return {
7
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
8
+ value: MsgCreateGroup.encode(value).finish()
9
+ };
10
+ },
11
+ updateGroupMembers(value) {
12
+ return {
13
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
14
+ value: MsgUpdateGroupMembers.encode(value).finish()
15
+ };
16
+ },
17
+ updateGroupAdmin(value) {
18
+ return {
19
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
20
+ value: MsgUpdateGroupAdmin.encode(value).finish()
21
+ };
22
+ },
23
+ updateGroupMetadata(value) {
24
+ return {
25
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
26
+ value: MsgUpdateGroupMetadata.encode(value).finish()
27
+ };
28
+ },
29
+ createGroupPolicy(value) {
30
+ return {
31
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
32
+ value: MsgCreateGroupPolicy.encode(value).finish()
33
+ };
34
+ },
35
+ createGroupWithPolicy(value) {
36
+ return {
37
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
38
+ value: MsgCreateGroupWithPolicy.encode(value).finish()
39
+ };
40
+ },
41
+ updateGroupPolicyAdmin(value) {
42
+ return {
43
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
44
+ value: MsgUpdateGroupPolicyAdmin.encode(value).finish()
45
+ };
46
+ },
47
+ updateGroupPolicyDecisionPolicy(value) {
48
+ return {
49
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
50
+ value: MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish()
51
+ };
52
+ },
53
+ updateGroupPolicyMetadata(value) {
54
+ return {
55
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
56
+ value: MsgUpdateGroupPolicyMetadata.encode(value).finish()
57
+ };
58
+ },
59
+ submitProposal(value) {
60
+ return {
61
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
62
+ value: MsgSubmitProposal.encode(value).finish()
63
+ };
64
+ },
65
+ withdrawProposal(value) {
66
+ return {
67
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
68
+ value: MsgWithdrawProposal.encode(value).finish()
69
+ };
70
+ },
71
+ vote(value) {
72
+ return {
73
+ typeUrl: "/cosmos.group.v1.MsgVote",
74
+ value: MsgVote.encode(value).finish()
75
+ };
76
+ },
77
+ exec(value) {
78
+ return {
79
+ typeUrl: "/cosmos.group.v1.MsgExec",
80
+ value: MsgExec.encode(value).finish()
81
+ };
82
+ },
83
+ leaveGroup(value) {
84
+ return {
85
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
86
+ value: MsgLeaveGroup.encode(value).finish()
87
+ };
88
+ }
89
+ },
90
+ withTypeUrl: {
91
+ createGroup(value) {
92
+ return {
93
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
94
+ value
95
+ };
96
+ },
97
+ updateGroupMembers(value) {
98
+ return {
99
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
100
+ value
101
+ };
102
+ },
103
+ updateGroupAdmin(value) {
104
+ return {
105
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
106
+ value
107
+ };
108
+ },
109
+ updateGroupMetadata(value) {
110
+ return {
111
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
112
+ value
113
+ };
114
+ },
115
+ createGroupPolicy(value) {
116
+ return {
117
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
118
+ value
119
+ };
120
+ },
121
+ createGroupWithPolicy(value) {
122
+ return {
123
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
124
+ value
125
+ };
126
+ },
127
+ updateGroupPolicyAdmin(value) {
128
+ return {
129
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
130
+ value
131
+ };
132
+ },
133
+ updateGroupPolicyDecisionPolicy(value) {
134
+ return {
135
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
136
+ value
137
+ };
138
+ },
139
+ updateGroupPolicyMetadata(value) {
140
+ return {
141
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
142
+ value
143
+ };
144
+ },
145
+ submitProposal(value) {
146
+ return {
147
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
148
+ value
149
+ };
150
+ },
151
+ withdrawProposal(value) {
152
+ return {
153
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
154
+ value
155
+ };
156
+ },
157
+ vote(value) {
158
+ return {
159
+ typeUrl: "/cosmos.group.v1.MsgVote",
160
+ value
161
+ };
162
+ },
163
+ exec(value) {
164
+ return {
165
+ typeUrl: "/cosmos.group.v1.MsgExec",
166
+ value
167
+ };
168
+ },
169
+ leaveGroup(value) {
170
+ return {
171
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
172
+ value
173
+ };
174
+ }
175
+ },
176
+ fromPartial: {
177
+ createGroup(value) {
178
+ return {
179
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
180
+ value: MsgCreateGroup.fromPartial(value)
181
+ };
182
+ },
183
+ updateGroupMembers(value) {
184
+ return {
185
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
186
+ value: MsgUpdateGroupMembers.fromPartial(value)
187
+ };
188
+ },
189
+ updateGroupAdmin(value) {
190
+ return {
191
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
192
+ value: MsgUpdateGroupAdmin.fromPartial(value)
193
+ };
194
+ },
195
+ updateGroupMetadata(value) {
196
+ return {
197
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
198
+ value: MsgUpdateGroupMetadata.fromPartial(value)
199
+ };
200
+ },
201
+ createGroupPolicy(value) {
202
+ return {
203
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
204
+ value: MsgCreateGroupPolicy.fromPartial(value)
205
+ };
206
+ },
207
+ createGroupWithPolicy(value) {
208
+ return {
209
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
210
+ value: MsgCreateGroupWithPolicy.fromPartial(value)
211
+ };
212
+ },
213
+ updateGroupPolicyAdmin(value) {
214
+ return {
215
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
216
+ value: MsgUpdateGroupPolicyAdmin.fromPartial(value)
217
+ };
218
+ },
219
+ updateGroupPolicyDecisionPolicy(value) {
220
+ return {
221
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
222
+ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value)
223
+ };
224
+ },
225
+ updateGroupPolicyMetadata(value) {
226
+ return {
227
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
228
+ value: MsgUpdateGroupPolicyMetadata.fromPartial(value)
229
+ };
230
+ },
231
+ submitProposal(value) {
232
+ return {
233
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
234
+ value: MsgSubmitProposal.fromPartial(value)
235
+ };
236
+ },
237
+ withdrawProposal(value) {
238
+ return {
239
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
240
+ value: MsgWithdrawProposal.fromPartial(value)
241
+ };
242
+ },
243
+ vote(value) {
244
+ return {
245
+ typeUrl: "/cosmos.group.v1.MsgVote",
246
+ value: MsgVote.fromPartial(value)
247
+ };
248
+ },
249
+ exec(value) {
250
+ return {
251
+ typeUrl: "/cosmos.group.v1.MsgExec",
252
+ value: MsgExec.fromPartial(value)
253
+ };
254
+ },
255
+ leaveGroup(value) {
256
+ return {
257
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
258
+ value: MsgLeaveGroup.fromPartial(value)
259
+ };
260
+ }
261
+ }
262
+ };
@@ -0,0 +1,136 @@
1
+ import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation, MsgUpdateParams } from "./tx";
2
+ export const registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams]];
3
+ export const MessageComposer = {
4
+ encoded: {
5
+ createValidator(value) {
6
+ return {
7
+ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
8
+ value: MsgCreateValidator.encode(value).finish()
9
+ };
10
+ },
11
+ editValidator(value) {
12
+ return {
13
+ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
14
+ value: MsgEditValidator.encode(value).finish()
15
+ };
16
+ },
17
+ delegate(value) {
18
+ return {
19
+ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
20
+ value: MsgDelegate.encode(value).finish()
21
+ };
22
+ },
23
+ beginRedelegate(value) {
24
+ return {
25
+ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
26
+ value: MsgBeginRedelegate.encode(value).finish()
27
+ };
28
+ },
29
+ undelegate(value) {
30
+ return {
31
+ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
32
+ value: MsgUndelegate.encode(value).finish()
33
+ };
34
+ },
35
+ cancelUnbondingDelegation(value) {
36
+ return {
37
+ typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
38
+ value: MsgCancelUnbondingDelegation.encode(value).finish()
39
+ };
40
+ },
41
+ updateParams(value) {
42
+ return {
43
+ typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
44
+ value: MsgUpdateParams.encode(value).finish()
45
+ };
46
+ }
47
+ },
48
+ withTypeUrl: {
49
+ createValidator(value) {
50
+ return {
51
+ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
52
+ value
53
+ };
54
+ },
55
+ editValidator(value) {
56
+ return {
57
+ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
58
+ value
59
+ };
60
+ },
61
+ delegate(value) {
62
+ return {
63
+ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
64
+ value
65
+ };
66
+ },
67
+ beginRedelegate(value) {
68
+ return {
69
+ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
70
+ value
71
+ };
72
+ },
73
+ undelegate(value) {
74
+ return {
75
+ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
76
+ value
77
+ };
78
+ },
79
+ cancelUnbondingDelegation(value) {
80
+ return {
81
+ typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
82
+ value
83
+ };
84
+ },
85
+ updateParams(value) {
86
+ return {
87
+ typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
88
+ value
89
+ };
90
+ }
91
+ },
92
+ fromPartial: {
93
+ createValidator(value) {
94
+ return {
95
+ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
96
+ value: MsgCreateValidator.fromPartial(value)
97
+ };
98
+ },
99
+ editValidator(value) {
100
+ return {
101
+ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
102
+ value: MsgEditValidator.fromPartial(value)
103
+ };
104
+ },
105
+ delegate(value) {
106
+ return {
107
+ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
108
+ value: MsgDelegate.fromPartial(value)
109
+ };
110
+ },
111
+ beginRedelegate(value) {
112
+ return {
113
+ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
114
+ value: MsgBeginRedelegate.fromPartial(value)
115
+ };
116
+ },
117
+ undelegate(value) {
118
+ return {
119
+ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
120
+ value: MsgUndelegate.fromPartial(value)
121
+ };
122
+ },
123
+ cancelUnbondingDelegation(value) {
124
+ return {
125
+ typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
126
+ value: MsgCancelUnbondingDelegation.fromPartial(value)
127
+ };
128
+ },
129
+ updateParams(value) {
130
+ return {
131
+ typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
132
+ value: MsgUpdateParams.fromPartial(value)
133
+ };
134
+ }
135
+ }
136
+ };
@@ -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
+ };