@ark-us/wasmxjs 0.0.5 → 0.0.7
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/main/codegen/mythos/wasmx/v1/contract.js +25 -25
- package/module/codegen/mythos/wasmx/v1/contract.js +25 -25
- package/package.json +1 -1
- package/src/codegen/mythos/wasmx/v1/contract.ts +25 -25
- package/types/codegen/mythos/bundle.d.ts +85 -17
- package/types/codegen/mythos/client.d.ts +70 -18
- package/types/codegen/mythos/rpc.query.d.ts +10 -9
- package/types/codegen/mythos/wasmx/v1/contract.d.ts +51 -14
- package/types/codegen/mythos/wasmx/v1/genesis.d.ts +3 -3
- package/types/codegen/mythos/wasmx/v1/query.d.ts +37 -24
- package/types/codegen/mythos/wasmx/v1/query.rpc.Query.d.ts +5 -1
- package/types/codegen/mythos/wasmx/v1/tx.amino.d.ts +30 -4
- package/types/codegen/mythos/wasmx/v1/tx.d.ts +5 -0
|
@@ -72,20 +72,20 @@ var ContractStorage = {
|
|
|
72
72
|
exports.ContractStorage = ContractStorage;
|
|
73
73
|
function createBaseCodeMetadata() {
|
|
74
74
|
return {
|
|
75
|
-
name:
|
|
76
|
-
categ:
|
|
77
|
-
icon:
|
|
78
|
-
author:
|
|
79
|
-
site:
|
|
80
|
-
abi:
|
|
81
|
-
jsonSchema:
|
|
75
|
+
name: undefined,
|
|
76
|
+
categ: undefined,
|
|
77
|
+
icon: undefined,
|
|
78
|
+
author: undefined,
|
|
79
|
+
site: undefined,
|
|
80
|
+
abi: undefined,
|
|
81
|
+
jsonSchema: undefined,
|
|
82
82
|
origin: undefined
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
var CodeMetadata = {
|
|
86
86
|
encode: function encode(message) {
|
|
87
87
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
88
|
-
if (message.name !==
|
|
88
|
+
if (message.name !== undefined) {
|
|
89
89
|
writer.uint32(10).string(message.name);
|
|
90
90
|
}
|
|
91
91
|
var _iterator = _createForOfIteratorHelper(message.categ),
|
|
@@ -100,19 +100,19 @@ var CodeMetadata = {
|
|
|
100
100
|
} finally {
|
|
101
101
|
_iterator.f();
|
|
102
102
|
}
|
|
103
|
-
if (message.icon !==
|
|
103
|
+
if (message.icon !== undefined) {
|
|
104
104
|
writer.uint32(26).string(message.icon);
|
|
105
105
|
}
|
|
106
|
-
if (message.author !==
|
|
106
|
+
if (message.author !== undefined) {
|
|
107
107
|
writer.uint32(34).string(message.author);
|
|
108
108
|
}
|
|
109
|
-
if (message.site !==
|
|
109
|
+
if (message.site !== undefined) {
|
|
110
110
|
writer.uint32(42).string(message.site);
|
|
111
111
|
}
|
|
112
|
-
if (message.abi !==
|
|
112
|
+
if (message.abi !== undefined) {
|
|
113
113
|
writer.uint32(50).string(message.abi);
|
|
114
114
|
}
|
|
115
|
-
if (message.jsonSchema !==
|
|
115
|
+
if (message.jsonSchema !== undefined) {
|
|
116
116
|
writer.uint32(58).string(message.jsonSchema);
|
|
117
117
|
}
|
|
118
118
|
if (message.origin !== undefined) {
|
|
@@ -160,15 +160,15 @@ var CodeMetadata = {
|
|
|
160
160
|
},
|
|
161
161
|
fromJSON: function fromJSON(object) {
|
|
162
162
|
return {
|
|
163
|
-
name: (0, _helpers.isSet)(object.name) ? String(object.name) :
|
|
163
|
+
name: (0, _helpers.isSet)(object.name) ? String(object.name) : undefined,
|
|
164
164
|
categ: Array.isArray(object === null || object === void 0 ? void 0 : object.categ) ? object.categ.map(function (e) {
|
|
165
165
|
return String(e);
|
|
166
166
|
}) : [],
|
|
167
|
-
icon: (0, _helpers.isSet)(object.icon) ? String(object.icon) :
|
|
168
|
-
author: (0, _helpers.isSet)(object.author) ? String(object.author) :
|
|
169
|
-
site: (0, _helpers.isSet)(object.site) ? String(object.site) :
|
|
170
|
-
abi: (0, _helpers.isSet)(object.abi) ? String(object.abi) :
|
|
171
|
-
jsonSchema: (0, _helpers.isSet)(object.jsonSchema) ? String(object.jsonSchema) :
|
|
167
|
+
icon: (0, _helpers.isSet)(object.icon) ? String(object.icon) : undefined,
|
|
168
|
+
author: (0, _helpers.isSet)(object.author) ? String(object.author) : undefined,
|
|
169
|
+
site: (0, _helpers.isSet)(object.site) ? String(object.site) : undefined,
|
|
170
|
+
abi: (0, _helpers.isSet)(object.abi) ? String(object.abi) : undefined,
|
|
171
|
+
jsonSchema: (0, _helpers.isSet)(object.jsonSchema) ? String(object.jsonSchema) : undefined,
|
|
172
172
|
origin: (0, _helpers.isSet)(object.origin) ? CodeOrigin.fromJSON(object.origin) : undefined
|
|
173
173
|
};
|
|
174
174
|
},
|
|
@@ -193,15 +193,15 @@ var CodeMetadata = {
|
|
|
193
193
|
fromPartial: function fromPartial(object) {
|
|
194
194
|
var _object$name, _object$categ, _object$icon, _object$author, _object$site, _object$abi, _object$jsonSchema;
|
|
195
195
|
var message = createBaseCodeMetadata();
|
|
196
|
-
message.name = (_object$name = object.name) !== null && _object$name !== void 0 ? _object$name :
|
|
196
|
+
message.name = (_object$name = object.name) !== null && _object$name !== void 0 ? _object$name : undefined;
|
|
197
197
|
message.categ = ((_object$categ = object.categ) === null || _object$categ === void 0 ? void 0 : _object$categ.map(function (e) {
|
|
198
198
|
return e;
|
|
199
199
|
})) || [];
|
|
200
|
-
message.icon = (_object$icon = object.icon) !== null && _object$icon !== void 0 ? _object$icon :
|
|
201
|
-
message.author = (_object$author = object.author) !== null && _object$author !== void 0 ? _object$author :
|
|
202
|
-
message.site = (_object$site = object.site) !== null && _object$site !== void 0 ? _object$site :
|
|
203
|
-
message.abi = (_object$abi = object.abi) !== null && _object$abi !== void 0 ? _object$abi :
|
|
204
|
-
message.jsonSchema = (_object$jsonSchema = object.jsonSchema) !== null && _object$jsonSchema !== void 0 ? _object$jsonSchema :
|
|
200
|
+
message.icon = (_object$icon = object.icon) !== null && _object$icon !== void 0 ? _object$icon : undefined;
|
|
201
|
+
message.author = (_object$author = object.author) !== null && _object$author !== void 0 ? _object$author : undefined;
|
|
202
|
+
message.site = (_object$site = object.site) !== null && _object$site !== void 0 ? _object$site : undefined;
|
|
203
|
+
message.abi = (_object$abi = object.abi) !== null && _object$abi !== void 0 ? _object$abi : undefined;
|
|
204
|
+
message.jsonSchema = (_object$jsonSchema = object.jsonSchema) !== null && _object$jsonSchema !== void 0 ? _object$jsonSchema : undefined;
|
|
205
205
|
message.origin = object.origin !== undefined && object.origin !== null ? CodeOrigin.fromPartial(object.origin) : undefined;
|
|
206
206
|
return message;
|
|
207
207
|
}
|
|
@@ -60,37 +60,37 @@ export const ContractStorage = {
|
|
|
60
60
|
};
|
|
61
61
|
function createBaseCodeMetadata() {
|
|
62
62
|
return {
|
|
63
|
-
name:
|
|
64
|
-
categ:
|
|
65
|
-
icon:
|
|
66
|
-
author:
|
|
67
|
-
site:
|
|
68
|
-
abi:
|
|
69
|
-
jsonSchema:
|
|
63
|
+
name: undefined,
|
|
64
|
+
categ: undefined,
|
|
65
|
+
icon: undefined,
|
|
66
|
+
author: undefined,
|
|
67
|
+
site: undefined,
|
|
68
|
+
abi: undefined,
|
|
69
|
+
jsonSchema: undefined,
|
|
70
70
|
origin: undefined
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
export const CodeMetadata = {
|
|
74
74
|
encode(message, writer = _m0.Writer.create()) {
|
|
75
|
-
if (message.name !==
|
|
75
|
+
if (message.name !== undefined) {
|
|
76
76
|
writer.uint32(10).string(message.name);
|
|
77
77
|
}
|
|
78
78
|
for (const v of message.categ) {
|
|
79
79
|
writer.uint32(18).string(v);
|
|
80
80
|
}
|
|
81
|
-
if (message.icon !==
|
|
81
|
+
if (message.icon !== undefined) {
|
|
82
82
|
writer.uint32(26).string(message.icon);
|
|
83
83
|
}
|
|
84
|
-
if (message.author !==
|
|
84
|
+
if (message.author !== undefined) {
|
|
85
85
|
writer.uint32(34).string(message.author);
|
|
86
86
|
}
|
|
87
|
-
if (message.site !==
|
|
87
|
+
if (message.site !== undefined) {
|
|
88
88
|
writer.uint32(42).string(message.site);
|
|
89
89
|
}
|
|
90
|
-
if (message.abi !==
|
|
90
|
+
if (message.abi !== undefined) {
|
|
91
91
|
writer.uint32(50).string(message.abi);
|
|
92
92
|
}
|
|
93
|
-
if (message.jsonSchema !==
|
|
93
|
+
if (message.jsonSchema !== undefined) {
|
|
94
94
|
writer.uint32(58).string(message.jsonSchema);
|
|
95
95
|
}
|
|
96
96
|
if (message.origin !== undefined) {
|
|
@@ -138,13 +138,13 @@ export const CodeMetadata = {
|
|
|
138
138
|
},
|
|
139
139
|
fromJSON(object) {
|
|
140
140
|
return {
|
|
141
|
-
name: isSet(object.name) ? String(object.name) :
|
|
141
|
+
name: isSet(object.name) ? String(object.name) : undefined,
|
|
142
142
|
categ: Array.isArray(object === null || object === void 0 ? void 0 : object.categ) ? object.categ.map(e => String(e)) : [],
|
|
143
|
-
icon: isSet(object.icon) ? String(object.icon) :
|
|
144
|
-
author: isSet(object.author) ? String(object.author) :
|
|
145
|
-
site: isSet(object.site) ? String(object.site) :
|
|
146
|
-
abi: isSet(object.abi) ? String(object.abi) :
|
|
147
|
-
jsonSchema: isSet(object.jsonSchema) ? String(object.jsonSchema) :
|
|
143
|
+
icon: isSet(object.icon) ? String(object.icon) : undefined,
|
|
144
|
+
author: isSet(object.author) ? String(object.author) : undefined,
|
|
145
|
+
site: isSet(object.site) ? String(object.site) : undefined,
|
|
146
|
+
abi: isSet(object.abi) ? String(object.abi) : undefined,
|
|
147
|
+
jsonSchema: isSet(object.jsonSchema) ? String(object.jsonSchema) : undefined,
|
|
148
148
|
origin: isSet(object.origin) ? CodeOrigin.fromJSON(object.origin) : undefined
|
|
149
149
|
};
|
|
150
150
|
},
|
|
@@ -167,13 +167,13 @@ export const CodeMetadata = {
|
|
|
167
167
|
fromPartial(object) {
|
|
168
168
|
var _object$name, _object$categ, _object$icon, _object$author, _object$site, _object$abi, _object$jsonSchema;
|
|
169
169
|
const message = createBaseCodeMetadata();
|
|
170
|
-
message.name = (_object$name = object.name) !== null && _object$name !== void 0 ? _object$name :
|
|
170
|
+
message.name = (_object$name = object.name) !== null && _object$name !== void 0 ? _object$name : undefined;
|
|
171
171
|
message.categ = ((_object$categ = object.categ) === null || _object$categ === void 0 ? void 0 : _object$categ.map(e => e)) || [];
|
|
172
|
-
message.icon = (_object$icon = object.icon) !== null && _object$icon !== void 0 ? _object$icon :
|
|
173
|
-
message.author = (_object$author = object.author) !== null && _object$author !== void 0 ? _object$author :
|
|
174
|
-
message.site = (_object$site = object.site) !== null && _object$site !== void 0 ? _object$site :
|
|
175
|
-
message.abi = (_object$abi = object.abi) !== null && _object$abi !== void 0 ? _object$abi :
|
|
176
|
-
message.jsonSchema = (_object$jsonSchema = object.jsonSchema) !== null && _object$jsonSchema !== void 0 ? _object$jsonSchema :
|
|
172
|
+
message.icon = (_object$icon = object.icon) !== null && _object$icon !== void 0 ? _object$icon : undefined;
|
|
173
|
+
message.author = (_object$author = object.author) !== null && _object$author !== void 0 ? _object$author : undefined;
|
|
174
|
+
message.site = (_object$site = object.site) !== null && _object$site !== void 0 ? _object$site : undefined;
|
|
175
|
+
message.abi = (_object$abi = object.abi) !== null && _object$abi !== void 0 ? _object$abi : undefined;
|
|
176
|
+
message.jsonSchema = (_object$jsonSchema = object.jsonSchema) !== null && _object$jsonSchema !== void 0 ? _object$jsonSchema : undefined;
|
|
177
177
|
message.origin = object.origin !== undefined && object.origin !== null ? CodeOrigin.fromPartial(object.origin) : undefined;
|
|
178
178
|
return message;
|
|
179
179
|
}
|
package/package.json
CHANGED
|
@@ -236,20 +236,20 @@ export const ContractStorage = {
|
|
|
236
236
|
|
|
237
237
|
function createBaseCodeMetadata(): CodeMetadata {
|
|
238
238
|
return {
|
|
239
|
-
name:
|
|
240
|
-
categ:
|
|
241
|
-
icon:
|
|
242
|
-
author:
|
|
243
|
-
site:
|
|
244
|
-
abi:
|
|
245
|
-
jsonSchema:
|
|
239
|
+
name: undefined,
|
|
240
|
+
categ: undefined,
|
|
241
|
+
icon: undefined,
|
|
242
|
+
author: undefined,
|
|
243
|
+
site: undefined,
|
|
244
|
+
abi: undefined,
|
|
245
|
+
jsonSchema: undefined,
|
|
246
246
|
origin: undefined
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
export const CodeMetadata = {
|
|
251
251
|
encode(message: CodeMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
252
|
-
if (message.name !==
|
|
252
|
+
if (message.name !== undefined) {
|
|
253
253
|
writer.uint32(10).string(message.name);
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -257,23 +257,23 @@ export const CodeMetadata = {
|
|
|
257
257
|
writer.uint32(18).string(v!);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
if (message.icon !==
|
|
260
|
+
if (message.icon !== undefined) {
|
|
261
261
|
writer.uint32(26).string(message.icon);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
if (message.author !==
|
|
264
|
+
if (message.author !== undefined) {
|
|
265
265
|
writer.uint32(34).string(message.author);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
if (message.site !==
|
|
268
|
+
if (message.site !== undefined) {
|
|
269
269
|
writer.uint32(42).string(message.site);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
if (message.abi !==
|
|
272
|
+
if (message.abi !== undefined) {
|
|
273
273
|
writer.uint32(50).string(message.abi);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
if (message.jsonSchema !==
|
|
276
|
+
if (message.jsonSchema !== undefined) {
|
|
277
277
|
writer.uint32(58).string(message.jsonSchema);
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -336,13 +336,13 @@ export const CodeMetadata = {
|
|
|
336
336
|
|
|
337
337
|
fromJSON(object: any): CodeMetadata {
|
|
338
338
|
return {
|
|
339
|
-
name: isSet(object.name) ? String(object.name) :
|
|
339
|
+
name: isSet(object.name) ? String(object.name) : undefined,
|
|
340
340
|
categ: Array.isArray(object?.categ) ? object.categ.map((e: any) => String(e)) : [],
|
|
341
|
-
icon: isSet(object.icon) ? String(object.icon) :
|
|
342
|
-
author: isSet(object.author) ? String(object.author) :
|
|
343
|
-
site: isSet(object.site) ? String(object.site) :
|
|
344
|
-
abi: isSet(object.abi) ? String(object.abi) :
|
|
345
|
-
jsonSchema: isSet(object.jsonSchema) ? String(object.jsonSchema) :
|
|
341
|
+
icon: isSet(object.icon) ? String(object.icon) : undefined,
|
|
342
|
+
author: isSet(object.author) ? String(object.author) : undefined,
|
|
343
|
+
site: isSet(object.site) ? String(object.site) : undefined,
|
|
344
|
+
abi: isSet(object.abi) ? String(object.abi) : undefined,
|
|
345
|
+
jsonSchema: isSet(object.jsonSchema) ? String(object.jsonSchema) : undefined,
|
|
346
346
|
origin: isSet(object.origin) ? CodeOrigin.fromJSON(object.origin) : undefined
|
|
347
347
|
};
|
|
348
348
|
},
|
|
@@ -368,13 +368,13 @@ export const CodeMetadata = {
|
|
|
368
368
|
|
|
369
369
|
fromPartial(object: Partial<CodeMetadata>): CodeMetadata {
|
|
370
370
|
const message = createBaseCodeMetadata();
|
|
371
|
-
message.name = object.name ??
|
|
371
|
+
message.name = object.name ?? undefined;
|
|
372
372
|
message.categ = object.categ?.map(e => e) || [];
|
|
373
|
-
message.icon = object.icon ??
|
|
374
|
-
message.author = object.author ??
|
|
375
|
-
message.site = object.site ??
|
|
376
|
-
message.abi = object.abi ??
|
|
377
|
-
message.jsonSchema = object.jsonSchema ??
|
|
373
|
+
message.icon = object.icon ?? undefined;
|
|
374
|
+
message.author = object.author ?? undefined;
|
|
375
|
+
message.site = object.site ?? undefined;
|
|
376
|
+
message.abi = object.abi ?? undefined;
|
|
377
|
+
message.jsonSchema = object.jsonSchema ?? undefined;
|
|
378
378
|
message.origin = object.origin !== undefined && object.origin !== null ? CodeOrigin.fromPartial(object.origin) : undefined;
|
|
379
379
|
return message;
|
|
380
380
|
}
|
|
@@ -24,6 +24,7 @@ export declare namespace mythos {
|
|
|
24
24
|
rawContractState(request: _21.QueryRawContractStateRequest): Promise<_21.QueryRawContractStateResponse>;
|
|
25
25
|
smartContractCall(request: _21.QuerySmartContractCallRequest): Promise<_21.QuerySmartContractCallResponse>;
|
|
26
26
|
code(request: _21.QueryCodeRequest): Promise<_21.QueryCodeResponse>;
|
|
27
|
+
codeInfo(request: _21.QueryCodeInfoRequest): Promise<_21.QueryCodeInfoResponse>;
|
|
27
28
|
codes(request?: _21.QueryCodesRequest): Promise<_21.QueryCodesResponse>;
|
|
28
29
|
params(request?: _21.QueryParamsRequest): Promise<_21.QueryParamsResponse>;
|
|
29
30
|
contractsByCreator(request: _21.QueryContractsByCreatorRequest): Promise<_21.QueryContractsByCreatorResponse>;
|
|
@@ -205,24 +206,76 @@ export declare namespace mythos {
|
|
|
205
206
|
AminoConverter: {
|
|
206
207
|
"/mythos.wasmx.v1.MsgStoreCode": {
|
|
207
208
|
aminoType: string;
|
|
208
|
-
toAmino: ({ sender, wasmByteCode }: _22.MsgStoreCode) => {
|
|
209
|
+
toAmino: ({ sender, wasmByteCode, metadata }: _22.MsgStoreCode) => {
|
|
209
210
|
sender: string;
|
|
210
211
|
wasm_byte_code: Uint8Array;
|
|
212
|
+
metadata: {
|
|
213
|
+
name: string;
|
|
214
|
+
categ: string[];
|
|
215
|
+
icon: string;
|
|
216
|
+
author: string;
|
|
217
|
+
site: string;
|
|
218
|
+
abi: string;
|
|
219
|
+
json_schema: string;
|
|
220
|
+
origin: {
|
|
221
|
+
chain_id: string;
|
|
222
|
+
address: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
211
225
|
};
|
|
212
|
-
fromAmino: ({ sender, wasm_byte_code }: {
|
|
226
|
+
fromAmino: ({ sender, wasm_byte_code, metadata }: {
|
|
213
227
|
sender: string;
|
|
214
228
|
wasm_byte_code: Uint8Array;
|
|
229
|
+
metadata: {
|
|
230
|
+
name: string;
|
|
231
|
+
categ: string[];
|
|
232
|
+
icon: string;
|
|
233
|
+
author: string;
|
|
234
|
+
site: string;
|
|
235
|
+
abi: string;
|
|
236
|
+
json_schema: string;
|
|
237
|
+
origin: {
|
|
238
|
+
chain_id: string;
|
|
239
|
+
address: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
215
242
|
}) => _22.MsgStoreCode;
|
|
216
243
|
};
|
|
217
244
|
"/mythos.wasmx.v1.MsgStoreCodeEvm": {
|
|
218
245
|
aminoType: string;
|
|
219
|
-
toAmino: ({ sender, evmByteCode }: _22.MsgStoreCodeEvm) => {
|
|
246
|
+
toAmino: ({ sender, evmByteCode, metadata }: _22.MsgStoreCodeEvm) => {
|
|
220
247
|
sender: string;
|
|
221
248
|
evm_byte_code: Uint8Array;
|
|
249
|
+
metadata: {
|
|
250
|
+
name: string;
|
|
251
|
+
categ: string[];
|
|
252
|
+
icon: string;
|
|
253
|
+
author: string;
|
|
254
|
+
site: string;
|
|
255
|
+
abi: string;
|
|
256
|
+
json_schema: string;
|
|
257
|
+
origin: {
|
|
258
|
+
chain_id: string;
|
|
259
|
+
address: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
222
262
|
};
|
|
223
|
-
fromAmino: ({ sender, evm_byte_code }: {
|
|
263
|
+
fromAmino: ({ sender, evm_byte_code, metadata }: {
|
|
224
264
|
sender: string;
|
|
225
265
|
evm_byte_code: Uint8Array;
|
|
266
|
+
metadata: {
|
|
267
|
+
name: string;
|
|
268
|
+
categ: string[];
|
|
269
|
+
icon: string;
|
|
270
|
+
author: string;
|
|
271
|
+
site: string;
|
|
272
|
+
abi: string;
|
|
273
|
+
json_schema: string;
|
|
274
|
+
origin: {
|
|
275
|
+
chain_id: string;
|
|
276
|
+
address: string;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
226
279
|
}) => _22.MsgStoreCodeEvm;
|
|
227
280
|
};
|
|
228
281
|
"/mythos.wasmx.v1.MsgInstantiateContract": {
|
|
@@ -542,13 +595,6 @@ export declare namespace mythos {
|
|
|
542
595
|
toJSON(message: _21.QueryCodeRequest): unknown;
|
|
543
596
|
fromPartial(object: Partial<_21.QueryCodeRequest>): _21.QueryCodeRequest;
|
|
544
597
|
};
|
|
545
|
-
CodeInfoResponse: {
|
|
546
|
-
encode(message: _21.CodeInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
547
|
-
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.CodeInfoResponse;
|
|
548
|
-
fromJSON(object: any): _21.CodeInfoResponse;
|
|
549
|
-
toJSON(message: _21.CodeInfoResponse): unknown;
|
|
550
|
-
fromPartial(object: Partial<_21.CodeInfoResponse>): _21.CodeInfoResponse;
|
|
551
|
-
};
|
|
552
598
|
QueryCodeResponse: {
|
|
553
599
|
encode(message: _21.QueryCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
554
600
|
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.QueryCodeResponse;
|
|
@@ -556,6 +602,20 @@ export declare namespace mythos {
|
|
|
556
602
|
toJSON(message: _21.QueryCodeResponse): unknown;
|
|
557
603
|
fromPartial(object: Partial<_21.QueryCodeResponse>): _21.QueryCodeResponse;
|
|
558
604
|
};
|
|
605
|
+
QueryCodeInfoRequest: {
|
|
606
|
+
encode(message: _21.QueryCodeInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
607
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.QueryCodeInfoRequest;
|
|
608
|
+
fromJSON(object: any): _21.QueryCodeInfoRequest;
|
|
609
|
+
toJSON(message: _21.QueryCodeInfoRequest): unknown;
|
|
610
|
+
fromPartial(object: Partial<_21.QueryCodeInfoRequest>): _21.QueryCodeInfoRequest;
|
|
611
|
+
};
|
|
612
|
+
QueryCodeInfoResponse: {
|
|
613
|
+
encode(message: _21.QueryCodeInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
614
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.QueryCodeInfoResponse;
|
|
615
|
+
fromJSON(object: any): _21.QueryCodeInfoResponse;
|
|
616
|
+
toJSON(message: _21.QueryCodeInfoResponse): unknown;
|
|
617
|
+
fromPartial(object: Partial<_21.QueryCodeInfoResponse>): _21.QueryCodeInfoResponse;
|
|
618
|
+
};
|
|
559
619
|
QueryCodesRequest: {
|
|
560
620
|
encode(message: _21.QueryCodesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
561
621
|
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.QueryCodesRequest;
|
|
@@ -647,6 +707,13 @@ export declare namespace mythos {
|
|
|
647
707
|
toJSON(message: _18.ContractStorage): unknown;
|
|
648
708
|
fromPartial(object: Partial<_18.ContractStorage>): _18.ContractStorage;
|
|
649
709
|
};
|
|
710
|
+
CodeMetadata: {
|
|
711
|
+
encode(message: _18.CodeMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
712
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.CodeMetadata;
|
|
713
|
+
fromJSON(object: any): _18.CodeMetadata;
|
|
714
|
+
toJSON(message: _18.CodeMetadata): unknown;
|
|
715
|
+
fromPartial(object: Partial<_18.CodeMetadata>): _18.CodeMetadata;
|
|
716
|
+
};
|
|
650
717
|
CodeInfo: {
|
|
651
718
|
encode(message: _18.CodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
652
719
|
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.CodeInfo;
|
|
@@ -654,12 +721,12 @@ export declare namespace mythos {
|
|
|
654
721
|
toJSON(message: _18.CodeInfo): unknown;
|
|
655
722
|
fromPartial(object: Partial<_18.CodeInfo>): _18.CodeInfo;
|
|
656
723
|
};
|
|
657
|
-
|
|
658
|
-
encode(message: _18.
|
|
659
|
-
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.
|
|
660
|
-
fromJSON(object: any): _18.
|
|
661
|
-
toJSON(message: _18.
|
|
662
|
-
fromPartial(object: Partial<_18.
|
|
724
|
+
CodeOrigin: {
|
|
725
|
+
encode(message: _18.CodeOrigin, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
726
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.CodeOrigin;
|
|
727
|
+
fromJSON(object: any): _18.CodeOrigin;
|
|
728
|
+
toJSON(message: _18.CodeOrigin): unknown;
|
|
729
|
+
fromPartial(object: Partial<_18.CodeOrigin>): _18.CodeOrigin;
|
|
663
730
|
};
|
|
664
731
|
ContractInfo: {
|
|
665
732
|
encode(message: _18.ContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
@@ -1017,6 +1084,7 @@ export declare namespace mythos {
|
|
|
1017
1084
|
rawContractState(request: _21.QueryRawContractStateRequest): Promise<_21.QueryRawContractStateResponse>;
|
|
1018
1085
|
smartContractCall(request: _21.QuerySmartContractCallRequest): Promise<_21.QuerySmartContractCallResponse>;
|
|
1019
1086
|
code(request: _21.QueryCodeRequest): Promise<_21.QueryCodeResponse>;
|
|
1087
|
+
codeInfo(request: _21.QueryCodeInfoRequest): Promise<_21.QueryCodeInfoResponse>;
|
|
1020
1088
|
codes(request?: _21.QueryCodesRequest): Promise<_21.QueryCodesResponse>;
|
|
1021
1089
|
params(request?: _21.QueryParamsRequest): Promise<_21.QueryParamsResponse>;
|
|
1022
1090
|
contractsByCreator(request: _21.QueryContractsByCreatorRequest): Promise<_21.QueryContractsByCreatorResponse>;
|
|
@@ -39,29 +39,81 @@ export declare const mythosAminoConverters: {
|
|
|
39
39
|
};
|
|
40
40
|
"/mythos.wasmx.v1.MsgStoreCode": {
|
|
41
41
|
aminoType: string;
|
|
42
|
-
toAmino: ({ sender, wasmByteCode }: import("
|
|
42
|
+
toAmino: ({ sender, wasmByteCode, metadata }: import("./wasmx/v1/tx").MsgStoreCode) => {
|
|
43
43
|
sender: string;
|
|
44
44
|
wasm_byte_code: Uint8Array;
|
|
45
|
+
metadata: {
|
|
46
|
+
name: string;
|
|
47
|
+
categ: string[];
|
|
48
|
+
icon: string;
|
|
49
|
+
author: string;
|
|
50
|
+
site: string;
|
|
51
|
+
abi: string;
|
|
52
|
+
json_schema: string;
|
|
53
|
+
origin: {
|
|
54
|
+
chain_id: string;
|
|
55
|
+
address: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
45
58
|
};
|
|
46
|
-
fromAmino: ({ sender, wasm_byte_code }: {
|
|
59
|
+
fromAmino: ({ sender, wasm_byte_code, metadata }: {
|
|
47
60
|
sender: string;
|
|
48
61
|
wasm_byte_code: Uint8Array;
|
|
49
|
-
|
|
62
|
+
metadata: {
|
|
63
|
+
name: string;
|
|
64
|
+
categ: string[];
|
|
65
|
+
icon: string;
|
|
66
|
+
author: string;
|
|
67
|
+
site: string;
|
|
68
|
+
abi: string;
|
|
69
|
+
json_schema: string;
|
|
70
|
+
origin: {
|
|
71
|
+
chain_id: string;
|
|
72
|
+
address: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}) => import("./wasmx/v1/tx").MsgStoreCode;
|
|
50
76
|
};
|
|
51
77
|
"/mythos.wasmx.v1.MsgStoreCodeEvm": {
|
|
52
78
|
aminoType: string;
|
|
53
|
-
toAmino: ({ sender, evmByteCode }: import("
|
|
79
|
+
toAmino: ({ sender, evmByteCode, metadata }: import("./wasmx/v1/tx").MsgStoreCodeEvm) => {
|
|
54
80
|
sender: string;
|
|
55
81
|
evm_byte_code: Uint8Array;
|
|
82
|
+
metadata: {
|
|
83
|
+
name: string;
|
|
84
|
+
categ: string[];
|
|
85
|
+
icon: string;
|
|
86
|
+
author: string;
|
|
87
|
+
site: string;
|
|
88
|
+
abi: string;
|
|
89
|
+
json_schema: string;
|
|
90
|
+
origin: {
|
|
91
|
+
chain_id: string;
|
|
92
|
+
address: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
56
95
|
};
|
|
57
|
-
fromAmino: ({ sender, evm_byte_code }: {
|
|
96
|
+
fromAmino: ({ sender, evm_byte_code, metadata }: {
|
|
58
97
|
sender: string;
|
|
59
98
|
evm_byte_code: Uint8Array;
|
|
60
|
-
|
|
99
|
+
metadata: {
|
|
100
|
+
name: string;
|
|
101
|
+
categ: string[];
|
|
102
|
+
icon: string;
|
|
103
|
+
author: string;
|
|
104
|
+
site: string;
|
|
105
|
+
abi: string;
|
|
106
|
+
json_schema: string;
|
|
107
|
+
origin: {
|
|
108
|
+
chain_id: string;
|
|
109
|
+
address: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}) => import("./wasmx/v1/tx").MsgStoreCodeEvm;
|
|
61
113
|
};
|
|
62
114
|
"/mythos.wasmx.v1.MsgInstantiateContract": {
|
|
63
115
|
aminoType: string;
|
|
64
|
-
toAmino: ({ sender, codeId, label, msg, funds }: import("
|
|
116
|
+
toAmino: ({ sender, codeId, label, msg, funds }: import("./wasmx/v1/tx").MsgInstantiateContract) => {
|
|
65
117
|
sender: string;
|
|
66
118
|
code_id: string;
|
|
67
119
|
label: string;
|
|
@@ -80,11 +132,11 @@ export declare const mythosAminoConverters: {
|
|
|
80
132
|
denom: string;
|
|
81
133
|
amount: string;
|
|
82
134
|
}[];
|
|
83
|
-
}) => import("
|
|
135
|
+
}) => import("./wasmx/v1/tx").MsgInstantiateContract;
|
|
84
136
|
};
|
|
85
137
|
"/mythos.wasmx.v1.MsgInstantiateContract2": {
|
|
86
138
|
aminoType: string;
|
|
87
|
-
toAmino: ({ sender, codeId, label, msg, funds, salt, fixMsg }: import("
|
|
139
|
+
toAmino: ({ sender, codeId, label, msg, funds, salt, fixMsg }: import("./wasmx/v1/tx").MsgInstantiateContract2) => {
|
|
88
140
|
sender: string;
|
|
89
141
|
code_id: string;
|
|
90
142
|
label: string;
|
|
@@ -107,11 +159,11 @@ export declare const mythosAminoConverters: {
|
|
|
107
159
|
}[];
|
|
108
160
|
salt: Uint8Array;
|
|
109
161
|
fix_msg: boolean;
|
|
110
|
-
}) => import("
|
|
162
|
+
}) => import("./wasmx/v1/tx").MsgInstantiateContract2;
|
|
111
163
|
};
|
|
112
164
|
"/mythos.wasmx.v1.MsgExecuteContract": {
|
|
113
165
|
aminoType: string;
|
|
114
|
-
toAmino: ({ sender, contract, msg, funds, dependencies }: import("
|
|
166
|
+
toAmino: ({ sender, contract, msg, funds, dependencies }: import("./wasmx/v1/tx").MsgExecuteContract) => {
|
|
115
167
|
sender: string;
|
|
116
168
|
contract: string;
|
|
117
169
|
msg: Uint8Array;
|
|
@@ -130,11 +182,11 @@ export declare const mythosAminoConverters: {
|
|
|
130
182
|
amount: string;
|
|
131
183
|
}[];
|
|
132
184
|
dependencies: string[];
|
|
133
|
-
}) => import("
|
|
185
|
+
}) => import("./wasmx/v1/tx").MsgExecuteContract;
|
|
134
186
|
};
|
|
135
187
|
"/mythos.wasmx.v1.MsgExecuteWithOriginContract": {
|
|
136
188
|
aminoType: string;
|
|
137
|
-
toAmino: ({ origin, sender, contract, msg, funds }: import("
|
|
189
|
+
toAmino: ({ origin, sender, contract, msg, funds }: import("./wasmx/v1/tx").MsgExecuteWithOriginContract) => {
|
|
138
190
|
origin: string;
|
|
139
191
|
sender: string;
|
|
140
192
|
contract: string;
|
|
@@ -153,11 +205,11 @@ export declare const mythosAminoConverters: {
|
|
|
153
205
|
denom: string;
|
|
154
206
|
amount: string;
|
|
155
207
|
}[];
|
|
156
|
-
}) => import("
|
|
208
|
+
}) => import("./wasmx/v1/tx").MsgExecuteWithOriginContract;
|
|
157
209
|
};
|
|
158
210
|
"/mythos.wasmx.v1.MsgExecuteDelegateContract": {
|
|
159
211
|
aminoType: string;
|
|
160
|
-
toAmino: ({ origin, sender, caller, codeContract, storageContract, msg, funds }: import("
|
|
212
|
+
toAmino: ({ origin, sender, caller, codeContract, storageContract, msg, funds }: import("./wasmx/v1/tx").MsgExecuteDelegateContract) => {
|
|
161
213
|
origin: string;
|
|
162
214
|
sender: string;
|
|
163
215
|
caller: string;
|
|
@@ -180,18 +232,18 @@ export declare const mythosAminoConverters: {
|
|
|
180
232
|
denom: string;
|
|
181
233
|
amount: string;
|
|
182
234
|
}[];
|
|
183
|
-
}) => import("
|
|
235
|
+
}) => import("./wasmx/v1/tx").MsgExecuteDelegateContract;
|
|
184
236
|
};
|
|
185
237
|
"/mythos.wasmx.v1.MsgCompileContract": {
|
|
186
238
|
aminoType: string;
|
|
187
|
-
toAmino: ({ sender, codeId }: import("
|
|
239
|
+
toAmino: ({ sender, codeId }: import("./wasmx/v1/tx").MsgCompileContract) => {
|
|
188
240
|
sender: string;
|
|
189
241
|
codeId: string;
|
|
190
242
|
};
|
|
191
243
|
fromAmino: ({ sender, codeId }: {
|
|
192
244
|
sender: string;
|
|
193
245
|
codeId: string;
|
|
194
|
-
}) => import("
|
|
246
|
+
}) => import("./wasmx/v1/tx").MsgCompileContract;
|
|
195
247
|
};
|
|
196
248
|
};
|
|
197
249
|
export declare const mythosProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
@@ -19,15 +19,16 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
19
19
|
mythos: {
|
|
20
20
|
wasmx: {
|
|
21
21
|
v1: {
|
|
22
|
-
contractInfo(request: import("
|
|
23
|
-
contractsByCode(request: import("
|
|
24
|
-
allContractState(request: import("
|
|
25
|
-
rawContractState(request: import("
|
|
26
|
-
smartContractCall(request: import("
|
|
27
|
-
code(request: import("
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
contractInfo(request: import("./wasmx/v1/query").QueryContractInfoRequest): Promise<import("./wasmx/v1/query").QueryContractInfoResponse>;
|
|
23
|
+
contractsByCode(request: import("./wasmx/v1/query").QueryContractsByCodeRequest): Promise<import("./wasmx/v1/query").QueryContractsByCodeResponse>;
|
|
24
|
+
allContractState(request: import("./wasmx/v1/query").QueryAllContractStateRequest): Promise<import("./wasmx/v1/query").QueryAllContractStateResponse>;
|
|
25
|
+
rawContractState(request: import("./wasmx/v1/query").QueryRawContractStateRequest): Promise<import("./wasmx/v1/query").QueryRawContractStateResponse>;
|
|
26
|
+
smartContractCall(request: import("./wasmx/v1/query").QuerySmartContractCallRequest): Promise<import("./wasmx/v1/query").QuerySmartContractCallResponse>;
|
|
27
|
+
code(request: import("./wasmx/v1/query").QueryCodeRequest): Promise<import("./wasmx/v1/query").QueryCodeResponse>;
|
|
28
|
+
codeInfo(request: import("./wasmx/v1/query").QueryCodeInfoRequest): Promise<import("./wasmx/v1/query").QueryCodeInfoResponse>;
|
|
29
|
+
codes(request?: import("./wasmx/v1/query").QueryCodesRequest): Promise<import("./wasmx/v1/query").QueryCodesResponse>;
|
|
30
|
+
params(request?: import("./wasmx/v1/query").QueryParamsRequest): Promise<import("./wasmx/v1/query").QueryParamsResponse>;
|
|
31
|
+
contractsByCreator(request: import("./wasmx/v1/query").QueryContractsByCreatorRequest): Promise<import("./wasmx/v1/query").QueryContractsByCreatorResponse>;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
34
|
websrv: {
|
|
@@ -14,6 +14,32 @@ export interface ContractStorageSDKType {
|
|
|
14
14
|
/** raw value */
|
|
15
15
|
value: Uint8Array;
|
|
16
16
|
}
|
|
17
|
+
/** Metadata for each codeId */
|
|
18
|
+
export interface CodeMetadata {
|
|
19
|
+
name: string;
|
|
20
|
+
/** category paths e.g. "/dapps/history" */
|
|
21
|
+
categ: string[];
|
|
22
|
+
icon: string;
|
|
23
|
+
/** off-chain identifier */
|
|
24
|
+
author: string;
|
|
25
|
+
site: string;
|
|
26
|
+
abi: string;
|
|
27
|
+
jsonSchema: string;
|
|
28
|
+
origin?: CodeOrigin;
|
|
29
|
+
}
|
|
30
|
+
/** Metadata for each codeId */
|
|
31
|
+
export interface CodeMetadataSDKType {
|
|
32
|
+
name: string;
|
|
33
|
+
/** category paths e.g. "/dapps/history" */
|
|
34
|
+
categ: string[];
|
|
35
|
+
icon: string;
|
|
36
|
+
/** off-chain identifier */
|
|
37
|
+
author: string;
|
|
38
|
+
site: string;
|
|
39
|
+
abi: string;
|
|
40
|
+
json_schema: string;
|
|
41
|
+
origin?: CodeOriginSDKType;
|
|
42
|
+
}
|
|
17
43
|
/** CodeInfo is data for the uploaded contract WASM code */
|
|
18
44
|
export interface CodeInfo {
|
|
19
45
|
/** CodeHash is the unique identifier created by hashing the wasm code */
|
|
@@ -27,6 +53,7 @@ export interface CodeInfo {
|
|
|
27
53
|
deps: string[];
|
|
28
54
|
/** Pinned contract */
|
|
29
55
|
pinned: boolean;
|
|
56
|
+
metadata?: CodeMetadata;
|
|
30
57
|
}
|
|
31
58
|
/** CodeInfo is data for the uploaded contract WASM code */
|
|
32
59
|
export interface CodeInfoSDKType {
|
|
@@ -41,16 +68,19 @@ export interface CodeInfoSDKType {
|
|
|
41
68
|
deps: string[];
|
|
42
69
|
/** Pinned contract */
|
|
43
70
|
pinned: boolean;
|
|
71
|
+
metadata?: CodeMetadataSDKType;
|
|
44
72
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
73
|
+
export interface CodeOrigin {
|
|
74
|
+
/** unique chain ID */
|
|
75
|
+
chainId: string;
|
|
76
|
+
/** hex-encoded address */
|
|
77
|
+
address: string;
|
|
49
78
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
79
|
+
export interface CodeOriginSDKType {
|
|
80
|
+
/** unique chain ID */
|
|
81
|
+
chain_id: string;
|
|
82
|
+
/** hex-encoded address */
|
|
83
|
+
address: string;
|
|
54
84
|
}
|
|
55
85
|
/** ContractInfo stores a WASM contract instance */
|
|
56
86
|
export interface ContractInfo {
|
|
@@ -109,6 +139,13 @@ export declare const ContractStorage: {
|
|
|
109
139
|
toJSON(message: ContractStorage): unknown;
|
|
110
140
|
fromPartial(object: Partial<ContractStorage>): ContractStorage;
|
|
111
141
|
};
|
|
142
|
+
export declare const CodeMetadata: {
|
|
143
|
+
encode(message: CodeMetadata, writer?: _m0.Writer): _m0.Writer;
|
|
144
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CodeMetadata;
|
|
145
|
+
fromJSON(object: any): CodeMetadata;
|
|
146
|
+
toJSON(message: CodeMetadata): unknown;
|
|
147
|
+
fromPartial(object: Partial<CodeMetadata>): CodeMetadata;
|
|
148
|
+
};
|
|
112
149
|
export declare const CodeInfo: {
|
|
113
150
|
encode(message: CodeInfo, writer?: _m0.Writer): _m0.Writer;
|
|
114
151
|
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfo;
|
|
@@ -116,12 +153,12 @@ export declare const CodeInfo: {
|
|
|
116
153
|
toJSON(message: CodeInfo): unknown;
|
|
117
154
|
fromPartial(object: Partial<CodeInfo>): CodeInfo;
|
|
118
155
|
};
|
|
119
|
-
export declare const
|
|
120
|
-
encode(message:
|
|
121
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
122
|
-
fromJSON(object: any):
|
|
123
|
-
toJSON(message:
|
|
124
|
-
fromPartial(object: Partial<
|
|
156
|
+
export declare const CodeOrigin: {
|
|
157
|
+
encode(message: CodeOrigin, writer?: _m0.Writer): _m0.Writer;
|
|
158
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CodeOrigin;
|
|
159
|
+
fromJSON(object: any): CodeOrigin;
|
|
160
|
+
toJSON(message: CodeOrigin): unknown;
|
|
161
|
+
fromPartial(object: Partial<CodeOrigin>): CodeOrigin;
|
|
125
162
|
};
|
|
126
163
|
export declare const ContractInfo: {
|
|
127
164
|
encode(message: ContractInfo, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Params, ParamsSDKType } from "./params";
|
|
2
|
-
import {
|
|
2
|
+
import { CodeMetadata, CodeMetadataSDKType, CodeInfo, CodeInfoSDKType, ContractInfo, ContractInfoSDKType, ContractStorage, ContractStorageSDKType } from "./contract";
|
|
3
3
|
import * as _m0 from "protobufjs/minimal";
|
|
4
4
|
import { Long } from "../../../helpers";
|
|
5
5
|
/** GenesisState defines the wasmx module's genesis state. */
|
|
@@ -40,6 +40,7 @@ export interface SystemContract {
|
|
|
40
40
|
initMessage: Uint8Array;
|
|
41
41
|
pinned: boolean;
|
|
42
42
|
native: boolean;
|
|
43
|
+
metadata?: CodeMetadata;
|
|
43
44
|
}
|
|
44
45
|
export interface SystemContractSDKType {
|
|
45
46
|
address: string;
|
|
@@ -47,20 +48,19 @@ export interface SystemContractSDKType {
|
|
|
47
48
|
init_message: Uint8Array;
|
|
48
49
|
pinned: boolean;
|
|
49
50
|
native: boolean;
|
|
51
|
+
metadata?: CodeMetadataSDKType;
|
|
50
52
|
}
|
|
51
53
|
/** Code - for importing and exporting code data */
|
|
52
54
|
export interface Code {
|
|
53
55
|
codeId: Long;
|
|
54
56
|
codeInfo?: CodeInfo;
|
|
55
57
|
codeBytes: Uint8Array;
|
|
56
|
-
codeMetadata?: CodeMetadata;
|
|
57
58
|
}
|
|
58
59
|
/** Code - for importing and exporting code data */
|
|
59
60
|
export interface CodeSDKType {
|
|
60
61
|
code_id: Long;
|
|
61
62
|
code_info?: CodeInfoSDKType;
|
|
62
63
|
code_bytes: Uint8Array;
|
|
63
|
-
code_metadata?: CodeMetadataSDKType;
|
|
64
64
|
}
|
|
65
65
|
/** Contract struct encompasses ContractAddress, ContractInfo, and ContractState */
|
|
66
66
|
export interface Contract {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
2
2
|
import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
-
import { ContractInfo, ContractInfoSDKType, ContractStorage, ContractStorageSDKType } from "./contract";
|
|
3
|
+
import { ContractInfo, ContractInfoSDKType, ContractStorage, ContractStorageSDKType, CodeInfo, CodeInfoSDKType } from "./contract";
|
|
4
4
|
import { Params, ParamsSDKType } from "./params";
|
|
5
5
|
import * as _m0 from "protobufjs/minimal";
|
|
6
6
|
import { Long } from "../../../helpers";
|
|
@@ -216,28 +216,34 @@ export interface QueryCodeRequestSDKType {
|
|
|
216
216
|
/** grpc-gateway_out does not support Go style CodID */
|
|
217
217
|
code_id: Long;
|
|
218
218
|
}
|
|
219
|
-
/** CodeInfoResponse contains code meta data from CodeInfo */
|
|
220
|
-
export interface CodeInfoResponse {
|
|
221
|
-
codeId: Long;
|
|
222
|
-
creator: string;
|
|
223
|
-
dataHash: Uint8Array;
|
|
224
|
-
}
|
|
225
|
-
/** CodeInfoResponse contains code meta data from CodeInfo */
|
|
226
|
-
export interface CodeInfoResponseSDKType {
|
|
227
|
-
code_id: Long;
|
|
228
|
-
creator: string;
|
|
229
|
-
data_hash: Uint8Array;
|
|
230
|
-
}
|
|
231
219
|
/** QueryCodeResponse is the response type for the Query/Code RPC method */
|
|
232
220
|
export interface QueryCodeResponse {
|
|
233
|
-
codeInfo?:
|
|
221
|
+
codeInfo?: CodeInfo;
|
|
234
222
|
data: Uint8Array;
|
|
235
223
|
}
|
|
236
224
|
/** QueryCodeResponse is the response type for the Query/Code RPC method */
|
|
237
225
|
export interface QueryCodeResponseSDKType {
|
|
238
|
-
code_info?:
|
|
226
|
+
code_info?: CodeInfoSDKType;
|
|
239
227
|
data: Uint8Array;
|
|
240
228
|
}
|
|
229
|
+
/** QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method */
|
|
230
|
+
export interface QueryCodeInfoRequest {
|
|
231
|
+
/** grpc-gateway_out does not support Go style CodID */
|
|
232
|
+
codeId: Long;
|
|
233
|
+
}
|
|
234
|
+
/** QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method */
|
|
235
|
+
export interface QueryCodeInfoRequestSDKType {
|
|
236
|
+
/** grpc-gateway_out does not support Go style CodID */
|
|
237
|
+
code_id: Long;
|
|
238
|
+
}
|
|
239
|
+
/** QueryCodeInfoResponse is the response type for the Query/Code RPC method */
|
|
240
|
+
export interface QueryCodeInfoResponse {
|
|
241
|
+
codeInfo?: CodeInfo;
|
|
242
|
+
}
|
|
243
|
+
/** QueryCodeInfoResponse is the response type for the Query/Code RPC method */
|
|
244
|
+
export interface QueryCodeInfoResponseSDKType {
|
|
245
|
+
code_info?: CodeInfoSDKType;
|
|
246
|
+
}
|
|
241
247
|
/** QueryCodesRequest is the request type for the Query/Codes RPC method */
|
|
242
248
|
export interface QueryCodesRequest {
|
|
243
249
|
/** pagination defines an optional pagination for the request. */
|
|
@@ -250,13 +256,13 @@ export interface QueryCodesRequestSDKType {
|
|
|
250
256
|
}
|
|
251
257
|
/** QueryCodesResponse is the response type for the Query/Codes RPC method */
|
|
252
258
|
export interface QueryCodesResponse {
|
|
253
|
-
codeInfos:
|
|
259
|
+
codeInfos: CodeInfo[];
|
|
254
260
|
/** pagination defines the pagination in the response. */
|
|
255
261
|
pagination?: PageResponse;
|
|
256
262
|
}
|
|
257
263
|
/** QueryCodesResponse is the response type for the Query/Codes RPC method */
|
|
258
264
|
export interface QueryCodesResponseSDKType {
|
|
259
|
-
code_infos:
|
|
265
|
+
code_infos: CodeInfoSDKType[];
|
|
260
266
|
/** pagination defines the pagination in the response. */
|
|
261
267
|
pagination?: PageResponseSDKType;
|
|
262
268
|
}
|
|
@@ -393,13 +399,6 @@ export declare const QueryCodeRequest: {
|
|
|
393
399
|
toJSON(message: QueryCodeRequest): unknown;
|
|
394
400
|
fromPartial(object: Partial<QueryCodeRequest>): QueryCodeRequest;
|
|
395
401
|
};
|
|
396
|
-
export declare const CodeInfoResponse: {
|
|
397
|
-
encode(message: CodeInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
398
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse;
|
|
399
|
-
fromJSON(object: any): CodeInfoResponse;
|
|
400
|
-
toJSON(message: CodeInfoResponse): unknown;
|
|
401
|
-
fromPartial(object: Partial<CodeInfoResponse>): CodeInfoResponse;
|
|
402
|
-
};
|
|
403
402
|
export declare const QueryCodeResponse: {
|
|
404
403
|
encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
405
404
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse;
|
|
@@ -407,6 +406,20 @@ export declare const QueryCodeResponse: {
|
|
|
407
406
|
toJSON(message: QueryCodeResponse): unknown;
|
|
408
407
|
fromPartial(object: Partial<QueryCodeResponse>): QueryCodeResponse;
|
|
409
408
|
};
|
|
409
|
+
export declare const QueryCodeInfoRequest: {
|
|
410
|
+
encode(message: QueryCodeInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
411
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeInfoRequest;
|
|
412
|
+
fromJSON(object: any): QueryCodeInfoRequest;
|
|
413
|
+
toJSON(message: QueryCodeInfoRequest): unknown;
|
|
414
|
+
fromPartial(object: Partial<QueryCodeInfoRequest>): QueryCodeInfoRequest;
|
|
415
|
+
};
|
|
416
|
+
export declare const QueryCodeInfoResponse: {
|
|
417
|
+
encode(message: QueryCodeInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
418
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeInfoResponse;
|
|
419
|
+
fromJSON(object: any): QueryCodeInfoResponse;
|
|
420
|
+
toJSON(message: QueryCodeInfoResponse): unknown;
|
|
421
|
+
fromPartial(object: Partial<QueryCodeInfoResponse>): QueryCodeInfoResponse;
|
|
422
|
+
};
|
|
410
423
|
export declare const QueryCodesRequest: {
|
|
411
424
|
encode(message: QueryCodesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
412
425
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Rpc } from "../../../helpers";
|
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractCallRequest, QuerySmartContractCallResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse } from "./query";
|
|
3
|
+
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractCallRequest, QuerySmartContractCallResponse, QueryCodeRequest, QueryCodeResponse, QueryCodeInfoRequest, QueryCodeInfoResponse, QueryCodesRequest, QueryCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse } from "./query";
|
|
4
4
|
/** Query provides defines the gRPC querier service */
|
|
5
5
|
export interface Query {
|
|
6
6
|
/** ContractInfo gets the contract meta data */
|
|
@@ -15,6 +15,8 @@ export interface Query {
|
|
|
15
15
|
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse>;
|
|
16
16
|
/** Code gets the binary code and metadata for a singe wasm code */
|
|
17
17
|
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
18
|
+
/** CodeInfo gets the binary code and metadata for a singe wasm code */
|
|
19
|
+
codeInfo(request: QueryCodeInfoRequest): Promise<QueryCodeInfoResponse>;
|
|
18
20
|
/** Codes gets the metadata for all stored wasm codes */
|
|
19
21
|
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
|
20
22
|
/** Params gets the module params */
|
|
@@ -31,6 +33,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
31
33
|
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
|
32
34
|
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse>;
|
|
33
35
|
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
36
|
+
codeInfo(request: QueryCodeInfoRequest): Promise<QueryCodeInfoResponse>;
|
|
34
37
|
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
|
35
38
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
36
39
|
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
|
|
@@ -42,6 +45,7 @@ export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
|
42
45
|
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
|
43
46
|
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse>;
|
|
44
47
|
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
48
|
+
codeInfo(request: QueryCodeInfoRequest): Promise<QueryCodeInfoResponse>;
|
|
45
49
|
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
|
46
50
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
47
51
|
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
|
|
@@ -5,6 +5,19 @@ export interface AminoMsgStoreCode extends AminoMsg {
|
|
|
5
5
|
value: {
|
|
6
6
|
sender: string;
|
|
7
7
|
wasm_byte_code: Uint8Array;
|
|
8
|
+
metadata: {
|
|
9
|
+
name: string;
|
|
10
|
+
categ: string[];
|
|
11
|
+
icon: string;
|
|
12
|
+
author: string;
|
|
13
|
+
site: string;
|
|
14
|
+
abi: string;
|
|
15
|
+
json_schema: string;
|
|
16
|
+
origin: {
|
|
17
|
+
chain_id: string;
|
|
18
|
+
address: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
8
21
|
};
|
|
9
22
|
}
|
|
10
23
|
export interface AminoMsgStoreCodeEvm extends AminoMsg {
|
|
@@ -12,6 +25,19 @@ export interface AminoMsgStoreCodeEvm extends AminoMsg {
|
|
|
12
25
|
value: {
|
|
13
26
|
sender: string;
|
|
14
27
|
evm_byte_code: Uint8Array;
|
|
28
|
+
metadata: {
|
|
29
|
+
name: string;
|
|
30
|
+
categ: string[];
|
|
31
|
+
icon: string;
|
|
32
|
+
author: string;
|
|
33
|
+
site: string;
|
|
34
|
+
abi: string;
|
|
35
|
+
json_schema: string;
|
|
36
|
+
origin: {
|
|
37
|
+
chain_id: string;
|
|
38
|
+
address: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
15
41
|
};
|
|
16
42
|
}
|
|
17
43
|
export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
@@ -93,13 +119,13 @@ export interface AminoMsgCompileContract extends AminoMsg {
|
|
|
93
119
|
export declare const AminoConverter: {
|
|
94
120
|
"/mythos.wasmx.v1.MsgStoreCode": {
|
|
95
121
|
aminoType: string;
|
|
96
|
-
toAmino: ({ sender, wasmByteCode }: MsgStoreCode) => AminoMsgStoreCode["value"];
|
|
97
|
-
fromAmino: ({ sender, wasm_byte_code }: AminoMsgStoreCode["value"]) => MsgStoreCode;
|
|
122
|
+
toAmino: ({ sender, wasmByteCode, metadata }: MsgStoreCode) => AminoMsgStoreCode["value"];
|
|
123
|
+
fromAmino: ({ sender, wasm_byte_code, metadata }: AminoMsgStoreCode["value"]) => MsgStoreCode;
|
|
98
124
|
};
|
|
99
125
|
"/mythos.wasmx.v1.MsgStoreCodeEvm": {
|
|
100
126
|
aminoType: string;
|
|
101
|
-
toAmino: ({ sender, evmByteCode }: MsgStoreCodeEvm) => AminoMsgStoreCodeEvm["value"];
|
|
102
|
-
fromAmino: ({ sender, evm_byte_code }: AminoMsgStoreCodeEvm["value"]) => MsgStoreCodeEvm;
|
|
127
|
+
toAmino: ({ sender, evmByteCode, metadata }: MsgStoreCodeEvm) => AminoMsgStoreCodeEvm["value"];
|
|
128
|
+
fromAmino: ({ sender, evm_byte_code, metadata }: AminoMsgStoreCodeEvm["value"]) => MsgStoreCodeEvm;
|
|
103
129
|
};
|
|
104
130
|
"/mythos.wasmx.v1.MsgInstantiateContract": {
|
|
105
131
|
aminoType: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CodeMetadata, CodeMetadataSDKType } from "./contract";
|
|
1
2
|
import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
2
3
|
import * as _m0 from "protobufjs/minimal";
|
|
3
4
|
import { Long } from "../../../helpers";
|
|
@@ -7,6 +8,7 @@ export interface MsgStoreCode {
|
|
|
7
8
|
sender: string;
|
|
8
9
|
/** WASMByteCode can be raw or gzip compressed */
|
|
9
10
|
wasmByteCode: Uint8Array;
|
|
11
|
+
metadata?: CodeMetadata;
|
|
10
12
|
}
|
|
11
13
|
/** MsgStoreCode submit Wasm code to the system */
|
|
12
14
|
export interface MsgStoreCodeSDKType {
|
|
@@ -14,6 +16,7 @@ export interface MsgStoreCodeSDKType {
|
|
|
14
16
|
sender: string;
|
|
15
17
|
/** WASMByteCode can be raw or gzip compressed */
|
|
16
18
|
wasm_byte_code: Uint8Array;
|
|
19
|
+
metadata?: CodeMetadataSDKType;
|
|
17
20
|
}
|
|
18
21
|
/** MsgStoreCodeResponse returns store result data. */
|
|
19
22
|
export interface MsgStoreCodeResponse {
|
|
@@ -35,6 +38,7 @@ export interface MsgStoreCodeEvm {
|
|
|
35
38
|
sender: string;
|
|
36
39
|
/** EVM bytecode */
|
|
37
40
|
evmByteCode: Uint8Array;
|
|
41
|
+
metadata?: CodeMetadata;
|
|
38
42
|
}
|
|
39
43
|
/** MsgStoreCodeEvm submit Wasm code to the system */
|
|
40
44
|
export interface MsgStoreCodeEvmSDKType {
|
|
@@ -42,6 +46,7 @@ export interface MsgStoreCodeEvmSDKType {
|
|
|
42
46
|
sender: string;
|
|
43
47
|
/** EVM bytecode */
|
|
44
48
|
evm_byte_code: Uint8Array;
|
|
49
|
+
metadata?: CodeMetadataSDKType;
|
|
45
50
|
}
|
|
46
51
|
/** MsgStoreCodeEvmResponse returns store result data. */
|
|
47
52
|
export interface MsgStoreCodeEvmResponse {
|