@ark-us/wasmxjs 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/main/codegen/wasmx/bundle.js +26 -20
- package/main/codegen/wasmx/client.js +6 -6
- package/main/codegen/wasmx/index.js +9 -9
- package/main/codegen/wasmx/rpc.query.js +16 -10
- package/main/codegen/wasmx/rpc.tx.js +18 -12
- package/main/codegen/wasmx/wasmx/{contract.js → v1/contract.js} +1 -1
- package/main/codegen/wasmx/wasmx/{genesis.js → v1/genesis.js} +1 -1
- package/main/codegen/wasmx/wasmx/{query.js → v1/query.js} +3 -3
- package/main/codegen/wasmx/wasmx/{query.rpc.Query.js → v1/query.rpc.Query.js} +9 -9
- package/main/codegen/wasmx/wasmx/{tx.amino.js → v1/tx.amino.js} +17 -17
- package/main/codegen/wasmx/wasmx/{tx.js → v1/tx.js} +2 -2
- package/main/codegen/wasmx/wasmx/{tx.registry.js → v1/tx.registry.js} +41 -41
- package/main/codegen/wasmx/wasmx/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
- package/main/codegen/wasmx/websrv/{genesis.js → v1/genesis.js} +1 -1
- package/main/codegen/wasmx/websrv/{params.js → v1/params.js} +1 -1
- package/main/codegen/wasmx/websrv/{proposal.js → v1/proposal.js} +1 -1
- package/main/codegen/wasmx/websrv/{query.js → v1/query.js} +2 -2
- package/main/codegen/wasmx/websrv/{query.rpc.Query.js → v1/query.rpc.Query.js} +7 -7
- package/main/codegen/wasmx/websrv/{tx.amino.js → v1/tx.amino.js} +7 -7
- package/main/codegen/wasmx/websrv/{tx.js → v1/tx.js} +1 -1
- package/main/codegen/wasmx/websrv/{tx.registry.js → v1/tx.registry.js} +16 -16
- package/main/codegen/wasmx/websrv/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +3 -3
- package/module/codegen/wasmx/bundle.js +26 -20
- package/module/codegen/wasmx/client.js +6 -6
- package/module/codegen/wasmx/index.js +9 -9
- package/module/codegen/wasmx/rpc.query.js +6 -2
- package/module/codegen/wasmx/rpc.tx.js +6 -2
- package/module/codegen/wasmx/wasmx/{contract.js → v1/contract.js} +1 -1
- package/module/codegen/wasmx/wasmx/{genesis.js → v1/genesis.js} +1 -1
- package/module/codegen/wasmx/wasmx/{query.js → v1/query.js} +3 -3
- package/module/codegen/wasmx/wasmx/{query.rpc.Query.js → v1/query.rpc.Query.js} +9 -9
- package/module/codegen/wasmx/wasmx/{tx.amino.js → v1/tx.amino.js} +17 -17
- package/module/codegen/wasmx/wasmx/{tx.js → v1/tx.js} +2 -2
- package/module/codegen/wasmx/wasmx/{tx.registry.js → v1/tx.registry.js} +41 -41
- package/module/codegen/wasmx/wasmx/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
- package/module/codegen/wasmx/websrv/{genesis.js → v1/genesis.js} +1 -1
- package/module/codegen/wasmx/websrv/{params.js → v1/params.js} +1 -1
- package/module/codegen/wasmx/websrv/{proposal.js → v1/proposal.js} +1 -1
- package/module/codegen/wasmx/websrv/{query.js → v1/query.js} +2 -2
- package/module/codegen/wasmx/websrv/{query.rpc.Query.js → v1/query.rpc.Query.js} +7 -7
- package/module/codegen/wasmx/websrv/{tx.amino.js → v1/tx.amino.js} +7 -7
- package/module/codegen/wasmx/websrv/{tx.js → v1/tx.js} +1 -1
- package/module/codegen/wasmx/websrv/{tx.registry.js → v1/tx.registry.js} +16 -16
- package/module/codegen/wasmx/websrv/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +3 -3
- package/package.json +1 -1
- package/src/codegen/wasmx/bundle.ts +42 -38
- package/src/codegen/wasmx/client.ts +7 -7
- package/src/codegen/wasmx/index.ts +9 -9
- package/src/codegen/wasmx/rpc.query.ts +6 -2
- package/src/codegen/wasmx/rpc.tx.ts +6 -2
- package/src/codegen/wasmx/wasmx/{contract.ts → v1/contract.ts} +1 -1
- package/src/codegen/wasmx/wasmx/{genesis.ts → v1/genesis.ts} +1 -1
- package/src/codegen/wasmx/wasmx/{query.rpc.Query.ts → v1/query.rpc.Query.ts} +10 -10
- package/src/codegen/wasmx/wasmx/{query.ts → v1/query.ts} +3 -3
- package/src/codegen/wasmx/wasmx/{tx.amino.ts → v1/tx.amino.ts} +25 -25
- package/src/codegen/wasmx/wasmx/{tx.registry.ts → v1/tx.registry.ts} +41 -41
- package/src/codegen/wasmx/wasmx/{tx.rpc.msg.ts → v1/tx.rpc.msg.ts} +9 -9
- package/src/codegen/wasmx/wasmx/{tx.ts → v1/tx.ts} +2 -2
- package/src/codegen/wasmx/websrv/{genesis.ts → v1/genesis.ts} +1 -1
- package/src/codegen/wasmx/websrv/{params.ts → v1/params.ts} +1 -1
- package/src/codegen/wasmx/websrv/{proposal.ts → v1/proposal.ts} +1 -1
- package/src/codegen/wasmx/websrv/{query.rpc.Query.ts → v1/query.rpc.Query.ts} +8 -8
- package/src/codegen/wasmx/websrv/{query.ts → v1/query.ts} +2 -2
- package/src/codegen/wasmx/websrv/{tx.amino.ts → v1/tx.amino.ts} +10 -10
- package/src/codegen/wasmx/websrv/{tx.registry.ts → v1/tx.registry.ts} +16 -16
- package/src/codegen/wasmx/websrv/{tx.rpc.msg.ts → v1/tx.rpc.msg.ts} +4 -4
- package/src/codegen/wasmx/websrv/{tx.ts → v1/tx.ts} +1 -1
- package/types/codegen/wasmx/bundle.d.ts +979 -967
- package/types/codegen/wasmx/client.d.ts +33 -33
- package/types/codegen/wasmx/rpc.query.d.ts +20 -16
- package/types/codegen/wasmx/rpc.tx.d.ts +6 -2
- package/types/codegen/wasmx/wasmx/tx.amino.d.ts +16 -16
- package/types/codegen/wasmx/wasmx/v1/contract.d.ts +139 -0
- package/types/codegen/wasmx/wasmx/v1/genesis.d.ts +121 -0
- package/types/codegen/wasmx/wasmx/v1/params.d.ts +14 -0
- package/types/codegen/wasmx/wasmx/v1/query.d.ts +451 -0
- package/types/codegen/wasmx/wasmx/v1/query.rpc.Query.d.ts +48 -0
- package/types/codegen/wasmx/wasmx/v1/tx.amino.d.ts +134 -0
- package/types/codegen/wasmx/wasmx/v1/tx.d.ts +404 -0
- package/types/codegen/wasmx/wasmx/v1/tx.registry.d.ts +176 -0
- package/types/codegen/wasmx/wasmx/v1/tx.rpc.msg.d.ts +39 -0
- package/types/codegen/wasmx/websrv/v1/genesis.d.ts +17 -0
- package/types/codegen/wasmx/websrv/v1/params.d.ts +16 -0
- package/types/codegen/wasmx/websrv/v1/proposal.d.ts +65 -0
- package/types/codegen/wasmx/websrv/v1/query.d.ts +315 -0
- package/types/codegen/wasmx/websrv/v1/query.rpc.Query.d.ts +40 -0
- package/types/codegen/wasmx/websrv/v1/tx.amino.d.ts +41 -0
- package/types/codegen/wasmx/websrv/v1/tx.d.ts +90 -0
- package/types/codegen/wasmx/websrv/v1/tx.registry.d.ts +76 -0
- package/types/codegen/wasmx/websrv/v1/tx.rpc.msg.d.ts +18 -0
- /package/main/codegen/wasmx/wasmx/{params.js → v1/params.js} +0 -0
- /package/module/codegen/wasmx/wasmx/{params.js → v1/params.js} +0 -0
- /package/src/codegen/wasmx/wasmx/{params.ts → v1/params.ts} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { AminoMsg } from "@cosmjs/amino";
|
|
2
2
|
import { fromUtf8, toUtf8 } from "@cosmjs/encoding";
|
|
3
|
-
import { Long } from "
|
|
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: "/wasmx.wasmx.MsgStoreCode";
|
|
6
|
+
type: "/wasmx.wasmx.v1.MsgStoreCode";
|
|
7
7
|
value: {
|
|
8
8
|
sender: string;
|
|
9
9
|
wasm_byte_code: Uint8Array;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export interface AminoMsgStoreCodeEvm extends AminoMsg {
|
|
13
|
-
type: "/wasmx.wasmx.MsgStoreCodeEvm";
|
|
13
|
+
type: "/wasmx.wasmx.v1.MsgStoreCodeEvm";
|
|
14
14
|
value: {
|
|
15
15
|
sender: string;
|
|
16
16
|
evm_byte_code: Uint8Array;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
20
|
-
type: "/wasmx.wasmx.MsgInstantiateContract";
|
|
20
|
+
type: "/wasmx.wasmx.v1.MsgInstantiateContract";
|
|
21
21
|
value: {
|
|
22
22
|
sender: string;
|
|
23
23
|
code_id: string;
|
|
@@ -30,7 +30,7 @@ export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
33
|
-
type: "/wasmx.wasmx.MsgInstantiateContract2";
|
|
33
|
+
type: "/wasmx.wasmx.v1.MsgInstantiateContract2";
|
|
34
34
|
value: {
|
|
35
35
|
sender: string;
|
|
36
36
|
code_id: string;
|
|
@@ -45,7 +45,7 @@ export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
export interface AminoMsgExecuteContract extends AminoMsg {
|
|
48
|
-
type: "/wasmx.wasmx.MsgExecuteContract";
|
|
48
|
+
type: "/wasmx.wasmx.v1.MsgExecuteContract";
|
|
49
49
|
value: {
|
|
50
50
|
sender: string;
|
|
51
51
|
contract: string;
|
|
@@ -58,7 +58,7 @@ export interface AminoMsgExecuteContract extends AminoMsg {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
61
|
-
type: "/wasmx.wasmx.MsgExecuteWithOriginContract";
|
|
61
|
+
type: "/wasmx.wasmx.v1.MsgExecuteWithOriginContract";
|
|
62
62
|
value: {
|
|
63
63
|
origin: string;
|
|
64
64
|
sender: string;
|
|
@@ -71,7 +71,7 @@ export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
74
|
-
type: "/wasmx.wasmx.MsgExecuteDelegateContract";
|
|
74
|
+
type: "/wasmx.wasmx.v1.MsgExecuteDelegateContract";
|
|
75
75
|
value: {
|
|
76
76
|
origin: string;
|
|
77
77
|
sender: string;
|
|
@@ -86,15 +86,15 @@ export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
export interface AminoMsgCompileContract extends AminoMsg {
|
|
89
|
-
type: "/wasmx.wasmx.MsgCompileContract";
|
|
89
|
+
type: "/wasmx.wasmx.v1.MsgCompileContract";
|
|
90
90
|
value: {
|
|
91
91
|
sender: string;
|
|
92
92
|
codeId: string;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
export const AminoConverter = {
|
|
96
|
-
"/wasmx.wasmx.MsgStoreCode": {
|
|
97
|
-
aminoType: "/wasmx.wasmx.MsgStoreCode",
|
|
96
|
+
"/wasmx.wasmx.v1.MsgStoreCode": {
|
|
97
|
+
aminoType: "/wasmx.wasmx.v1.MsgStoreCode",
|
|
98
98
|
toAmino: ({
|
|
99
99
|
sender,
|
|
100
100
|
wasmByteCode
|
|
@@ -114,8 +114,8 @@ export const AminoConverter = {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
|
-
"/wasmx.wasmx.MsgStoreCodeEvm": {
|
|
118
|
-
aminoType: "/wasmx.wasmx.MsgStoreCodeEvm",
|
|
117
|
+
"/wasmx.wasmx.v1.MsgStoreCodeEvm": {
|
|
118
|
+
aminoType: "/wasmx.wasmx.v1.MsgStoreCodeEvm",
|
|
119
119
|
toAmino: ({
|
|
120
120
|
sender,
|
|
121
121
|
evmByteCode
|
|
@@ -135,8 +135,8 @@ export const AminoConverter = {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
-
"/wasmx.wasmx.MsgInstantiateContract": {
|
|
139
|
-
aminoType: "/wasmx.wasmx.MsgInstantiateContract",
|
|
138
|
+
"/wasmx.wasmx.v1.MsgInstantiateContract": {
|
|
139
|
+
aminoType: "/wasmx.wasmx.v1.MsgInstantiateContract",
|
|
140
140
|
toAmino: ({
|
|
141
141
|
sender,
|
|
142
142
|
codeId,
|
|
@@ -174,8 +174,8 @@ export const AminoConverter = {
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
-
"/wasmx.wasmx.MsgInstantiateContract2": {
|
|
178
|
-
aminoType: "/wasmx.wasmx.MsgInstantiateContract2",
|
|
177
|
+
"/wasmx.wasmx.v1.MsgInstantiateContract2": {
|
|
178
|
+
aminoType: "/wasmx.wasmx.v1.MsgInstantiateContract2",
|
|
179
179
|
toAmino: ({
|
|
180
180
|
sender,
|
|
181
181
|
codeId,
|
|
@@ -221,8 +221,8 @@ export const AminoConverter = {
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
|
-
"/wasmx.wasmx.MsgExecuteContract": {
|
|
225
|
-
aminoType: "/wasmx.wasmx.MsgExecuteContract",
|
|
224
|
+
"/wasmx.wasmx.v1.MsgExecuteContract": {
|
|
225
|
+
aminoType: "/wasmx.wasmx.v1.MsgExecuteContract",
|
|
226
226
|
toAmino: ({
|
|
227
227
|
sender,
|
|
228
228
|
contract,
|
|
@@ -260,8 +260,8 @@ export const AminoConverter = {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
"/wasmx.wasmx.MsgExecuteWithOriginContract": {
|
|
264
|
-
aminoType: "/wasmx.wasmx.MsgExecuteWithOriginContract",
|
|
263
|
+
"/wasmx.wasmx.v1.MsgExecuteWithOriginContract": {
|
|
264
|
+
aminoType: "/wasmx.wasmx.v1.MsgExecuteWithOriginContract",
|
|
265
265
|
toAmino: ({
|
|
266
266
|
origin,
|
|
267
267
|
sender,
|
|
@@ -299,8 +299,8 @@ export const AminoConverter = {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
|
-
"/wasmx.wasmx.MsgExecuteDelegateContract": {
|
|
303
|
-
aminoType: "/wasmx.wasmx.MsgExecuteDelegateContract",
|
|
302
|
+
"/wasmx.wasmx.v1.MsgExecuteDelegateContract": {
|
|
303
|
+
aminoType: "/wasmx.wasmx.v1.MsgExecuteDelegateContract",
|
|
304
304
|
toAmino: ({
|
|
305
305
|
origin,
|
|
306
306
|
sender,
|
|
@@ -346,8 +346,8 @@ export const AminoConverter = {
|
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
|
-
"/wasmx.wasmx.MsgCompileContract": {
|
|
350
|
-
aminoType: "/wasmx.wasmx.MsgCompileContract",
|
|
349
|
+
"/wasmx.wasmx.v1.MsgCompileContract": {
|
|
350
|
+
aminoType: "/wasmx.wasmx.v1.MsgCompileContract",
|
|
351
351
|
toAmino: ({
|
|
352
352
|
sender,
|
|
353
353
|
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]> = [["/wasmx.wasmx.MsgStoreCode", MsgStoreCode], ["/wasmx.wasmx.MsgStoreCodeEvm", MsgStoreCodeEvm], ["/wasmx.wasmx.MsgInstantiateContract", MsgInstantiateContract], ["/wasmx.wasmx.MsgInstantiateContract2", MsgInstantiateContract2], ["/wasmx.wasmx.MsgExecuteContract", MsgExecuteContract], ["/wasmx.wasmx.MsgExecuteWithOriginContract", MsgExecuteWithOriginContract], ["/wasmx.wasmx.MsgExecuteDelegateContract", MsgExecuteDelegateContract], ["/wasmx.wasmx.MsgCompileContract", MsgCompileContract]];
|
|
3
|
+
export const registry: ReadonlyArray<[string, GeneratedType]> = [["/wasmx.wasmx.v1.MsgStoreCode", MsgStoreCode], ["/wasmx.wasmx.v1.MsgStoreCodeEvm", MsgStoreCodeEvm], ["/wasmx.wasmx.v1.MsgInstantiateContract", MsgInstantiateContract], ["/wasmx.wasmx.v1.MsgInstantiateContract2", MsgInstantiateContract2], ["/wasmx.wasmx.v1.MsgExecuteContract", MsgExecuteContract], ["/wasmx.wasmx.v1.MsgExecuteWithOriginContract", MsgExecuteWithOriginContract], ["/wasmx.wasmx.v1.MsgExecuteDelegateContract", MsgExecuteDelegateContract], ["/wasmx.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: "/wasmx.wasmx.MsgStoreCode",
|
|
13
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCodeEvm",
|
|
20
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract",
|
|
27
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract2",
|
|
34
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteContract",
|
|
41
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteWithOriginContract",
|
|
48
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteDelegateContract",
|
|
55
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgCompileContract",
|
|
62
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCode",
|
|
71
|
+
typeUrl: "/wasmx.wasmx.v1.MsgStoreCode",
|
|
72
72
|
value
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
|
|
76
76
|
storeCodeEvm(value: MsgStoreCodeEvm) {
|
|
77
77
|
return {
|
|
78
|
-
typeUrl: "/wasmx.wasmx.MsgStoreCodeEvm",
|
|
78
|
+
typeUrl: "/wasmx.wasmx.v1.MsgStoreCodeEvm",
|
|
79
79
|
value
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
|
|
83
83
|
instantiateContract(value: MsgInstantiateContract) {
|
|
84
84
|
return {
|
|
85
|
-
typeUrl: "/wasmx.wasmx.MsgInstantiateContract",
|
|
85
|
+
typeUrl: "/wasmx.wasmx.v1.MsgInstantiateContract",
|
|
86
86
|
value
|
|
87
87
|
};
|
|
88
88
|
},
|
|
89
89
|
|
|
90
90
|
instantiateContract2(value: MsgInstantiateContract2) {
|
|
91
91
|
return {
|
|
92
|
-
typeUrl: "/wasmx.wasmx.MsgInstantiateContract2",
|
|
92
|
+
typeUrl: "/wasmx.wasmx.v1.MsgInstantiateContract2",
|
|
93
93
|
value
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
|
|
97
97
|
executeContract(value: MsgExecuteContract) {
|
|
98
98
|
return {
|
|
99
|
-
typeUrl: "/wasmx.wasmx.MsgExecuteContract",
|
|
99
|
+
typeUrl: "/wasmx.wasmx.v1.MsgExecuteContract",
|
|
100
100
|
value
|
|
101
101
|
};
|
|
102
102
|
},
|
|
103
103
|
|
|
104
104
|
executeWithOriginContract(value: MsgExecuteWithOriginContract) {
|
|
105
105
|
return {
|
|
106
|
-
typeUrl: "/wasmx.wasmx.MsgExecuteWithOriginContract",
|
|
106
|
+
typeUrl: "/wasmx.wasmx.v1.MsgExecuteWithOriginContract",
|
|
107
107
|
value
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
110
|
|
|
111
111
|
executeDelegateContract(value: MsgExecuteDelegateContract) {
|
|
112
112
|
return {
|
|
113
|
-
typeUrl: "/wasmx.wasmx.MsgExecuteDelegateContract",
|
|
113
|
+
typeUrl: "/wasmx.wasmx.v1.MsgExecuteDelegateContract",
|
|
114
114
|
value
|
|
115
115
|
};
|
|
116
116
|
},
|
|
117
117
|
|
|
118
118
|
compileContract(value: MsgCompileContract) {
|
|
119
119
|
return {
|
|
120
|
-
typeUrl: "/wasmx.wasmx.MsgCompileContract",
|
|
120
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCode",
|
|
129
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCodeEvm",
|
|
136
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract",
|
|
143
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract2",
|
|
150
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteContract",
|
|
157
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteWithOriginContract",
|
|
164
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteDelegateContract",
|
|
171
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgCompileContract",
|
|
178
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCode",
|
|
187
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCodeEvm",
|
|
194
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract",
|
|
201
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract2",
|
|
208
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteContract",
|
|
215
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteWithOriginContract",
|
|
222
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteDelegateContract",
|
|
229
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgCompileContract",
|
|
236
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCode",
|
|
245
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgStoreCodeEvm",
|
|
252
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract",
|
|
259
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgInstantiateContract2",
|
|
266
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteContract",
|
|
273
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteWithOriginContract",
|
|
280
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgExecuteDelegateContract",
|
|
287
|
+
typeUrl: "/wasmx.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: "/wasmx.wasmx.MsgCompileContract",
|
|
294
|
+
typeUrl: "/wasmx.wasmx.v1.MsgCompileContract",
|
|
295
295
|
value: MsgCompileContract.fromPartial(value)
|
|
296
296
|
};
|
|
297
297
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rpc } from "
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
3
|
import { MsgStoreCode, MsgStoreCodeResponse, MsgStoreCodeEvm, MsgStoreCodeEvmResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgExecuteContract, MsgExecuteContractResponse, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgExecuteDelegateContractResponse, MsgCompileContract, MsgCompileContractResponse } from "./tx";
|
|
4
4
|
/** Msg defines the wasm Msg service. */
|
|
@@ -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("wasmx.wasmx.Msg", "StoreCode", data);
|
|
54
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "StoreCodeEvm", data);
|
|
60
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "InstantiateContract", data);
|
|
66
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "InstantiateContract2", data);
|
|
72
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "ExecuteContract", data);
|
|
78
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "ExecuteWithOriginContract", data);
|
|
84
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "ExecuteDelegateContract", data);
|
|
90
|
+
const promise = this.rpc.request("wasmx.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("wasmx.wasmx.Msg", "CompileContract", data);
|
|
96
|
+
const promise = this.rpc.request("wasmx.wasmx.v1.Msg", "CompileContract", data);
|
|
97
97
|
return promise.then(data => MsgCompileContractResponse.decode(new _m0.Reader(data)));
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Coin, CoinSDKType } from "
|
|
1
|
+
import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
|
-
import { isSet, bytesFromBase64, base64FromBytes, Long } from "
|
|
3
|
+
import { isSet, bytesFromBase64, base64FromBytes, Long } from "../../../helpers";
|
|
4
4
|
/** MsgStoreCode submit Wasm code to the system */
|
|
5
5
|
|
|
6
6
|
export interface MsgStoreCode {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsSDKType } from "./params";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
|
-
import { isSet } from "
|
|
3
|
+
import { isSet } from "../../../helpers";
|
|
4
4
|
/** GenesisState defines the websrv module's genesis state. */
|
|
5
5
|
|
|
6
6
|
export interface GenesisState {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rpc } from "
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
3
|
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
|
|
4
4
|
import { QueryHttpRequestGet, QueryHttpResponseGet, QueryContractByRouteRequest, QueryContractByRouteResponse, QueryRouteByContractRequest, QueryRouteByContractResponse, QueryParamsRequest, QueryParamsResponse, QueryGetAllOauthClientsRequest, QueryGetAllOauthClientsResponse, QueryGetOauthClientRequest, QueryGetOauthClientResponse, QueryGetOauthClientsByOwnerRequest, QueryGetOauthClientsByOwnerResponse } from "./query";
|
|
@@ -42,25 +42,25 @@ export class QueryClientImpl implements Query {
|
|
|
42
42
|
|
|
43
43
|
httpGet(request: QueryHttpRequestGet): Promise<QueryHttpResponseGet> {
|
|
44
44
|
const data = QueryHttpRequestGet.encode(request).finish();
|
|
45
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "HttpGet", data);
|
|
45
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "HttpGet", data);
|
|
46
46
|
return promise.then(data => QueryHttpResponseGet.decode(new _m0.Reader(data)));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
contractByRoute(request: QueryContractByRouteRequest): Promise<QueryContractByRouteResponse> {
|
|
50
50
|
const data = QueryContractByRouteRequest.encode(request).finish();
|
|
51
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "ContractByRoute", data);
|
|
51
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "ContractByRoute", data);
|
|
52
52
|
return promise.then(data => QueryContractByRouteResponse.decode(new _m0.Reader(data)));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
routeByContract(request: QueryRouteByContractRequest): Promise<QueryRouteByContractResponse> {
|
|
56
56
|
const data = QueryRouteByContractRequest.encode(request).finish();
|
|
57
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "RouteByContract", data);
|
|
57
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "RouteByContract", data);
|
|
58
58
|
return promise.then(data => QueryRouteByContractResponse.decode(new _m0.Reader(data)));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
params(request: QueryParamsRequest = {}): Promise<QueryParamsResponse> {
|
|
62
62
|
const data = QueryParamsRequest.encode(request).finish();
|
|
63
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "Params", data);
|
|
63
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "Params", data);
|
|
64
64
|
return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -68,19 +68,19 @@ export class QueryClientImpl implements Query {
|
|
|
68
68
|
pagination: undefined
|
|
69
69
|
}): Promise<QueryGetAllOauthClientsResponse> {
|
|
70
70
|
const data = QueryGetAllOauthClientsRequest.encode(request).finish();
|
|
71
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "GetAllOauthClients", data);
|
|
71
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "GetAllOauthClients", data);
|
|
72
72
|
return promise.then(data => QueryGetAllOauthClientsResponse.decode(new _m0.Reader(data)));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
getOauthClient(request: QueryGetOauthClientRequest): Promise<QueryGetOauthClientResponse> {
|
|
76
76
|
const data = QueryGetOauthClientRequest.encode(request).finish();
|
|
77
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "GetOauthClient", data);
|
|
77
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "GetOauthClient", data);
|
|
78
78
|
return promise.then(data => QueryGetOauthClientResponse.decode(new _m0.Reader(data)));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
getOauthClientsByOwner(request: QueryGetOauthClientsByOwnerRequest): Promise<QueryGetOauthClientsByOwnerResponse> {
|
|
82
82
|
const data = QueryGetOauthClientsByOwnerRequest.encode(request).finish();
|
|
83
|
-
const promise = this.rpc.request("wasmx.websrv.Query", "GetOauthClientsByOwner", data);
|
|
83
|
+
const promise = this.rpc.request("wasmx.websrv.v1.Query", "GetOauthClientsByOwner", data);
|
|
84
84
|
return promise.then(data => QueryGetOauthClientsByOwnerResponse.decode(new _m0.Reader(data)));
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
2
2
|
import { Params, ParamsSDKType } from "./params";
|
|
3
3
|
import * as _m0 from "protobufjs/minimal";
|
|
4
|
-
import { isSet, bytesFromBase64, base64FromBytes, Long } from "
|
|
4
|
+
import { isSet, bytesFromBase64, base64FromBytes, Long } from "../../../helpers";
|
|
5
5
|
/**
|
|
6
6
|
* QueryContractByRouteRequest is the request type for the
|
|
7
7
|
* Query/ContractByRoute RPC method.
|