@ark-us/wasmxjs 0.0.3 → 0.0.5
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.
- package/README.md +1 -1
- package/main/codegen/index.js +10 -10
- package/main/codegen/{wasmx → mythos}/bundle.js +21 -21
- package/main/codegen/{wasmx → mythos}/client.js +19 -19
- package/main/codegen/{wasmx → mythos}/rpc.query.js +1 -1
- package/main/codegen/{wasmx → mythos}/rpc.tx.js +1 -1
- package/main/codegen/{wasmx → mythos}/wasmx/v1/contract.js +176 -29
- package/main/codegen/{wasmx → mythos}/wasmx/v1/genesis.js +14 -14
- package/main/codegen/{wasmx → mythos}/wasmx/v1/query.js +81 -55
- package/main/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.js +22 -9
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.amino.js +80 -24
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.js +25 -4
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.registry.js +41 -41
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.js +8 -8
- package/main/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.js +7 -7
- package/main/codegen/{wasmx → mythos}/websrv/v1/tx.amino.js +6 -6
- package/main/codegen/{wasmx → mythos}/websrv/v1/tx.registry.js +16 -16
- package/main/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.js +3 -3
- package/main/codegen/tendermint/bundle.js +17 -17
- package/module/codegen/index.js +3 -3
- package/module/codegen/{wasmx → mythos}/bundle.js +19 -19
- package/module/codegen/{wasmx → mythos}/client.js +11 -11
- package/module/codegen/{wasmx → mythos}/rpc.query.js +1 -1
- package/module/codegen/{wasmx → mythos}/rpc.tx.js +1 -1
- package/module/codegen/{wasmx → mythos}/wasmx/v1/contract.js +151 -21
- package/module/codegen/{wasmx → mythos}/wasmx/v1/genesis.js +15 -15
- package/module/codegen/{wasmx → mythos}/wasmx/v1/query.js +77 -53
- package/module/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.js +19 -10
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.amino.js +80 -24
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.js +25 -4
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.registry.js +41 -41
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.js +8 -8
- package/module/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.js +7 -7
- package/module/codegen/{wasmx → mythos}/websrv/v1/tx.amino.js +6 -6
- package/module/codegen/{wasmx → mythos}/websrv/v1/tx.registry.js +16 -16
- package/module/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.js +3 -3
- package/module/codegen/tendermint/bundle.js +17 -17
- package/package.json +1 -1
- package/src/codegen/index.ts +3 -3
- package/src/codegen/{wasmx → mythos}/bundle.ts +21 -21
- package/src/codegen/{wasmx → mythos}/client.ts +12 -12
- package/src/codegen/{wasmx → mythos}/rpc.query.ts +1 -1
- package/src/codegen/{wasmx → mythos}/rpc.tx.ts +1 -1
- package/src/codegen/{wasmx → mythos}/wasmx/v1/contract.ts +228 -33
- package/src/codegen/{wasmx → mythos}/wasmx/v1/genesis.ts +19 -19
- package/src/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.ts +24 -10
- package/src/codegen/{wasmx → mythos}/wasmx/v1/query.ts +123 -82
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.amino.ts +114 -32
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.registry.ts +41 -41
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.ts +8 -8
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.ts +33 -4
- package/src/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.ts +7 -7
- package/src/codegen/{wasmx → mythos}/websrv/v1/tx.amino.ts +9 -9
- package/src/codegen/{wasmx → mythos}/websrv/v1/tx.registry.ts +16 -16
- package/src/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.ts +3 -3
- package/src/codegen/tendermint/bundle.ts +22 -22
- package/types/codegen/index.d.ts +3 -3
- package/types/codegen/mythos/bundle.d.ts +1039 -0
- package/types/codegen/{wasmx → mythos}/client.d.ts +31 -31
- package/types/codegen/mythos/index.d.ts +11 -0
- package/types/codegen/{wasmx → mythos}/rpc.query.d.ts +10 -10
- package/types/codegen/{wasmx → mythos}/rpc.tx.d.ts +1 -1
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.amino.d.ts +16 -16
- package/types/codegen/{wasmx → mythos}/websrv/v1/tx.amino.d.ts +6 -6
- package/types/codegen/tendermint/bundle.d.ts +456 -456
- package/types/codegen/wasmx/bundle.d.ts +0 -1039
- package/types/codegen/wasmx/index.d.ts +0 -11
- package/types/codegen/wasmx/lcd.d.ts +0 -14
- package/types/codegen/wasmx/wasmx/contract.d.ts +0 -139
- package/types/codegen/wasmx/wasmx/genesis.d.ts +0 -121
- package/types/codegen/wasmx/wasmx/query.d.ts +0 -451
- package/types/codegen/wasmx/wasmx/query.lcd.d.ts +0 -17
- package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +0 -48
- package/types/codegen/wasmx/wasmx/tx.d.ts +0 -404
- package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +0 -39
- package/types/codegen/wasmx/wasmx/v1/params.d.ts +0 -14
- package/types/codegen/wasmx/wasmx/v1/tx.amino.d.ts +0 -134
- package/types/codegen/wasmx/wasmx/v1/tx.registry.d.ts +0 -176
- package/types/codegen/wasmx/websrv/query.d.ts +0 -315
- package/types/codegen/wasmx/websrv/query.rpc.Query.d.ts +0 -40
- package/types/codegen/wasmx/websrv/tx.amino.d.ts +0 -41
- package/types/codegen/wasmx/websrv/tx.d.ts +0 -90
- package/types/codegen/wasmx/websrv/tx.rpc.msg.d.ts +0 -18
- package/types/codegen/wasmx/websrv/v1/genesis.d.ts +0 -17
- package/types/codegen/wasmx/websrv/v1/params.d.ts +0 -16
- package/types/codegen/wasmx/websrv/v1/proposal.d.ts +0 -65
- package/types/codegen/wasmx/websrv/v1/tx.registry.d.ts +0 -76
- /package/main/codegen/{wasmx → mythos}/index.js +0 -0
- /package/main/codegen/{wasmx → mythos}/wasmx/v1/params.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/genesis.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/params.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/proposal.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/query.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/tx.js +0 -0
- /package/module/codegen/{wasmx → mythos}/index.js +0 -0
- /package/module/codegen/{wasmx → mythos}/wasmx/v1/params.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/genesis.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/params.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/proposal.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/query.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/tx.js +0 -0
- /package/src/codegen/{wasmx → mythos}/index.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/wasmx/v1/params.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/genesis.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/params.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/proposal.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/query.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/tx.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/contract.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/genesis.d.ts +0 -0
- /package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/params.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/tx.d.ts +0 -0
- /package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.registry.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/genesis.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/params.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/proposal.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/tx.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.registry.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.d.ts +0 -0
|
@@ -3,21 +3,47 @@ import { fromUtf8, toUtf8 } from "@cosmjs/encoding";
|
|
|
3
3
|
import { Long } from "../../../helpers";
|
|
4
4
|
import { MsgStoreCode, MsgStoreCodeEvm, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgCompileContract } from "./tx";
|
|
5
5
|
export interface AminoMsgStoreCode extends AminoMsg {
|
|
6
|
-
type: "/
|
|
6
|
+
type: "/mythos.wasmx.v1.MsgStoreCode";
|
|
7
7
|
value: {
|
|
8
8
|
sender: string;
|
|
9
9
|
wasm_byte_code: Uint8Array;
|
|
10
|
+
metadata: {
|
|
11
|
+
name: string;
|
|
12
|
+
categ: string[];
|
|
13
|
+
icon: string;
|
|
14
|
+
author: string;
|
|
15
|
+
site: string;
|
|
16
|
+
abi: string;
|
|
17
|
+
json_schema: string;
|
|
18
|
+
origin: {
|
|
19
|
+
chain_id: string;
|
|
20
|
+
address: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
10
23
|
};
|
|
11
24
|
}
|
|
12
25
|
export interface AminoMsgStoreCodeEvm extends AminoMsg {
|
|
13
|
-
type: "/
|
|
26
|
+
type: "/mythos.wasmx.v1.MsgStoreCodeEvm";
|
|
14
27
|
value: {
|
|
15
28
|
sender: string;
|
|
16
29
|
evm_byte_code: Uint8Array;
|
|
30
|
+
metadata: {
|
|
31
|
+
name: string;
|
|
32
|
+
categ: string[];
|
|
33
|
+
icon: string;
|
|
34
|
+
author: string;
|
|
35
|
+
site: string;
|
|
36
|
+
abi: string;
|
|
37
|
+
json_schema: string;
|
|
38
|
+
origin: {
|
|
39
|
+
chain_id: string;
|
|
40
|
+
address: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
17
43
|
};
|
|
18
44
|
}
|
|
19
45
|
export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
20
|
-
type: "/
|
|
46
|
+
type: "/mythos.wasmx.v1.MsgInstantiateContract";
|
|
21
47
|
value: {
|
|
22
48
|
sender: string;
|
|
23
49
|
code_id: string;
|
|
@@ -30,7 +56,7 @@ export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
|
30
56
|
};
|
|
31
57
|
}
|
|
32
58
|
export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
33
|
-
type: "/
|
|
59
|
+
type: "/mythos.wasmx.v1.MsgInstantiateContract2";
|
|
34
60
|
value: {
|
|
35
61
|
sender: string;
|
|
36
62
|
code_id: string;
|
|
@@ -45,7 +71,7 @@ export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
|
45
71
|
};
|
|
46
72
|
}
|
|
47
73
|
export interface AminoMsgExecuteContract extends AminoMsg {
|
|
48
|
-
type: "/
|
|
74
|
+
type: "/mythos.wasmx.v1.MsgExecuteContract";
|
|
49
75
|
value: {
|
|
50
76
|
sender: string;
|
|
51
77
|
contract: string;
|
|
@@ -58,7 +84,7 @@ export interface AminoMsgExecuteContract extends AminoMsg {
|
|
|
58
84
|
};
|
|
59
85
|
}
|
|
60
86
|
export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
61
|
-
type: "/
|
|
87
|
+
type: "/mythos.wasmx.v1.MsgExecuteWithOriginContract";
|
|
62
88
|
value: {
|
|
63
89
|
origin: string;
|
|
64
90
|
sender: string;
|
|
@@ -71,7 +97,7 @@ export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
|
71
97
|
};
|
|
72
98
|
}
|
|
73
99
|
export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
74
|
-
type: "/
|
|
100
|
+
type: "/mythos.wasmx.v1.MsgExecuteDelegateContract";
|
|
75
101
|
value: {
|
|
76
102
|
origin: string;
|
|
77
103
|
sender: string;
|
|
@@ -86,57 +112,113 @@ export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
|
86
112
|
};
|
|
87
113
|
}
|
|
88
114
|
export interface AminoMsgCompileContract extends AminoMsg {
|
|
89
|
-
type: "/
|
|
115
|
+
type: "/mythos.wasmx.v1.MsgCompileContract";
|
|
90
116
|
value: {
|
|
91
117
|
sender: string;
|
|
92
118
|
codeId: string;
|
|
93
119
|
};
|
|
94
120
|
}
|
|
95
121
|
export const AminoConverter = {
|
|
96
|
-
"/
|
|
97
|
-
aminoType: "/
|
|
122
|
+
"/mythos.wasmx.v1.MsgStoreCode": {
|
|
123
|
+
aminoType: "/mythos.wasmx.v1.MsgStoreCode",
|
|
98
124
|
toAmino: ({
|
|
99
125
|
sender,
|
|
100
|
-
wasmByteCode
|
|
126
|
+
wasmByteCode,
|
|
127
|
+
metadata
|
|
101
128
|
}: MsgStoreCode): AminoMsgStoreCode["value"] => {
|
|
102
129
|
return {
|
|
103
130
|
sender,
|
|
104
|
-
wasm_byte_code: wasmByteCode
|
|
131
|
+
wasm_byte_code: wasmByteCode,
|
|
132
|
+
metadata: {
|
|
133
|
+
name: metadata.name,
|
|
134
|
+
categ: metadata.categ,
|
|
135
|
+
icon: metadata.icon,
|
|
136
|
+
author: metadata.author,
|
|
137
|
+
site: metadata.site,
|
|
138
|
+
abi: metadata.abi,
|
|
139
|
+
json_schema: metadata.jsonSchema,
|
|
140
|
+
origin: {
|
|
141
|
+
chain_id: metadata.origin.chainId,
|
|
142
|
+
address: metadata.origin.address
|
|
143
|
+
}
|
|
144
|
+
}
|
|
105
145
|
};
|
|
106
146
|
},
|
|
107
147
|
fromAmino: ({
|
|
108
148
|
sender,
|
|
109
|
-
wasm_byte_code
|
|
149
|
+
wasm_byte_code,
|
|
150
|
+
metadata
|
|
110
151
|
}: AminoMsgStoreCode["value"]): MsgStoreCode => {
|
|
111
152
|
return {
|
|
112
153
|
sender,
|
|
113
|
-
wasmByteCode: wasm_byte_code
|
|
154
|
+
wasmByteCode: wasm_byte_code,
|
|
155
|
+
metadata: {
|
|
156
|
+
name: metadata.name,
|
|
157
|
+
categ: metadata.categ,
|
|
158
|
+
icon: metadata.icon,
|
|
159
|
+
author: metadata.author,
|
|
160
|
+
site: metadata.site,
|
|
161
|
+
abi: metadata.abi,
|
|
162
|
+
jsonSchema: metadata.json_schema,
|
|
163
|
+
origin: {
|
|
164
|
+
chainId: metadata.origin.chain_id,
|
|
165
|
+
address: metadata.origin.address
|
|
166
|
+
}
|
|
167
|
+
}
|
|
114
168
|
};
|
|
115
169
|
}
|
|
116
170
|
},
|
|
117
|
-
"/
|
|
118
|
-
aminoType: "/
|
|
171
|
+
"/mythos.wasmx.v1.MsgStoreCodeEvm": {
|
|
172
|
+
aminoType: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
119
173
|
toAmino: ({
|
|
120
174
|
sender,
|
|
121
|
-
evmByteCode
|
|
175
|
+
evmByteCode,
|
|
176
|
+
metadata
|
|
122
177
|
}: MsgStoreCodeEvm): AminoMsgStoreCodeEvm["value"] => {
|
|
123
178
|
return {
|
|
124
179
|
sender,
|
|
125
|
-
evm_byte_code: evmByteCode
|
|
180
|
+
evm_byte_code: evmByteCode,
|
|
181
|
+
metadata: {
|
|
182
|
+
name: metadata.name,
|
|
183
|
+
categ: metadata.categ,
|
|
184
|
+
icon: metadata.icon,
|
|
185
|
+
author: metadata.author,
|
|
186
|
+
site: metadata.site,
|
|
187
|
+
abi: metadata.abi,
|
|
188
|
+
json_schema: metadata.jsonSchema,
|
|
189
|
+
origin: {
|
|
190
|
+
chain_id: metadata.origin.chainId,
|
|
191
|
+
address: metadata.origin.address
|
|
192
|
+
}
|
|
193
|
+
}
|
|
126
194
|
};
|
|
127
195
|
},
|
|
128
196
|
fromAmino: ({
|
|
129
197
|
sender,
|
|
130
|
-
evm_byte_code
|
|
198
|
+
evm_byte_code,
|
|
199
|
+
metadata
|
|
131
200
|
}: AminoMsgStoreCodeEvm["value"]): MsgStoreCodeEvm => {
|
|
132
201
|
return {
|
|
133
202
|
sender,
|
|
134
|
-
evmByteCode: evm_byte_code
|
|
203
|
+
evmByteCode: evm_byte_code,
|
|
204
|
+
metadata: {
|
|
205
|
+
name: metadata.name,
|
|
206
|
+
categ: metadata.categ,
|
|
207
|
+
icon: metadata.icon,
|
|
208
|
+
author: metadata.author,
|
|
209
|
+
site: metadata.site,
|
|
210
|
+
abi: metadata.abi,
|
|
211
|
+
jsonSchema: metadata.json_schema,
|
|
212
|
+
origin: {
|
|
213
|
+
chainId: metadata.origin.chain_id,
|
|
214
|
+
address: metadata.origin.address
|
|
215
|
+
}
|
|
216
|
+
}
|
|
135
217
|
};
|
|
136
218
|
}
|
|
137
219
|
},
|
|
138
|
-
"/
|
|
139
|
-
aminoType: "/
|
|
220
|
+
"/mythos.wasmx.v1.MsgInstantiateContract": {
|
|
221
|
+
aminoType: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
140
222
|
toAmino: ({
|
|
141
223
|
sender,
|
|
142
224
|
codeId,
|
|
@@ -174,8 +256,8 @@ export const AminoConverter = {
|
|
|
174
256
|
};
|
|
175
257
|
}
|
|
176
258
|
},
|
|
177
|
-
"/
|
|
178
|
-
aminoType: "/
|
|
259
|
+
"/mythos.wasmx.v1.MsgInstantiateContract2": {
|
|
260
|
+
aminoType: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
179
261
|
toAmino: ({
|
|
180
262
|
sender,
|
|
181
263
|
codeId,
|
|
@@ -221,8 +303,8 @@ export const AminoConverter = {
|
|
|
221
303
|
};
|
|
222
304
|
}
|
|
223
305
|
},
|
|
224
|
-
"/
|
|
225
|
-
aminoType: "/
|
|
306
|
+
"/mythos.wasmx.v1.MsgExecuteContract": {
|
|
307
|
+
aminoType: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
226
308
|
toAmino: ({
|
|
227
309
|
sender,
|
|
228
310
|
contract,
|
|
@@ -260,8 +342,8 @@ export const AminoConverter = {
|
|
|
260
342
|
};
|
|
261
343
|
}
|
|
262
344
|
},
|
|
263
|
-
"/
|
|
264
|
-
aminoType: "/
|
|
345
|
+
"/mythos.wasmx.v1.MsgExecuteWithOriginContract": {
|
|
346
|
+
aminoType: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
265
347
|
toAmino: ({
|
|
266
348
|
origin,
|
|
267
349
|
sender,
|
|
@@ -299,8 +381,8 @@ export const AminoConverter = {
|
|
|
299
381
|
};
|
|
300
382
|
}
|
|
301
383
|
},
|
|
302
|
-
"/
|
|
303
|
-
aminoType: "/
|
|
384
|
+
"/mythos.wasmx.v1.MsgExecuteDelegateContract": {
|
|
385
|
+
aminoType: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
304
386
|
toAmino: ({
|
|
305
387
|
origin,
|
|
306
388
|
sender,
|
|
@@ -346,8 +428,8 @@ export const AminoConverter = {
|
|
|
346
428
|
};
|
|
347
429
|
}
|
|
348
430
|
},
|
|
349
|
-
"/
|
|
350
|
-
aminoType: "/
|
|
431
|
+
"/mythos.wasmx.v1.MsgCompileContract": {
|
|
432
|
+
aminoType: "/mythos.wasmx.v1.MsgCompileContract",
|
|
351
433
|
toAmino: ({
|
|
352
434
|
sender,
|
|
353
435
|
codeId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeneratedType, Registry } from "@cosmjs/proto-signing";
|
|
2
2
|
import { MsgStoreCode, MsgStoreCodeEvm, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgCompileContract } from "./tx";
|
|
3
|
-
export const registry: ReadonlyArray<[string, GeneratedType]> = [["/
|
|
3
|
+
export const registry: ReadonlyArray<[string, GeneratedType]> = [["/mythos.wasmx.v1.MsgStoreCode", MsgStoreCode], ["/mythos.wasmx.v1.MsgStoreCodeEvm", MsgStoreCodeEvm], ["/mythos.wasmx.v1.MsgInstantiateContract", MsgInstantiateContract], ["/mythos.wasmx.v1.MsgInstantiateContract2", MsgInstantiateContract2], ["/mythos.wasmx.v1.MsgExecuteContract", MsgExecuteContract], ["/mythos.wasmx.v1.MsgExecuteWithOriginContract", MsgExecuteWithOriginContract], ["/mythos.wasmx.v1.MsgExecuteDelegateContract", MsgExecuteDelegateContract], ["/mythos.wasmx.v1.MsgCompileContract", MsgCompileContract]];
|
|
4
4
|
export const load = (protoRegistry: Registry) => {
|
|
5
5
|
registry.forEach(([typeUrl, mod]) => {
|
|
6
6
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -10,56 +10,56 @@ export const MessageComposer = {
|
|
|
10
10
|
encoded: {
|
|
11
11
|
storeCode(value: MsgStoreCode) {
|
|
12
12
|
return {
|
|
13
|
-
typeUrl: "/
|
|
13
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
14
14
|
value: MsgStoreCode.encode(value).finish()
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
17
|
|
|
18
18
|
storeCodeEvm(value: MsgStoreCodeEvm) {
|
|
19
19
|
return {
|
|
20
|
-
typeUrl: "/
|
|
20
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
21
21
|
value: MsgStoreCodeEvm.encode(value).finish()
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
|
|
25
25
|
instantiateContract(value: MsgInstantiateContract) {
|
|
26
26
|
return {
|
|
27
|
-
typeUrl: "/
|
|
27
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
28
28
|
value: MsgInstantiateContract.encode(value).finish()
|
|
29
29
|
};
|
|
30
30
|
},
|
|
31
31
|
|
|
32
32
|
instantiateContract2(value: MsgInstantiateContract2) {
|
|
33
33
|
return {
|
|
34
|
-
typeUrl: "/
|
|
34
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
35
35
|
value: MsgInstantiateContract2.encode(value).finish()
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
|
|
39
39
|
executeContract(value: MsgExecuteContract) {
|
|
40
40
|
return {
|
|
41
|
-
typeUrl: "/
|
|
41
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
42
42
|
value: MsgExecuteContract.encode(value).finish()
|
|
43
43
|
};
|
|
44
44
|
},
|
|
45
45
|
|
|
46
46
|
executeWithOriginContract(value: MsgExecuteWithOriginContract) {
|
|
47
47
|
return {
|
|
48
|
-
typeUrl: "/
|
|
48
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
49
49
|
value: MsgExecuteWithOriginContract.encode(value).finish()
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
52
|
|
|
53
53
|
executeDelegateContract(value: MsgExecuteDelegateContract) {
|
|
54
54
|
return {
|
|
55
|
-
typeUrl: "/
|
|
55
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
56
56
|
value: MsgExecuteDelegateContract.encode(value).finish()
|
|
57
57
|
};
|
|
58
58
|
},
|
|
59
59
|
|
|
60
60
|
compileContract(value: MsgCompileContract) {
|
|
61
61
|
return {
|
|
62
|
-
typeUrl: "/
|
|
62
|
+
typeUrl: "/mythos.wasmx.v1.MsgCompileContract",
|
|
63
63
|
value: MsgCompileContract.encode(value).finish()
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -68,56 +68,56 @@ export const MessageComposer = {
|
|
|
68
68
|
withTypeUrl: {
|
|
69
69
|
storeCode(value: MsgStoreCode) {
|
|
70
70
|
return {
|
|
71
|
-
typeUrl: "/
|
|
71
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
72
72
|
value
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
|
|
76
76
|
storeCodeEvm(value: MsgStoreCodeEvm) {
|
|
77
77
|
return {
|
|
78
|
-
typeUrl: "/
|
|
78
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
79
79
|
value
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
|
|
83
83
|
instantiateContract(value: MsgInstantiateContract) {
|
|
84
84
|
return {
|
|
85
|
-
typeUrl: "/
|
|
85
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
86
86
|
value
|
|
87
87
|
};
|
|
88
88
|
},
|
|
89
89
|
|
|
90
90
|
instantiateContract2(value: MsgInstantiateContract2) {
|
|
91
91
|
return {
|
|
92
|
-
typeUrl: "/
|
|
92
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
93
93
|
value
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
|
|
97
97
|
executeContract(value: MsgExecuteContract) {
|
|
98
98
|
return {
|
|
99
|
-
typeUrl: "/
|
|
99
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
100
100
|
value
|
|
101
101
|
};
|
|
102
102
|
},
|
|
103
103
|
|
|
104
104
|
executeWithOriginContract(value: MsgExecuteWithOriginContract) {
|
|
105
105
|
return {
|
|
106
|
-
typeUrl: "/
|
|
106
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
107
107
|
value
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
110
|
|
|
111
111
|
executeDelegateContract(value: MsgExecuteDelegateContract) {
|
|
112
112
|
return {
|
|
113
|
-
typeUrl: "/
|
|
113
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
114
114
|
value
|
|
115
115
|
};
|
|
116
116
|
},
|
|
117
117
|
|
|
118
118
|
compileContract(value: MsgCompileContract) {
|
|
119
119
|
return {
|
|
120
|
-
typeUrl: "/
|
|
120
|
+
typeUrl: "/mythos.wasmx.v1.MsgCompileContract",
|
|
121
121
|
value
|
|
122
122
|
};
|
|
123
123
|
}
|
|
@@ -126,56 +126,56 @@ export const MessageComposer = {
|
|
|
126
126
|
toJSON: {
|
|
127
127
|
storeCode(value: MsgStoreCode) {
|
|
128
128
|
return {
|
|
129
|
-
typeUrl: "/
|
|
129
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
130
130
|
value: MsgStoreCode.toJSON(value)
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
133
|
|
|
134
134
|
storeCodeEvm(value: MsgStoreCodeEvm) {
|
|
135
135
|
return {
|
|
136
|
-
typeUrl: "/
|
|
136
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
137
137
|
value: MsgStoreCodeEvm.toJSON(value)
|
|
138
138
|
};
|
|
139
139
|
},
|
|
140
140
|
|
|
141
141
|
instantiateContract(value: MsgInstantiateContract) {
|
|
142
142
|
return {
|
|
143
|
-
typeUrl: "/
|
|
143
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
144
144
|
value: MsgInstantiateContract.toJSON(value)
|
|
145
145
|
};
|
|
146
146
|
},
|
|
147
147
|
|
|
148
148
|
instantiateContract2(value: MsgInstantiateContract2) {
|
|
149
149
|
return {
|
|
150
|
-
typeUrl: "/
|
|
150
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
151
151
|
value: MsgInstantiateContract2.toJSON(value)
|
|
152
152
|
};
|
|
153
153
|
},
|
|
154
154
|
|
|
155
155
|
executeContract(value: MsgExecuteContract) {
|
|
156
156
|
return {
|
|
157
|
-
typeUrl: "/
|
|
157
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
158
158
|
value: MsgExecuteContract.toJSON(value)
|
|
159
159
|
};
|
|
160
160
|
},
|
|
161
161
|
|
|
162
162
|
executeWithOriginContract(value: MsgExecuteWithOriginContract) {
|
|
163
163
|
return {
|
|
164
|
-
typeUrl: "/
|
|
164
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
165
165
|
value: MsgExecuteWithOriginContract.toJSON(value)
|
|
166
166
|
};
|
|
167
167
|
},
|
|
168
168
|
|
|
169
169
|
executeDelegateContract(value: MsgExecuteDelegateContract) {
|
|
170
170
|
return {
|
|
171
|
-
typeUrl: "/
|
|
171
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
172
172
|
value: MsgExecuteDelegateContract.toJSON(value)
|
|
173
173
|
};
|
|
174
174
|
},
|
|
175
175
|
|
|
176
176
|
compileContract(value: MsgCompileContract) {
|
|
177
177
|
return {
|
|
178
|
-
typeUrl: "/
|
|
178
|
+
typeUrl: "/mythos.wasmx.v1.MsgCompileContract",
|
|
179
179
|
value: MsgCompileContract.toJSON(value)
|
|
180
180
|
};
|
|
181
181
|
}
|
|
@@ -184,56 +184,56 @@ export const MessageComposer = {
|
|
|
184
184
|
fromJSON: {
|
|
185
185
|
storeCode(value: any) {
|
|
186
186
|
return {
|
|
187
|
-
typeUrl: "/
|
|
187
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
188
188
|
value: MsgStoreCode.fromJSON(value)
|
|
189
189
|
};
|
|
190
190
|
},
|
|
191
191
|
|
|
192
192
|
storeCodeEvm(value: any) {
|
|
193
193
|
return {
|
|
194
|
-
typeUrl: "/
|
|
194
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
195
195
|
value: MsgStoreCodeEvm.fromJSON(value)
|
|
196
196
|
};
|
|
197
197
|
},
|
|
198
198
|
|
|
199
199
|
instantiateContract(value: any) {
|
|
200
200
|
return {
|
|
201
|
-
typeUrl: "/
|
|
201
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
202
202
|
value: MsgInstantiateContract.fromJSON(value)
|
|
203
203
|
};
|
|
204
204
|
},
|
|
205
205
|
|
|
206
206
|
instantiateContract2(value: any) {
|
|
207
207
|
return {
|
|
208
|
-
typeUrl: "/
|
|
208
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
209
209
|
value: MsgInstantiateContract2.fromJSON(value)
|
|
210
210
|
};
|
|
211
211
|
},
|
|
212
212
|
|
|
213
213
|
executeContract(value: any) {
|
|
214
214
|
return {
|
|
215
|
-
typeUrl: "/
|
|
215
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
216
216
|
value: MsgExecuteContract.fromJSON(value)
|
|
217
217
|
};
|
|
218
218
|
},
|
|
219
219
|
|
|
220
220
|
executeWithOriginContract(value: any) {
|
|
221
221
|
return {
|
|
222
|
-
typeUrl: "/
|
|
222
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
223
223
|
value: MsgExecuteWithOriginContract.fromJSON(value)
|
|
224
224
|
};
|
|
225
225
|
},
|
|
226
226
|
|
|
227
227
|
executeDelegateContract(value: any) {
|
|
228
228
|
return {
|
|
229
|
-
typeUrl: "/
|
|
229
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
230
230
|
value: MsgExecuteDelegateContract.fromJSON(value)
|
|
231
231
|
};
|
|
232
232
|
},
|
|
233
233
|
|
|
234
234
|
compileContract(value: any) {
|
|
235
235
|
return {
|
|
236
|
-
typeUrl: "/
|
|
236
|
+
typeUrl: "/mythos.wasmx.v1.MsgCompileContract",
|
|
237
237
|
value: MsgCompileContract.fromJSON(value)
|
|
238
238
|
};
|
|
239
239
|
}
|
|
@@ -242,56 +242,56 @@ export const MessageComposer = {
|
|
|
242
242
|
fromPartial: {
|
|
243
243
|
storeCode(value: MsgStoreCode) {
|
|
244
244
|
return {
|
|
245
|
-
typeUrl: "/
|
|
245
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
246
246
|
value: MsgStoreCode.fromPartial(value)
|
|
247
247
|
};
|
|
248
248
|
},
|
|
249
249
|
|
|
250
250
|
storeCodeEvm(value: MsgStoreCodeEvm) {
|
|
251
251
|
return {
|
|
252
|
-
typeUrl: "/
|
|
252
|
+
typeUrl: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
253
253
|
value: MsgStoreCodeEvm.fromPartial(value)
|
|
254
254
|
};
|
|
255
255
|
},
|
|
256
256
|
|
|
257
257
|
instantiateContract(value: MsgInstantiateContract) {
|
|
258
258
|
return {
|
|
259
|
-
typeUrl: "/
|
|
259
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
260
260
|
value: MsgInstantiateContract.fromPartial(value)
|
|
261
261
|
};
|
|
262
262
|
},
|
|
263
263
|
|
|
264
264
|
instantiateContract2(value: MsgInstantiateContract2) {
|
|
265
265
|
return {
|
|
266
|
-
typeUrl: "/
|
|
266
|
+
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
267
267
|
value: MsgInstantiateContract2.fromPartial(value)
|
|
268
268
|
};
|
|
269
269
|
},
|
|
270
270
|
|
|
271
271
|
executeContract(value: MsgExecuteContract) {
|
|
272
272
|
return {
|
|
273
|
-
typeUrl: "/
|
|
273
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
274
274
|
value: MsgExecuteContract.fromPartial(value)
|
|
275
275
|
};
|
|
276
276
|
},
|
|
277
277
|
|
|
278
278
|
executeWithOriginContract(value: MsgExecuteWithOriginContract) {
|
|
279
279
|
return {
|
|
280
|
-
typeUrl: "/
|
|
280
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
281
281
|
value: MsgExecuteWithOriginContract.fromPartial(value)
|
|
282
282
|
};
|
|
283
283
|
},
|
|
284
284
|
|
|
285
285
|
executeDelegateContract(value: MsgExecuteDelegateContract) {
|
|
286
286
|
return {
|
|
287
|
-
typeUrl: "/
|
|
287
|
+
typeUrl: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
288
288
|
value: MsgExecuteDelegateContract.fromPartial(value)
|
|
289
289
|
};
|
|
290
290
|
},
|
|
291
291
|
|
|
292
292
|
compileContract(value: MsgCompileContract) {
|
|
293
293
|
return {
|
|
294
|
-
typeUrl: "/
|
|
294
|
+
typeUrl: "/mythos.wasmx.v1.MsgCompileContract",
|
|
295
295
|
value: MsgCompileContract.fromPartial(value)
|
|
296
296
|
};
|
|
297
297
|
}
|
|
@@ -51,49 +51,49 @@ export class MsgClientImpl implements Msg {
|
|
|
51
51
|
|
|
52
52
|
storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse> {
|
|
53
53
|
const data = MsgStoreCode.encode(request).finish();
|
|
54
|
-
const promise = this.rpc.request("
|
|
54
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "StoreCode", data);
|
|
55
55
|
return promise.then(data => MsgStoreCodeResponse.decode(new _m0.Reader(data)));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
storeCodeEvm(request: MsgStoreCodeEvm): Promise<MsgStoreCodeEvmResponse> {
|
|
59
59
|
const data = MsgStoreCodeEvm.encode(request).finish();
|
|
60
|
-
const promise = this.rpc.request("
|
|
60
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "StoreCodeEvm", data);
|
|
61
61
|
return promise.then(data => MsgStoreCodeEvmResponse.decode(new _m0.Reader(data)));
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse> {
|
|
65
65
|
const data = MsgInstantiateContract.encode(request).finish();
|
|
66
|
-
const promise = this.rpc.request("
|
|
66
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "InstantiateContract", data);
|
|
67
67
|
return promise.then(data => MsgInstantiateContractResponse.decode(new _m0.Reader(data)));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response> {
|
|
71
71
|
const data = MsgInstantiateContract2.encode(request).finish();
|
|
72
|
-
const promise = this.rpc.request("
|
|
72
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "InstantiateContract2", data);
|
|
73
73
|
return promise.then(data => MsgInstantiateContract2Response.decode(new _m0.Reader(data)));
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse> {
|
|
77
77
|
const data = MsgExecuteContract.encode(request).finish();
|
|
78
|
-
const promise = this.rpc.request("
|
|
78
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "ExecuteContract", data);
|
|
79
79
|
return promise.then(data => MsgExecuteContractResponse.decode(new _m0.Reader(data)));
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
executeWithOriginContract(request: MsgExecuteWithOriginContract): Promise<MsgExecuteContractResponse> {
|
|
83
83
|
const data = MsgExecuteWithOriginContract.encode(request).finish();
|
|
84
|
-
const promise = this.rpc.request("
|
|
84
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "ExecuteWithOriginContract", data);
|
|
85
85
|
return promise.then(data => MsgExecuteContractResponse.decode(new _m0.Reader(data)));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
executeDelegateContract(request: MsgExecuteDelegateContract): Promise<MsgExecuteDelegateContractResponse> {
|
|
89
89
|
const data = MsgExecuteDelegateContract.encode(request).finish();
|
|
90
|
-
const promise = this.rpc.request("
|
|
90
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "ExecuteDelegateContract", data);
|
|
91
91
|
return promise.then(data => MsgExecuteDelegateContractResponse.decode(new _m0.Reader(data)));
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
compileContract(request: MsgCompileContract): Promise<MsgCompileContractResponse> {
|
|
95
95
|
const data = MsgCompileContract.encode(request).finish();
|
|
96
|
-
const promise = this.rpc.request("
|
|
96
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "CompileContract", data);
|
|
97
97
|
return promise.then(data => MsgCompileContractResponse.decode(new _m0.Reader(data)));
|
|
98
98
|
}
|
|
99
99
|
|