@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.
Files changed (29) hide show
  1. package/README.md +1 -1
  2. package/main/codegen/mythos/wasmx/v1/contract.js +176 -29
  3. package/main/codegen/mythos/wasmx/v1/genesis.js +14 -14
  4. package/main/codegen/mythos/wasmx/v1/query.js +81 -55
  5. package/main/codegen/mythos/wasmx/v1/query.rpc.Query.js +13 -0
  6. package/main/codegen/mythos/wasmx/v1/tx.amino.js +64 -8
  7. package/main/codegen/mythos/wasmx/v1/tx.js +25 -4
  8. package/module/codegen/mythos/wasmx/v1/contract.js +151 -21
  9. package/module/codegen/mythos/wasmx/v1/genesis.js +15 -15
  10. package/module/codegen/mythos/wasmx/v1/query.js +77 -53
  11. package/module/codegen/mythos/wasmx/v1/query.rpc.Query.js +10 -1
  12. package/module/codegen/mythos/wasmx/v1/tx.amino.js +64 -8
  13. package/module/codegen/mythos/wasmx/v1/tx.js +25 -4
  14. package/package.json +1 -1
  15. package/src/codegen/mythos/wasmx/v1/contract.ts +228 -33
  16. package/src/codegen/mythos/wasmx/v1/genesis.ts +19 -19
  17. package/src/codegen/mythos/wasmx/v1/query.rpc.Query.ts +15 -1
  18. package/src/codegen/mythos/wasmx/v1/query.ts +123 -82
  19. package/src/codegen/mythos/wasmx/v1/tx.amino.ts +90 -8
  20. package/src/codegen/mythos/wasmx/v1/tx.ts +33 -4
  21. package/types/codegen/mythos/bundle.d.ts +85 -17
  22. package/types/codegen/mythos/client.d.ts +70 -18
  23. package/types/codegen/mythos/rpc.query.d.ts +10 -9
  24. package/types/codegen/mythos/wasmx/v1/contract.d.ts +51 -14
  25. package/types/codegen/mythos/wasmx/v1/genesis.d.ts +3 -3
  26. package/types/codegen/mythos/wasmx/v1/query.d.ts +37 -24
  27. package/types/codegen/mythos/wasmx/v1/query.rpc.Query.d.ts +5 -1
  28. package/types/codegen/mythos/wasmx/v1/tx.amino.d.ts +30 -4
  29. package/types/codegen/mythos/wasmx/v1/tx.d.ts +5 -0
@@ -5,6 +5,19 @@ export interface AminoMsgStoreCode extends AminoMsg {
5
5
  value: {
6
6
  sender: string;
7
7
  wasm_byte_code: Uint8Array;
8
+ metadata: {
9
+ name: string;
10
+ categ: string[];
11
+ icon: string;
12
+ author: string;
13
+ site: string;
14
+ abi: string;
15
+ json_schema: string;
16
+ origin: {
17
+ chain_id: string;
18
+ address: string;
19
+ };
20
+ };
8
21
  };
9
22
  }
10
23
  export interface AminoMsgStoreCodeEvm extends AminoMsg {
@@ -12,6 +25,19 @@ export interface AminoMsgStoreCodeEvm extends AminoMsg {
12
25
  value: {
13
26
  sender: string;
14
27
  evm_byte_code: Uint8Array;
28
+ metadata: {
29
+ name: string;
30
+ categ: string[];
31
+ icon: string;
32
+ author: string;
33
+ site: string;
34
+ abi: string;
35
+ json_schema: string;
36
+ origin: {
37
+ chain_id: string;
38
+ address: string;
39
+ };
40
+ };
15
41
  };
16
42
  }
17
43
  export interface AminoMsgInstantiateContract extends AminoMsg {
@@ -93,13 +119,13 @@ export interface AminoMsgCompileContract extends AminoMsg {
93
119
  export declare const AminoConverter: {
94
120
  "/mythos.wasmx.v1.MsgStoreCode": {
95
121
  aminoType: string;
96
- toAmino: ({ sender, wasmByteCode }: MsgStoreCode) => AminoMsgStoreCode["value"];
97
- fromAmino: ({ sender, wasm_byte_code }: AminoMsgStoreCode["value"]) => MsgStoreCode;
122
+ toAmino: ({ sender, wasmByteCode, metadata }: MsgStoreCode) => AminoMsgStoreCode["value"];
123
+ fromAmino: ({ sender, wasm_byte_code, metadata }: AminoMsgStoreCode["value"]) => MsgStoreCode;
98
124
  };
99
125
  "/mythos.wasmx.v1.MsgStoreCodeEvm": {
100
126
  aminoType: string;
101
- toAmino: ({ sender, evmByteCode }: MsgStoreCodeEvm) => AminoMsgStoreCodeEvm["value"];
102
- fromAmino: ({ sender, evm_byte_code }: AminoMsgStoreCodeEvm["value"]) => MsgStoreCodeEvm;
127
+ toAmino: ({ sender, evmByteCode, metadata }: MsgStoreCodeEvm) => AminoMsgStoreCodeEvm["value"];
128
+ fromAmino: ({ sender, evm_byte_code, metadata }: AminoMsgStoreCodeEvm["value"]) => MsgStoreCodeEvm;
103
129
  };
104
130
  "/mythos.wasmx.v1.MsgInstantiateContract": {
105
131
  aminoType: string;
@@ -1,3 +1,4 @@
1
+ import { CodeMetadata, CodeMetadataSDKType } from "./contract";
1
2
  import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
2
3
  import * as _m0 from "protobufjs/minimal";
3
4
  import { Long } from "../../../helpers";
@@ -7,6 +8,7 @@ export interface MsgStoreCode {
7
8
  sender: string;
8
9
  /** WASMByteCode can be raw or gzip compressed */
9
10
  wasmByteCode: Uint8Array;
11
+ metadata?: CodeMetadata;
10
12
  }
11
13
  /** MsgStoreCode submit Wasm code to the system */
12
14
  export interface MsgStoreCodeSDKType {
@@ -14,6 +16,7 @@ export interface MsgStoreCodeSDKType {
14
16
  sender: string;
15
17
  /** WASMByteCode can be raw or gzip compressed */
16
18
  wasm_byte_code: Uint8Array;
19
+ metadata?: CodeMetadataSDKType;
17
20
  }
18
21
  /** MsgStoreCodeResponse returns store result data. */
19
22
  export interface MsgStoreCodeResponse {
@@ -35,6 +38,7 @@ export interface MsgStoreCodeEvm {
35
38
  sender: string;
36
39
  /** EVM bytecode */
37
40
  evmByteCode: Uint8Array;
41
+ metadata?: CodeMetadata;
38
42
  }
39
43
  /** MsgStoreCodeEvm submit Wasm code to the system */
40
44
  export interface MsgStoreCodeEvmSDKType {
@@ -42,6 +46,7 @@ export interface MsgStoreCodeEvmSDKType {
42
46
  sender: string;
43
47
  /** EVM bytecode */
44
48
  evm_byte_code: Uint8Array;
49
+ metadata?: CodeMetadataSDKType;
45
50
  }
46
51
  /** MsgStoreCodeEvmResponse returns store result data. */
47
52
  export interface MsgStoreCodeEvmResponse {