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