@ark-us/wasmx-stargate 0.0.10 → 0.0.12

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 (48) hide show
  1. package/LICENSE +674 -0
  2. package/build/index.d.ts +1 -0
  3. package/build/index.js +5 -1
  4. package/build/index.js.map +1 -1
  5. package/build/modules/wasmx/aminomessages.d.ts +3 -3
  6. package/build/modules/wasmx/aminomessages.js +4 -4
  7. package/build/modules/wasmx/aminomessages.js.map +1 -1
  8. package/build/modules/wasmx/utils.d.ts +11 -0
  9. package/build/modules/wasmx/utils.js +43 -0
  10. package/build/modules/wasmx/utils.js.map +1 -0
  11. package/build/signingwasmxclient.js +14 -16
  12. package/build/signingwasmxclient.js.map +1 -1
  13. package/build/tendermintclient.d.ts +4 -2
  14. package/build/tendermintclient.js +8 -1
  15. package/build/tendermintclient.js.map +1 -1
  16. package/build/wasmxclient.d.ts +3 -4
  17. package/build/wasmxclient.js +4 -33
  18. package/build/wasmxclient.js.map +1 -1
  19. package/package.json +10 -10
  20. package/.DS_Store +0 -0
  21. package/.eslintignore +0 -5
  22. package/.eslintrc.js +0 -108
  23. package/.gitignore +0 -5
  24. package/build/encoding.spec.d.ts +0 -1
  25. package/build/encoding.spec.js +0 -78
  26. package/build/encoding.spec.js.map +0 -1
  27. package/build/modules/wasmx/aminomessages.spec.d.ts +0 -1
  28. package/build/modules/wasmx/aminomessages.spec.js +0 -242
  29. package/build/modules/wasmx/aminomessages.spec.js.map +0 -1
  30. package/jasmine-testrunner.js +0 -38
  31. package/karma.conf.js +0 -54
  32. package/src/encoding.spec.ts +0 -99
  33. package/src/encoding.ts +0 -21
  34. package/src/index.ts +0 -30
  35. package/src/modules/index.ts +0 -20
  36. package/src/modules/wasmx/aminomessages.spec.ts +0 -258
  37. package/src/modules/wasmx/aminomessages.ts +0 -177
  38. package/src/modules/wasmx/messages.ts +0 -54
  39. package/src/modules/wasmx/queries.ts +0 -141
  40. package/src/signingwasmxclient.ts +0 -660
  41. package/src/tendermintclient.ts +0 -7
  42. package/src/wasmxclient.ts +0 -494
  43. package/tsconfig.eslint.json +0 -9
  44. package/tsconfig.json +0 -12
  45. package/typedoc.js +0 -11
  46. package/webpack.web.config.js +0 -37
  47. package/yarn-error.log +0 -4205
  48. package/yarn.lock +0 -4145
package/src/encoding.ts DELETED
@@ -1,21 +0,0 @@
1
- import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@cosmjs/encoding";
2
-
3
- /**
4
- * Takes a value, serializes it to JSON and encodes it as base64.
5
- *
6
- * This can be used for creating values of fields that have the WasmX Binary type.
7
- */
8
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
9
- export function toBinary(obj: any): string {
10
- return toBase64(toUtf8(JSON.stringify(obj)));
11
- }
12
-
13
- /**
14
- * Takes a base64 string, decodes it and parses the content from JSON to an object.
15
- *
16
- * This can be used for parsing the values of a WasmX Binary field.
17
- */
18
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
19
- export function fromBinary(base64: string): any {
20
- return JSON.parse(fromUtf8(fromBase64(base64)));
21
- }
package/src/index.ts DELETED
@@ -1,30 +0,0 @@
1
- export { Code, CodeDetails, Contract, ContractCodeHistoryEntry, WasmXClient } from "./wasmxclient";
2
- export { fromBinary, toBinary } from "./encoding";
3
- export {
4
- wasmXTypes,
5
- createWasmAminoConverters,
6
- isMsgExecuteEncodeObject,
7
- isMsgInstantiateContractEncodeObject,
8
- isMsgStoreCodeEncodeObject,
9
- JsonObject,
10
- MsgExecuteContractEncodeObject,
11
- MsgInstantiateContractEncodeObject,
12
- MsgStoreCodeEncodeObject,
13
- setupWasmExtension,
14
- WasmExtension,
15
- } from "./modules";
16
- export {
17
- ChangeAdminResult,
18
- ExecuteInstruction,
19
- ExecuteResult,
20
- InstantiateOptions,
21
- InstantiateResult,
22
- MigrateResult,
23
- SigningWasmXClient,
24
- SigningWasmXClientOptions,
25
- UploadResult,
26
- } from "./signingwasmxclient";
27
-
28
- // Re-exported because this is part of the WasmXClient/SigningWasmXClient APIs
29
- export { Attribute, DeliverTxResponse, Event, IndexedTx } from "@cosmjs/stargate";
30
- export { HttpEndpoint } from "@cosmjs/tendermint-rpc";
@@ -1,20 +0,0 @@
1
- export {
2
- AminoMsgExecuteContract,
3
- AminoMsgInstantiateContract,
4
- AminoMsgStoreCode,
5
- AminoMsgDeployCode,
6
- wasmXTypes,
7
- createWasmAminoConverters,
8
- } from "./wasmx/aminomessages";
9
- export {
10
- isMsgExecuteEncodeObject,
11
- isMsgInstantiateContractEncodeObject,
12
- isMsgStoreCodeEncodeObject,
13
- isMsgDeployCodeEncodeObject,
14
- MsgExecuteContractEncodeObject,
15
- MsgInstantiateContractEncodeObject,
16
- MsgStoreCodeEncodeObject,
17
- MsgDeployCodeEncodeObject,
18
- wasmTypes,
19
- } from "./wasmx/messages";
20
- export { JsonObject, setupWasmExtension, WasmExtension } from "./wasmx/queries";
@@ -1,258 +0,0 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- import { fromBase64, toUtf8 } from "@cosmjs/encoding";
3
- import { AminoTypes, coins } from "@cosmjs/stargate";
4
- import {
5
- MsgExecuteContract,
6
- MsgInstantiateContract,
7
- MsgStoreCode,
8
- MsgDeployCode,
9
- } from "@ark-us/wasmxjs";
10
- import Long from 'long';
11
-
12
- import {
13
- AminoMsgExecuteContract,
14
- AminoMsgInstantiateContract,
15
- AminoMsgStoreCode,
16
- AminoMsgDeployCode,
17
- createWasmAminoConverters,
18
- } from "./aminomessages";
19
-
20
- describe("AminoTypes", () => {
21
- describe("toAmino", () => {
22
- it("works for MsgStoreCode", () => {
23
- const msg: MsgStoreCode = {
24
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
25
- byteCode: fromBase64("WUVMTE9XIFNVQk1BUklORQ=="),
26
- deps: [],
27
- };
28
- const aminoMsg = new AminoTypes(createWasmAminoConverters()).toAmino({
29
- typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
30
- value: msg,
31
- });
32
- const expected: AminoMsgStoreCode = {
33
- type: "wasmx/MsgStoreCode",
34
- value: {
35
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
36
- byte_code: "WUVMTE9XIFNVQk1BUklORQ==",
37
- metadata: {name: "", categ: [], icon: "", author: "", site: "", abi: "", jsonSchema: ""},
38
- deps: [],
39
- },
40
- };
41
- expect(aminoMsg).toEqual(expected);
42
- });
43
-
44
- it("works for MsgDeployCode", () => {
45
- const msg: MsgDeployCode = {
46
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
47
- byteCode: fromBase64("WUVMTE9XIFNVQk1BUklORQ=="),
48
- deps: [],
49
- msg: toUtf8(`{"data":"0x"}`),
50
- funds: coins(0, "ucosm"),
51
- label: "label",
52
- };
53
- const aminoMsg = new AminoTypes(createWasmAminoConverters()).toAmino({
54
- typeUrl: "/mythos.wasmx.v1.MsgDeployCode",
55
- value: msg,
56
- });
57
- const expected: AminoMsgDeployCode = {
58
- type: "wasmx/MsgDeployCode",
59
- value: {
60
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
61
- byte_code: "WUVMTE9XIFNVQk1BUklORQ==",
62
- metadata: {name: "", categ: [], icon: "", author: "", site: "", abi: "", jsonSchema: ""},
63
- deps: [],
64
- msg: {"data":"0x"},
65
- funds: coins(0, "ucosm"),
66
- label: "label",
67
- },
68
- };
69
- expect(aminoMsg).toEqual(expected);
70
- });
71
-
72
- it("works for MsgInstantiateContract", () => {
73
- // With admin
74
- {
75
- const msg: MsgInstantiateContract = {
76
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
77
- // @ts-ignore
78
- codeId: Long.fromString("12345"),
79
- label: "sticky",
80
- msg: toUtf8(`{"foo":"bar"}`),
81
- funds: coins(1234, "ucosm"),
82
- };
83
- const aminoMsg = new AminoTypes(createWasmAminoConverters()).toAmino({
84
- typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
85
- value: msg,
86
- });
87
- const expected: AminoMsgInstantiateContract = {
88
- type: "wasmx/MsgInstantiateContract",
89
- value: {
90
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
91
- code_id: "12345",
92
- label: "sticky",
93
- msg: { foo: "bar" },
94
- funds: coins(1234, "ucosm"),
95
- },
96
- };
97
- expect(aminoMsg).toEqual(expected);
98
- }
99
-
100
- // Without admin
101
- {
102
- const msg: MsgInstantiateContract = {
103
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
104
- // @ts-ignore
105
- codeId: Long.fromString("12345"),
106
- label: "sticky",
107
- msg: toUtf8(`{"foo":"bar"}`),
108
- funds: coins(1234, "ucosm"),
109
- };
110
- const aminoMsg = new AminoTypes(createWasmAminoConverters()).toAmino({
111
- typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
112
- value: msg,
113
- });
114
- const expected: AminoMsgInstantiateContract = {
115
- type: "wasmx/MsgInstantiateContract",
116
- value: {
117
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
118
- code_id: "12345",
119
- label: "sticky",
120
- msg: { foo: "bar" },
121
- funds: coins(1234, "ucosm"),
122
- },
123
- };
124
- expect(aminoMsg).toEqual(expected);
125
- }
126
- });
127
-
128
- it("works for MsgExecuteContract", () => {
129
- const msg: MsgExecuteContract = {
130
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
131
- contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
132
- msg: toUtf8(`{"foo":"bar"}`),
133
- funds: coins(1234, "ucosm"),
134
- dependencies: [],
135
- };
136
- const aminoMsg = new AminoTypes(createWasmAminoConverters()).toAmino({
137
- typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
138
- value: msg,
139
- });
140
- const expected: AminoMsgExecuteContract = {
141
- type: "wasmx/MsgExecuteContract",
142
- value: {
143
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
144
- contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
145
- msg: { foo: "bar" },
146
- funds: coins(1234, "ucosm"),
147
- dependencies: [],
148
- },
149
- };
150
- expect(aminoMsg).toEqual(expected);
151
- });
152
- })
153
-
154
- describe("fromAmino", () => {
155
- it("works for MsgStoreCode", () => {
156
- const aminoMsg: AminoMsgStoreCode = {
157
- type: "wasmx/MsgStoreCode",
158
- value: {
159
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
160
- byte_code: "WUVMTE9XIFNVQk1BUklORQ==",
161
- metadata: {name: "", categ: [], icon: "", author: "", site: "", abi: "", jsonSchema: ""},
162
- deps: [],
163
- },
164
- };
165
- const msg = new AminoTypes(createWasmAminoConverters()).fromAmino(aminoMsg);
166
- const expectedValue: MsgStoreCode = {
167
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
168
- byteCode: fromBase64("WUVMTE9XIFNVQk1BUklORQ=="),
169
- deps: [],
170
- };
171
- expect(msg).toEqual({
172
- typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
173
- value: expectedValue,
174
- });
175
- });
176
-
177
- it("works for MsgInstantiateContract", () => {
178
- // With admin
179
- {
180
- const aminoMsg: AminoMsgInstantiateContract = {
181
- type: "wasmx/MsgInstantiateContract",
182
- value: {
183
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
184
- code_id: "12345",
185
- label: "sticky",
186
- msg: { foo: "bar" },
187
- funds: coins(1234, "ucosm"),
188
- },
189
- };
190
- const msg = new AminoTypes(createWasmAminoConverters()).fromAmino(aminoMsg);
191
- const expectedValue: MsgInstantiateContract = {
192
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
193
- // @ts-ignore
194
- codeId: Long.fromString("12345"),
195
- label: "sticky",
196
- msg: toUtf8(`{"foo":"bar"}`),
197
- funds: coins(1234, "ucosm"),
198
- };
199
- expect(msg).toEqual({
200
- typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
201
- value: expectedValue,
202
- });
203
- }
204
-
205
- // Without admin
206
- {
207
- const aminoMsg: AminoMsgInstantiateContract = {
208
- type: "wasmx/MsgInstantiateContract",
209
- value: {
210
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
211
- code_id: "12345",
212
- label: "sticky",
213
- msg: { foo: "bar" },
214
- funds: coins(1234, "ucosm"),
215
- },
216
- };
217
- const msg = new AminoTypes(createWasmAminoConverters()).fromAmino(aminoMsg);
218
- const expectedValue: MsgInstantiateContract = {
219
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
220
- // @ts-ignore
221
- codeId: Long.fromString("12345"),
222
- label: "sticky",
223
- msg: toUtf8(`{"foo":"bar"}`),
224
- funds: coins(1234, "ucosm"),
225
- };
226
- expect(msg).toEqual({
227
- typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
228
- value: expectedValue,
229
- });
230
- }
231
- });
232
-
233
- it("works for MsgExecuteContract", () => {
234
- const aminoMsg: AminoMsgExecuteContract = {
235
- type: "wasmx/MsgExecuteContract",
236
- value: {
237
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
238
- contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
239
- msg: { foo: "bar" },
240
- funds: coins(1234, "ucosm"),
241
- dependencies: [],
242
- },
243
- };
244
- const msg = new AminoTypes(createWasmAminoConverters()).fromAmino(aminoMsg);
245
- const expectedValue: MsgExecuteContract = {
246
- sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
247
- contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
248
- msg: toUtf8(`{"foo":"bar"}`),
249
- funds: coins(1234, "ucosm"),
250
- dependencies: [],
251
- };
252
- expect(msg).toEqual({
253
- typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
254
- value: expectedValue,
255
- });
256
- });
257
- });
258
- });
@@ -1,177 +0,0 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@cosmjs/encoding";
3
- import { AminoConverters, Coin } from "@cosmjs/stargate";
4
- import {
5
- CodeMetadata,
6
- MsgExecuteContract,
7
- MsgInstantiateContract,
8
- MsgStoreCode,
9
- MsgDeployCode,
10
- } from "@ark-us/wasmxjs";
11
- import Long from 'long';
12
-
13
- /**
14
- * The Amino JSON representation of [MsgStoreCode].
15
- */
16
- export interface AminoMsgStoreCode {
17
- type: "wasmx/MsgStoreCode";
18
- value: {
19
- /** Bech32 account address */
20
- readonly sender: string;
21
- /** Base64 encoded Wasm */
22
- readonly byte_code: string;
23
- readonly deps: string[];
24
- readonly metadata: CodeMetadata;
25
- };
26
- }
27
-
28
- /**
29
- * The Amino JSON representation of [MsgDeployCode].
30
- */
31
- export interface AminoMsgDeployCode {
32
- type: "wasmx/MsgDeployCode";
33
- value: {
34
- /** Bech32 account address */
35
- readonly sender: string;
36
- /** Base64 encoded Wasm */
37
- readonly byte_code: string;
38
- readonly deps: string[];
39
- readonly metadata: CodeMetadata;
40
- /** Instantiate message as JavaScript object */
41
- readonly msg: any;
42
- readonly funds: readonly Coin[];
43
- readonly label: string;
44
- };
45
- }
46
-
47
- /**
48
- * The Amino JSON representation of [MsgExecuteContract].
49
- */
50
- export interface AminoMsgExecuteContract {
51
- type: "wasmx/MsgExecuteContract";
52
- value: {
53
- /** Bech32 account address */
54
- readonly sender: string;
55
- /** Bech32 account address */
56
- readonly contract: string;
57
- /** Execute message as JavaScript object */
58
- readonly msg: any;
59
- readonly funds: readonly Coin[];
60
- readonly dependencies: string[];
61
- };
62
- }
63
-
64
- /**
65
- * The Amino JSON representation of [MsgInstantiateContract].
66
- */
67
- export interface AminoMsgInstantiateContract {
68
- type: "wasmx/MsgInstantiateContract";
69
- value: {
70
- /** Bech32 account address */
71
- readonly sender: string;
72
- /** ID of the Wasm code that was uploaded before */
73
- readonly code_id: string;
74
- /** Human-readable label for this contract */
75
- readonly label: string;
76
- /** Instantiate message as JavaScript object */
77
- readonly msg: any;
78
- readonly funds: readonly Coin[];
79
- };
80
- }
81
-
82
- export function createWasmAminoConverters(): AminoConverters {
83
- return {
84
- "/mythos.wasmx.v1.MsgStoreCode": {
85
- aminoType: "wasm/MsgStoreCode",
86
- toAmino: ({ sender, byteCode, metadata, deps }: MsgStoreCode): AminoMsgStoreCode["value"] => ({
87
- sender: sender,
88
- byte_code: toBase64(byteCode),
89
- metadata: metadata || CodeMetadata.fromPartial({}),
90
- deps: deps,
91
- }),
92
- fromAmino: ({ sender, byte_code, deps, metadata }: AminoMsgStoreCode["value"]): MsgStoreCode => ({
93
- sender: sender,
94
- byteCode: fromBase64(byte_code),
95
- deps: deps,
96
- metadata: metadata || CodeMetadata.fromPartial({}),
97
- }),
98
- },
99
- "/mythos.wasmx.v1.MsgDeployCode": {
100
- aminoType: "wasm/MsgDeployCode",
101
- toAmino: ({ sender, byteCode, metadata, deps, msg, funds, label }: MsgDeployCode): AminoMsgDeployCode["value"] => ({
102
- sender: sender,
103
- byte_code: toBase64(byteCode),
104
- metadata: metadata || CodeMetadata.fromPartial({}),
105
- deps: deps,
106
- msg: JSON.parse(fromUtf8(msg)),
107
- funds: funds,
108
- label: label,
109
- }),
110
- fromAmino: ({ sender, byte_code, metadata, deps, msg, funds, label }: AminoMsgDeployCode["value"]): MsgDeployCode => ({
111
- sender: sender,
112
- byteCode: fromBase64(byte_code),
113
- deps: deps,
114
- label: label,
115
- msg: toUtf8(JSON.stringify(msg)),
116
- funds: [...funds],
117
- metadata: metadata || CodeMetadata.fromPartial({}),
118
- }),
119
- },
120
- "/mythos.wasmx.v1.MsgInstantiateContract": {
121
- aminoType: "wasm/MsgInstantiateContract",
122
- toAmino: ({
123
- sender,
124
- codeId,
125
- label,
126
- msg,
127
- funds,
128
- }: MsgInstantiateContract): AminoMsgInstantiateContract["value"] => ({
129
- sender: sender,
130
- code_id: codeId.toString(),
131
- label: label,
132
- msg: JSON.parse(fromUtf8(msg)),
133
- funds: funds,
134
- }),
135
- fromAmino: ({
136
- sender,
137
- code_id,
138
- label,
139
- msg,
140
- funds,
141
- }: AminoMsgInstantiateContract["value"]): MsgInstantiateContract => ({
142
- sender: sender,
143
- // @ts-ignore
144
- codeId: Long.fromString(code_id),
145
- label: label,
146
- msg: toUtf8(JSON.stringify(msg)),
147
- funds: [...funds],
148
- }),
149
- },
150
- "/mythos.wasmx.v1.MsgExecuteContract": {
151
- aminoType: "wasm/MsgExecuteContract",
152
- toAmino: ({ sender, contract, msg, funds, dependencies }: MsgExecuteContract): AminoMsgExecuteContract["value"] => ({
153
- sender: sender,
154
- contract: contract,
155
- msg: JSON.parse(fromUtf8(msg)),
156
- funds: funds,
157
- dependencies: dependencies,
158
- }),
159
- fromAmino: ({
160
- sender,
161
- contract,
162
- msg,
163
- funds,
164
- dependencies,
165
- }: AminoMsgExecuteContract["value"]): MsgExecuteContract => ({
166
- sender: sender,
167
- contract: contract,
168
- msg: toUtf8(JSON.stringify(msg)),
169
- funds: [...funds],
170
- dependencies: [...dependencies]
171
- }),
172
- },
173
- };
174
- }
175
-
176
- /** @deprecated use `createWasmAminoConverters()` */
177
- export const wasmXTypes: AminoConverters = createWasmAminoConverters();
@@ -1,54 +0,0 @@
1
- import { EncodeObject, GeneratedType } from "@cosmjs/proto-signing";
2
- import {
3
- MsgExecuteContract,
4
- MsgInstantiateContract,
5
- MsgStoreCode,
6
- MsgDeployCode,
7
- } from "@ark-us/wasmxjs";
8
-
9
- export const wasmTypes: ReadonlyArray<[string, GeneratedType]> = [
10
- ["/mythos.wasmx.v1.MsgExecuteContract", MsgExecuteContract],
11
- ["/mythos.wasmx.v1.MsgStoreCode", MsgStoreCode],
12
- ["/mythos.wasmx.v1.MsgDeployCode", MsgDeployCode],
13
- ["/mythos.wasmx.v1.MsgInstantiateContract", MsgInstantiateContract],
14
- ];
15
-
16
- export interface MsgStoreCodeEncodeObject extends EncodeObject {
17
- readonly typeUrl: "/mythos.wasmx.v1.MsgStoreCode";
18
- readonly value: Partial<MsgStoreCode>;
19
- }
20
-
21
- export function isMsgStoreCodeEncodeObject(object: EncodeObject): object is MsgStoreCodeEncodeObject {
22
- return (object as MsgStoreCodeEncodeObject).typeUrl === "/mythos.wasmx.v1.MsgStoreCode";
23
- }
24
-
25
- export interface MsgDeployCodeEncodeObject extends EncodeObject {
26
- readonly typeUrl: "/mythos.wasmx.v1.MsgDeployCode";
27
- readonly value: Partial<MsgDeployCode>;
28
- }
29
-
30
- export function isMsgDeployCodeEncodeObject(object: EncodeObject): object is MsgDeployCodeEncodeObject {
31
- return (object as MsgDeployCodeEncodeObject).typeUrl === "/mythos.wasmx.v1.MsgDeployCode";
32
- }
33
-
34
- export interface MsgInstantiateContractEncodeObject extends EncodeObject {
35
- readonly typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract";
36
- readonly value: Partial<MsgInstantiateContract>;
37
- }
38
-
39
- export function isMsgInstantiateContractEncodeObject(
40
- object: EncodeObject,
41
- ): object is MsgInstantiateContractEncodeObject {
42
- return (
43
- (object as MsgInstantiateContractEncodeObject).typeUrl === "/mythos.wasmx.v1.MsgInstantiateContract"
44
- );
45
- }
46
-
47
- export interface MsgExecuteContractEncodeObject extends EncodeObject {
48
- readonly typeUrl: "/mythos.wasmx.v1.MsgExecuteContract";
49
- readonly value: Partial<MsgExecuteContract>;
50
- }
51
-
52
- export function isMsgExecuteEncodeObject(object: EncodeObject): object is MsgExecuteContractEncodeObject {
53
- return (object as MsgExecuteContractEncodeObject).typeUrl === "/mythos.wasmx.v1.MsgExecuteContract";
54
- }