@ark-us/wasmxjs 0.0.4 → 0.0.6
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/mythos/wasmx/v1/contract.js +176 -29
- package/main/codegen/mythos/wasmx/v1/genesis.js +14 -14
- package/main/codegen/mythos/wasmx/v1/query.js +81 -55
- package/main/codegen/mythos/wasmx/v1/query.rpc.Query.js +13 -0
- package/main/codegen/mythos/wasmx/v1/tx.amino.js +64 -8
- package/main/codegen/mythos/wasmx/v1/tx.js +25 -4
- package/module/codegen/mythos/wasmx/v1/contract.js +151 -21
- package/module/codegen/mythos/wasmx/v1/genesis.js +15 -15
- package/module/codegen/mythos/wasmx/v1/query.js +77 -53
- package/module/codegen/mythos/wasmx/v1/query.rpc.Query.js +10 -1
- package/module/codegen/mythos/wasmx/v1/tx.amino.js +64 -8
- package/module/codegen/mythos/wasmx/v1/tx.js +25 -4
- package/package.json +1 -1
- package/src/codegen/mythos/wasmx/v1/contract.ts +228 -33
- package/src/codegen/mythos/wasmx/v1/genesis.ts +19 -19
- package/src/codegen/mythos/wasmx/v1/query.rpc.Query.ts +15 -1
- package/src/codegen/mythos/wasmx/v1/query.ts +123 -82
- package/src/codegen/mythos/wasmx/v1/tx.amino.ts +90 -8
- package/src/codegen/mythos/wasmx/v1/tx.ts +33 -4
- 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
|
@@ -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(".").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(".").MsgStoreCode;
|
|
50
76
|
};
|
|
51
77
|
"/mythos.wasmx.v1.MsgStoreCodeEvm": {
|
|
52
78
|
aminoType: string;
|
|
53
|
-
toAmino: ({ sender, evmByteCode }: import("
|
|
79
|
+
toAmino: ({ sender, evmByteCode, metadata }: import(".").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(".").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(".").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(".").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(".").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(".").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(".").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(".").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(".").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(".").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(".").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(".").MsgExecuteDelegateContract;
|
|
184
236
|
};
|
|
185
237
|
"/mythos.wasmx.v1.MsgCompileContract": {
|
|
186
238
|
aminoType: string;
|
|
187
|
-
toAmino: ({ sender, codeId }: import("
|
|
239
|
+
toAmino: ({ sender, codeId }: import(".").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(".").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(".").QueryContractInfoRequest): Promise<import(".").QueryContractInfoResponse>;
|
|
23
|
+
contractsByCode(request: import(".").QueryContractsByCodeRequest): Promise<import(".").QueryContractsByCodeResponse>;
|
|
24
|
+
allContractState(request: import(".").QueryAllContractStateRequest): Promise<import(".").QueryAllContractStateResponse>;
|
|
25
|
+
rawContractState(request: import(".").QueryRawContractStateRequest): Promise<import(".").QueryRawContractStateResponse>;
|
|
26
|
+
smartContractCall(request: import(".").QuerySmartContractCallRequest): Promise<import(".").QuerySmartContractCallResponse>;
|
|
27
|
+
code(request: import(".").QueryCodeRequest): Promise<import(".").QueryCodeResponse>;
|
|
28
|
+
codeInfo(request: import(".").QueryCodeInfoRequest): Promise<import(".").QueryCodeInfoResponse>;
|
|
29
|
+
codes(request?: import(".").QueryCodesRequest): Promise<import(".").QueryCodesResponse>;
|
|
30
|
+
params(request?: import(".").QueryParamsRequest): Promise<import(".").QueryParamsResponse>;
|
|
31
|
+
contractsByCreator(request: import(".").QueryContractsByCreatorRequest): Promise<import(".").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>;
|