@ark-us/wasmxjs 0.0.1

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 (219) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +280 -0
  3. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +887 -0
  4. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
  5. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +157 -0
  6. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +231 -0
  7. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1479 -0
  8. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +478 -0
  9. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +207 -0
  10. package/main/codegen/cosmos/base/store/v1beta1/listening.js +89 -0
  11. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +951 -0
  12. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +117 -0
  13. package/main/codegen/cosmos/base/v1beta1/coin.js +223 -0
  14. package/main/codegen/cosmos/bundle.js +63 -0
  15. package/main/codegen/cosmos/rpc.query.js +55 -0
  16. package/main/codegen/extern.js +66 -0
  17. package/main/codegen/gogoproto/bundle.js +16 -0
  18. package/main/codegen/gogoproto/gogo.js +5 -0
  19. package/main/codegen/google/api/annotations.js +5 -0
  20. package/main/codegen/google/api/http.js +306 -0
  21. package/main/codegen/google/api/httpbody.js +102 -0
  22. package/main/codegen/google/bundle.js +26 -0
  23. package/main/codegen/google/protobuf/any.js +69 -0
  24. package/main/codegen/google/protobuf/descriptor.js +3429 -0
  25. package/main/codegen/google/protobuf/duration.js +69 -0
  26. package/main/codegen/google/protobuf/timestamp.js +69 -0
  27. package/main/codegen/helpers.js +170 -0
  28. package/main/codegen/index.js +93 -0
  29. package/main/codegen/tendermint/abci/types.js +3616 -0
  30. package/main/codegen/tendermint/bundle.js +37 -0
  31. package/main/codegen/tendermint/crypto/keys.js +69 -0
  32. package/main/codegen/tendermint/crypto/proof.js +372 -0
  33. package/main/codegen/tendermint/libs/bits/types.js +100 -0
  34. package/main/codegen/tendermint/p2p/types.js +322 -0
  35. package/main/codegen/tendermint/types/block.js +90 -0
  36. package/main/codegen/tendermint/types/evidence.js +335 -0
  37. package/main/codegen/tendermint/types/params.js +397 -0
  38. package/main/codegen/tendermint/types/types.js +1223 -0
  39. package/main/codegen/tendermint/types/validator.js +237 -0
  40. package/main/codegen/tendermint/version/types.js +126 -0
  41. package/main/codegen/wasmx/bundle.js +30 -0
  42. package/main/codegen/wasmx/client.js +65 -0
  43. package/main/codegen/wasmx/index.js +126 -0
  44. package/main/codegen/wasmx/rpc.query.js +65 -0
  45. package/main/codegen/wasmx/rpc.tx.js +44 -0
  46. package/main/codegen/wasmx/wasmx/contract.js +324 -0
  47. package/main/codegen/wasmx/wasmx/genesis.js +481 -0
  48. package/main/codegen/wasmx/wasmx/params.js +45 -0
  49. package/main/codegen/wasmx/wasmx/query.js +1187 -0
  50. package/main/codegen/wasmx/wasmx/query.rpc.Query.js +154 -0
  51. package/main/codegen/wasmx/wasmx/tx.amino.js +251 -0
  52. package/main/codegen/wasmx/wasmx/tx.js +937 -0
  53. package/main/codegen/wasmx/wasmx/tx.registry.js +213 -0
  54. package/main/codegen/wasmx/wasmx/tx.rpc.msg.js +85 -0
  55. package/main/index.js +16 -0
  56. package/module/codegen/cosmos/base/abci/v1beta1/abci.js +755 -0
  57. package/module/codegen/cosmos/base/kv/v1beta1/kv.js +110 -0
  58. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +154 -0
  59. package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +183 -0
  60. package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1297 -0
  61. package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +439 -0
  62. package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +179 -0
  63. package/module/codegen/cosmos/base/store/v1beta1/listening.js +86 -0
  64. package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +866 -0
  65. package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +74 -0
  66. package/module/codegen/cosmos/base/v1beta1/coin.js +213 -0
  67. package/module/codegen/cosmos/bundle.js +52 -0
  68. package/module/codegen/cosmos/rpc.query.js +17 -0
  69. package/module/codegen/extern.js +30 -0
  70. package/module/codegen/gogoproto/bundle.js +5 -0
  71. package/module/codegen/gogoproto/gogo.js +1 -0
  72. package/module/codegen/google/api/annotations.js +1 -0
  73. package/module/codegen/google/api/http.js +264 -0
  74. package/module/codegen/google/api/httpbody.js +115 -0
  75. package/module/codegen/google/bundle.js +15 -0
  76. package/module/codegen/google/protobuf/any.js +140 -0
  77. package/module/codegen/google/protobuf/descriptor.js +2801 -0
  78. package/module/codegen/google/protobuf/duration.js +119 -0
  79. package/module/codegen/google/protobuf/timestamp.js +143 -0
  80. package/module/codegen/helpers.js +140 -0
  81. package/module/codegen/index.js +14 -0
  82. package/module/codegen/tendermint/abci/types.js +3305 -0
  83. package/module/codegen/tendermint/bundle.js +26 -0
  84. package/module/codegen/tendermint/crypto/keys.js +60 -0
  85. package/module/codegen/tendermint/crypto/proof.js +320 -0
  86. package/module/codegen/tendermint/libs/bits/types.js +71 -0
  87. package/module/codegen/tendermint/p2p/types.js +305 -0
  88. package/module/codegen/tendermint/types/block.js +79 -0
  89. package/module/codegen/tendermint/types/evidence.js +285 -0
  90. package/module/codegen/tendermint/types/params.js +363 -0
  91. package/module/codegen/tendermint/types/types.js +1149 -0
  92. package/module/codegen/tendermint/types/validator.js +204 -0
  93. package/module/codegen/tendermint/version/types.js +119 -0
  94. package/module/codegen/wasmx/bundle.js +19 -0
  95. package/module/codegen/wasmx/client.js +36 -0
  96. package/module/codegen/wasmx/index.js +11 -0
  97. package/module/codegen/wasmx/rpc.query.js +20 -0
  98. package/module/codegen/wasmx/rpc.tx.js +7 -0
  99. package/module/codegen/wasmx/wasmx/contract.js +291 -0
  100. package/module/codegen/wasmx/wasmx/genesis.js +386 -0
  101. package/module/codegen/wasmx/wasmx/params.js +36 -0
  102. package/module/codegen/wasmx/wasmx/query.js +1052 -0
  103. package/module/codegen/wasmx/wasmx/query.rpc.Query.js +101 -0
  104. package/module/codegen/wasmx/wasmx/tx.amino.js +236 -0
  105. package/module/codegen/wasmx/wasmx/tx.js +815 -0
  106. package/module/codegen/wasmx/wasmx/tx.registry.js +199 -0
  107. package/module/codegen/wasmx/wasmx/tx.rpc.msg.js +47 -0
  108. package/module/index.js +1 -0
  109. package/package.json +88 -0
  110. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1254 -0
  111. package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +156 -0
  112. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +314 -0
  113. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +280 -0
  114. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +2079 -0
  115. package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +641 -0
  116. package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +269 -0
  117. package/src/codegen/cosmos/base/store/v1beta1/listening.ts +129 -0
  118. package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +107 -0
  119. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1284 -0
  120. package/src/codegen/cosmos/base/v1beta1/coin.ts +318 -0
  121. package/src/codegen/cosmos/bundle.ts +52 -0
  122. package/src/codegen/cosmos/rpc.query.ts +19 -0
  123. package/src/codegen/extern.ts +33 -0
  124. package/src/codegen/gogoproto/bundle.ts +3 -0
  125. package/src/codegen/gogoproto/gogo.ts +1 -0
  126. package/src/codegen/google/api/annotations.ts +1 -0
  127. package/src/codegen/google/api/http.ts +945 -0
  128. package/src/codegen/google/api/httpbody.ts +200 -0
  129. package/src/codegen/google/bundle.ts +18 -0
  130. package/src/codegen/google/protobuf/any.ts +305 -0
  131. package/src/codegen/google/protobuf/descriptor.ts +5113 -0
  132. package/src/codegen/google/protobuf/duration.ts +229 -0
  133. package/src/codegen/google/protobuf/timestamp.ts +273 -0
  134. package/src/codegen/helpers.ts +240 -0
  135. package/src/codegen/index.ts +14 -0
  136. package/src/codegen/tendermint/abci/types.ts +4754 -0
  137. package/src/codegen/tendermint/bundle.ts +32 -0
  138. package/src/codegen/tendermint/crypto/keys.ts +83 -0
  139. package/src/codegen/tendermint/crypto/proof.ts +465 -0
  140. package/src/codegen/tendermint/libs/bits/types.ts +97 -0
  141. package/src/codegen/tendermint/p2p/types.ts +422 -0
  142. package/src/codegen/tendermint/types/block.ts +109 -0
  143. package/src/codegen/tendermint/types/evidence.ts +415 -0
  144. package/src/codegen/tendermint/types/params.ts +615 -0
  145. package/src/codegen/tendermint/types/types.ts +1663 -0
  146. package/src/codegen/tendermint/types/validator.ts +282 -0
  147. package/src/codegen/tendermint/version/types.ts +180 -0
  148. package/src/codegen/wasmx/bundle.ts +26 -0
  149. package/src/codegen/wasmx/client.ts +45 -0
  150. package/src/codegen/wasmx/index.ts +11 -0
  151. package/src/codegen/wasmx/rpc.query.ts +22 -0
  152. package/src/codegen/wasmx/rpc.tx.ts +10 -0
  153. package/src/codegen/wasmx/wasmx/contract.ts +470 -0
  154. package/src/codegen/wasmx/wasmx/genesis.ts +552 -0
  155. package/src/codegen/wasmx/wasmx/params.ts +50 -0
  156. package/src/codegen/wasmx/wasmx/query.rpc.Query.ts +149 -0
  157. package/src/codegen/wasmx/wasmx/query.ts +1668 -0
  158. package/src/codegen/wasmx/wasmx/tx.amino.ts +314 -0
  159. package/src/codegen/wasmx/wasmx/tx.registry.ts +230 -0
  160. package/src/codegen/wasmx/wasmx/tx.rpc.msg.ts +80 -0
  161. package/src/codegen/wasmx/wasmx/tx.ts +1331 -0
  162. package/src/index.ts +1 -0
  163. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +338 -0
  164. package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +33 -0
  165. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +140 -0
  166. package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +75 -0
  167. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +565 -0
  168. package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +135 -0
  169. package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +71 -0
  170. package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +38 -0
  171. package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +282 -0
  172. package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +14 -0
  173. package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +36 -0
  174. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +85 -0
  175. package/types/codegen/cosmos/bundle.d.ts +594 -0
  176. package/types/codegen/cosmos/lcd.d.ts +11 -0
  177. package/types/codegen/cosmos/rpc.query.d.ts +19 -0
  178. package/types/codegen/extern.d.ts +9 -0
  179. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  180. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  181. package/types/codegen/google/api/annotations.d.ts +1 -0
  182. package/types/codegen/google/api/http.d.ts +622 -0
  183. package/types/codegen/google/api/httpbody.d.ts +113 -0
  184. package/types/codegen/google/bundle.d.ts +274 -0
  185. package/types/codegen/google/protobuf/any.d.ts +238 -0
  186. package/types/codegen/google/protobuf/descriptor.d.ts +1835 -0
  187. package/types/codegen/google/protobuf/duration.d.ts +163 -0
  188. package/types/codegen/google/protobuf/timestamp.d.ts +207 -0
  189. package/types/codegen/helpers.d.ts +82 -0
  190. package/types/codegen/index.d.ts +13 -0
  191. package/types/codegen/tendermint/abci/types.d.ts +993 -0
  192. package/types/codegen/tendermint/bundle.d.ts +639 -0
  193. package/types/codegen/tendermint/crypto/keys.d.ts +18 -0
  194. package/types/codegen/tendermint/crypto/proof.d.ts +101 -0
  195. package/types/codegen/tendermint/libs/bits/types.d.ts +17 -0
  196. package/types/codegen/tendermint/p2p/types.d.ts +78 -0
  197. package/types/codegen/tendermint/types/block.d.ts +22 -0
  198. package/types/codegen/tendermint/types/evidence.d.ts +91 -0
  199. package/types/codegen/tendermint/types/params.d.ts +193 -0
  200. package/types/codegen/tendermint/types/types.d.ts +363 -0
  201. package/types/codegen/tendermint/types/validator.d.ts +54 -0
  202. package/types/codegen/tendermint/version/types.d.ts +52 -0
  203. package/types/codegen/wasmx/bundle.d.ts +614 -0
  204. package/types/codegen/wasmx/client.d.ts +151 -0
  205. package/types/codegen/wasmx/index.d.ts +11 -0
  206. package/types/codegen/wasmx/lcd.d.ts +14 -0
  207. package/types/codegen/wasmx/rpc.query.d.ts +32 -0
  208. package/types/codegen/wasmx/rpc.tx.d.ts +8 -0
  209. package/types/codegen/wasmx/wasmx/contract.d.ts +122 -0
  210. package/types/codegen/wasmx/wasmx/genesis.d.ts +107 -0
  211. package/types/codegen/wasmx/wasmx/params.d.ts +14 -0
  212. package/types/codegen/wasmx/wasmx/query.d.ts +451 -0
  213. package/types/codegen/wasmx/wasmx/query.lcd.d.ts +17 -0
  214. package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +48 -0
  215. package/types/codegen/wasmx/wasmx/tx.amino.d.ts +110 -0
  216. package/types/codegen/wasmx/wasmx/tx.d.ts +332 -0
  217. package/types/codegen/wasmx/wasmx/tx.registry.d.ts +136 -0
  218. package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +33 -0
  219. package/types/index.d.ts +1 -0
@@ -0,0 +1,332 @@
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
+ /**
33
+ * MsgInstantiateContract create a new smart contract instance for the given
34
+ * code id.
35
+ */
36
+ export interface MsgInstantiateContract {
37
+ /** Sender is the that actor that signed the messages */
38
+ sender: string;
39
+ /** CodeID is the reference to the stored WASM code */
40
+ codeId: Long;
41
+ /** Label is optional metadata to be stored with a contract instance. */
42
+ label: string;
43
+ /** Msg json encoded message to be passed to the contract on instantiation */
44
+ msg: Uint8Array;
45
+ /** Funds coins that are transferred to the contract on instantiation */
46
+ funds: Coin[];
47
+ }
48
+ /**
49
+ * MsgInstantiateContract create a new smart contract instance for the given
50
+ * code id.
51
+ */
52
+ export interface MsgInstantiateContractSDKType {
53
+ /** Sender is the that actor that signed the messages */
54
+ sender: string;
55
+ /** CodeID is the reference to the stored WASM code */
56
+ code_id: Long;
57
+ /** Label is optional metadata to be stored with a contract instance. */
58
+ label: string;
59
+ /** Msg json encoded message to be passed to the contract on instantiation */
60
+ msg: Uint8Array;
61
+ /** Funds coins that are transferred to the contract on instantiation */
62
+ funds: CoinSDKType[];
63
+ }
64
+ /**
65
+ * MsgInstantiateContract2 create a new smart contract instance for the given
66
+ * code id with a predicable address.
67
+ */
68
+ export interface MsgInstantiateContract2 {
69
+ /** Sender is the that actor that signed the messages */
70
+ sender: string;
71
+ /** Admin is an optional address that can execute migrations */
72
+ codeId: Long;
73
+ /** Label is optional metadata to be stored with a contract instance. */
74
+ label: string;
75
+ /** Msg json encoded message to be passed to the contract on instantiation */
76
+ msg: Uint8Array;
77
+ /** Funds coins that are transferred to the contract on instantiation */
78
+ funds: Coin[];
79
+ /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
80
+ salt: Uint8Array;
81
+ /**
82
+ * FixMsg include the msg value into the hash for the predictable address.
83
+ * Default is false
84
+ */
85
+ fixMsg: boolean;
86
+ }
87
+ /**
88
+ * MsgInstantiateContract2 create a new smart contract instance for the given
89
+ * code id with a predicable address.
90
+ */
91
+ export interface MsgInstantiateContract2SDKType {
92
+ /** Sender is the that actor that signed the messages */
93
+ sender: string;
94
+ /** Admin is an optional address that can execute migrations */
95
+ code_id: Long;
96
+ /** Label is optional metadata to be stored with a contract instance. */
97
+ label: string;
98
+ /** Msg json encoded message to be passed to the contract on instantiation */
99
+ msg: Uint8Array;
100
+ /** Funds coins that are transferred to the contract on instantiation */
101
+ funds: CoinSDKType[];
102
+ /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
103
+ salt: Uint8Array;
104
+ /**
105
+ * FixMsg include the msg value into the hash for the predictable address.
106
+ * Default is false
107
+ */
108
+ fix_msg: boolean;
109
+ }
110
+ /** MsgInstantiateContractResponse return instantiation result data */
111
+ export interface MsgInstantiateContractResponse {
112
+ /** Address is the bech32 address of the new contract instance. */
113
+ address: string;
114
+ /** Data contains bytes to returned from the contract */
115
+ data: Uint8Array;
116
+ }
117
+ /** MsgInstantiateContractResponse return instantiation result data */
118
+ export interface MsgInstantiateContractResponseSDKType {
119
+ /** Address is the bech32 address of the new contract instance. */
120
+ address: string;
121
+ /** Data contains bytes to returned from the contract */
122
+ data: Uint8Array;
123
+ }
124
+ /** MsgInstantiateContract2Response return instantiation result data */
125
+ export interface MsgInstantiateContract2Response {
126
+ /** Address is the bech32 address of the new contract instance. */
127
+ address: string;
128
+ /** Data contains bytes to returned from the contract */
129
+ data: Uint8Array;
130
+ }
131
+ /** MsgInstantiateContract2Response return instantiation result data */
132
+ export interface MsgInstantiateContract2ResponseSDKType {
133
+ /** Address is the bech32 address of the new contract instance. */
134
+ address: string;
135
+ /** Data contains bytes to returned from the contract */
136
+ data: Uint8Array;
137
+ }
138
+ /** MsgExecuteContract submits the given message data to a smart contract */
139
+ export interface MsgExecuteContract {
140
+ /** Sender is the that actor that signed the messages */
141
+ sender: string;
142
+ /** Contract is the address of the smart contract */
143
+ contract: string;
144
+ /** Msg json encoded message to be passed to the contract */
145
+ msg: Uint8Array;
146
+ /** Funds coins that are transferred to the contract on execution */
147
+ funds: Coin[];
148
+ /**
149
+ * Array of either hex-encoded contract addresses or contract labels
150
+ * on which the execution of this message depends on
151
+ */
152
+ dependencies: string[];
153
+ }
154
+ /** MsgExecuteContract submits the given message data to a smart contract */
155
+ export interface MsgExecuteContractSDKType {
156
+ /** Sender is the that actor that signed the messages */
157
+ sender: string;
158
+ /** Contract is the address of the smart contract */
159
+ contract: string;
160
+ /** Msg json encoded message to be passed to the contract */
161
+ msg: Uint8Array;
162
+ /** Funds coins that are transferred to the contract on execution */
163
+ funds: CoinSDKType[];
164
+ /**
165
+ * Array of either hex-encoded contract addresses or contract labels
166
+ * on which the execution of this message depends on
167
+ */
168
+ dependencies: string[];
169
+ }
170
+ /** MsgExecuteContractResponse returns execution result data. */
171
+ export interface MsgExecuteContractResponse {
172
+ /** Data contains bytes to returned from the contract */
173
+ data: Uint8Array;
174
+ }
175
+ /** MsgExecuteContractResponse returns execution result data. */
176
+ export interface MsgExecuteContractResponseSDKType {
177
+ /** Data contains bytes to returned from the contract */
178
+ data: Uint8Array;
179
+ }
180
+ /**
181
+ * MsgExecuteWithOriginContract forwards a message data from a smart contract
182
+ * to another smart contract
183
+ */
184
+ export interface MsgExecuteWithOriginContract {
185
+ /** Origin is the actor that originally signed the message */
186
+ origin: string;
187
+ /** Sender is the the smart contract that sent the messages */
188
+ sender: string;
189
+ /** Contract is the address of the smart contract that receives the message */
190
+ contract: string;
191
+ /** Msg json encoded message to be passed to the contract */
192
+ msg: Uint8Array;
193
+ /** Funds coins that are transferred to the contract on execution */
194
+ funds: Coin[];
195
+ }
196
+ /**
197
+ * MsgExecuteWithOriginContract forwards a message data from a smart contract
198
+ * to another smart contract
199
+ */
200
+ export interface MsgExecuteWithOriginContractSDKType {
201
+ /** Origin is the actor that originally signed the message */
202
+ origin: string;
203
+ /** Sender is the the smart contract that sent the messages */
204
+ sender: string;
205
+ /** Contract is the address of the smart contract that receives the message */
206
+ contract: string;
207
+ /** Msg json encoded message to be passed to the contract */
208
+ msg: Uint8Array;
209
+ /** Funds coins that are transferred to the contract on execution */
210
+ funds: CoinSDKType[];
211
+ }
212
+ /** MsgExecuteDelegateContract submits the given message data to a smart contract */
213
+ export interface MsgExecuteDelegateContract {
214
+ /** Origin is the actor that originally signed the message */
215
+ origin: string;
216
+ /** Sender is the storage contract, equivalent to the address that triggers the message (signer) */
217
+ sender: string;
218
+ /** Caller is the address that will be used as sender */
219
+ caller: string;
220
+ /** CodeContract is the address of the smart contract whose binary is used */
221
+ codeContract: string;
222
+ /** StorageContract is the address of the smart contract whose storage is used */
223
+ storageContract: string;
224
+ /** Msg json encoded message to be passed to the contract */
225
+ msg: Uint8Array;
226
+ /** Funds coins that are transferred to the contract on execution */
227
+ funds: Coin[];
228
+ }
229
+ /** MsgExecuteDelegateContract submits the given message data to a smart contract */
230
+ export interface MsgExecuteDelegateContractSDKType {
231
+ /** Origin is the actor that originally signed the message */
232
+ origin: string;
233
+ /** Sender is the storage contract, equivalent to the address that triggers the message (signer) */
234
+ sender: string;
235
+ /** Caller is the address that will be used as sender */
236
+ caller: string;
237
+ /** CodeContract is the address of the smart contract whose binary is used */
238
+ code_contract: string;
239
+ /** StorageContract is the address of the smart contract whose storage is used */
240
+ storage_contract: string;
241
+ /** Msg json encoded message to be passed to the contract */
242
+ msg: Uint8Array;
243
+ /** Funds coins that are transferred to the contract on execution */
244
+ funds: CoinSDKType[];
245
+ }
246
+ /** MsgExecuteDelegateContractResponse returns execution result data. */
247
+ export interface MsgExecuteDelegateContractResponse {
248
+ /** Data contains bytes to returned from the contract */
249
+ data: Uint8Array;
250
+ }
251
+ /** MsgExecuteDelegateContractResponse returns execution result data. */
252
+ export interface MsgExecuteDelegateContractResponseSDKType {
253
+ /** Data contains bytes to returned from the contract */
254
+ data: Uint8Array;
255
+ }
256
+ export declare const MsgStoreCode: {
257
+ encode(message: MsgStoreCode, writer?: _m0.Writer): _m0.Writer;
258
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCode;
259
+ fromJSON(object: any): MsgStoreCode;
260
+ toJSON(message: MsgStoreCode): unknown;
261
+ fromPartial(object: Partial<MsgStoreCode>): MsgStoreCode;
262
+ };
263
+ export declare const MsgStoreCodeResponse: {
264
+ encode(message: MsgStoreCodeResponse, writer?: _m0.Writer): _m0.Writer;
265
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeResponse;
266
+ fromJSON(object: any): MsgStoreCodeResponse;
267
+ toJSON(message: MsgStoreCodeResponse): unknown;
268
+ fromPartial(object: Partial<MsgStoreCodeResponse>): MsgStoreCodeResponse;
269
+ };
270
+ export declare const MsgInstantiateContract: {
271
+ encode(message: MsgInstantiateContract, writer?: _m0.Writer): _m0.Writer;
272
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract;
273
+ fromJSON(object: any): MsgInstantiateContract;
274
+ toJSON(message: MsgInstantiateContract): unknown;
275
+ fromPartial(object: Partial<MsgInstantiateContract>): MsgInstantiateContract;
276
+ };
277
+ export declare const MsgInstantiateContract2: {
278
+ encode(message: MsgInstantiateContract2, writer?: _m0.Writer): _m0.Writer;
279
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract2;
280
+ fromJSON(object: any): MsgInstantiateContract2;
281
+ toJSON(message: MsgInstantiateContract2): unknown;
282
+ fromPartial(object: Partial<MsgInstantiateContract2>): MsgInstantiateContract2;
283
+ };
284
+ export declare const MsgInstantiateContractResponse: {
285
+ encode(message: MsgInstantiateContractResponse, writer?: _m0.Writer): _m0.Writer;
286
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContractResponse;
287
+ fromJSON(object: any): MsgInstantiateContractResponse;
288
+ toJSON(message: MsgInstantiateContractResponse): unknown;
289
+ fromPartial(object: Partial<MsgInstantiateContractResponse>): MsgInstantiateContractResponse;
290
+ };
291
+ export declare const MsgInstantiateContract2Response: {
292
+ encode(message: MsgInstantiateContract2Response, writer?: _m0.Writer): _m0.Writer;
293
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract2Response;
294
+ fromJSON(object: any): MsgInstantiateContract2Response;
295
+ toJSON(message: MsgInstantiateContract2Response): unknown;
296
+ fromPartial(object: Partial<MsgInstantiateContract2Response>): MsgInstantiateContract2Response;
297
+ };
298
+ export declare const MsgExecuteContract: {
299
+ encode(message: MsgExecuteContract, writer?: _m0.Writer): _m0.Writer;
300
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContract;
301
+ fromJSON(object: any): MsgExecuteContract;
302
+ toJSON(message: MsgExecuteContract): unknown;
303
+ fromPartial(object: Partial<MsgExecuteContract>): MsgExecuteContract;
304
+ };
305
+ export declare const MsgExecuteContractResponse: {
306
+ encode(message: MsgExecuteContractResponse, writer?: _m0.Writer): _m0.Writer;
307
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContractResponse;
308
+ fromJSON(object: any): MsgExecuteContractResponse;
309
+ toJSON(message: MsgExecuteContractResponse): unknown;
310
+ fromPartial(object: Partial<MsgExecuteContractResponse>): MsgExecuteContractResponse;
311
+ };
312
+ export declare const MsgExecuteWithOriginContract: {
313
+ encode(message: MsgExecuteWithOriginContract, writer?: _m0.Writer): _m0.Writer;
314
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteWithOriginContract;
315
+ fromJSON(object: any): MsgExecuteWithOriginContract;
316
+ toJSON(message: MsgExecuteWithOriginContract): unknown;
317
+ fromPartial(object: Partial<MsgExecuteWithOriginContract>): MsgExecuteWithOriginContract;
318
+ };
319
+ export declare const MsgExecuteDelegateContract: {
320
+ encode(message: MsgExecuteDelegateContract, writer?: _m0.Writer): _m0.Writer;
321
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteDelegateContract;
322
+ fromJSON(object: any): MsgExecuteDelegateContract;
323
+ toJSON(message: MsgExecuteDelegateContract): unknown;
324
+ fromPartial(object: Partial<MsgExecuteDelegateContract>): MsgExecuteDelegateContract;
325
+ };
326
+ export declare const MsgExecuteDelegateContractResponse: {
327
+ encode(message: MsgExecuteDelegateContractResponse, writer?: _m0.Writer): _m0.Writer;
328
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteDelegateContractResponse;
329
+ fromJSON(object: any): MsgExecuteDelegateContractResponse;
330
+ toJSON(message: MsgExecuteDelegateContractResponse): unknown;
331
+ fromPartial(object: Partial<MsgExecuteDelegateContractResponse>): MsgExecuteDelegateContractResponse;
332
+ };
@@ -0,0 +1,136 @@
1
+ import { GeneratedType, Registry } from "@cosmjs/proto-signing";
2
+ import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract } 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
+ instantiateContract(value: MsgInstantiateContract): {
12
+ typeUrl: string;
13
+ value: Uint8Array;
14
+ };
15
+ instantiateContract2(value: MsgInstantiateContract2): {
16
+ typeUrl: string;
17
+ value: Uint8Array;
18
+ };
19
+ executeContract(value: MsgExecuteContract): {
20
+ typeUrl: string;
21
+ value: Uint8Array;
22
+ };
23
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
24
+ typeUrl: string;
25
+ value: Uint8Array;
26
+ };
27
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
28
+ typeUrl: string;
29
+ value: Uint8Array;
30
+ };
31
+ };
32
+ withTypeUrl: {
33
+ storeCode(value: MsgStoreCode): {
34
+ typeUrl: string;
35
+ value: MsgStoreCode;
36
+ };
37
+ instantiateContract(value: MsgInstantiateContract): {
38
+ typeUrl: string;
39
+ value: MsgInstantiateContract;
40
+ };
41
+ instantiateContract2(value: MsgInstantiateContract2): {
42
+ typeUrl: string;
43
+ value: MsgInstantiateContract2;
44
+ };
45
+ executeContract(value: MsgExecuteContract): {
46
+ typeUrl: string;
47
+ value: MsgExecuteContract;
48
+ };
49
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
50
+ typeUrl: string;
51
+ value: MsgExecuteWithOriginContract;
52
+ };
53
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
54
+ typeUrl: string;
55
+ value: MsgExecuteDelegateContract;
56
+ };
57
+ };
58
+ toJSON: {
59
+ storeCode(value: MsgStoreCode): {
60
+ typeUrl: string;
61
+ value: unknown;
62
+ };
63
+ instantiateContract(value: MsgInstantiateContract): {
64
+ typeUrl: string;
65
+ value: unknown;
66
+ };
67
+ instantiateContract2(value: MsgInstantiateContract2): {
68
+ typeUrl: string;
69
+ value: unknown;
70
+ };
71
+ executeContract(value: MsgExecuteContract): {
72
+ typeUrl: string;
73
+ value: unknown;
74
+ };
75
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
76
+ typeUrl: string;
77
+ value: unknown;
78
+ };
79
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
80
+ typeUrl: string;
81
+ value: unknown;
82
+ };
83
+ };
84
+ fromJSON: {
85
+ storeCode(value: any): {
86
+ typeUrl: string;
87
+ value: MsgStoreCode;
88
+ };
89
+ instantiateContract(value: any): {
90
+ typeUrl: string;
91
+ value: MsgInstantiateContract;
92
+ };
93
+ instantiateContract2(value: any): {
94
+ typeUrl: string;
95
+ value: MsgInstantiateContract2;
96
+ };
97
+ executeContract(value: any): {
98
+ typeUrl: string;
99
+ value: MsgExecuteContract;
100
+ };
101
+ executeWithOriginContract(value: any): {
102
+ typeUrl: string;
103
+ value: MsgExecuteWithOriginContract;
104
+ };
105
+ executeDelegateContract(value: any): {
106
+ typeUrl: string;
107
+ value: MsgExecuteDelegateContract;
108
+ };
109
+ };
110
+ fromPartial: {
111
+ storeCode(value: MsgStoreCode): {
112
+ typeUrl: string;
113
+ value: MsgStoreCode;
114
+ };
115
+ instantiateContract(value: MsgInstantiateContract): {
116
+ typeUrl: string;
117
+ value: MsgInstantiateContract;
118
+ };
119
+ instantiateContract2(value: MsgInstantiateContract2): {
120
+ typeUrl: string;
121
+ value: MsgInstantiateContract2;
122
+ };
123
+ executeContract(value: MsgExecuteContract): {
124
+ typeUrl: string;
125
+ value: MsgExecuteContract;
126
+ };
127
+ executeWithOriginContract(value: MsgExecuteWithOriginContract): {
128
+ typeUrl: string;
129
+ value: MsgExecuteWithOriginContract;
130
+ };
131
+ executeDelegateContract(value: MsgExecuteDelegateContract): {
132
+ typeUrl: string;
133
+ value: MsgExecuteDelegateContract;
134
+ };
135
+ };
136
+ };
@@ -0,0 +1,33 @@
1
+ import { Rpc } from "../../helpers";
2
+ import { MsgStoreCode, MsgStoreCodeResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgExecuteContract, MsgExecuteContractResponse, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgExecuteDelegateContractResponse } 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
+ /**
8
+ * InstantiateContract creates a new smart contract instance for the given
9
+ * code id.
10
+ */
11
+ instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
12
+ /**
13
+ * InstantiateContract2 creates a new smart contract instance for the given
14
+ * code id with a predictable address
15
+ */
16
+ instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
17
+ /** Execute submits the given message data to a smart contract */
18
+ executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
19
+ /** ExecuteWithOrigin submits the given message data to a smart contract */
20
+ executeWithOriginContract(request: MsgExecuteWithOriginContract): Promise<MsgExecuteContractResponse>;
21
+ /** ExecuteDelegate submits the given message data to a smart contract */
22
+ executeDelegateContract(request: MsgExecuteDelegateContract): Promise<MsgExecuteDelegateContractResponse>;
23
+ }
24
+ export declare class MsgClientImpl implements Msg {
25
+ private readonly rpc;
26
+ constructor(rpc: Rpc);
27
+ storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
28
+ instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
29
+ instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
30
+ executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
31
+ executeWithOriginContract(request: MsgExecuteWithOriginContract): Promise<MsgExecuteContractResponse>;
32
+ executeDelegateContract(request: MsgExecuteDelegateContract): Promise<MsgExecuteDelegateContractResponse>;
33
+ }
@@ -0,0 +1 @@
1
+ export * from './codegen';