@ark-us/wasmxjs 0.0.7 → 0.0.8

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.
@@ -6,16 +6,34 @@ import { Long } from "../../../helpers";
6
6
  export interface MsgStoreCode {
7
7
  /** Sender is the that actor that signed the messages */
8
8
  sender: string;
9
- /** WASMByteCode can be raw or gzip compressed */
10
- wasmByteCode: Uint8Array;
9
+ /**
10
+ * WASMByteCode can be raw or gzip compressed
11
+ * can be interpreted bytecode
12
+ * constructor + runtime
13
+ */
14
+ byteCode: Uint8Array;
15
+ /**
16
+ * deps can be hex-formatted contract addresses (32 bytes) for interpreter contracts
17
+ * and/or versioned interface labels
18
+ */
19
+ deps: string[];
11
20
  metadata?: CodeMetadata;
12
21
  }
13
22
  /** MsgStoreCode submit Wasm code to the system */
14
23
  export interface MsgStoreCodeSDKType {
15
24
  /** Sender is the that actor that signed the messages */
16
25
  sender: string;
17
- /** WASMByteCode can be raw or gzip compressed */
18
- wasm_byte_code: Uint8Array;
26
+ /**
27
+ * WASMByteCode can be raw or gzip compressed
28
+ * can be interpreted bytecode
29
+ * constructor + runtime
30
+ */
31
+ byte_code: Uint8Array;
32
+ /**
33
+ * deps can be hex-formatted contract addresses (32 bytes) for interpreter contracts
34
+ * and/or versioned interface labels
35
+ */
36
+ deps: string[];
19
37
  metadata?: CodeMetadataSDKType;
20
38
  }
21
39
  /** MsgStoreCodeResponse returns store result data. */
@@ -32,35 +50,71 @@ export interface MsgStoreCodeResponseSDKType {
32
50
  /** Checksum is the sha256 hash of the stored code */
33
51
  checksum: Uint8Array;
34
52
  }
35
- /** MsgStoreCodeEvm submit Wasm code to the system */
36
- export interface MsgStoreCodeEvm {
53
+ /** MsgStoreCode submit Wasm code to the system */
54
+ export interface MsgDeployCode {
37
55
  /** Sender is the that actor that signed the messages */
38
56
  sender: string;
39
- /** EVM bytecode */
40
- evmByteCode: Uint8Array;
57
+ /**
58
+ * WASMByteCode can be raw or gzip compressed
59
+ * can be interpreted bytecode
60
+ * constructor + runtime
61
+ */
62
+ byteCode: Uint8Array;
63
+ /**
64
+ * deps can be hex-formatted contract addresses (32 bytes) for interpreter contracts
65
+ * and/or versioned interface labels
66
+ */
67
+ deps: string[];
41
68
  metadata?: CodeMetadata;
69
+ /**
70
+ * instantiation:
71
+ * Msg json encoded message to be passed to the contract on instantiation
72
+ */
73
+ msg: Uint8Array;
74
+ /** Funds coins that are transferred to the contract on instantiation */
75
+ funds: Coin[];
76
+ label: string;
42
77
  }
43
- /** MsgStoreCodeEvm submit Wasm code to the system */
44
- export interface MsgStoreCodeEvmSDKType {
78
+ /** MsgStoreCode submit Wasm code to the system */
79
+ export interface MsgDeployCodeSDKType {
45
80
  /** Sender is the that actor that signed the messages */
46
81
  sender: string;
47
- /** EVM bytecode */
48
- evm_byte_code: Uint8Array;
82
+ /**
83
+ * WASMByteCode can be raw or gzip compressed
84
+ * can be interpreted bytecode
85
+ * constructor + runtime
86
+ */
87
+ byte_code: Uint8Array;
88
+ /**
89
+ * deps can be hex-formatted contract addresses (32 bytes) for interpreter contracts
90
+ * and/or versioned interface labels
91
+ */
92
+ deps: string[];
49
93
  metadata?: CodeMetadataSDKType;
94
+ /**
95
+ * instantiation:
96
+ * Msg json encoded message to be passed to the contract on instantiation
97
+ */
98
+ msg: Uint8Array;
99
+ /** Funds coins that are transferred to the contract on instantiation */
100
+ funds: CoinSDKType[];
101
+ label: string;
50
102
  }
51
- /** MsgStoreCodeEvmResponse returns store result data. */
52
- export interface MsgStoreCodeEvmResponse {
103
+ /** MsgDeployCodeResponse returns store result data. */
104
+ export interface MsgDeployCodeResponse {
53
105
  /** CodeID is the reference to the stored WASM code */
54
106
  codeId: Long;
55
107
  /** Checksum is the sha256 hash of the stored code */
56
108
  checksum: Uint8Array;
109
+ address: string;
57
110
  }
58
- /** MsgStoreCodeEvmResponse returns store result data. */
59
- export interface MsgStoreCodeEvmResponseSDKType {
111
+ /** MsgDeployCodeResponse returns store result data. */
112
+ export interface MsgDeployCodeResponseSDKType {
60
113
  /** CodeID is the reference to the stored WASM code */
61
114
  code_id: Long;
62
115
  /** Checksum is the sha256 hash of the stored code */
63
116
  checksum: Uint8Array;
117
+ address: string;
64
118
  }
65
119
  /**
66
120
  * MsgInstantiateContract create a new smart contract instance for the given
@@ -71,12 +125,11 @@ export interface MsgInstantiateContract {
71
125
  sender: string;
72
126
  /** CodeID is the reference to the stored WASM code */
73
127
  codeId: Long;
74
- /** Label is optional metadata to be stored with a contract instance. */
75
- label: string;
76
128
  /** Msg json encoded message to be passed to the contract on instantiation */
77
129
  msg: Uint8Array;
78
130
  /** Funds coins that are transferred to the contract on instantiation */
79
131
  funds: Coin[];
132
+ label: string;
80
133
  }
81
134
  /**
82
135
  * MsgInstantiateContract create a new smart contract instance for the given
@@ -87,12 +140,11 @@ export interface MsgInstantiateContractSDKType {
87
140
  sender: string;
88
141
  /** CodeID is the reference to the stored WASM code */
89
142
  code_id: Long;
90
- /** Label is optional metadata to be stored with a contract instance. */
91
- label: string;
92
143
  /** Msg json encoded message to be passed to the contract on instantiation */
93
144
  msg: Uint8Array;
94
145
  /** Funds coins that are transferred to the contract on instantiation */
95
146
  funds: CoinSDKType[];
147
+ label: string;
96
148
  }
97
149
  /**
98
150
  * MsgInstantiateContract2 create a new smart contract instance for the given
@@ -103,12 +155,11 @@ export interface MsgInstantiateContract2 {
103
155
  sender: string;
104
156
  /** Admin is an optional address that can execute migrations */
105
157
  codeId: Long;
106
- /** Label is optional metadata to be stored with a contract instance. */
107
- label: string;
108
158
  /** Msg json encoded message to be passed to the contract on instantiation */
109
159
  msg: Uint8Array;
110
160
  /** Funds coins that are transferred to the contract on instantiation */
111
161
  funds: Coin[];
162
+ label: string;
112
163
  /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
113
164
  salt: Uint8Array;
114
165
  /**
@@ -126,12 +177,11 @@ export interface MsgInstantiateContract2SDKType {
126
177
  sender: string;
127
178
  /** Admin is an optional address that can execute migrations */
128
179
  code_id: Long;
129
- /** Label is optional metadata to be stored with a contract instance. */
130
- label: string;
131
180
  /** Msg json encoded message to be passed to the contract on instantiation */
132
181
  msg: Uint8Array;
133
182
  /** Funds coins that are transferred to the contract on instantiation */
134
183
  funds: CoinSDKType[];
184
+ label: string;
135
185
  /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
136
186
  salt: Uint8Array;
137
187
  /**
@@ -316,19 +366,19 @@ export declare const MsgStoreCodeResponse: {
316
366
  toJSON(message: MsgStoreCodeResponse): unknown;
317
367
  fromPartial(object: Partial<MsgStoreCodeResponse>): MsgStoreCodeResponse;
318
368
  };
319
- export declare const MsgStoreCodeEvm: {
320
- encode(message: MsgStoreCodeEvm, writer?: _m0.Writer): _m0.Writer;
321
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeEvm;
322
- fromJSON(object: any): MsgStoreCodeEvm;
323
- toJSON(message: MsgStoreCodeEvm): unknown;
324
- fromPartial(object: Partial<MsgStoreCodeEvm>): MsgStoreCodeEvm;
369
+ export declare const MsgDeployCode: {
370
+ encode(message: MsgDeployCode, writer?: _m0.Writer): _m0.Writer;
371
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeployCode;
372
+ fromJSON(object: any): MsgDeployCode;
373
+ toJSON(message: MsgDeployCode): unknown;
374
+ fromPartial(object: Partial<MsgDeployCode>): MsgDeployCode;
325
375
  };
326
- export declare const MsgStoreCodeEvmResponse: {
327
- encode(message: MsgStoreCodeEvmResponse, writer?: _m0.Writer): _m0.Writer;
328
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeEvmResponse;
329
- fromJSON(object: any): MsgStoreCodeEvmResponse;
330
- toJSON(message: MsgStoreCodeEvmResponse): unknown;
331
- fromPartial(object: Partial<MsgStoreCodeEvmResponse>): MsgStoreCodeEvmResponse;
376
+ export declare const MsgDeployCodeResponse: {
377
+ encode(message: MsgDeployCodeResponse, writer?: _m0.Writer): _m0.Writer;
378
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeployCodeResponse;
379
+ fromJSON(object: any): MsgDeployCodeResponse;
380
+ toJSON(message: MsgDeployCodeResponse): unknown;
381
+ fromPartial(object: Partial<MsgDeployCodeResponse>): MsgDeployCodeResponse;
332
382
  };
333
383
  export declare const MsgInstantiateContract: {
334
384
  encode(message: MsgInstantiateContract, writer?: _m0.Writer): _m0.Writer;
@@ -1,5 +1,5 @@
1
1
  import { GeneratedType, Registry } from "@cosmjs/proto-signing";
2
- import { MsgStoreCode, MsgStoreCodeEvm, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgCompileContract } from "./tx";
2
+ import { MsgStoreCode, MsgDeployCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgCompileContract } from "./tx";
3
3
  export declare const registry: ReadonlyArray<[string, GeneratedType]>;
4
4
  export declare const load: (protoRegistry: Registry) => void;
5
5
  export declare const MessageComposer: {
@@ -8,7 +8,7 @@ export declare const MessageComposer: {
8
8
  typeUrl: string;
9
9
  value: Uint8Array;
10
10
  };
11
- storeCodeEvm(value: MsgStoreCodeEvm): {
11
+ deployCode(value: MsgDeployCode): {
12
12
  typeUrl: string;
13
13
  value: Uint8Array;
14
14
  };
@@ -42,9 +42,9 @@ export declare const MessageComposer: {
42
42
  typeUrl: string;
43
43
  value: MsgStoreCode;
44
44
  };
45
- storeCodeEvm(value: MsgStoreCodeEvm): {
45
+ deployCode(value: MsgDeployCode): {
46
46
  typeUrl: string;
47
- value: MsgStoreCodeEvm;
47
+ value: MsgDeployCode;
48
48
  };
49
49
  instantiateContract(value: MsgInstantiateContract): {
50
50
  typeUrl: string;
@@ -76,7 +76,7 @@ export declare const MessageComposer: {
76
76
  typeUrl: string;
77
77
  value: unknown;
78
78
  };
79
- storeCodeEvm(value: MsgStoreCodeEvm): {
79
+ deployCode(value: MsgDeployCode): {
80
80
  typeUrl: string;
81
81
  value: unknown;
82
82
  };
@@ -110,9 +110,9 @@ export declare const MessageComposer: {
110
110
  typeUrl: string;
111
111
  value: MsgStoreCode;
112
112
  };
113
- storeCodeEvm(value: any): {
113
+ deployCode(value: any): {
114
114
  typeUrl: string;
115
- value: MsgStoreCodeEvm;
115
+ value: MsgDeployCode;
116
116
  };
117
117
  instantiateContract(value: any): {
118
118
  typeUrl: string;
@@ -144,9 +144,9 @@ export declare const MessageComposer: {
144
144
  typeUrl: string;
145
145
  value: MsgStoreCode;
146
146
  };
147
- storeCodeEvm(value: MsgStoreCodeEvm): {
147
+ deployCode(value: MsgDeployCode): {
148
148
  typeUrl: string;
149
- value: MsgStoreCodeEvm;
149
+ value: MsgDeployCode;
150
150
  };
151
151
  instantiateContract(value: MsgInstantiateContract): {
152
152
  typeUrl: string;
@@ -1,11 +1,11 @@
1
1
  import { Rpc } from "../../../helpers";
2
- import { MsgStoreCode, MsgStoreCodeResponse, MsgStoreCodeEvm, MsgStoreCodeEvmResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgExecuteContract, MsgExecuteContractResponse, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgExecuteDelegateContractResponse, MsgCompileContract, MsgCompileContractResponse } from "./tx";
2
+ import { MsgStoreCode, MsgStoreCodeResponse, MsgDeployCode, MsgDeployCodeResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgExecuteContract, MsgExecuteContractResponse, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgExecuteDelegateContractResponse, MsgCompileContract, MsgCompileContractResponse } from "./tx";
3
3
  /** Msg defines the wasm Msg service. */
4
4
  export interface Msg {
5
5
  /** StoreCode to submit Wasm code to the system */
6
6
  storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
7
- /** StoreCode to submit Wasm code to the system */
8
- storeCodeEvm(request: MsgStoreCodeEvm): Promise<MsgStoreCodeEvmResponse>;
7
+ /** DeployCode stores and instantiates */
8
+ deployCode(request: MsgDeployCode): Promise<MsgDeployCodeResponse>;
9
9
  /**
10
10
  * InstantiateContract creates a new smart contract instance for the given
11
11
  * code id.
@@ -29,7 +29,7 @@ export declare class MsgClientImpl implements Msg {
29
29
  private readonly rpc;
30
30
  constructor(rpc: Rpc);
31
31
  storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
32
- storeCodeEvm(request: MsgStoreCodeEvm): Promise<MsgStoreCodeEvmResponse>;
32
+ deployCode(request: MsgDeployCode): Promise<MsgDeployCodeResponse>;
33
33
  instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
34
34
  instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
35
35
  executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;