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,265 @@
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.group.v1.MsgCreateGroup", tx_1.MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", tx_1.MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", tx_1.MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", tx_1.MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", tx_1.MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", tx_1.MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", tx_1.MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", tx_1.MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", tx_1.MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", tx_1.MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", tx_1.MsgVote], ["/cosmos.group.v1.MsgExec", tx_1.MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", tx_1.MsgLeaveGroup]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ createGroup(value) {
9
+ return {
10
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
11
+ value: tx_1.MsgCreateGroup.encode(value).finish()
12
+ };
13
+ },
14
+ updateGroupMembers(value) {
15
+ return {
16
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
17
+ value: tx_1.MsgUpdateGroupMembers.encode(value).finish()
18
+ };
19
+ },
20
+ updateGroupAdmin(value) {
21
+ return {
22
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
23
+ value: tx_1.MsgUpdateGroupAdmin.encode(value).finish()
24
+ };
25
+ },
26
+ updateGroupMetadata(value) {
27
+ return {
28
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
29
+ value: tx_1.MsgUpdateGroupMetadata.encode(value).finish()
30
+ };
31
+ },
32
+ createGroupPolicy(value) {
33
+ return {
34
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
35
+ value: tx_1.MsgCreateGroupPolicy.encode(value).finish()
36
+ };
37
+ },
38
+ createGroupWithPolicy(value) {
39
+ return {
40
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
41
+ value: tx_1.MsgCreateGroupWithPolicy.encode(value).finish()
42
+ };
43
+ },
44
+ updateGroupPolicyAdmin(value) {
45
+ return {
46
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
47
+ value: tx_1.MsgUpdateGroupPolicyAdmin.encode(value).finish()
48
+ };
49
+ },
50
+ updateGroupPolicyDecisionPolicy(value) {
51
+ return {
52
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
53
+ value: tx_1.MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish()
54
+ };
55
+ },
56
+ updateGroupPolicyMetadata(value) {
57
+ return {
58
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
59
+ value: tx_1.MsgUpdateGroupPolicyMetadata.encode(value).finish()
60
+ };
61
+ },
62
+ submitProposal(value) {
63
+ return {
64
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
65
+ value: tx_1.MsgSubmitProposal.encode(value).finish()
66
+ };
67
+ },
68
+ withdrawProposal(value) {
69
+ return {
70
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
71
+ value: tx_1.MsgWithdrawProposal.encode(value).finish()
72
+ };
73
+ },
74
+ vote(value) {
75
+ return {
76
+ typeUrl: "/cosmos.group.v1.MsgVote",
77
+ value: tx_1.MsgVote.encode(value).finish()
78
+ };
79
+ },
80
+ exec(value) {
81
+ return {
82
+ typeUrl: "/cosmos.group.v1.MsgExec",
83
+ value: tx_1.MsgExec.encode(value).finish()
84
+ };
85
+ },
86
+ leaveGroup(value) {
87
+ return {
88
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
89
+ value: tx_1.MsgLeaveGroup.encode(value).finish()
90
+ };
91
+ }
92
+ },
93
+ withTypeUrl: {
94
+ createGroup(value) {
95
+ return {
96
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
97
+ value
98
+ };
99
+ },
100
+ updateGroupMembers(value) {
101
+ return {
102
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
103
+ value
104
+ };
105
+ },
106
+ updateGroupAdmin(value) {
107
+ return {
108
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
109
+ value
110
+ };
111
+ },
112
+ updateGroupMetadata(value) {
113
+ return {
114
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
115
+ value
116
+ };
117
+ },
118
+ createGroupPolicy(value) {
119
+ return {
120
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
121
+ value
122
+ };
123
+ },
124
+ createGroupWithPolicy(value) {
125
+ return {
126
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
127
+ value
128
+ };
129
+ },
130
+ updateGroupPolicyAdmin(value) {
131
+ return {
132
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
133
+ value
134
+ };
135
+ },
136
+ updateGroupPolicyDecisionPolicy(value) {
137
+ return {
138
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
139
+ value
140
+ };
141
+ },
142
+ updateGroupPolicyMetadata(value) {
143
+ return {
144
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
145
+ value
146
+ };
147
+ },
148
+ submitProposal(value) {
149
+ return {
150
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
151
+ value
152
+ };
153
+ },
154
+ withdrawProposal(value) {
155
+ return {
156
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
157
+ value
158
+ };
159
+ },
160
+ vote(value) {
161
+ return {
162
+ typeUrl: "/cosmos.group.v1.MsgVote",
163
+ value
164
+ };
165
+ },
166
+ exec(value) {
167
+ return {
168
+ typeUrl: "/cosmos.group.v1.MsgExec",
169
+ value
170
+ };
171
+ },
172
+ leaveGroup(value) {
173
+ return {
174
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
175
+ value
176
+ };
177
+ }
178
+ },
179
+ fromPartial: {
180
+ createGroup(value) {
181
+ return {
182
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
183
+ value: tx_1.MsgCreateGroup.fromPartial(value)
184
+ };
185
+ },
186
+ updateGroupMembers(value) {
187
+ return {
188
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
189
+ value: tx_1.MsgUpdateGroupMembers.fromPartial(value)
190
+ };
191
+ },
192
+ updateGroupAdmin(value) {
193
+ return {
194
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
195
+ value: tx_1.MsgUpdateGroupAdmin.fromPartial(value)
196
+ };
197
+ },
198
+ updateGroupMetadata(value) {
199
+ return {
200
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
201
+ value: tx_1.MsgUpdateGroupMetadata.fromPartial(value)
202
+ };
203
+ },
204
+ createGroupPolicy(value) {
205
+ return {
206
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
207
+ value: tx_1.MsgCreateGroupPolicy.fromPartial(value)
208
+ };
209
+ },
210
+ createGroupWithPolicy(value) {
211
+ return {
212
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
213
+ value: tx_1.MsgCreateGroupWithPolicy.fromPartial(value)
214
+ };
215
+ },
216
+ updateGroupPolicyAdmin(value) {
217
+ return {
218
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
219
+ value: tx_1.MsgUpdateGroupPolicyAdmin.fromPartial(value)
220
+ };
221
+ },
222
+ updateGroupPolicyDecisionPolicy(value) {
223
+ return {
224
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
225
+ value: tx_1.MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value)
226
+ };
227
+ },
228
+ updateGroupPolicyMetadata(value) {
229
+ return {
230
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
231
+ value: tx_1.MsgUpdateGroupPolicyMetadata.fromPartial(value)
232
+ };
233
+ },
234
+ submitProposal(value) {
235
+ return {
236
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
237
+ value: tx_1.MsgSubmitProposal.fromPartial(value)
238
+ };
239
+ },
240
+ withdrawProposal(value) {
241
+ return {
242
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
243
+ value: tx_1.MsgWithdrawProposal.fromPartial(value)
244
+ };
245
+ },
246
+ vote(value) {
247
+ return {
248
+ typeUrl: "/cosmos.group.v1.MsgVote",
249
+ value: tx_1.MsgVote.fromPartial(value)
250
+ };
251
+ },
252
+ exec(value) {
253
+ return {
254
+ typeUrl: "/cosmos.group.v1.MsgExec",
255
+ value: tx_1.MsgExec.fromPartial(value)
256
+ };
257
+ },
258
+ leaveGroup(value) {
259
+ return {
260
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
261
+ value: tx_1.MsgLeaveGroup.fromPartial(value)
262
+ };
263
+ }
264
+ }
265
+ };
@@ -0,0 +1,95 @@
1
+ import { TelescopeGeneratedType } from "../../../types";
2
+ import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation, MsgUpdateParams } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
4
+ export declare const MessageComposer: {
5
+ encoded: {
6
+ createValidator(value: MsgCreateValidator): {
7
+ typeUrl: string;
8
+ value: Uint8Array;
9
+ };
10
+ editValidator(value: MsgEditValidator): {
11
+ typeUrl: string;
12
+ value: Uint8Array;
13
+ };
14
+ delegate(value: MsgDelegate): {
15
+ typeUrl: string;
16
+ value: Uint8Array;
17
+ };
18
+ beginRedelegate(value: MsgBeginRedelegate): {
19
+ typeUrl: string;
20
+ value: Uint8Array;
21
+ };
22
+ undelegate(value: MsgUndelegate): {
23
+ typeUrl: string;
24
+ value: Uint8Array;
25
+ };
26
+ cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): {
27
+ typeUrl: string;
28
+ value: Uint8Array;
29
+ };
30
+ updateParams(value: MsgUpdateParams): {
31
+ typeUrl: string;
32
+ value: Uint8Array;
33
+ };
34
+ };
35
+ withTypeUrl: {
36
+ createValidator(value: MsgCreateValidator): {
37
+ typeUrl: string;
38
+ value: MsgCreateValidator;
39
+ };
40
+ editValidator(value: MsgEditValidator): {
41
+ typeUrl: string;
42
+ value: MsgEditValidator;
43
+ };
44
+ delegate(value: MsgDelegate): {
45
+ typeUrl: string;
46
+ value: MsgDelegate;
47
+ };
48
+ beginRedelegate(value: MsgBeginRedelegate): {
49
+ typeUrl: string;
50
+ value: MsgBeginRedelegate;
51
+ };
52
+ undelegate(value: MsgUndelegate): {
53
+ typeUrl: string;
54
+ value: MsgUndelegate;
55
+ };
56
+ cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): {
57
+ typeUrl: string;
58
+ value: MsgCancelUnbondingDelegation;
59
+ };
60
+ updateParams(value: MsgUpdateParams): {
61
+ typeUrl: string;
62
+ value: MsgUpdateParams;
63
+ };
64
+ };
65
+ fromPartial: {
66
+ createValidator(value: MsgCreateValidator): {
67
+ typeUrl: string;
68
+ value: MsgCreateValidator;
69
+ };
70
+ editValidator(value: MsgEditValidator): {
71
+ typeUrl: string;
72
+ value: MsgEditValidator;
73
+ };
74
+ delegate(value: MsgDelegate): {
75
+ typeUrl: string;
76
+ value: MsgDelegate;
77
+ };
78
+ beginRedelegate(value: MsgBeginRedelegate): {
79
+ typeUrl: string;
80
+ value: MsgBeginRedelegate;
81
+ };
82
+ undelegate(value: MsgUndelegate): {
83
+ typeUrl: string;
84
+ value: MsgUndelegate;
85
+ };
86
+ cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): {
87
+ typeUrl: string;
88
+ value: MsgCancelUnbondingDelegation;
89
+ };
90
+ updateParams(value: MsgUpdateParams): {
91
+ typeUrl: string;
92
+ value: MsgUpdateParams;
93
+ };
94
+ };
95
+ };
@@ -0,0 +1,139 @@
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.staking.v1beta1.MsgCreateValidator", tx_1.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", tx_1.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", tx_1.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", tx_1.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", tx_1.MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", tx_1.MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", tx_1.MsgUpdateParams]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ createValidator(value) {
9
+ return {
10
+ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
11
+ value: tx_1.MsgCreateValidator.encode(value).finish()
12
+ };
13
+ },
14
+ editValidator(value) {
15
+ return {
16
+ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
17
+ value: tx_1.MsgEditValidator.encode(value).finish()
18
+ };
19
+ },
20
+ delegate(value) {
21
+ return {
22
+ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
23
+ value: tx_1.MsgDelegate.encode(value).finish()
24
+ };
25
+ },
26
+ beginRedelegate(value) {
27
+ return {
28
+ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
29
+ value: tx_1.MsgBeginRedelegate.encode(value).finish()
30
+ };
31
+ },
32
+ undelegate(value) {
33
+ return {
34
+ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
35
+ value: tx_1.MsgUndelegate.encode(value).finish()
36
+ };
37
+ },
38
+ cancelUnbondingDelegation(value) {
39
+ return {
40
+ typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
41
+ value: tx_1.MsgCancelUnbondingDelegation.encode(value).finish()
42
+ };
43
+ },
44
+ updateParams(value) {
45
+ return {
46
+ typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
47
+ value: tx_1.MsgUpdateParams.encode(value).finish()
48
+ };
49
+ }
50
+ },
51
+ withTypeUrl: {
52
+ createValidator(value) {
53
+ return {
54
+ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
55
+ value
56
+ };
57
+ },
58
+ editValidator(value) {
59
+ return {
60
+ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
61
+ value
62
+ };
63
+ },
64
+ delegate(value) {
65
+ return {
66
+ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
67
+ value
68
+ };
69
+ },
70
+ beginRedelegate(value) {
71
+ return {
72
+ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
73
+ value
74
+ };
75
+ },
76
+ undelegate(value) {
77
+ return {
78
+ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
79
+ value
80
+ };
81
+ },
82
+ cancelUnbondingDelegation(value) {
83
+ return {
84
+ typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
85
+ value
86
+ };
87
+ },
88
+ updateParams(value) {
89
+ return {
90
+ typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
91
+ value
92
+ };
93
+ }
94
+ },
95
+ fromPartial: {
96
+ createValidator(value) {
97
+ return {
98
+ typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
99
+ value: tx_1.MsgCreateValidator.fromPartial(value)
100
+ };
101
+ },
102
+ editValidator(value) {
103
+ return {
104
+ typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
105
+ value: tx_1.MsgEditValidator.fromPartial(value)
106
+ };
107
+ },
108
+ delegate(value) {
109
+ return {
110
+ typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
111
+ value: tx_1.MsgDelegate.fromPartial(value)
112
+ };
113
+ },
114
+ beginRedelegate(value) {
115
+ return {
116
+ typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
117
+ value: tx_1.MsgBeginRedelegate.fromPartial(value)
118
+ };
119
+ },
120
+ undelegate(value) {
121
+ return {
122
+ typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
123
+ value: tx_1.MsgUndelegate.fromPartial(value)
124
+ };
125
+ },
126
+ cancelUnbondingDelegation(value) {
127
+ return {
128
+ typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
129
+ value: tx_1.MsgCancelUnbondingDelegation.fromPartial(value)
130
+ };
131
+ },
132
+ updateParams(value) {
133
+ return {
134
+ typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
135
+ value: tx_1.MsgUpdateParams.fromPartial(value)
136
+ };
137
+ }
138
+ }
139
+ };
@@ -0,0 +1,47 @@
1
+ import { TelescopeGeneratedType } from "../../../types";
2
+ import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
4
+ export declare const MessageComposer: {
5
+ encoded: {
6
+ createVestingAccount(value: MsgCreateVestingAccount): {
7
+ typeUrl: string;
8
+ value: Uint8Array;
9
+ };
10
+ createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): {
11
+ typeUrl: string;
12
+ value: Uint8Array;
13
+ };
14
+ createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): {
15
+ typeUrl: string;
16
+ value: Uint8Array;
17
+ };
18
+ };
19
+ withTypeUrl: {
20
+ createVestingAccount(value: MsgCreateVestingAccount): {
21
+ typeUrl: string;
22
+ value: MsgCreateVestingAccount;
23
+ };
24
+ createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): {
25
+ typeUrl: string;
26
+ value: MsgCreatePermanentLockedAccount;
27
+ };
28
+ createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): {
29
+ typeUrl: string;
30
+ value: MsgCreatePeriodicVestingAccount;
31
+ };
32
+ };
33
+ fromPartial: {
34
+ createVestingAccount(value: MsgCreateVestingAccount): {
35
+ typeUrl: string;
36
+ value: MsgCreateVestingAccount;
37
+ };
38
+ createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): {
39
+ typeUrl: string;
40
+ value: MsgCreatePermanentLockedAccount;
41
+ };
42
+ createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): {
43
+ typeUrl: string;
44
+ value: MsgCreatePeriodicVestingAccount;
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.vesting.v1beta1.MsgCreateVestingAccount", tx_1.MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", tx_1.MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", tx_1.MsgCreatePeriodicVestingAccount]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ createVestingAccount(value) {
9
+ return {
10
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
11
+ value: tx_1.MsgCreateVestingAccount.encode(value).finish()
12
+ };
13
+ },
14
+ createPermanentLockedAccount(value) {
15
+ return {
16
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
17
+ value: tx_1.MsgCreatePermanentLockedAccount.encode(value).finish()
18
+ };
19
+ },
20
+ createPeriodicVestingAccount(value) {
21
+ return {
22
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
23
+ value: tx_1.MsgCreatePeriodicVestingAccount.encode(value).finish()
24
+ };
25
+ }
26
+ },
27
+ withTypeUrl: {
28
+ createVestingAccount(value) {
29
+ return {
30
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
31
+ value
32
+ };
33
+ },
34
+ createPermanentLockedAccount(value) {
35
+ return {
36
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
37
+ value
38
+ };
39
+ },
40
+ createPeriodicVestingAccount(value) {
41
+ return {
42
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
43
+ value
44
+ };
45
+ }
46
+ },
47
+ fromPartial: {
48
+ createVestingAccount(value) {
49
+ return {
50
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
51
+ value: tx_1.MsgCreateVestingAccount.fromPartial(value)
52
+ };
53
+ },
54
+ createPermanentLockedAccount(value) {
55
+ return {
56
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
57
+ value: tx_1.MsgCreatePermanentLockedAccount.fromPartial(value)
58
+ };
59
+ },
60
+ createPeriodicVestingAccount(value) {
61
+ return {
62
+ typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
63
+ value: tx_1.MsgCreatePeriodicVestingAccount.fromPartial(value)
64
+ };
65
+ }
66
+ }
67
+ };
@@ -0,0 +1,16 @@
1
+ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
2
+ import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
4
+ export declare const cosmwasmAminoConverters: {};
5
+ export declare const cosmwasmProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
6
+ export declare const getSigningCosmwasmClientOptions: ({ defaultTypes }?: {
7
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
8
+ }) => {
9
+ registry: Registry;
10
+ aminoTypes: AminoTypes;
11
+ };
12
+ export declare const getSigningCosmwasmClient: ({ rpcEndpoint, signer, defaultTypes }: {
13
+ rpcEndpoint: string | HttpEndpoint;
14
+ signer: OfflineSigner;
15
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
16
+ }) => Promise<SigningStargateClient>;
@@ -0,0 +1,53 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.getSigningCosmwasmClient = exports.getSigningCosmwasmClientOptions = exports.cosmwasmProtoRegistry = exports.cosmwasmAminoConverters = void 0;
27
+ const proto_signing_1 = require("@cosmjs/proto-signing");
28
+ const stargate_1 = require("@cosmjs/stargate");
29
+ const cosmwasmWasmV1TxRegistry = __importStar(require("./wasm/v1/tx.registry"));
30
+ exports.cosmwasmAminoConverters = {};
31
+ exports.cosmwasmProtoRegistry = [...cosmwasmWasmV1TxRegistry.registry];
32
+ const getSigningCosmwasmClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => {
33
+ const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.cosmwasmProtoRegistry]);
34
+ const aminoTypes = new stargate_1.AminoTypes({
35
+ ...exports.cosmwasmAminoConverters
36
+ });
37
+ return {
38
+ registry,
39
+ aminoTypes
40
+ };
41
+ };
42
+ exports.getSigningCosmwasmClientOptions = getSigningCosmwasmClientOptions;
43
+ const getSigningCosmwasmClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => {
44
+ const { registry, aminoTypes } = (0, exports.getSigningCosmwasmClientOptions)({
45
+ defaultTypes
46
+ });
47
+ const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
48
+ registry: registry,
49
+ aminoTypes
50
+ });
51
+ return client;
52
+ };
53
+ exports.getSigningCosmwasmClient = getSigningCosmwasmClient;