@ark-us/wasmxjs 0.0.2 → 0.0.3

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 (94) hide show
  1. package/README.md +1 -1
  2. package/main/codegen/wasmx/bundle.js +26 -20
  3. package/main/codegen/wasmx/client.js +6 -6
  4. package/main/codegen/wasmx/index.js +9 -9
  5. package/main/codegen/wasmx/rpc.query.js +16 -10
  6. package/main/codegen/wasmx/rpc.tx.js +18 -12
  7. package/main/codegen/wasmx/wasmx/{contract.js → v1/contract.js} +1 -1
  8. package/main/codegen/wasmx/wasmx/{genesis.js → v1/genesis.js} +1 -1
  9. package/main/codegen/wasmx/wasmx/{query.js → v1/query.js} +3 -3
  10. package/main/codegen/wasmx/wasmx/{query.rpc.Query.js → v1/query.rpc.Query.js} +9 -9
  11. package/main/codegen/wasmx/wasmx/{tx.amino.js → v1/tx.amino.js} +17 -17
  12. package/main/codegen/wasmx/wasmx/{tx.js → v1/tx.js} +2 -2
  13. package/main/codegen/wasmx/wasmx/{tx.registry.js → v1/tx.registry.js} +41 -41
  14. package/main/codegen/wasmx/wasmx/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
  15. package/main/codegen/wasmx/websrv/{genesis.js → v1/genesis.js} +1 -1
  16. package/main/codegen/wasmx/websrv/{params.js → v1/params.js} +1 -1
  17. package/main/codegen/wasmx/websrv/{proposal.js → v1/proposal.js} +1 -1
  18. package/main/codegen/wasmx/websrv/{query.js → v1/query.js} +2 -2
  19. package/main/codegen/wasmx/websrv/{query.rpc.Query.js → v1/query.rpc.Query.js} +7 -7
  20. package/main/codegen/wasmx/websrv/{tx.amino.js → v1/tx.amino.js} +7 -7
  21. package/main/codegen/wasmx/websrv/{tx.js → v1/tx.js} +1 -1
  22. package/main/codegen/wasmx/websrv/{tx.registry.js → v1/tx.registry.js} +16 -16
  23. package/main/codegen/wasmx/websrv/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +3 -3
  24. package/module/codegen/wasmx/bundle.js +26 -20
  25. package/module/codegen/wasmx/client.js +6 -6
  26. package/module/codegen/wasmx/index.js +9 -9
  27. package/module/codegen/wasmx/rpc.query.js +6 -2
  28. package/module/codegen/wasmx/rpc.tx.js +6 -2
  29. package/module/codegen/wasmx/wasmx/{contract.js → v1/contract.js} +1 -1
  30. package/module/codegen/wasmx/wasmx/{genesis.js → v1/genesis.js} +1 -1
  31. package/module/codegen/wasmx/wasmx/{query.js → v1/query.js} +3 -3
  32. package/module/codegen/wasmx/wasmx/{query.rpc.Query.js → v1/query.rpc.Query.js} +9 -9
  33. package/module/codegen/wasmx/wasmx/{tx.amino.js → v1/tx.amino.js} +17 -17
  34. package/module/codegen/wasmx/wasmx/{tx.js → v1/tx.js} +2 -2
  35. package/module/codegen/wasmx/wasmx/{tx.registry.js → v1/tx.registry.js} +41 -41
  36. package/module/codegen/wasmx/wasmx/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
  37. package/module/codegen/wasmx/websrv/{genesis.js → v1/genesis.js} +1 -1
  38. package/module/codegen/wasmx/websrv/{params.js → v1/params.js} +1 -1
  39. package/module/codegen/wasmx/websrv/{proposal.js → v1/proposal.js} +1 -1
  40. package/module/codegen/wasmx/websrv/{query.js → v1/query.js} +2 -2
  41. package/module/codegen/wasmx/websrv/{query.rpc.Query.js → v1/query.rpc.Query.js} +7 -7
  42. package/module/codegen/wasmx/websrv/{tx.amino.js → v1/tx.amino.js} +7 -7
  43. package/module/codegen/wasmx/websrv/{tx.js → v1/tx.js} +1 -1
  44. package/module/codegen/wasmx/websrv/{tx.registry.js → v1/tx.registry.js} +16 -16
  45. package/module/codegen/wasmx/websrv/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +3 -3
  46. package/package.json +1 -1
  47. package/src/codegen/wasmx/bundle.ts +42 -38
  48. package/src/codegen/wasmx/client.ts +7 -7
  49. package/src/codegen/wasmx/index.ts +9 -9
  50. package/src/codegen/wasmx/rpc.query.ts +6 -2
  51. package/src/codegen/wasmx/rpc.tx.ts +6 -2
  52. package/src/codegen/wasmx/wasmx/{contract.ts → v1/contract.ts} +1 -1
  53. package/src/codegen/wasmx/wasmx/{genesis.ts → v1/genesis.ts} +1 -1
  54. package/src/codegen/wasmx/wasmx/{query.rpc.Query.ts → v1/query.rpc.Query.ts} +10 -10
  55. package/src/codegen/wasmx/wasmx/{query.ts → v1/query.ts} +3 -3
  56. package/src/codegen/wasmx/wasmx/{tx.amino.ts → v1/tx.amino.ts} +25 -25
  57. package/src/codegen/wasmx/wasmx/{tx.registry.ts → v1/tx.registry.ts} +41 -41
  58. package/src/codegen/wasmx/wasmx/{tx.rpc.msg.ts → v1/tx.rpc.msg.ts} +9 -9
  59. package/src/codegen/wasmx/wasmx/{tx.ts → v1/tx.ts} +2 -2
  60. package/src/codegen/wasmx/websrv/{genesis.ts → v1/genesis.ts} +1 -1
  61. package/src/codegen/wasmx/websrv/{params.ts → v1/params.ts} +1 -1
  62. package/src/codegen/wasmx/websrv/{proposal.ts → v1/proposal.ts} +1 -1
  63. package/src/codegen/wasmx/websrv/{query.rpc.Query.ts → v1/query.rpc.Query.ts} +8 -8
  64. package/src/codegen/wasmx/websrv/{query.ts → v1/query.ts} +2 -2
  65. package/src/codegen/wasmx/websrv/{tx.amino.ts → v1/tx.amino.ts} +10 -10
  66. package/src/codegen/wasmx/websrv/{tx.registry.ts → v1/tx.registry.ts} +16 -16
  67. package/src/codegen/wasmx/websrv/{tx.rpc.msg.ts → v1/tx.rpc.msg.ts} +4 -4
  68. package/src/codegen/wasmx/websrv/{tx.ts → v1/tx.ts} +1 -1
  69. package/types/codegen/wasmx/bundle.d.ts +979 -967
  70. package/types/codegen/wasmx/client.d.ts +33 -33
  71. package/types/codegen/wasmx/rpc.query.d.ts +20 -16
  72. package/types/codegen/wasmx/rpc.tx.d.ts +6 -2
  73. package/types/codegen/wasmx/wasmx/tx.amino.d.ts +16 -16
  74. package/types/codegen/wasmx/wasmx/v1/contract.d.ts +139 -0
  75. package/types/codegen/wasmx/wasmx/v1/genesis.d.ts +121 -0
  76. package/types/codegen/wasmx/wasmx/v1/params.d.ts +14 -0
  77. package/types/codegen/wasmx/wasmx/v1/query.d.ts +451 -0
  78. package/types/codegen/wasmx/wasmx/v1/query.rpc.Query.d.ts +48 -0
  79. package/types/codegen/wasmx/wasmx/v1/tx.amino.d.ts +134 -0
  80. package/types/codegen/wasmx/wasmx/v1/tx.d.ts +404 -0
  81. package/types/codegen/wasmx/wasmx/v1/tx.registry.d.ts +176 -0
  82. package/types/codegen/wasmx/wasmx/v1/tx.rpc.msg.d.ts +39 -0
  83. package/types/codegen/wasmx/websrv/v1/genesis.d.ts +17 -0
  84. package/types/codegen/wasmx/websrv/v1/params.d.ts +16 -0
  85. package/types/codegen/wasmx/websrv/v1/proposal.d.ts +65 -0
  86. package/types/codegen/wasmx/websrv/v1/query.d.ts +315 -0
  87. package/types/codegen/wasmx/websrv/v1/query.rpc.Query.d.ts +40 -0
  88. package/types/codegen/wasmx/websrv/v1/tx.amino.d.ts +41 -0
  89. package/types/codegen/wasmx/websrv/v1/tx.d.ts +90 -0
  90. package/types/codegen/wasmx/websrv/v1/tx.registry.d.ts +76 -0
  91. package/types/codegen/wasmx/websrv/v1/tx.rpc.msg.d.ts +18 -0
  92. /package/main/codegen/wasmx/wasmx/{params.js → v1/params.js} +0 -0
  93. /package/module/codegen/wasmx/wasmx/{params.js → v1/params.js} +0 -0
  94. /package/src/codegen/wasmx/wasmx/{params.ts → v1/params.ts} +0 -0
@@ -0,0 +1,404 @@
1
+ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
2
+ import * as _m0 from "protobufjs/minimal";
3
+ import { Long } from "../../../helpers";
4
+ /** MsgStoreCode submit Wasm code to the system */
5
+ export interface MsgStoreCode {
6
+ /** Sender is the that actor that signed the messages */
7
+ sender: string;
8
+ /** WASMByteCode can be raw or gzip compressed */
9
+ wasmByteCode: Uint8Array;
10
+ }
11
+ /** MsgStoreCode submit Wasm code to the system */
12
+ export interface MsgStoreCodeSDKType {
13
+ /** Sender is the that actor that signed the messages */
14
+ sender: string;
15
+ /** WASMByteCode can be raw or gzip compressed */
16
+ wasm_byte_code: Uint8Array;
17
+ }
18
+ /** MsgStoreCodeResponse returns store result data. */
19
+ export interface MsgStoreCodeResponse {
20
+ /** CodeID is the reference to the stored WASM code */
21
+ codeId: Long;
22
+ /** Checksum is the sha256 hash of the stored code */
23
+ checksum: Uint8Array;
24
+ }
25
+ /** MsgStoreCodeResponse returns store result data. */
26
+ export interface MsgStoreCodeResponseSDKType {
27
+ /** CodeID is the reference to the stored WASM code */
28
+ code_id: Long;
29
+ /** Checksum is the sha256 hash of the stored code */
30
+ checksum: Uint8Array;
31
+ }
32
+ /** MsgStoreCodeEvm submit Wasm code to the system */
33
+ export interface MsgStoreCodeEvm {
34
+ /** Sender is the that actor that signed the messages */
35
+ sender: string;
36
+ /** EVM bytecode */
37
+ evmByteCode: Uint8Array;
38
+ }
39
+ /** MsgStoreCodeEvm submit Wasm code to the system */
40
+ export interface MsgStoreCodeEvmSDKType {
41
+ /** Sender is the that actor that signed the messages */
42
+ sender: string;
43
+ /** EVM bytecode */
44
+ evm_byte_code: Uint8Array;
45
+ }
46
+ /** MsgStoreCodeEvmResponse returns store result data. */
47
+ export interface MsgStoreCodeEvmResponse {
48
+ /** CodeID is the reference to the stored WASM code */
49
+ codeId: Long;
50
+ /** Checksum is the sha256 hash of the stored code */
51
+ checksum: Uint8Array;
52
+ }
53
+ /** MsgStoreCodeEvmResponse returns store result data. */
54
+ export interface MsgStoreCodeEvmResponseSDKType {
55
+ /** CodeID is the reference to the stored WASM code */
56
+ code_id: Long;
57
+ /** Checksum is the sha256 hash of the stored code */
58
+ checksum: Uint8Array;
59
+ }
60
+ /**
61
+ * MsgInstantiateContract create a new smart contract instance for the given
62
+ * code id.
63
+ */
64
+ export interface MsgInstantiateContract {
65
+ /** Sender is the that actor that signed the messages */
66
+ sender: string;
67
+ /** CodeID is the reference to the stored WASM code */
68
+ codeId: Long;
69
+ /** Label is optional metadata to be stored with a contract instance. */
70
+ label: string;
71
+ /** Msg json encoded message to be passed to the contract on instantiation */
72
+ msg: Uint8Array;
73
+ /** Funds coins that are transferred to the contract on instantiation */
74
+ funds: Coin[];
75
+ }
76
+ /**
77
+ * MsgInstantiateContract create a new smart contract instance for the given
78
+ * code id.
79
+ */
80
+ export interface MsgInstantiateContractSDKType {
81
+ /** Sender is the that actor that signed the messages */
82
+ sender: string;
83
+ /** CodeID is the reference to the stored WASM code */
84
+ code_id: Long;
85
+ /** Label is optional metadata to be stored with a contract instance. */
86
+ label: string;
87
+ /** Msg json encoded message to be passed to the contract on instantiation */
88
+ msg: Uint8Array;
89
+ /** Funds coins that are transferred to the contract on instantiation */
90
+ funds: CoinSDKType[];
91
+ }
92
+ /**
93
+ * MsgInstantiateContract2 create a new smart contract instance for the given
94
+ * code id with a predicable address.
95
+ */
96
+ export interface MsgInstantiateContract2 {
97
+ /** Sender is the that actor that signed the messages */
98
+ sender: string;
99
+ /** Admin is an optional address that can execute migrations */
100
+ codeId: Long;
101
+ /** Label is optional metadata to be stored with a contract instance. */
102
+ label: string;
103
+ /** Msg json encoded message to be passed to the contract on instantiation */
104
+ msg: Uint8Array;
105
+ /** Funds coins that are transferred to the contract on instantiation */
106
+ funds: Coin[];
107
+ /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
108
+ salt: Uint8Array;
109
+ /**
110
+ * FixMsg include the msg value into the hash for the predictable address.
111
+ * Default is false
112
+ */
113
+ fixMsg: boolean;
114
+ }
115
+ /**
116
+ * MsgInstantiateContract2 create a new smart contract instance for the given
117
+ * code id with a predicable address.
118
+ */
119
+ export interface MsgInstantiateContract2SDKType {
120
+ /** Sender is the that actor that signed the messages */
121
+ sender: string;
122
+ /** Admin is an optional address that can execute migrations */
123
+ code_id: Long;
124
+ /** Label is optional metadata to be stored with a contract instance. */
125
+ label: string;
126
+ /** Msg json encoded message to be passed to the contract on instantiation */
127
+ msg: Uint8Array;
128
+ /** Funds coins that are transferred to the contract on instantiation */
129
+ funds: CoinSDKType[];
130
+ /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
131
+ salt: Uint8Array;
132
+ /**
133
+ * FixMsg include the msg value into the hash for the predictable address.
134
+ * Default is false
135
+ */
136
+ fix_msg: boolean;
137
+ }
138
+ /** MsgInstantiateContractResponse return instantiation result data */
139
+ export interface MsgInstantiateContractResponse {
140
+ /** Address is the bech32 address of the new contract instance. */
141
+ address: string;
142
+ /** Data contains bytes to returned from the contract */
143
+ data: Uint8Array;
144
+ }
145
+ /** MsgInstantiateContractResponse return instantiation result data */
146
+ export interface MsgInstantiateContractResponseSDKType {
147
+ /** Address is the bech32 address of the new contract instance. */
148
+ address: string;
149
+ /** Data contains bytes to returned from the contract */
150
+ data: Uint8Array;
151
+ }
152
+ /** MsgInstantiateContract2Response return instantiation result data */
153
+ export interface MsgInstantiateContract2Response {
154
+ /** Address is the bech32 address of the new contract instance. */
155
+ address: string;
156
+ /** Data contains bytes to returned from the contract */
157
+ data: Uint8Array;
158
+ }
159
+ /** MsgInstantiateContract2Response return instantiation result data */
160
+ export interface MsgInstantiateContract2ResponseSDKType {
161
+ /** Address is the bech32 address of the new contract instance. */
162
+ address: string;
163
+ /** Data contains bytes to returned from the contract */
164
+ data: Uint8Array;
165
+ }
166
+ /** MsgExecuteContract submits the given message data to a smart contract */
167
+ export interface MsgExecuteContract {
168
+ /** Sender is the that actor that signed the messages */
169
+ sender: string;
170
+ /** Contract is the address of the smart contract */
171
+ contract: string;
172
+ /** Msg json encoded message to be passed to the contract */
173
+ msg: Uint8Array;
174
+ /** Funds coins that are transferred to the contract on execution */
175
+ funds: Coin[];
176
+ /**
177
+ * Array of either hex-encoded contract addresses or contract labels
178
+ * on which the execution of this message depends on
179
+ */
180
+ dependencies: string[];
181
+ }
182
+ /** MsgExecuteContract submits the given message data to a smart contract */
183
+ export interface MsgExecuteContractSDKType {
184
+ /** Sender is the that actor that signed the messages */
185
+ sender: string;
186
+ /** Contract is the address of the smart contract */
187
+ contract: string;
188
+ /** Msg json encoded message to be passed to the contract */
189
+ msg: Uint8Array;
190
+ /** Funds coins that are transferred to the contract on execution */
191
+ funds: CoinSDKType[];
192
+ /**
193
+ * Array of either hex-encoded contract addresses or contract labels
194
+ * on which the execution of this message depends on
195
+ */
196
+ dependencies: string[];
197
+ }
198
+ /** MsgExecuteContractResponse returns execution result data. */
199
+ export interface MsgExecuteContractResponse {
200
+ /** Data contains bytes to returned from the contract */
201
+ data: Uint8Array;
202
+ }
203
+ /** MsgExecuteContractResponse returns execution result data. */
204
+ export interface MsgExecuteContractResponseSDKType {
205
+ /** Data contains bytes to returned from the contract */
206
+ data: Uint8Array;
207
+ }
208
+ /**
209
+ * MsgExecuteWithOriginContract forwards a message data from a smart contract
210
+ * to another smart contract
211
+ */
212
+ export interface MsgExecuteWithOriginContract {
213
+ /** Origin is the actor that originally signed the message */
214
+ origin: string;
215
+ /** Sender is the the smart contract that sent the messages */
216
+ sender: string;
217
+ /** Contract is the address of the smart contract that receives the message */
218
+ contract: string;
219
+ /** Msg json encoded message to be passed to the contract */
220
+ msg: Uint8Array;
221
+ /** Funds coins that are transferred to the contract on execution */
222
+ funds: Coin[];
223
+ }
224
+ /**
225
+ * MsgExecuteWithOriginContract forwards a message data from a smart contract
226
+ * to another smart contract
227
+ */
228
+ export interface MsgExecuteWithOriginContractSDKType {
229
+ /** Origin is the actor that originally signed the message */
230
+ origin: string;
231
+ /** Sender is the the smart contract that sent the messages */
232
+ sender: string;
233
+ /** Contract is the address of the smart contract that receives the message */
234
+ contract: string;
235
+ /** Msg json encoded message to be passed to the contract */
236
+ msg: Uint8Array;
237
+ /** Funds coins that are transferred to the contract on execution */
238
+ funds: CoinSDKType[];
239
+ }
240
+ /** MsgExecuteDelegateContract submits the given message data to a smart contract */
241
+ export interface MsgExecuteDelegateContract {
242
+ /** Origin is the actor that originally signed the message */
243
+ origin: string;
244
+ /** Sender is the storage contract, equivalent to the address that triggers the message (signer) */
245
+ sender: string;
246
+ /** Caller is the address that will be used as sender */
247
+ caller: string;
248
+ /** CodeContract is the address of the smart contract whose binary is used */
249
+ codeContract: string;
250
+ /** StorageContract is the address of the smart contract whose storage is used */
251
+ storageContract: string;
252
+ /** Msg json encoded message to be passed to the contract */
253
+ msg: Uint8Array;
254
+ /** Funds coins that are transferred to the contract on execution */
255
+ funds: Coin[];
256
+ }
257
+ /** MsgExecuteDelegateContract submits the given message data to a smart contract */
258
+ export interface MsgExecuteDelegateContractSDKType {
259
+ /** Origin is the actor that originally signed the message */
260
+ origin: string;
261
+ /** Sender is the storage contract, equivalent to the address that triggers the message (signer) */
262
+ sender: string;
263
+ /** Caller is the address that will be used as sender */
264
+ caller: string;
265
+ /** CodeContract is the address of the smart contract whose binary is used */
266
+ code_contract: string;
267
+ /** StorageContract is the address of the smart contract whose storage is used */
268
+ storage_contract: string;
269
+ /** Msg json encoded message to be passed to the contract */
270
+ msg: Uint8Array;
271
+ /** Funds coins that are transferred to the contract on execution */
272
+ funds: CoinSDKType[];
273
+ }
274
+ /** MsgExecuteDelegateContractResponse returns execution result data. */
275
+ export interface MsgExecuteDelegateContractResponse {
276
+ /** Data contains bytes to returned from the contract */
277
+ data: Uint8Array;
278
+ }
279
+ /** MsgExecuteDelegateContractResponse returns execution result data. */
280
+ export interface MsgExecuteDelegateContractResponseSDKType {
281
+ /** Data contains bytes to returned from the contract */
282
+ data: Uint8Array;
283
+ }
284
+ export interface MsgCompileContract {
285
+ /** Sender is the that actor that signed the messages */
286
+ sender: string;
287
+ /** Contract is the address of the smart contract */
288
+ codeId: Long;
289
+ }
290
+ export interface MsgCompileContractSDKType {
291
+ /** Sender is the that actor that signed the messages */
292
+ sender: string;
293
+ /** Contract is the address of the smart contract */
294
+ codeId: Long;
295
+ }
296
+ export interface MsgCompileContractResponse {
297
+ }
298
+ export interface MsgCompileContractResponseSDKType {
299
+ }
300
+ export declare const MsgStoreCode: {
301
+ encode(message: MsgStoreCode, writer?: _m0.Writer): _m0.Writer;
302
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCode;
303
+ fromJSON(object: any): MsgStoreCode;
304
+ toJSON(message: MsgStoreCode): unknown;
305
+ fromPartial(object: Partial<MsgStoreCode>): MsgStoreCode;
306
+ };
307
+ export declare const MsgStoreCodeResponse: {
308
+ encode(message: MsgStoreCodeResponse, writer?: _m0.Writer): _m0.Writer;
309
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeResponse;
310
+ fromJSON(object: any): MsgStoreCodeResponse;
311
+ toJSON(message: MsgStoreCodeResponse): unknown;
312
+ fromPartial(object: Partial<MsgStoreCodeResponse>): MsgStoreCodeResponse;
313
+ };
314
+ export declare const MsgStoreCodeEvm: {
315
+ encode(message: MsgStoreCodeEvm, writer?: _m0.Writer): _m0.Writer;
316
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeEvm;
317
+ fromJSON(object: any): MsgStoreCodeEvm;
318
+ toJSON(message: MsgStoreCodeEvm): unknown;
319
+ fromPartial(object: Partial<MsgStoreCodeEvm>): MsgStoreCodeEvm;
320
+ };
321
+ export declare const MsgStoreCodeEvmResponse: {
322
+ encode(message: MsgStoreCodeEvmResponse, writer?: _m0.Writer): _m0.Writer;
323
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeEvmResponse;
324
+ fromJSON(object: any): MsgStoreCodeEvmResponse;
325
+ toJSON(message: MsgStoreCodeEvmResponse): unknown;
326
+ fromPartial(object: Partial<MsgStoreCodeEvmResponse>): MsgStoreCodeEvmResponse;
327
+ };
328
+ export declare const MsgInstantiateContract: {
329
+ encode(message: MsgInstantiateContract, writer?: _m0.Writer): _m0.Writer;
330
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract;
331
+ fromJSON(object: any): MsgInstantiateContract;
332
+ toJSON(message: MsgInstantiateContract): unknown;
333
+ fromPartial(object: Partial<MsgInstantiateContract>): MsgInstantiateContract;
334
+ };
335
+ export declare const MsgInstantiateContract2: {
336
+ encode(message: MsgInstantiateContract2, writer?: _m0.Writer): _m0.Writer;
337
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract2;
338
+ fromJSON(object: any): MsgInstantiateContract2;
339
+ toJSON(message: MsgInstantiateContract2): unknown;
340
+ fromPartial(object: Partial<MsgInstantiateContract2>): MsgInstantiateContract2;
341
+ };
342
+ export declare const MsgInstantiateContractResponse: {
343
+ encode(message: MsgInstantiateContractResponse, writer?: _m0.Writer): _m0.Writer;
344
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContractResponse;
345
+ fromJSON(object: any): MsgInstantiateContractResponse;
346
+ toJSON(message: MsgInstantiateContractResponse): unknown;
347
+ fromPartial(object: Partial<MsgInstantiateContractResponse>): MsgInstantiateContractResponse;
348
+ };
349
+ export declare const MsgInstantiateContract2Response: {
350
+ encode(message: MsgInstantiateContract2Response, writer?: _m0.Writer): _m0.Writer;
351
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract2Response;
352
+ fromJSON(object: any): MsgInstantiateContract2Response;
353
+ toJSON(message: MsgInstantiateContract2Response): unknown;
354
+ fromPartial(object: Partial<MsgInstantiateContract2Response>): MsgInstantiateContract2Response;
355
+ };
356
+ export declare const MsgExecuteContract: {
357
+ encode(message: MsgExecuteContract, writer?: _m0.Writer): _m0.Writer;
358
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContract;
359
+ fromJSON(object: any): MsgExecuteContract;
360
+ toJSON(message: MsgExecuteContract): unknown;
361
+ fromPartial(object: Partial<MsgExecuteContract>): MsgExecuteContract;
362
+ };
363
+ export declare const MsgExecuteContractResponse: {
364
+ encode(message: MsgExecuteContractResponse, writer?: _m0.Writer): _m0.Writer;
365
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContractResponse;
366
+ fromJSON(object: any): MsgExecuteContractResponse;
367
+ toJSON(message: MsgExecuteContractResponse): unknown;
368
+ fromPartial(object: Partial<MsgExecuteContractResponse>): MsgExecuteContractResponse;
369
+ };
370
+ export declare const MsgExecuteWithOriginContract: {
371
+ encode(message: MsgExecuteWithOriginContract, writer?: _m0.Writer): _m0.Writer;
372
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteWithOriginContract;
373
+ fromJSON(object: any): MsgExecuteWithOriginContract;
374
+ toJSON(message: MsgExecuteWithOriginContract): unknown;
375
+ fromPartial(object: Partial<MsgExecuteWithOriginContract>): MsgExecuteWithOriginContract;
376
+ };
377
+ export declare const MsgExecuteDelegateContract: {
378
+ encode(message: MsgExecuteDelegateContract, writer?: _m0.Writer): _m0.Writer;
379
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteDelegateContract;
380
+ fromJSON(object: any): MsgExecuteDelegateContract;
381
+ toJSON(message: MsgExecuteDelegateContract): unknown;
382
+ fromPartial(object: Partial<MsgExecuteDelegateContract>): MsgExecuteDelegateContract;
383
+ };
384
+ export declare const MsgExecuteDelegateContractResponse: {
385
+ encode(message: MsgExecuteDelegateContractResponse, writer?: _m0.Writer): _m0.Writer;
386
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteDelegateContractResponse;
387
+ fromJSON(object: any): MsgExecuteDelegateContractResponse;
388
+ toJSON(message: MsgExecuteDelegateContractResponse): unknown;
389
+ fromPartial(object: Partial<MsgExecuteDelegateContractResponse>): MsgExecuteDelegateContractResponse;
390
+ };
391
+ export declare const MsgCompileContract: {
392
+ encode(message: MsgCompileContract, writer?: _m0.Writer): _m0.Writer;
393
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCompileContract;
394
+ fromJSON(object: any): MsgCompileContract;
395
+ toJSON(message: MsgCompileContract): unknown;
396
+ fromPartial(object: Partial<MsgCompileContract>): MsgCompileContract;
397
+ };
398
+ export declare const MsgCompileContractResponse: {
399
+ encode(_: MsgCompileContractResponse, writer?: _m0.Writer): _m0.Writer;
400
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCompileContractResponse;
401
+ fromJSON(_: any): MsgCompileContractResponse;
402
+ toJSON(_: MsgCompileContractResponse): unknown;
403
+ fromPartial(_: Partial<MsgCompileContractResponse>): MsgCompileContractResponse;
404
+ };
@@ -0,0 +1,176 @@
1
+ import { GeneratedType, Registry } from "@cosmjs/proto-signing";
2
+ import { MsgStoreCode, MsgStoreCodeEvm, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgCompileContract } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, GeneratedType]>;
4
+ export declare const load: (protoRegistry: Registry) => void;
5
+ export declare const MessageComposer: {
6
+ encoded: {
7
+ storeCode(value: MsgStoreCode): {
8
+ typeUrl: string;
9
+ value: Uint8Array;
10
+ };
11
+ storeCodeEvm(value: MsgStoreCodeEvm): {
12
+ typeUrl: string;
13
+ value: Uint8Array;
14
+ };
15
+ instantiateContract(value: MsgInstantiateContract): {
16
+ typeUrl: string;
17
+ value: Uint8Array;
18
+ };
19
+ instantiateContract2(value: MsgInstantiateContract2): {
20
+ typeUrl: string;
21
+ value: Uint8Array;
22
+ };
23
+ executeContract(value: MsgExecuteContract): {
24
+ typeUrl: string;
25
+ value: Uint8Array;
26
+ };
27
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
28
+ typeUrl: string;
29
+ value: Uint8Array;
30
+ };
31
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
32
+ typeUrl: string;
33
+ value: Uint8Array;
34
+ };
35
+ compileContract(value: MsgCompileContract): {
36
+ typeUrl: string;
37
+ value: Uint8Array;
38
+ };
39
+ };
40
+ withTypeUrl: {
41
+ storeCode(value: MsgStoreCode): {
42
+ typeUrl: string;
43
+ value: MsgStoreCode;
44
+ };
45
+ storeCodeEvm(value: MsgStoreCodeEvm): {
46
+ typeUrl: string;
47
+ value: MsgStoreCodeEvm;
48
+ };
49
+ instantiateContract(value: MsgInstantiateContract): {
50
+ typeUrl: string;
51
+ value: MsgInstantiateContract;
52
+ };
53
+ instantiateContract2(value: MsgInstantiateContract2): {
54
+ typeUrl: string;
55
+ value: MsgInstantiateContract2;
56
+ };
57
+ executeContract(value: MsgExecuteContract): {
58
+ typeUrl: string;
59
+ value: MsgExecuteContract;
60
+ };
61
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
62
+ typeUrl: string;
63
+ value: MsgExecuteWithOriginContract;
64
+ };
65
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
66
+ typeUrl: string;
67
+ value: MsgExecuteDelegateContract;
68
+ };
69
+ compileContract(value: MsgCompileContract): {
70
+ typeUrl: string;
71
+ value: MsgCompileContract;
72
+ };
73
+ };
74
+ toJSON: {
75
+ storeCode(value: MsgStoreCode): {
76
+ typeUrl: string;
77
+ value: unknown;
78
+ };
79
+ storeCodeEvm(value: MsgStoreCodeEvm): {
80
+ typeUrl: string;
81
+ value: unknown;
82
+ };
83
+ instantiateContract(value: MsgInstantiateContract): {
84
+ typeUrl: string;
85
+ value: unknown;
86
+ };
87
+ instantiateContract2(value: MsgInstantiateContract2): {
88
+ typeUrl: string;
89
+ value: unknown;
90
+ };
91
+ executeContract(value: MsgExecuteContract): {
92
+ typeUrl: string;
93
+ value: unknown;
94
+ };
95
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
96
+ typeUrl: string;
97
+ value: unknown;
98
+ };
99
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
100
+ typeUrl: string;
101
+ value: unknown;
102
+ };
103
+ compileContract(value: MsgCompileContract): {
104
+ typeUrl: string;
105
+ value: unknown;
106
+ };
107
+ };
108
+ fromJSON: {
109
+ storeCode(value: any): {
110
+ typeUrl: string;
111
+ value: MsgStoreCode;
112
+ };
113
+ storeCodeEvm(value: any): {
114
+ typeUrl: string;
115
+ value: MsgStoreCodeEvm;
116
+ };
117
+ instantiateContract(value: any): {
118
+ typeUrl: string;
119
+ value: MsgInstantiateContract;
120
+ };
121
+ instantiateContract2(value: any): {
122
+ typeUrl: string;
123
+ value: MsgInstantiateContract2;
124
+ };
125
+ executeContract(value: any): {
126
+ typeUrl: string;
127
+ value: MsgExecuteContract;
128
+ };
129
+ executeWithOriginContract(value: any): {
130
+ typeUrl: string;
131
+ value: MsgExecuteWithOriginContract;
132
+ };
133
+ executeDelegateContract(value: any): {
134
+ typeUrl: string;
135
+ value: MsgExecuteDelegateContract;
136
+ };
137
+ compileContract(value: any): {
138
+ typeUrl: string;
139
+ value: MsgCompileContract;
140
+ };
141
+ };
142
+ fromPartial: {
143
+ storeCode(value: MsgStoreCode): {
144
+ typeUrl: string;
145
+ value: MsgStoreCode;
146
+ };
147
+ storeCodeEvm(value: MsgStoreCodeEvm): {
148
+ typeUrl: string;
149
+ value: MsgStoreCodeEvm;
150
+ };
151
+ instantiateContract(value: MsgInstantiateContract): {
152
+ typeUrl: string;
153
+ value: MsgInstantiateContract;
154
+ };
155
+ instantiateContract2(value: MsgInstantiateContract2): {
156
+ typeUrl: string;
157
+ value: MsgInstantiateContract2;
158
+ };
159
+ executeContract(value: MsgExecuteContract): {
160
+ typeUrl: string;
161
+ value: MsgExecuteContract;
162
+ };
163
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
164
+ typeUrl: string;
165
+ value: MsgExecuteWithOriginContract;
166
+ };
167
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
168
+ typeUrl: string;
169
+ value: MsgExecuteDelegateContract;
170
+ };
171
+ compileContract(value: MsgCompileContract): {
172
+ typeUrl: string;
173
+ value: MsgCompileContract;
174
+ };
175
+ };
176
+ };
@@ -0,0 +1,39 @@
1
+ import { Rpc } from "../../../helpers";
2
+ import { MsgStoreCode, MsgStoreCodeResponse, MsgStoreCodeEvm, MsgStoreCodeEvmResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgExecuteContract, MsgExecuteContractResponse, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgExecuteDelegateContractResponse, MsgCompileContract, MsgCompileContractResponse } from "./tx";
3
+ /** Msg defines the wasm Msg service. */
4
+ export interface Msg {
5
+ /** StoreCode to submit Wasm code to the system */
6
+ storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
7
+ /** StoreCode to submit Wasm code to the system */
8
+ storeCodeEvm(request: MsgStoreCodeEvm): Promise<MsgStoreCodeEvmResponse>;
9
+ /**
10
+ * InstantiateContract creates a new smart contract instance for the given
11
+ * code id.
12
+ */
13
+ instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
14
+ /**
15
+ * InstantiateContract2 creates a new smart contract instance for the given
16
+ * code id with a predictable address
17
+ */
18
+ instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
19
+ /** Execute submits the given message data to a smart contract */
20
+ executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
21
+ /** ExecuteWithOrigin submits the given message data to a smart contract */
22
+ executeWithOriginContract(request: MsgExecuteWithOriginContract): Promise<MsgExecuteContractResponse>;
23
+ /** ExecuteDelegate submits the given message data to a smart contract */
24
+ executeDelegateContract(request: MsgExecuteDelegateContract): Promise<MsgExecuteDelegateContractResponse>;
25
+ /** CompileContract submits a smart contract to be precompiled */
26
+ compileContract(request: MsgCompileContract): Promise<MsgCompileContractResponse>;
27
+ }
28
+ export declare class MsgClientImpl implements Msg {
29
+ private readonly rpc;
30
+ constructor(rpc: Rpc);
31
+ storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
32
+ storeCodeEvm(request: MsgStoreCodeEvm): Promise<MsgStoreCodeEvmResponse>;
33
+ instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
34
+ instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
35
+ executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
36
+ executeWithOriginContract(request: MsgExecuteWithOriginContract): Promise<MsgExecuteContractResponse>;
37
+ executeDelegateContract(request: MsgExecuteDelegateContract): Promise<MsgExecuteDelegateContractResponse>;
38
+ compileContract(request: MsgCompileContract): Promise<MsgCompileContractResponse>;
39
+ }
@@ -0,0 +1,17 @@
1
+ import { Params, ParamsSDKType } from "./params";
2
+ import * as _m0 from "protobufjs/minimal";
3
+ /** GenesisState defines the websrv module's genesis state. */
4
+ export interface GenesisState {
5
+ params?: Params;
6
+ }
7
+ /** GenesisState defines the websrv module's genesis state. */
8
+ export interface GenesisStateSDKType {
9
+ params?: ParamsSDKType;
10
+ }
11
+ export declare const GenesisState: {
12
+ encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
14
+ fromJSON(object: any): GenesisState;
15
+ toJSON(message: GenesisState): unknown;
16
+ fromPartial(object: Partial<GenesisState>): GenesisState;
17
+ };
@@ -0,0 +1,16 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ /** Params defines the parameters for the module. */
3
+ export interface Params {
4
+ oauthClientRegistrationOnlyEId: boolean;
5
+ }
6
+ /** Params defines the parameters for the module. */
7
+ export interface ParamsSDKType {
8
+ oauth_client_registration_only_e_id: boolean;
9
+ }
10
+ export declare const Params: {
11
+ encode(message: Params, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): Params;
13
+ fromJSON(object: any): Params;
14
+ toJSON(message: Params): unknown;
15
+ fromPartial(object: Partial<Params>): Params;
16
+ };