coreum-js 2.16.3 → 2.17.0
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/dist/main/client/index.js +15 -16
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/main/coreum/asset/ft/v1/token.js +276 -200
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/extensions/ft.js +2 -1
- package/dist/main/coreum/extensions/nft.js +2 -1
- package/dist/main/coreum/extensions/nftbeta.js +2 -1
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/bank.js +2 -1
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +11 -10
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +16 -9
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.d.ts +2636 -6
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.d.ts +14 -2
- package/dist/main/google/protobuf/any.js +6 -7
- package/dist/main/google/protobuf/duration.d.ts +14 -2
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.d.ts +14 -2
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/index.js +7 -17
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.d.ts +6360 -92
- package/dist/main/tendermint/abci/types.js +195 -235
- package/dist/main/tendermint/crypto/keys.d.ts +14 -2
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.d.ts +152 -10
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.d.ts +196 -12
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.d.ts +1744 -26
- package/dist/main/tendermint/types/types.js +62 -73
- package/dist/main/tendermint/types/validator.d.ts +230 -6
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.d.ts +28 -4
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/utils/convertStringToAny.d.ts +0 -1
- package/dist/main/utils/nft.js +2 -1
- package/dist/main/wasm/v1/authz.d.ts +20 -75
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/extensions/wasm.js +2 -1
- package/dist/main/wasm/v1/genesis.d.ts +14 -34
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -26
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.d.ts +40 -4
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -106
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -187
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -210
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -67
- package/dist/main/wasm/v1/types.js +224 -195
- package/dist/module/client/index.js +2 -1
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/google/api/http.d.ts +2636 -6
- package/dist/module/google/protobuf/any.d.ts +14 -2
- package/dist/module/google/protobuf/duration.d.ts +14 -2
- package/dist/module/google/protobuf/timestamp.d.ts +14 -2
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/tendermint/abci/types.d.ts +6360 -92
- package/dist/module/tendermint/crypto/keys.d.ts +14 -2
- package/dist/module/tendermint/crypto/proof.d.ts +152 -10
- package/dist/module/tendermint/types/params.d.ts +196 -12
- package/dist/module/tendermint/types/types.d.ts +1744 -26
- package/dist/module/tendermint/types/validator.d.ts +230 -6
- package/dist/module/tendermint/version/types.d.ts +28 -4
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/utils/convertStringToAny.d.ts +0 -1
- package/dist/module/wasm/v1/authz.d.ts +20 -75
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -34
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -26
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/pagination.d.ts +40 -4
- package/dist/module/wasm/v1/proposal.d.ts +23 -106
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -187
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -210
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -67
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: wasmd/proto/cosmwasm/wasm/v1/tx.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
9
|
import { AccessConfig, Params } from "./types";
|
|
6
10
|
export const protobufPackage = "cosmwasm.wasm.v1";
|
|
7
11
|
function createBaseMsgStoreCode() {
|
|
8
12
|
return {
|
|
9
13
|
sender: "",
|
|
10
|
-
wasmByteCode: new Uint8Array(),
|
|
14
|
+
wasmByteCode: new Uint8Array(0),
|
|
11
15
|
instantiatePermission: undefined,
|
|
12
16
|
};
|
|
13
17
|
}
|
|
14
18
|
export const MsgStoreCode = {
|
|
15
|
-
encode(message, writer =
|
|
19
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16
20
|
if (message.sender !== "") {
|
|
17
21
|
writer.uint32(10).string(message.sender);
|
|
18
22
|
}
|
|
@@ -25,44 +29,47 @@ export const MsgStoreCode = {
|
|
|
25
29
|
return writer;
|
|
26
30
|
},
|
|
27
31
|
decode(input, length) {
|
|
28
|
-
const reader = input instanceof
|
|
32
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29
33
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
34
|
const message = createBaseMsgStoreCode();
|
|
31
35
|
while (reader.pos < end) {
|
|
32
36
|
const tag = reader.uint32();
|
|
33
37
|
switch (tag >>> 3) {
|
|
34
|
-
case 1:
|
|
38
|
+
case 1: {
|
|
35
39
|
if (tag !== 10) {
|
|
36
40
|
break;
|
|
37
41
|
}
|
|
38
42
|
message.sender = reader.string();
|
|
39
43
|
continue;
|
|
40
|
-
|
|
44
|
+
}
|
|
45
|
+
case 2: {
|
|
41
46
|
if (tag !== 18) {
|
|
42
47
|
break;
|
|
43
48
|
}
|
|
44
49
|
message.wasmByteCode = reader.bytes();
|
|
45
50
|
continue;
|
|
46
|
-
|
|
51
|
+
}
|
|
52
|
+
case 5: {
|
|
47
53
|
if (tag !== 42) {
|
|
48
54
|
break;
|
|
49
55
|
}
|
|
50
56
|
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
51
57
|
continue;
|
|
58
|
+
}
|
|
52
59
|
}
|
|
53
60
|
if ((tag & 7) === 4 || tag === 0) {
|
|
54
61
|
break;
|
|
55
62
|
}
|
|
56
|
-
reader.
|
|
63
|
+
reader.skip(tag & 7);
|
|
57
64
|
}
|
|
58
65
|
return message;
|
|
59
66
|
},
|
|
60
67
|
fromJSON(object) {
|
|
61
68
|
return {
|
|
62
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
69
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
63
70
|
wasmByteCode: isSet(object.wasmByteCode)
|
|
64
71
|
? bytesFromBase64(object.wasmByteCode)
|
|
65
|
-
: new Uint8Array(),
|
|
72
|
+
: new Uint8Array(0),
|
|
66
73
|
instantiatePermission: isSet(object.instantiatePermission)
|
|
67
74
|
? AccessConfig.fromJSON(object.instantiatePermission)
|
|
68
75
|
: undefined,
|
|
@@ -70,15 +77,15 @@ export const MsgStoreCode = {
|
|
|
70
77
|
},
|
|
71
78
|
toJSON(message) {
|
|
72
79
|
const obj = {};
|
|
73
|
-
message.sender !==
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
if (message.sender !== "") {
|
|
81
|
+
obj.sender = message.sender;
|
|
82
|
+
}
|
|
83
|
+
if (message.wasmByteCode.length !== 0) {
|
|
84
|
+
obj.wasmByteCode = base64FromBytes(message.wasmByteCode);
|
|
85
|
+
}
|
|
86
|
+
if (message.instantiatePermission !== undefined) {
|
|
87
|
+
obj.instantiatePermission = AccessConfig.toJSON(message.instantiatePermission);
|
|
88
|
+
}
|
|
82
89
|
return obj;
|
|
83
90
|
},
|
|
84
91
|
create(base) {
|
|
@@ -87,7 +94,7 @@ export const MsgStoreCode = {
|
|
|
87
94
|
fromPartial(object) {
|
|
88
95
|
const message = createBaseMsgStoreCode();
|
|
89
96
|
message.sender = object.sender ?? "";
|
|
90
|
-
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
97
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array(0);
|
|
91
98
|
message.instantiatePermission =
|
|
92
99
|
object.instantiatePermission !== undefined &&
|
|
93
100
|
object.instantiatePermission !== null
|
|
@@ -97,10 +104,10 @@ export const MsgStoreCode = {
|
|
|
97
104
|
},
|
|
98
105
|
};
|
|
99
106
|
function createBaseMsgStoreCodeResponse() {
|
|
100
|
-
return { codeId: 0, checksum: new Uint8Array() };
|
|
107
|
+
return { codeId: 0, checksum: new Uint8Array(0) };
|
|
101
108
|
}
|
|
102
109
|
export const MsgStoreCodeResponse = {
|
|
103
|
-
encode(message, writer =
|
|
110
|
+
encode(message, writer = new BinaryWriter()) {
|
|
104
111
|
if (message.codeId !== 0) {
|
|
105
112
|
writer.uint32(8).uint64(message.codeId);
|
|
106
113
|
}
|
|
@@ -110,45 +117,50 @@ export const MsgStoreCodeResponse = {
|
|
|
110
117
|
return writer;
|
|
111
118
|
},
|
|
112
119
|
decode(input, length) {
|
|
113
|
-
const reader = input instanceof
|
|
120
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
114
121
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
115
122
|
const message = createBaseMsgStoreCodeResponse();
|
|
116
123
|
while (reader.pos < end) {
|
|
117
124
|
const tag = reader.uint32();
|
|
118
125
|
switch (tag >>> 3) {
|
|
119
|
-
case 1:
|
|
126
|
+
case 1: {
|
|
120
127
|
if (tag !== 8) {
|
|
121
128
|
break;
|
|
122
129
|
}
|
|
123
130
|
message.codeId = longToNumber(reader.uint64());
|
|
124
131
|
continue;
|
|
125
|
-
|
|
132
|
+
}
|
|
133
|
+
case 2: {
|
|
126
134
|
if (tag !== 18) {
|
|
127
135
|
break;
|
|
128
136
|
}
|
|
129
137
|
message.checksum = reader.bytes();
|
|
130
138
|
continue;
|
|
139
|
+
}
|
|
131
140
|
}
|
|
132
141
|
if ((tag & 7) === 4 || tag === 0) {
|
|
133
142
|
break;
|
|
134
143
|
}
|
|
135
|
-
reader.
|
|
144
|
+
reader.skip(tag & 7);
|
|
136
145
|
}
|
|
137
146
|
return message;
|
|
138
147
|
},
|
|
139
148
|
fromJSON(object) {
|
|
140
149
|
return {
|
|
141
|
-
codeId: isSet(object.codeId) ? Number(object.codeId) : 0,
|
|
150
|
+
codeId: isSet(object.codeId) ? globalThis.Number(object.codeId) : 0,
|
|
142
151
|
checksum: isSet(object.checksum)
|
|
143
152
|
? bytesFromBase64(object.checksum)
|
|
144
|
-
: new Uint8Array(),
|
|
153
|
+
: new Uint8Array(0),
|
|
145
154
|
};
|
|
146
155
|
},
|
|
147
156
|
toJSON(message) {
|
|
148
157
|
const obj = {};
|
|
149
|
-
message.codeId !==
|
|
150
|
-
|
|
151
|
-
|
|
158
|
+
if (message.codeId !== 0) {
|
|
159
|
+
obj.codeId = Math.round(message.codeId);
|
|
160
|
+
}
|
|
161
|
+
if (message.checksum.length !== 0) {
|
|
162
|
+
obj.checksum = base64FromBytes(message.checksum);
|
|
163
|
+
}
|
|
152
164
|
return obj;
|
|
153
165
|
},
|
|
154
166
|
create(base) {
|
|
@@ -157,7 +169,7 @@ export const MsgStoreCodeResponse = {
|
|
|
157
169
|
fromPartial(object) {
|
|
158
170
|
const message = createBaseMsgStoreCodeResponse();
|
|
159
171
|
message.codeId = object.codeId ?? 0;
|
|
160
|
-
message.checksum = object.checksum ?? new Uint8Array();
|
|
172
|
+
message.checksum = object.checksum ?? new Uint8Array(0);
|
|
161
173
|
return message;
|
|
162
174
|
},
|
|
163
175
|
};
|
|
@@ -167,12 +179,12 @@ function createBaseMsgInstantiateContract() {
|
|
|
167
179
|
admin: "",
|
|
168
180
|
codeId: 0,
|
|
169
181
|
label: "",
|
|
170
|
-
msg: new Uint8Array(),
|
|
182
|
+
msg: new Uint8Array(0),
|
|
171
183
|
funds: [],
|
|
172
184
|
};
|
|
173
185
|
}
|
|
174
186
|
export const MsgInstantiateContract = {
|
|
175
|
-
encode(message, writer =
|
|
187
|
+
encode(message, writer = new BinaryWriter()) {
|
|
176
188
|
if (message.sender !== "") {
|
|
177
189
|
writer.uint32(10).string(message.sender);
|
|
178
190
|
}
|
|
@@ -194,81 +206,93 @@ export const MsgInstantiateContract = {
|
|
|
194
206
|
return writer;
|
|
195
207
|
},
|
|
196
208
|
decode(input, length) {
|
|
197
|
-
const reader = input instanceof
|
|
209
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
198
210
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
211
|
const message = createBaseMsgInstantiateContract();
|
|
200
212
|
while (reader.pos < end) {
|
|
201
213
|
const tag = reader.uint32();
|
|
202
214
|
switch (tag >>> 3) {
|
|
203
|
-
case 1:
|
|
215
|
+
case 1: {
|
|
204
216
|
if (tag !== 10) {
|
|
205
217
|
break;
|
|
206
218
|
}
|
|
207
219
|
message.sender = reader.string();
|
|
208
220
|
continue;
|
|
209
|
-
|
|
221
|
+
}
|
|
222
|
+
case 2: {
|
|
210
223
|
if (tag !== 18) {
|
|
211
224
|
break;
|
|
212
225
|
}
|
|
213
226
|
message.admin = reader.string();
|
|
214
227
|
continue;
|
|
215
|
-
|
|
228
|
+
}
|
|
229
|
+
case 3: {
|
|
216
230
|
if (tag !== 24) {
|
|
217
231
|
break;
|
|
218
232
|
}
|
|
219
233
|
message.codeId = longToNumber(reader.uint64());
|
|
220
234
|
continue;
|
|
221
|
-
|
|
235
|
+
}
|
|
236
|
+
case 4: {
|
|
222
237
|
if (tag !== 34) {
|
|
223
238
|
break;
|
|
224
239
|
}
|
|
225
240
|
message.label = reader.string();
|
|
226
241
|
continue;
|
|
227
|
-
|
|
242
|
+
}
|
|
243
|
+
case 5: {
|
|
228
244
|
if (tag !== 42) {
|
|
229
245
|
break;
|
|
230
246
|
}
|
|
231
247
|
message.msg = reader.bytes();
|
|
232
248
|
continue;
|
|
233
|
-
|
|
249
|
+
}
|
|
250
|
+
case 6: {
|
|
234
251
|
if (tag !== 50) {
|
|
235
252
|
break;
|
|
236
253
|
}
|
|
237
254
|
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
238
255
|
continue;
|
|
256
|
+
}
|
|
239
257
|
}
|
|
240
258
|
if ((tag & 7) === 4 || tag === 0) {
|
|
241
259
|
break;
|
|
242
260
|
}
|
|
243
|
-
reader.
|
|
261
|
+
reader.skip(tag & 7);
|
|
244
262
|
}
|
|
245
263
|
return message;
|
|
246
264
|
},
|
|
247
265
|
fromJSON(object) {
|
|
248
266
|
return {
|
|
249
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
250
|
-
admin: isSet(object.admin) ? String(object.admin) : "",
|
|
251
|
-
codeId: isSet(object.codeId) ? Number(object.codeId) : 0,
|
|
252
|
-
label: isSet(object.label) ? String(object.label) : "",
|
|
253
|
-
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(),
|
|
254
|
-
funds: Array.isArray(object?.funds)
|
|
267
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
268
|
+
admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
|
|
269
|
+
codeId: isSet(object.codeId) ? globalThis.Number(object.codeId) : 0,
|
|
270
|
+
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
271
|
+
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(0),
|
|
272
|
+
funds: globalThis.Array.isArray(object?.funds)
|
|
255
273
|
? object.funds.map((e) => Coin.fromJSON(e))
|
|
256
274
|
: [],
|
|
257
275
|
};
|
|
258
276
|
},
|
|
259
277
|
toJSON(message) {
|
|
260
278
|
const obj = {};
|
|
261
|
-
message.sender !==
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
message.
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
if (message.
|
|
268
|
-
obj.
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
obj.
|
|
279
|
+
if (message.sender !== "") {
|
|
280
|
+
obj.sender = message.sender;
|
|
281
|
+
}
|
|
282
|
+
if (message.admin !== "") {
|
|
283
|
+
obj.admin = message.admin;
|
|
284
|
+
}
|
|
285
|
+
if (message.codeId !== 0) {
|
|
286
|
+
obj.codeId = Math.round(message.codeId);
|
|
287
|
+
}
|
|
288
|
+
if (message.label !== "") {
|
|
289
|
+
obj.label = message.label;
|
|
290
|
+
}
|
|
291
|
+
if (message.msg.length !== 0) {
|
|
292
|
+
obj.msg = base64FromBytes(message.msg);
|
|
293
|
+
}
|
|
294
|
+
if (message.funds?.length) {
|
|
295
|
+
obj.funds = message.funds.map((e) => Coin.toJSON(e));
|
|
272
296
|
}
|
|
273
297
|
return obj;
|
|
274
298
|
},
|
|
@@ -281,16 +305,16 @@ export const MsgInstantiateContract = {
|
|
|
281
305
|
message.admin = object.admin ?? "";
|
|
282
306
|
message.codeId = object.codeId ?? 0;
|
|
283
307
|
message.label = object.label ?? "";
|
|
284
|
-
message.msg = object.msg ?? new Uint8Array();
|
|
308
|
+
message.msg = object.msg ?? new Uint8Array(0);
|
|
285
309
|
message.funds = object.funds?.map((e) => Coin.fromPartial(e)) || [];
|
|
286
310
|
return message;
|
|
287
311
|
},
|
|
288
312
|
};
|
|
289
313
|
function createBaseMsgInstantiateContractResponse() {
|
|
290
|
-
return { address: "", data: new Uint8Array() };
|
|
314
|
+
return { address: "", data: new Uint8Array(0) };
|
|
291
315
|
}
|
|
292
316
|
export const MsgInstantiateContractResponse = {
|
|
293
|
-
encode(message, writer =
|
|
317
|
+
encode(message, writer = new BinaryWriter()) {
|
|
294
318
|
if (message.address !== "") {
|
|
295
319
|
writer.uint32(10).string(message.address);
|
|
296
320
|
}
|
|
@@ -300,45 +324,50 @@ export const MsgInstantiateContractResponse = {
|
|
|
300
324
|
return writer;
|
|
301
325
|
},
|
|
302
326
|
decode(input, length) {
|
|
303
|
-
const reader = input instanceof
|
|
327
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
304
328
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
305
329
|
const message = createBaseMsgInstantiateContractResponse();
|
|
306
330
|
while (reader.pos < end) {
|
|
307
331
|
const tag = reader.uint32();
|
|
308
332
|
switch (tag >>> 3) {
|
|
309
|
-
case 1:
|
|
333
|
+
case 1: {
|
|
310
334
|
if (tag !== 10) {
|
|
311
335
|
break;
|
|
312
336
|
}
|
|
313
337
|
message.address = reader.string();
|
|
314
338
|
continue;
|
|
315
|
-
|
|
339
|
+
}
|
|
340
|
+
case 2: {
|
|
316
341
|
if (tag !== 18) {
|
|
317
342
|
break;
|
|
318
343
|
}
|
|
319
344
|
message.data = reader.bytes();
|
|
320
345
|
continue;
|
|
346
|
+
}
|
|
321
347
|
}
|
|
322
348
|
if ((tag & 7) === 4 || tag === 0) {
|
|
323
349
|
break;
|
|
324
350
|
}
|
|
325
|
-
reader.
|
|
351
|
+
reader.skip(tag & 7);
|
|
326
352
|
}
|
|
327
353
|
return message;
|
|
328
354
|
},
|
|
329
355
|
fromJSON(object) {
|
|
330
356
|
return {
|
|
331
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
357
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
332
358
|
data: isSet(object.data)
|
|
333
359
|
? bytesFromBase64(object.data)
|
|
334
|
-
: new Uint8Array(),
|
|
360
|
+
: new Uint8Array(0),
|
|
335
361
|
};
|
|
336
362
|
},
|
|
337
363
|
toJSON(message) {
|
|
338
364
|
const obj = {};
|
|
339
|
-
message.address !==
|
|
340
|
-
|
|
341
|
-
|
|
365
|
+
if (message.address !== "") {
|
|
366
|
+
obj.address = message.address;
|
|
367
|
+
}
|
|
368
|
+
if (message.data.length !== 0) {
|
|
369
|
+
obj.data = base64FromBytes(message.data);
|
|
370
|
+
}
|
|
342
371
|
return obj;
|
|
343
372
|
},
|
|
344
373
|
create(base) {
|
|
@@ -347,7 +376,7 @@ export const MsgInstantiateContractResponse = {
|
|
|
347
376
|
fromPartial(object) {
|
|
348
377
|
const message = createBaseMsgInstantiateContractResponse();
|
|
349
378
|
message.address = object.address ?? "";
|
|
350
|
-
message.data = object.data ?? new Uint8Array();
|
|
379
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
351
380
|
return message;
|
|
352
381
|
},
|
|
353
382
|
};
|
|
@@ -357,14 +386,14 @@ function createBaseMsgInstantiateContract2() {
|
|
|
357
386
|
admin: "",
|
|
358
387
|
codeId: 0,
|
|
359
388
|
label: "",
|
|
360
|
-
msg: new Uint8Array(),
|
|
389
|
+
msg: new Uint8Array(0),
|
|
361
390
|
funds: [],
|
|
362
|
-
salt: new Uint8Array(),
|
|
391
|
+
salt: new Uint8Array(0),
|
|
363
392
|
fixMsg: false,
|
|
364
393
|
};
|
|
365
394
|
}
|
|
366
395
|
export const MsgInstantiateContract2 = {
|
|
367
|
-
encode(message, writer =
|
|
396
|
+
encode(message, writer = new BinaryWriter()) {
|
|
368
397
|
if (message.sender !== "") {
|
|
369
398
|
writer.uint32(10).string(message.sender);
|
|
370
399
|
}
|
|
@@ -386,107 +415,124 @@ export const MsgInstantiateContract2 = {
|
|
|
386
415
|
if (message.salt.length !== 0) {
|
|
387
416
|
writer.uint32(58).bytes(message.salt);
|
|
388
417
|
}
|
|
389
|
-
if (message.fixMsg
|
|
418
|
+
if (message.fixMsg !== false) {
|
|
390
419
|
writer.uint32(64).bool(message.fixMsg);
|
|
391
420
|
}
|
|
392
421
|
return writer;
|
|
393
422
|
},
|
|
394
423
|
decode(input, length) {
|
|
395
|
-
const reader = input instanceof
|
|
424
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
396
425
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
397
426
|
const message = createBaseMsgInstantiateContract2();
|
|
398
427
|
while (reader.pos < end) {
|
|
399
428
|
const tag = reader.uint32();
|
|
400
429
|
switch (tag >>> 3) {
|
|
401
|
-
case 1:
|
|
430
|
+
case 1: {
|
|
402
431
|
if (tag !== 10) {
|
|
403
432
|
break;
|
|
404
433
|
}
|
|
405
434
|
message.sender = reader.string();
|
|
406
435
|
continue;
|
|
407
|
-
|
|
436
|
+
}
|
|
437
|
+
case 2: {
|
|
408
438
|
if (tag !== 18) {
|
|
409
439
|
break;
|
|
410
440
|
}
|
|
411
441
|
message.admin = reader.string();
|
|
412
442
|
continue;
|
|
413
|
-
|
|
443
|
+
}
|
|
444
|
+
case 3: {
|
|
414
445
|
if (tag !== 24) {
|
|
415
446
|
break;
|
|
416
447
|
}
|
|
417
448
|
message.codeId = longToNumber(reader.uint64());
|
|
418
449
|
continue;
|
|
419
|
-
|
|
450
|
+
}
|
|
451
|
+
case 4: {
|
|
420
452
|
if (tag !== 34) {
|
|
421
453
|
break;
|
|
422
454
|
}
|
|
423
455
|
message.label = reader.string();
|
|
424
456
|
continue;
|
|
425
|
-
|
|
457
|
+
}
|
|
458
|
+
case 5: {
|
|
426
459
|
if (tag !== 42) {
|
|
427
460
|
break;
|
|
428
461
|
}
|
|
429
462
|
message.msg = reader.bytes();
|
|
430
463
|
continue;
|
|
431
|
-
|
|
464
|
+
}
|
|
465
|
+
case 6: {
|
|
432
466
|
if (tag !== 50) {
|
|
433
467
|
break;
|
|
434
468
|
}
|
|
435
469
|
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
436
470
|
continue;
|
|
437
|
-
|
|
471
|
+
}
|
|
472
|
+
case 7: {
|
|
438
473
|
if (tag !== 58) {
|
|
439
474
|
break;
|
|
440
475
|
}
|
|
441
476
|
message.salt = reader.bytes();
|
|
442
477
|
continue;
|
|
443
|
-
|
|
478
|
+
}
|
|
479
|
+
case 8: {
|
|
444
480
|
if (tag !== 64) {
|
|
445
481
|
break;
|
|
446
482
|
}
|
|
447
483
|
message.fixMsg = reader.bool();
|
|
448
484
|
continue;
|
|
485
|
+
}
|
|
449
486
|
}
|
|
450
487
|
if ((tag & 7) === 4 || tag === 0) {
|
|
451
488
|
break;
|
|
452
489
|
}
|
|
453
|
-
reader.
|
|
490
|
+
reader.skip(tag & 7);
|
|
454
491
|
}
|
|
455
492
|
return message;
|
|
456
493
|
},
|
|
457
494
|
fromJSON(object) {
|
|
458
495
|
return {
|
|
459
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
460
|
-
admin: isSet(object.admin) ? String(object.admin) : "",
|
|
461
|
-
codeId: isSet(object.codeId) ? Number(object.codeId) : 0,
|
|
462
|
-
label: isSet(object.label) ? String(object.label) : "",
|
|
463
|
-
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(),
|
|
464
|
-
funds: Array.isArray(object?.funds)
|
|
496
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
497
|
+
admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
|
|
498
|
+
codeId: isSet(object.codeId) ? globalThis.Number(object.codeId) : 0,
|
|
499
|
+
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
500
|
+
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(0),
|
|
501
|
+
funds: globalThis.Array.isArray(object?.funds)
|
|
465
502
|
? object.funds.map((e) => Coin.fromJSON(e))
|
|
466
503
|
: [],
|
|
467
504
|
salt: isSet(object.salt)
|
|
468
505
|
? bytesFromBase64(object.salt)
|
|
469
|
-
: new Uint8Array(),
|
|
470
|
-
fixMsg: isSet(object.fixMsg) ? Boolean(object.fixMsg) : false,
|
|
506
|
+
: new Uint8Array(0),
|
|
507
|
+
fixMsg: isSet(object.fixMsg) ? globalThis.Boolean(object.fixMsg) : false,
|
|
471
508
|
};
|
|
472
509
|
},
|
|
473
510
|
toJSON(message) {
|
|
474
511
|
const obj = {};
|
|
475
|
-
message.sender !==
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
message.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
if (message.
|
|
482
|
-
obj.
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
obj.
|
|
486
|
-
}
|
|
487
|
-
message.
|
|
488
|
-
|
|
489
|
-
|
|
512
|
+
if (message.sender !== "") {
|
|
513
|
+
obj.sender = message.sender;
|
|
514
|
+
}
|
|
515
|
+
if (message.admin !== "") {
|
|
516
|
+
obj.admin = message.admin;
|
|
517
|
+
}
|
|
518
|
+
if (message.codeId !== 0) {
|
|
519
|
+
obj.codeId = Math.round(message.codeId);
|
|
520
|
+
}
|
|
521
|
+
if (message.label !== "") {
|
|
522
|
+
obj.label = message.label;
|
|
523
|
+
}
|
|
524
|
+
if (message.msg.length !== 0) {
|
|
525
|
+
obj.msg = base64FromBytes(message.msg);
|
|
526
|
+
}
|
|
527
|
+
if (message.funds?.length) {
|
|
528
|
+
obj.funds = message.funds.map((e) => Coin.toJSON(e));
|
|
529
|
+
}
|
|
530
|
+
if (message.salt.length !== 0) {
|
|
531
|
+
obj.salt = base64FromBytes(message.salt);
|
|
532
|
+
}
|
|
533
|
+
if (message.fixMsg !== false) {
|
|
534
|
+
obj.fixMsg = message.fixMsg;
|
|
535
|
+
}
|
|
490
536
|
return obj;
|
|
491
537
|
},
|
|
492
538
|
create(base) {
|
|
@@ -498,18 +544,18 @@ export const MsgInstantiateContract2 = {
|
|
|
498
544
|
message.admin = object.admin ?? "";
|
|
499
545
|
message.codeId = object.codeId ?? 0;
|
|
500
546
|
message.label = object.label ?? "";
|
|
501
|
-
message.msg = object.msg ?? new Uint8Array();
|
|
547
|
+
message.msg = object.msg ?? new Uint8Array(0);
|
|
502
548
|
message.funds = object.funds?.map((e) => Coin.fromPartial(e)) || [];
|
|
503
|
-
message.salt = object.salt ?? new Uint8Array();
|
|
549
|
+
message.salt = object.salt ?? new Uint8Array(0);
|
|
504
550
|
message.fixMsg = object.fixMsg ?? false;
|
|
505
551
|
return message;
|
|
506
552
|
},
|
|
507
553
|
};
|
|
508
554
|
function createBaseMsgInstantiateContract2Response() {
|
|
509
|
-
return { address: "", data: new Uint8Array() };
|
|
555
|
+
return { address: "", data: new Uint8Array(0) };
|
|
510
556
|
}
|
|
511
557
|
export const MsgInstantiateContract2Response = {
|
|
512
|
-
encode(message, writer =
|
|
558
|
+
encode(message, writer = new BinaryWriter()) {
|
|
513
559
|
if (message.address !== "") {
|
|
514
560
|
writer.uint32(10).string(message.address);
|
|
515
561
|
}
|
|
@@ -519,45 +565,50 @@ export const MsgInstantiateContract2Response = {
|
|
|
519
565
|
return writer;
|
|
520
566
|
},
|
|
521
567
|
decode(input, length) {
|
|
522
|
-
const reader = input instanceof
|
|
568
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
523
569
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
524
570
|
const message = createBaseMsgInstantiateContract2Response();
|
|
525
571
|
while (reader.pos < end) {
|
|
526
572
|
const tag = reader.uint32();
|
|
527
573
|
switch (tag >>> 3) {
|
|
528
|
-
case 1:
|
|
574
|
+
case 1: {
|
|
529
575
|
if (tag !== 10) {
|
|
530
576
|
break;
|
|
531
577
|
}
|
|
532
578
|
message.address = reader.string();
|
|
533
579
|
continue;
|
|
534
|
-
|
|
580
|
+
}
|
|
581
|
+
case 2: {
|
|
535
582
|
if (tag !== 18) {
|
|
536
583
|
break;
|
|
537
584
|
}
|
|
538
585
|
message.data = reader.bytes();
|
|
539
586
|
continue;
|
|
587
|
+
}
|
|
540
588
|
}
|
|
541
589
|
if ((tag & 7) === 4 || tag === 0) {
|
|
542
590
|
break;
|
|
543
591
|
}
|
|
544
|
-
reader.
|
|
592
|
+
reader.skip(tag & 7);
|
|
545
593
|
}
|
|
546
594
|
return message;
|
|
547
595
|
},
|
|
548
596
|
fromJSON(object) {
|
|
549
597
|
return {
|
|
550
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
598
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
551
599
|
data: isSet(object.data)
|
|
552
600
|
? bytesFromBase64(object.data)
|
|
553
|
-
: new Uint8Array(),
|
|
601
|
+
: new Uint8Array(0),
|
|
554
602
|
};
|
|
555
603
|
},
|
|
556
604
|
toJSON(message) {
|
|
557
605
|
const obj = {};
|
|
558
|
-
message.address !==
|
|
559
|
-
|
|
560
|
-
|
|
606
|
+
if (message.address !== "") {
|
|
607
|
+
obj.address = message.address;
|
|
608
|
+
}
|
|
609
|
+
if (message.data.length !== 0) {
|
|
610
|
+
obj.data = base64FromBytes(message.data);
|
|
611
|
+
}
|
|
561
612
|
return obj;
|
|
562
613
|
},
|
|
563
614
|
create(base) {
|
|
@@ -566,15 +617,15 @@ export const MsgInstantiateContract2Response = {
|
|
|
566
617
|
fromPartial(object) {
|
|
567
618
|
const message = createBaseMsgInstantiateContract2Response();
|
|
568
619
|
message.address = object.address ?? "";
|
|
569
|
-
message.data = object.data ?? new Uint8Array();
|
|
620
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
570
621
|
return message;
|
|
571
622
|
},
|
|
572
623
|
};
|
|
573
624
|
function createBaseMsgExecuteContract() {
|
|
574
|
-
return { sender: "", contract: "", msg: new Uint8Array(), funds: [] };
|
|
625
|
+
return { sender: "", contract: "", msg: new Uint8Array(0), funds: [] };
|
|
575
626
|
}
|
|
576
627
|
export const MsgExecuteContract = {
|
|
577
|
-
encode(message, writer =
|
|
628
|
+
encode(message, writer = new BinaryWriter()) {
|
|
578
629
|
if (message.sender !== "") {
|
|
579
630
|
writer.uint32(10).string(message.sender);
|
|
580
631
|
}
|
|
@@ -590,65 +641,73 @@ export const MsgExecuteContract = {
|
|
|
590
641
|
return writer;
|
|
591
642
|
},
|
|
592
643
|
decode(input, length) {
|
|
593
|
-
const reader = input instanceof
|
|
644
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
594
645
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
595
646
|
const message = createBaseMsgExecuteContract();
|
|
596
647
|
while (reader.pos < end) {
|
|
597
648
|
const tag = reader.uint32();
|
|
598
649
|
switch (tag >>> 3) {
|
|
599
|
-
case 1:
|
|
650
|
+
case 1: {
|
|
600
651
|
if (tag !== 10) {
|
|
601
652
|
break;
|
|
602
653
|
}
|
|
603
654
|
message.sender = reader.string();
|
|
604
655
|
continue;
|
|
605
|
-
|
|
656
|
+
}
|
|
657
|
+
case 2: {
|
|
606
658
|
if (tag !== 18) {
|
|
607
659
|
break;
|
|
608
660
|
}
|
|
609
661
|
message.contract = reader.string();
|
|
610
662
|
continue;
|
|
611
|
-
|
|
663
|
+
}
|
|
664
|
+
case 3: {
|
|
612
665
|
if (tag !== 26) {
|
|
613
666
|
break;
|
|
614
667
|
}
|
|
615
668
|
message.msg = reader.bytes();
|
|
616
669
|
continue;
|
|
617
|
-
|
|
670
|
+
}
|
|
671
|
+
case 5: {
|
|
618
672
|
if (tag !== 42) {
|
|
619
673
|
break;
|
|
620
674
|
}
|
|
621
675
|
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
622
676
|
continue;
|
|
677
|
+
}
|
|
623
678
|
}
|
|
624
679
|
if ((tag & 7) === 4 || tag === 0) {
|
|
625
680
|
break;
|
|
626
681
|
}
|
|
627
|
-
reader.
|
|
682
|
+
reader.skip(tag & 7);
|
|
628
683
|
}
|
|
629
684
|
return message;
|
|
630
685
|
},
|
|
631
686
|
fromJSON(object) {
|
|
632
687
|
return {
|
|
633
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
634
|
-
contract: isSet(object.contract)
|
|
635
|
-
|
|
636
|
-
|
|
688
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
689
|
+
contract: isSet(object.contract)
|
|
690
|
+
? globalThis.String(object.contract)
|
|
691
|
+
: "",
|
|
692
|
+
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(0),
|
|
693
|
+
funds: globalThis.Array.isArray(object?.funds)
|
|
637
694
|
? object.funds.map((e) => Coin.fromJSON(e))
|
|
638
695
|
: [],
|
|
639
696
|
};
|
|
640
697
|
},
|
|
641
698
|
toJSON(message) {
|
|
642
699
|
const obj = {};
|
|
643
|
-
message.sender !==
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
700
|
+
if (message.sender !== "") {
|
|
701
|
+
obj.sender = message.sender;
|
|
702
|
+
}
|
|
703
|
+
if (message.contract !== "") {
|
|
704
|
+
obj.contract = message.contract;
|
|
705
|
+
}
|
|
706
|
+
if (message.msg.length !== 0) {
|
|
707
|
+
obj.msg = base64FromBytes(message.msg);
|
|
649
708
|
}
|
|
650
|
-
|
|
651
|
-
obj.funds =
|
|
709
|
+
if (message.funds?.length) {
|
|
710
|
+
obj.funds = message.funds.map((e) => Coin.toJSON(e));
|
|
652
711
|
}
|
|
653
712
|
return obj;
|
|
654
713
|
},
|
|
@@ -659,39 +718,40 @@ export const MsgExecuteContract = {
|
|
|
659
718
|
const message = createBaseMsgExecuteContract();
|
|
660
719
|
message.sender = object.sender ?? "";
|
|
661
720
|
message.contract = object.contract ?? "";
|
|
662
|
-
message.msg = object.msg ?? new Uint8Array();
|
|
721
|
+
message.msg = object.msg ?? new Uint8Array(0);
|
|
663
722
|
message.funds = object.funds?.map((e) => Coin.fromPartial(e)) || [];
|
|
664
723
|
return message;
|
|
665
724
|
},
|
|
666
725
|
};
|
|
667
726
|
function createBaseMsgExecuteContractResponse() {
|
|
668
|
-
return { data: new Uint8Array() };
|
|
727
|
+
return { data: new Uint8Array(0) };
|
|
669
728
|
}
|
|
670
729
|
export const MsgExecuteContractResponse = {
|
|
671
|
-
encode(message, writer =
|
|
730
|
+
encode(message, writer = new BinaryWriter()) {
|
|
672
731
|
if (message.data.length !== 0) {
|
|
673
732
|
writer.uint32(10).bytes(message.data);
|
|
674
733
|
}
|
|
675
734
|
return writer;
|
|
676
735
|
},
|
|
677
736
|
decode(input, length) {
|
|
678
|
-
const reader = input instanceof
|
|
737
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
679
738
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
680
739
|
const message = createBaseMsgExecuteContractResponse();
|
|
681
740
|
while (reader.pos < end) {
|
|
682
741
|
const tag = reader.uint32();
|
|
683
742
|
switch (tag >>> 3) {
|
|
684
|
-
case 1:
|
|
743
|
+
case 1: {
|
|
685
744
|
if (tag !== 10) {
|
|
686
745
|
break;
|
|
687
746
|
}
|
|
688
747
|
message.data = reader.bytes();
|
|
689
748
|
continue;
|
|
749
|
+
}
|
|
690
750
|
}
|
|
691
751
|
if ((tag & 7) === 4 || tag === 0) {
|
|
692
752
|
break;
|
|
693
753
|
}
|
|
694
|
-
reader.
|
|
754
|
+
reader.skip(tag & 7);
|
|
695
755
|
}
|
|
696
756
|
return message;
|
|
697
757
|
},
|
|
@@ -699,13 +759,14 @@ export const MsgExecuteContractResponse = {
|
|
|
699
759
|
return {
|
|
700
760
|
data: isSet(object.data)
|
|
701
761
|
? bytesFromBase64(object.data)
|
|
702
|
-
: new Uint8Array(),
|
|
762
|
+
: new Uint8Array(0),
|
|
703
763
|
};
|
|
704
764
|
},
|
|
705
765
|
toJSON(message) {
|
|
706
766
|
const obj = {};
|
|
707
|
-
message.data !==
|
|
708
|
-
|
|
767
|
+
if (message.data.length !== 0) {
|
|
768
|
+
obj.data = base64FromBytes(message.data);
|
|
769
|
+
}
|
|
709
770
|
return obj;
|
|
710
771
|
},
|
|
711
772
|
create(base) {
|
|
@@ -713,15 +774,15 @@ export const MsgExecuteContractResponse = {
|
|
|
713
774
|
},
|
|
714
775
|
fromPartial(object) {
|
|
715
776
|
const message = createBaseMsgExecuteContractResponse();
|
|
716
|
-
message.data = object.data ?? new Uint8Array();
|
|
777
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
717
778
|
return message;
|
|
718
779
|
},
|
|
719
780
|
};
|
|
720
781
|
function createBaseMsgMigrateContract() {
|
|
721
|
-
return { sender: "", contract: "", codeId: 0, msg: new Uint8Array() };
|
|
782
|
+
return { sender: "", contract: "", codeId: 0, msg: new Uint8Array(0) };
|
|
722
783
|
}
|
|
723
784
|
export const MsgMigrateContract = {
|
|
724
|
-
encode(message, writer =
|
|
785
|
+
encode(message, writer = new BinaryWriter()) {
|
|
725
786
|
if (message.sender !== "") {
|
|
726
787
|
writer.uint32(10).string(message.sender);
|
|
727
788
|
}
|
|
@@ -737,59 +798,72 @@ export const MsgMigrateContract = {
|
|
|
737
798
|
return writer;
|
|
738
799
|
},
|
|
739
800
|
decode(input, length) {
|
|
740
|
-
const reader = input instanceof
|
|
801
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
741
802
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
742
803
|
const message = createBaseMsgMigrateContract();
|
|
743
804
|
while (reader.pos < end) {
|
|
744
805
|
const tag = reader.uint32();
|
|
745
806
|
switch (tag >>> 3) {
|
|
746
|
-
case 1:
|
|
807
|
+
case 1: {
|
|
747
808
|
if (tag !== 10) {
|
|
748
809
|
break;
|
|
749
810
|
}
|
|
750
811
|
message.sender = reader.string();
|
|
751
812
|
continue;
|
|
752
|
-
|
|
813
|
+
}
|
|
814
|
+
case 2: {
|
|
753
815
|
if (tag !== 18) {
|
|
754
816
|
break;
|
|
755
817
|
}
|
|
756
818
|
message.contract = reader.string();
|
|
757
819
|
continue;
|
|
758
|
-
|
|
820
|
+
}
|
|
821
|
+
case 3: {
|
|
759
822
|
if (tag !== 24) {
|
|
760
823
|
break;
|
|
761
824
|
}
|
|
762
825
|
message.codeId = longToNumber(reader.uint64());
|
|
763
826
|
continue;
|
|
764
|
-
|
|
827
|
+
}
|
|
828
|
+
case 4: {
|
|
765
829
|
if (tag !== 34) {
|
|
766
830
|
break;
|
|
767
831
|
}
|
|
768
832
|
message.msg = reader.bytes();
|
|
769
833
|
continue;
|
|
834
|
+
}
|
|
770
835
|
}
|
|
771
836
|
if ((tag & 7) === 4 || tag === 0) {
|
|
772
837
|
break;
|
|
773
838
|
}
|
|
774
|
-
reader.
|
|
839
|
+
reader.skip(tag & 7);
|
|
775
840
|
}
|
|
776
841
|
return message;
|
|
777
842
|
},
|
|
778
843
|
fromJSON(object) {
|
|
779
844
|
return {
|
|
780
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
781
|
-
contract: isSet(object.contract)
|
|
782
|
-
|
|
783
|
-
|
|
845
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
846
|
+
contract: isSet(object.contract)
|
|
847
|
+
? globalThis.String(object.contract)
|
|
848
|
+
: "",
|
|
849
|
+
codeId: isSet(object.codeId) ? globalThis.Number(object.codeId) : 0,
|
|
850
|
+
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(0),
|
|
784
851
|
};
|
|
785
852
|
},
|
|
786
853
|
toJSON(message) {
|
|
787
854
|
const obj = {};
|
|
788
|
-
message.sender !==
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
message.
|
|
792
|
-
|
|
855
|
+
if (message.sender !== "") {
|
|
856
|
+
obj.sender = message.sender;
|
|
857
|
+
}
|
|
858
|
+
if (message.contract !== "") {
|
|
859
|
+
obj.contract = message.contract;
|
|
860
|
+
}
|
|
861
|
+
if (message.codeId !== 0) {
|
|
862
|
+
obj.codeId = Math.round(message.codeId);
|
|
863
|
+
}
|
|
864
|
+
if (message.msg.length !== 0) {
|
|
865
|
+
obj.msg = base64FromBytes(message.msg);
|
|
866
|
+
}
|
|
793
867
|
return obj;
|
|
794
868
|
},
|
|
795
869
|
create(base) {
|
|
@@ -800,38 +874,39 @@ export const MsgMigrateContract = {
|
|
|
800
874
|
message.sender = object.sender ?? "";
|
|
801
875
|
message.contract = object.contract ?? "";
|
|
802
876
|
message.codeId = object.codeId ?? 0;
|
|
803
|
-
message.msg = object.msg ?? new Uint8Array();
|
|
877
|
+
message.msg = object.msg ?? new Uint8Array(0);
|
|
804
878
|
return message;
|
|
805
879
|
},
|
|
806
880
|
};
|
|
807
881
|
function createBaseMsgMigrateContractResponse() {
|
|
808
|
-
return { data: new Uint8Array() };
|
|
882
|
+
return { data: new Uint8Array(0) };
|
|
809
883
|
}
|
|
810
884
|
export const MsgMigrateContractResponse = {
|
|
811
|
-
encode(message, writer =
|
|
885
|
+
encode(message, writer = new BinaryWriter()) {
|
|
812
886
|
if (message.data.length !== 0) {
|
|
813
887
|
writer.uint32(10).bytes(message.data);
|
|
814
888
|
}
|
|
815
889
|
return writer;
|
|
816
890
|
},
|
|
817
891
|
decode(input, length) {
|
|
818
|
-
const reader = input instanceof
|
|
892
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
819
893
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
820
894
|
const message = createBaseMsgMigrateContractResponse();
|
|
821
895
|
while (reader.pos < end) {
|
|
822
896
|
const tag = reader.uint32();
|
|
823
897
|
switch (tag >>> 3) {
|
|
824
|
-
case 1:
|
|
898
|
+
case 1: {
|
|
825
899
|
if (tag !== 10) {
|
|
826
900
|
break;
|
|
827
901
|
}
|
|
828
902
|
message.data = reader.bytes();
|
|
829
903
|
continue;
|
|
904
|
+
}
|
|
830
905
|
}
|
|
831
906
|
if ((tag & 7) === 4 || tag === 0) {
|
|
832
907
|
break;
|
|
833
908
|
}
|
|
834
|
-
reader.
|
|
909
|
+
reader.skip(tag & 7);
|
|
835
910
|
}
|
|
836
911
|
return message;
|
|
837
912
|
},
|
|
@@ -839,13 +914,14 @@ export const MsgMigrateContractResponse = {
|
|
|
839
914
|
return {
|
|
840
915
|
data: isSet(object.data)
|
|
841
916
|
? bytesFromBase64(object.data)
|
|
842
|
-
: new Uint8Array(),
|
|
917
|
+
: new Uint8Array(0),
|
|
843
918
|
};
|
|
844
919
|
},
|
|
845
920
|
toJSON(message) {
|
|
846
921
|
const obj = {};
|
|
847
|
-
message.data !==
|
|
848
|
-
|
|
922
|
+
if (message.data.length !== 0) {
|
|
923
|
+
obj.data = base64FromBytes(message.data);
|
|
924
|
+
}
|
|
849
925
|
return obj;
|
|
850
926
|
},
|
|
851
927
|
create(base) {
|
|
@@ -853,7 +929,7 @@ export const MsgMigrateContractResponse = {
|
|
|
853
929
|
},
|
|
854
930
|
fromPartial(object) {
|
|
855
931
|
const message = createBaseMsgMigrateContractResponse();
|
|
856
|
-
message.data = object.data ?? new Uint8Array();
|
|
932
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
857
933
|
return message;
|
|
858
934
|
},
|
|
859
935
|
};
|
|
@@ -861,7 +937,7 @@ function createBaseMsgUpdateAdmin() {
|
|
|
861
937
|
return { sender: "", newAdmin: "", contract: "" };
|
|
862
938
|
}
|
|
863
939
|
export const MsgUpdateAdmin = {
|
|
864
|
-
encode(message, writer =
|
|
940
|
+
encode(message, writer = new BinaryWriter()) {
|
|
865
941
|
if (message.sender !== "") {
|
|
866
942
|
writer.uint32(10).string(message.sender);
|
|
867
943
|
}
|
|
@@ -874,50 +950,63 @@ export const MsgUpdateAdmin = {
|
|
|
874
950
|
return writer;
|
|
875
951
|
},
|
|
876
952
|
decode(input, length) {
|
|
877
|
-
const reader = input instanceof
|
|
953
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
878
954
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
879
955
|
const message = createBaseMsgUpdateAdmin();
|
|
880
956
|
while (reader.pos < end) {
|
|
881
957
|
const tag = reader.uint32();
|
|
882
958
|
switch (tag >>> 3) {
|
|
883
|
-
case 1:
|
|
959
|
+
case 1: {
|
|
884
960
|
if (tag !== 10) {
|
|
885
961
|
break;
|
|
886
962
|
}
|
|
887
963
|
message.sender = reader.string();
|
|
888
964
|
continue;
|
|
889
|
-
|
|
965
|
+
}
|
|
966
|
+
case 2: {
|
|
890
967
|
if (tag !== 18) {
|
|
891
968
|
break;
|
|
892
969
|
}
|
|
893
970
|
message.newAdmin = reader.string();
|
|
894
971
|
continue;
|
|
895
|
-
|
|
972
|
+
}
|
|
973
|
+
case 3: {
|
|
896
974
|
if (tag !== 26) {
|
|
897
975
|
break;
|
|
898
976
|
}
|
|
899
977
|
message.contract = reader.string();
|
|
900
978
|
continue;
|
|
979
|
+
}
|
|
901
980
|
}
|
|
902
981
|
if ((tag & 7) === 4 || tag === 0) {
|
|
903
982
|
break;
|
|
904
983
|
}
|
|
905
|
-
reader.
|
|
984
|
+
reader.skip(tag & 7);
|
|
906
985
|
}
|
|
907
986
|
return message;
|
|
908
987
|
},
|
|
909
988
|
fromJSON(object) {
|
|
910
989
|
return {
|
|
911
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
912
|
-
newAdmin: isSet(object.newAdmin)
|
|
913
|
-
|
|
990
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
991
|
+
newAdmin: isSet(object.newAdmin)
|
|
992
|
+
? globalThis.String(object.newAdmin)
|
|
993
|
+
: "",
|
|
994
|
+
contract: isSet(object.contract)
|
|
995
|
+
? globalThis.String(object.contract)
|
|
996
|
+
: "",
|
|
914
997
|
};
|
|
915
998
|
},
|
|
916
999
|
toJSON(message) {
|
|
917
1000
|
const obj = {};
|
|
918
|
-
message.sender !==
|
|
919
|
-
|
|
920
|
-
|
|
1001
|
+
if (message.sender !== "") {
|
|
1002
|
+
obj.sender = message.sender;
|
|
1003
|
+
}
|
|
1004
|
+
if (message.newAdmin !== "") {
|
|
1005
|
+
obj.newAdmin = message.newAdmin;
|
|
1006
|
+
}
|
|
1007
|
+
if (message.contract !== "") {
|
|
1008
|
+
obj.contract = message.contract;
|
|
1009
|
+
}
|
|
921
1010
|
return obj;
|
|
922
1011
|
},
|
|
923
1012
|
create(base) {
|
|
@@ -935,11 +1024,11 @@ function createBaseMsgUpdateAdminResponse() {
|
|
|
935
1024
|
return {};
|
|
936
1025
|
}
|
|
937
1026
|
export const MsgUpdateAdminResponse = {
|
|
938
|
-
encode(_, writer =
|
|
1027
|
+
encode(_, writer = new BinaryWriter()) {
|
|
939
1028
|
return writer;
|
|
940
1029
|
},
|
|
941
1030
|
decode(input, length) {
|
|
942
|
-
const reader = input instanceof
|
|
1031
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
943
1032
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
944
1033
|
const message = createBaseMsgUpdateAdminResponse();
|
|
945
1034
|
while (reader.pos < end) {
|
|
@@ -949,7 +1038,7 @@ export const MsgUpdateAdminResponse = {
|
|
|
949
1038
|
if ((tag & 7) === 4 || tag === 0) {
|
|
950
1039
|
break;
|
|
951
1040
|
}
|
|
952
|
-
reader.
|
|
1041
|
+
reader.skip(tag & 7);
|
|
953
1042
|
}
|
|
954
1043
|
return message;
|
|
955
1044
|
},
|
|
@@ -972,7 +1061,7 @@ function createBaseMsgClearAdmin() {
|
|
|
972
1061
|
return { sender: "", contract: "" };
|
|
973
1062
|
}
|
|
974
1063
|
export const MsgClearAdmin = {
|
|
975
|
-
encode(message, writer =
|
|
1064
|
+
encode(message, writer = new BinaryWriter()) {
|
|
976
1065
|
if (message.sender !== "") {
|
|
977
1066
|
writer.uint32(10).string(message.sender);
|
|
978
1067
|
}
|
|
@@ -982,42 +1071,50 @@ export const MsgClearAdmin = {
|
|
|
982
1071
|
return writer;
|
|
983
1072
|
},
|
|
984
1073
|
decode(input, length) {
|
|
985
|
-
const reader = input instanceof
|
|
1074
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
986
1075
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
987
1076
|
const message = createBaseMsgClearAdmin();
|
|
988
1077
|
while (reader.pos < end) {
|
|
989
1078
|
const tag = reader.uint32();
|
|
990
1079
|
switch (tag >>> 3) {
|
|
991
|
-
case 1:
|
|
1080
|
+
case 1: {
|
|
992
1081
|
if (tag !== 10) {
|
|
993
1082
|
break;
|
|
994
1083
|
}
|
|
995
1084
|
message.sender = reader.string();
|
|
996
1085
|
continue;
|
|
997
|
-
|
|
1086
|
+
}
|
|
1087
|
+
case 3: {
|
|
998
1088
|
if (tag !== 26) {
|
|
999
1089
|
break;
|
|
1000
1090
|
}
|
|
1001
1091
|
message.contract = reader.string();
|
|
1002
1092
|
continue;
|
|
1093
|
+
}
|
|
1003
1094
|
}
|
|
1004
1095
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1005
1096
|
break;
|
|
1006
1097
|
}
|
|
1007
|
-
reader.
|
|
1098
|
+
reader.skip(tag & 7);
|
|
1008
1099
|
}
|
|
1009
1100
|
return message;
|
|
1010
1101
|
},
|
|
1011
1102
|
fromJSON(object) {
|
|
1012
1103
|
return {
|
|
1013
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
1014
|
-
contract: isSet(object.contract)
|
|
1104
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
1105
|
+
contract: isSet(object.contract)
|
|
1106
|
+
? globalThis.String(object.contract)
|
|
1107
|
+
: "",
|
|
1015
1108
|
};
|
|
1016
1109
|
},
|
|
1017
1110
|
toJSON(message) {
|
|
1018
1111
|
const obj = {};
|
|
1019
|
-
message.sender !==
|
|
1020
|
-
|
|
1112
|
+
if (message.sender !== "") {
|
|
1113
|
+
obj.sender = message.sender;
|
|
1114
|
+
}
|
|
1115
|
+
if (message.contract !== "") {
|
|
1116
|
+
obj.contract = message.contract;
|
|
1117
|
+
}
|
|
1021
1118
|
return obj;
|
|
1022
1119
|
},
|
|
1023
1120
|
create(base) {
|
|
@@ -1034,11 +1131,11 @@ function createBaseMsgClearAdminResponse() {
|
|
|
1034
1131
|
return {};
|
|
1035
1132
|
}
|
|
1036
1133
|
export const MsgClearAdminResponse = {
|
|
1037
|
-
encode(_, writer =
|
|
1134
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1038
1135
|
return writer;
|
|
1039
1136
|
},
|
|
1040
1137
|
decode(input, length) {
|
|
1041
|
-
const reader = input instanceof
|
|
1138
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1042
1139
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1043
1140
|
const message = createBaseMsgClearAdminResponse();
|
|
1044
1141
|
while (reader.pos < end) {
|
|
@@ -1048,7 +1145,7 @@ export const MsgClearAdminResponse = {
|
|
|
1048
1145
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1049
1146
|
break;
|
|
1050
1147
|
}
|
|
1051
|
-
reader.
|
|
1148
|
+
reader.skip(tag & 7);
|
|
1052
1149
|
}
|
|
1053
1150
|
return message;
|
|
1054
1151
|
},
|
|
@@ -1071,7 +1168,7 @@ function createBaseMsgUpdateInstantiateConfig() {
|
|
|
1071
1168
|
return { sender: "", codeId: 0, newInstantiatePermission: undefined };
|
|
1072
1169
|
}
|
|
1073
1170
|
export const MsgUpdateInstantiateConfig = {
|
|
1074
|
-
encode(message, writer =
|
|
1171
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1075
1172
|
if (message.sender !== "") {
|
|
1076
1173
|
writer.uint32(10).string(message.sender);
|
|
1077
1174
|
}
|
|
@@ -1084,42 +1181,45 @@ export const MsgUpdateInstantiateConfig = {
|
|
|
1084
1181
|
return writer;
|
|
1085
1182
|
},
|
|
1086
1183
|
decode(input, length) {
|
|
1087
|
-
const reader = input instanceof
|
|
1184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1088
1185
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1089
1186
|
const message = createBaseMsgUpdateInstantiateConfig();
|
|
1090
1187
|
while (reader.pos < end) {
|
|
1091
1188
|
const tag = reader.uint32();
|
|
1092
1189
|
switch (tag >>> 3) {
|
|
1093
|
-
case 1:
|
|
1190
|
+
case 1: {
|
|
1094
1191
|
if (tag !== 10) {
|
|
1095
1192
|
break;
|
|
1096
1193
|
}
|
|
1097
1194
|
message.sender = reader.string();
|
|
1098
1195
|
continue;
|
|
1099
|
-
|
|
1196
|
+
}
|
|
1197
|
+
case 2: {
|
|
1100
1198
|
if (tag !== 16) {
|
|
1101
1199
|
break;
|
|
1102
1200
|
}
|
|
1103
1201
|
message.codeId = longToNumber(reader.uint64());
|
|
1104
1202
|
continue;
|
|
1105
|
-
|
|
1203
|
+
}
|
|
1204
|
+
case 3: {
|
|
1106
1205
|
if (tag !== 26) {
|
|
1107
1206
|
break;
|
|
1108
1207
|
}
|
|
1109
1208
|
message.newInstantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
1110
1209
|
continue;
|
|
1210
|
+
}
|
|
1111
1211
|
}
|
|
1112
1212
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1113
1213
|
break;
|
|
1114
1214
|
}
|
|
1115
|
-
reader.
|
|
1215
|
+
reader.skip(tag & 7);
|
|
1116
1216
|
}
|
|
1117
1217
|
return message;
|
|
1118
1218
|
},
|
|
1119
1219
|
fromJSON(object) {
|
|
1120
1220
|
return {
|
|
1121
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
1122
|
-
codeId: isSet(object.codeId) ? Number(object.codeId) : 0,
|
|
1221
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
1222
|
+
codeId: isSet(object.codeId) ? globalThis.Number(object.codeId) : 0,
|
|
1123
1223
|
newInstantiatePermission: isSet(object.newInstantiatePermission)
|
|
1124
1224
|
? AccessConfig.fromJSON(object.newInstantiatePermission)
|
|
1125
1225
|
: undefined,
|
|
@@ -1127,12 +1227,15 @@ export const MsgUpdateInstantiateConfig = {
|
|
|
1127
1227
|
},
|
|
1128
1228
|
toJSON(message) {
|
|
1129
1229
|
const obj = {};
|
|
1130
|
-
message.sender !==
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1230
|
+
if (message.sender !== "") {
|
|
1231
|
+
obj.sender = message.sender;
|
|
1232
|
+
}
|
|
1233
|
+
if (message.codeId !== 0) {
|
|
1234
|
+
obj.codeId = Math.round(message.codeId);
|
|
1235
|
+
}
|
|
1236
|
+
if (message.newInstantiatePermission !== undefined) {
|
|
1237
|
+
obj.newInstantiatePermission = AccessConfig.toJSON(message.newInstantiatePermission);
|
|
1238
|
+
}
|
|
1136
1239
|
return obj;
|
|
1137
1240
|
},
|
|
1138
1241
|
create(base) {
|
|
@@ -1154,11 +1257,11 @@ function createBaseMsgUpdateInstantiateConfigResponse() {
|
|
|
1154
1257
|
return {};
|
|
1155
1258
|
}
|
|
1156
1259
|
export const MsgUpdateInstantiateConfigResponse = {
|
|
1157
|
-
encode(_, writer =
|
|
1260
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1158
1261
|
return writer;
|
|
1159
1262
|
},
|
|
1160
1263
|
decode(input, length) {
|
|
1161
|
-
const reader = input instanceof
|
|
1264
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1162
1265
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1163
1266
|
const message = createBaseMsgUpdateInstantiateConfigResponse();
|
|
1164
1267
|
while (reader.pos < end) {
|
|
@@ -1168,7 +1271,7 @@ export const MsgUpdateInstantiateConfigResponse = {
|
|
|
1168
1271
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1169
1272
|
break;
|
|
1170
1273
|
}
|
|
1171
|
-
reader.
|
|
1274
|
+
reader.skip(tag & 7);
|
|
1172
1275
|
}
|
|
1173
1276
|
return message;
|
|
1174
1277
|
},
|
|
@@ -1191,7 +1294,7 @@ function createBaseMsgUpdateParams() {
|
|
|
1191
1294
|
return { authority: "", params: undefined };
|
|
1192
1295
|
}
|
|
1193
1296
|
export const MsgUpdateParams = {
|
|
1194
|
-
encode(message, writer =
|
|
1297
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1195
1298
|
if (message.authority !== "") {
|
|
1196
1299
|
writer.uint32(10).string(message.authority);
|
|
1197
1300
|
}
|
|
@@ -1201,43 +1304,50 @@ export const MsgUpdateParams = {
|
|
|
1201
1304
|
return writer;
|
|
1202
1305
|
},
|
|
1203
1306
|
decode(input, length) {
|
|
1204
|
-
const reader = input instanceof
|
|
1307
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1205
1308
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1206
1309
|
const message = createBaseMsgUpdateParams();
|
|
1207
1310
|
while (reader.pos < end) {
|
|
1208
1311
|
const tag = reader.uint32();
|
|
1209
1312
|
switch (tag >>> 3) {
|
|
1210
|
-
case 1:
|
|
1313
|
+
case 1: {
|
|
1211
1314
|
if (tag !== 10) {
|
|
1212
1315
|
break;
|
|
1213
1316
|
}
|
|
1214
1317
|
message.authority = reader.string();
|
|
1215
1318
|
continue;
|
|
1216
|
-
|
|
1319
|
+
}
|
|
1320
|
+
case 2: {
|
|
1217
1321
|
if (tag !== 18) {
|
|
1218
1322
|
break;
|
|
1219
1323
|
}
|
|
1220
1324
|
message.params = Params.decode(reader, reader.uint32());
|
|
1221
1325
|
continue;
|
|
1326
|
+
}
|
|
1222
1327
|
}
|
|
1223
1328
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1224
1329
|
break;
|
|
1225
1330
|
}
|
|
1226
|
-
reader.
|
|
1331
|
+
reader.skip(tag & 7);
|
|
1227
1332
|
}
|
|
1228
1333
|
return message;
|
|
1229
1334
|
},
|
|
1230
1335
|
fromJSON(object) {
|
|
1231
1336
|
return {
|
|
1232
|
-
authority: isSet(object.authority)
|
|
1337
|
+
authority: isSet(object.authority)
|
|
1338
|
+
? globalThis.String(object.authority)
|
|
1339
|
+
: "",
|
|
1233
1340
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
1234
1341
|
};
|
|
1235
1342
|
},
|
|
1236
1343
|
toJSON(message) {
|
|
1237
1344
|
const obj = {};
|
|
1238
|
-
message.authority !==
|
|
1239
|
-
|
|
1240
|
-
|
|
1345
|
+
if (message.authority !== "") {
|
|
1346
|
+
obj.authority = message.authority;
|
|
1347
|
+
}
|
|
1348
|
+
if (message.params !== undefined) {
|
|
1349
|
+
obj.params = Params.toJSON(message.params);
|
|
1350
|
+
}
|
|
1241
1351
|
return obj;
|
|
1242
1352
|
},
|
|
1243
1353
|
create(base) {
|
|
@@ -1257,11 +1367,11 @@ function createBaseMsgUpdateParamsResponse() {
|
|
|
1257
1367
|
return {};
|
|
1258
1368
|
}
|
|
1259
1369
|
export const MsgUpdateParamsResponse = {
|
|
1260
|
-
encode(_, writer =
|
|
1370
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1261
1371
|
return writer;
|
|
1262
1372
|
},
|
|
1263
1373
|
decode(input, length) {
|
|
1264
|
-
const reader = input instanceof
|
|
1374
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1265
1375
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1266
1376
|
const message = createBaseMsgUpdateParamsResponse();
|
|
1267
1377
|
while (reader.pos < end) {
|
|
@@ -1271,7 +1381,7 @@ export const MsgUpdateParamsResponse = {
|
|
|
1271
1381
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1272
1382
|
break;
|
|
1273
1383
|
}
|
|
1274
|
-
reader.
|
|
1384
|
+
reader.skip(tag & 7);
|
|
1275
1385
|
}
|
|
1276
1386
|
return message;
|
|
1277
1387
|
},
|
|
@@ -1291,10 +1401,10 @@ export const MsgUpdateParamsResponse = {
|
|
|
1291
1401
|
},
|
|
1292
1402
|
};
|
|
1293
1403
|
function createBaseMsgSudoContract() {
|
|
1294
|
-
return { authority: "", contract: "", msg: new Uint8Array() };
|
|
1404
|
+
return { authority: "", contract: "", msg: new Uint8Array(0) };
|
|
1295
1405
|
}
|
|
1296
1406
|
export const MsgSudoContract = {
|
|
1297
|
-
encode(message, writer =
|
|
1407
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1298
1408
|
if (message.authority !== "") {
|
|
1299
1409
|
writer.uint32(10).string(message.authority);
|
|
1300
1410
|
}
|
|
@@ -1307,51 +1417,63 @@ export const MsgSudoContract = {
|
|
|
1307
1417
|
return writer;
|
|
1308
1418
|
},
|
|
1309
1419
|
decode(input, length) {
|
|
1310
|
-
const reader = input instanceof
|
|
1420
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1311
1421
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1312
1422
|
const message = createBaseMsgSudoContract();
|
|
1313
1423
|
while (reader.pos < end) {
|
|
1314
1424
|
const tag = reader.uint32();
|
|
1315
1425
|
switch (tag >>> 3) {
|
|
1316
|
-
case 1:
|
|
1426
|
+
case 1: {
|
|
1317
1427
|
if (tag !== 10) {
|
|
1318
1428
|
break;
|
|
1319
1429
|
}
|
|
1320
1430
|
message.authority = reader.string();
|
|
1321
1431
|
continue;
|
|
1322
|
-
|
|
1432
|
+
}
|
|
1433
|
+
case 2: {
|
|
1323
1434
|
if (tag !== 18) {
|
|
1324
1435
|
break;
|
|
1325
1436
|
}
|
|
1326
1437
|
message.contract = reader.string();
|
|
1327
1438
|
continue;
|
|
1328
|
-
|
|
1439
|
+
}
|
|
1440
|
+
case 3: {
|
|
1329
1441
|
if (tag !== 26) {
|
|
1330
1442
|
break;
|
|
1331
1443
|
}
|
|
1332
1444
|
message.msg = reader.bytes();
|
|
1333
1445
|
continue;
|
|
1446
|
+
}
|
|
1334
1447
|
}
|
|
1335
1448
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1336
1449
|
break;
|
|
1337
1450
|
}
|
|
1338
|
-
reader.
|
|
1451
|
+
reader.skip(tag & 7);
|
|
1339
1452
|
}
|
|
1340
1453
|
return message;
|
|
1341
1454
|
},
|
|
1342
1455
|
fromJSON(object) {
|
|
1343
1456
|
return {
|
|
1344
|
-
authority: isSet(object.authority)
|
|
1345
|
-
|
|
1346
|
-
|
|
1457
|
+
authority: isSet(object.authority)
|
|
1458
|
+
? globalThis.String(object.authority)
|
|
1459
|
+
: "",
|
|
1460
|
+
contract: isSet(object.contract)
|
|
1461
|
+
? globalThis.String(object.contract)
|
|
1462
|
+
: "",
|
|
1463
|
+
msg: isSet(object.msg) ? bytesFromBase64(object.msg) : new Uint8Array(0),
|
|
1347
1464
|
};
|
|
1348
1465
|
},
|
|
1349
1466
|
toJSON(message) {
|
|
1350
1467
|
const obj = {};
|
|
1351
|
-
message.authority !==
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1468
|
+
if (message.authority !== "") {
|
|
1469
|
+
obj.authority = message.authority;
|
|
1470
|
+
}
|
|
1471
|
+
if (message.contract !== "") {
|
|
1472
|
+
obj.contract = message.contract;
|
|
1473
|
+
}
|
|
1474
|
+
if (message.msg.length !== 0) {
|
|
1475
|
+
obj.msg = base64FromBytes(message.msg);
|
|
1476
|
+
}
|
|
1355
1477
|
return obj;
|
|
1356
1478
|
},
|
|
1357
1479
|
create(base) {
|
|
@@ -1361,38 +1483,39 @@ export const MsgSudoContract = {
|
|
|
1361
1483
|
const message = createBaseMsgSudoContract();
|
|
1362
1484
|
message.authority = object.authority ?? "";
|
|
1363
1485
|
message.contract = object.contract ?? "";
|
|
1364
|
-
message.msg = object.msg ?? new Uint8Array();
|
|
1486
|
+
message.msg = object.msg ?? new Uint8Array(0);
|
|
1365
1487
|
return message;
|
|
1366
1488
|
},
|
|
1367
1489
|
};
|
|
1368
1490
|
function createBaseMsgSudoContractResponse() {
|
|
1369
|
-
return { data: new Uint8Array() };
|
|
1491
|
+
return { data: new Uint8Array(0) };
|
|
1370
1492
|
}
|
|
1371
1493
|
export const MsgSudoContractResponse = {
|
|
1372
|
-
encode(message, writer =
|
|
1494
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1373
1495
|
if (message.data.length !== 0) {
|
|
1374
1496
|
writer.uint32(10).bytes(message.data);
|
|
1375
1497
|
}
|
|
1376
1498
|
return writer;
|
|
1377
1499
|
},
|
|
1378
1500
|
decode(input, length) {
|
|
1379
|
-
const reader = input instanceof
|
|
1501
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1380
1502
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1381
1503
|
const message = createBaseMsgSudoContractResponse();
|
|
1382
1504
|
while (reader.pos < end) {
|
|
1383
1505
|
const tag = reader.uint32();
|
|
1384
1506
|
switch (tag >>> 3) {
|
|
1385
|
-
case 1:
|
|
1507
|
+
case 1: {
|
|
1386
1508
|
if (tag !== 10) {
|
|
1387
1509
|
break;
|
|
1388
1510
|
}
|
|
1389
1511
|
message.data = reader.bytes();
|
|
1390
1512
|
continue;
|
|
1513
|
+
}
|
|
1391
1514
|
}
|
|
1392
1515
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1393
1516
|
break;
|
|
1394
1517
|
}
|
|
1395
|
-
reader.
|
|
1518
|
+
reader.skip(tag & 7);
|
|
1396
1519
|
}
|
|
1397
1520
|
return message;
|
|
1398
1521
|
},
|
|
@@ -1400,13 +1523,14 @@ export const MsgSudoContractResponse = {
|
|
|
1400
1523
|
return {
|
|
1401
1524
|
data: isSet(object.data)
|
|
1402
1525
|
? bytesFromBase64(object.data)
|
|
1403
|
-
: new Uint8Array(),
|
|
1526
|
+
: new Uint8Array(0),
|
|
1404
1527
|
};
|
|
1405
1528
|
},
|
|
1406
1529
|
toJSON(message) {
|
|
1407
1530
|
const obj = {};
|
|
1408
|
-
message.data !==
|
|
1409
|
-
|
|
1531
|
+
if (message.data.length !== 0) {
|
|
1532
|
+
obj.data = base64FromBytes(message.data);
|
|
1533
|
+
}
|
|
1410
1534
|
return obj;
|
|
1411
1535
|
},
|
|
1412
1536
|
create(base) {
|
|
@@ -1414,7 +1538,7 @@ export const MsgSudoContractResponse = {
|
|
|
1414
1538
|
},
|
|
1415
1539
|
fromPartial(object) {
|
|
1416
1540
|
const message = createBaseMsgSudoContractResponse();
|
|
1417
|
-
message.data = object.data ?? new Uint8Array();
|
|
1541
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
1418
1542
|
return message;
|
|
1419
1543
|
},
|
|
1420
1544
|
};
|
|
@@ -1422,7 +1546,7 @@ function createBaseMsgPinCodes() {
|
|
|
1422
1546
|
return { authority: "", codeIds: [] };
|
|
1423
1547
|
}
|
|
1424
1548
|
export const MsgPinCodes = {
|
|
1425
|
-
encode(message, writer =
|
|
1549
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1426
1550
|
if (message.authority !== "") {
|
|
1427
1551
|
writer.uint32(10).string(message.authority);
|
|
1428
1552
|
}
|
|
@@ -1434,19 +1558,20 @@ export const MsgPinCodes = {
|
|
|
1434
1558
|
return writer;
|
|
1435
1559
|
},
|
|
1436
1560
|
decode(input, length) {
|
|
1437
|
-
const reader = input instanceof
|
|
1561
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1438
1562
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1439
1563
|
const message = createBaseMsgPinCodes();
|
|
1440
1564
|
while (reader.pos < end) {
|
|
1441
1565
|
const tag = reader.uint32();
|
|
1442
1566
|
switch (tag >>> 3) {
|
|
1443
|
-
case 1:
|
|
1567
|
+
case 1: {
|
|
1444
1568
|
if (tag !== 10) {
|
|
1445
1569
|
break;
|
|
1446
1570
|
}
|
|
1447
1571
|
message.authority = reader.string();
|
|
1448
1572
|
continue;
|
|
1449
|
-
|
|
1573
|
+
}
|
|
1574
|
+
case 2: {
|
|
1450
1575
|
if (tag === 16) {
|
|
1451
1576
|
message.codeIds.push(longToNumber(reader.uint64()));
|
|
1452
1577
|
continue;
|
|
@@ -1459,30 +1584,32 @@ export const MsgPinCodes = {
|
|
|
1459
1584
|
continue;
|
|
1460
1585
|
}
|
|
1461
1586
|
break;
|
|
1587
|
+
}
|
|
1462
1588
|
}
|
|
1463
1589
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1464
1590
|
break;
|
|
1465
1591
|
}
|
|
1466
|
-
reader.
|
|
1592
|
+
reader.skip(tag & 7);
|
|
1467
1593
|
}
|
|
1468
1594
|
return message;
|
|
1469
1595
|
},
|
|
1470
1596
|
fromJSON(object) {
|
|
1471
1597
|
return {
|
|
1472
|
-
authority: isSet(object.authority)
|
|
1473
|
-
|
|
1474
|
-
|
|
1598
|
+
authority: isSet(object.authority)
|
|
1599
|
+
? globalThis.String(object.authority)
|
|
1600
|
+
: "",
|
|
1601
|
+
codeIds: globalThis.Array.isArray(object?.codeIds)
|
|
1602
|
+
? object.codeIds.map((e) => globalThis.Number(e))
|
|
1475
1603
|
: [],
|
|
1476
1604
|
};
|
|
1477
1605
|
},
|
|
1478
1606
|
toJSON(message) {
|
|
1479
1607
|
const obj = {};
|
|
1480
|
-
message.authority !==
|
|
1481
|
-
|
|
1482
|
-
obj.codeIds = message.codeIds.map((e) => Math.round(e));
|
|
1608
|
+
if (message.authority !== "") {
|
|
1609
|
+
obj.authority = message.authority;
|
|
1483
1610
|
}
|
|
1484
|
-
|
|
1485
|
-
obj.codeIds =
|
|
1611
|
+
if (message.codeIds?.length) {
|
|
1612
|
+
obj.codeIds = message.codeIds.map((e) => Math.round(e));
|
|
1486
1613
|
}
|
|
1487
1614
|
return obj;
|
|
1488
1615
|
},
|
|
@@ -1500,11 +1627,11 @@ function createBaseMsgPinCodesResponse() {
|
|
|
1500
1627
|
return {};
|
|
1501
1628
|
}
|
|
1502
1629
|
export const MsgPinCodesResponse = {
|
|
1503
|
-
encode(_, writer =
|
|
1630
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1504
1631
|
return writer;
|
|
1505
1632
|
},
|
|
1506
1633
|
decode(input, length) {
|
|
1507
|
-
const reader = input instanceof
|
|
1634
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1508
1635
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1509
1636
|
const message = createBaseMsgPinCodesResponse();
|
|
1510
1637
|
while (reader.pos < end) {
|
|
@@ -1514,7 +1641,7 @@ export const MsgPinCodesResponse = {
|
|
|
1514
1641
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1515
1642
|
break;
|
|
1516
1643
|
}
|
|
1517
|
-
reader.
|
|
1644
|
+
reader.skip(tag & 7);
|
|
1518
1645
|
}
|
|
1519
1646
|
return message;
|
|
1520
1647
|
},
|
|
@@ -1537,7 +1664,7 @@ function createBaseMsgUnpinCodes() {
|
|
|
1537
1664
|
return { authority: "", codeIds: [] };
|
|
1538
1665
|
}
|
|
1539
1666
|
export const MsgUnpinCodes = {
|
|
1540
|
-
encode(message, writer =
|
|
1667
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1541
1668
|
if (message.authority !== "") {
|
|
1542
1669
|
writer.uint32(10).string(message.authority);
|
|
1543
1670
|
}
|
|
@@ -1549,19 +1676,20 @@ export const MsgUnpinCodes = {
|
|
|
1549
1676
|
return writer;
|
|
1550
1677
|
},
|
|
1551
1678
|
decode(input, length) {
|
|
1552
|
-
const reader = input instanceof
|
|
1679
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1553
1680
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1554
1681
|
const message = createBaseMsgUnpinCodes();
|
|
1555
1682
|
while (reader.pos < end) {
|
|
1556
1683
|
const tag = reader.uint32();
|
|
1557
1684
|
switch (tag >>> 3) {
|
|
1558
|
-
case 1:
|
|
1685
|
+
case 1: {
|
|
1559
1686
|
if (tag !== 10) {
|
|
1560
1687
|
break;
|
|
1561
1688
|
}
|
|
1562
1689
|
message.authority = reader.string();
|
|
1563
1690
|
continue;
|
|
1564
|
-
|
|
1691
|
+
}
|
|
1692
|
+
case 2: {
|
|
1565
1693
|
if (tag === 16) {
|
|
1566
1694
|
message.codeIds.push(longToNumber(reader.uint64()));
|
|
1567
1695
|
continue;
|
|
@@ -1574,30 +1702,32 @@ export const MsgUnpinCodes = {
|
|
|
1574
1702
|
continue;
|
|
1575
1703
|
}
|
|
1576
1704
|
break;
|
|
1705
|
+
}
|
|
1577
1706
|
}
|
|
1578
1707
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1579
1708
|
break;
|
|
1580
1709
|
}
|
|
1581
|
-
reader.
|
|
1710
|
+
reader.skip(tag & 7);
|
|
1582
1711
|
}
|
|
1583
1712
|
return message;
|
|
1584
1713
|
},
|
|
1585
1714
|
fromJSON(object) {
|
|
1586
1715
|
return {
|
|
1587
|
-
authority: isSet(object.authority)
|
|
1588
|
-
|
|
1589
|
-
|
|
1716
|
+
authority: isSet(object.authority)
|
|
1717
|
+
? globalThis.String(object.authority)
|
|
1718
|
+
: "",
|
|
1719
|
+
codeIds: globalThis.Array.isArray(object?.codeIds)
|
|
1720
|
+
? object.codeIds.map((e) => globalThis.Number(e))
|
|
1590
1721
|
: [],
|
|
1591
1722
|
};
|
|
1592
1723
|
},
|
|
1593
1724
|
toJSON(message) {
|
|
1594
1725
|
const obj = {};
|
|
1595
|
-
message.authority !==
|
|
1596
|
-
|
|
1597
|
-
obj.codeIds = message.codeIds.map((e) => Math.round(e));
|
|
1726
|
+
if (message.authority !== "") {
|
|
1727
|
+
obj.authority = message.authority;
|
|
1598
1728
|
}
|
|
1599
|
-
|
|
1600
|
-
obj.codeIds =
|
|
1729
|
+
if (message.codeIds?.length) {
|
|
1730
|
+
obj.codeIds = message.codeIds.map((e) => Math.round(e));
|
|
1601
1731
|
}
|
|
1602
1732
|
return obj;
|
|
1603
1733
|
},
|
|
@@ -1615,11 +1745,11 @@ function createBaseMsgUnpinCodesResponse() {
|
|
|
1615
1745
|
return {};
|
|
1616
1746
|
}
|
|
1617
1747
|
export const MsgUnpinCodesResponse = {
|
|
1618
|
-
encode(_, writer =
|
|
1748
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1619
1749
|
return writer;
|
|
1620
1750
|
},
|
|
1621
1751
|
decode(input, length) {
|
|
1622
|
-
const reader = input instanceof
|
|
1752
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1623
1753
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1624
1754
|
const message = createBaseMsgUnpinCodesResponse();
|
|
1625
1755
|
while (reader.pos < end) {
|
|
@@ -1629,7 +1759,7 @@ export const MsgUnpinCodesResponse = {
|
|
|
1629
1759
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1630
1760
|
break;
|
|
1631
1761
|
}
|
|
1632
|
-
reader.
|
|
1762
|
+
reader.skip(tag & 7);
|
|
1633
1763
|
}
|
|
1634
1764
|
return message;
|
|
1635
1765
|
},
|
|
@@ -1651,20 +1781,20 @@ export const MsgUnpinCodesResponse = {
|
|
|
1651
1781
|
function createBaseMsgStoreAndInstantiateContract() {
|
|
1652
1782
|
return {
|
|
1653
1783
|
authority: "",
|
|
1654
|
-
wasmByteCode: new Uint8Array(),
|
|
1784
|
+
wasmByteCode: new Uint8Array(0),
|
|
1655
1785
|
instantiatePermission: undefined,
|
|
1656
1786
|
unpinCode: false,
|
|
1657
1787
|
admin: "",
|
|
1658
1788
|
label: "",
|
|
1659
|
-
msg: new Uint8Array(),
|
|
1789
|
+
msg: new Uint8Array(0),
|
|
1660
1790
|
funds: [],
|
|
1661
1791
|
source: "",
|
|
1662
1792
|
builder: "",
|
|
1663
|
-
codeHash: new Uint8Array(),
|
|
1793
|
+
codeHash: new Uint8Array(0),
|
|
1664
1794
|
};
|
|
1665
1795
|
}
|
|
1666
1796
|
export const MsgStoreAndInstantiateContract = {
|
|
1667
|
-
encode(message, writer =
|
|
1797
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1668
1798
|
if (message.authority !== "") {
|
|
1669
1799
|
writer.uint32(10).string(message.authority);
|
|
1670
1800
|
}
|
|
@@ -1674,7 +1804,7 @@ export const MsgStoreAndInstantiateContract = {
|
|
|
1674
1804
|
if (message.instantiatePermission !== undefined) {
|
|
1675
1805
|
AccessConfig.encode(message.instantiatePermission, writer.uint32(34).fork()).ldelim();
|
|
1676
1806
|
}
|
|
1677
|
-
if (message.unpinCode
|
|
1807
|
+
if (message.unpinCode !== false) {
|
|
1678
1808
|
writer.uint32(40).bool(message.unpinCode);
|
|
1679
1809
|
}
|
|
1680
1810
|
if (message.admin !== "") {
|
|
@@ -1701,135 +1831,161 @@ export const MsgStoreAndInstantiateContract = {
|
|
|
1701
1831
|
return writer;
|
|
1702
1832
|
},
|
|
1703
1833
|
decode(input, length) {
|
|
1704
|
-
const reader = input instanceof
|
|
1834
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1705
1835
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1706
1836
|
const message = createBaseMsgStoreAndInstantiateContract();
|
|
1707
1837
|
while (reader.pos < end) {
|
|
1708
1838
|
const tag = reader.uint32();
|
|
1709
1839
|
switch (tag >>> 3) {
|
|
1710
|
-
case 1:
|
|
1840
|
+
case 1: {
|
|
1711
1841
|
if (tag !== 10) {
|
|
1712
1842
|
break;
|
|
1713
1843
|
}
|
|
1714
1844
|
message.authority = reader.string();
|
|
1715
1845
|
continue;
|
|
1716
|
-
|
|
1846
|
+
}
|
|
1847
|
+
case 3: {
|
|
1717
1848
|
if (tag !== 26) {
|
|
1718
1849
|
break;
|
|
1719
1850
|
}
|
|
1720
1851
|
message.wasmByteCode = reader.bytes();
|
|
1721
1852
|
continue;
|
|
1722
|
-
|
|
1853
|
+
}
|
|
1854
|
+
case 4: {
|
|
1723
1855
|
if (tag !== 34) {
|
|
1724
1856
|
break;
|
|
1725
1857
|
}
|
|
1726
1858
|
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
|
1727
1859
|
continue;
|
|
1728
|
-
|
|
1860
|
+
}
|
|
1861
|
+
case 5: {
|
|
1729
1862
|
if (tag !== 40) {
|
|
1730
1863
|
break;
|
|
1731
1864
|
}
|
|
1732
1865
|
message.unpinCode = reader.bool();
|
|
1733
1866
|
continue;
|
|
1734
|
-
|
|
1867
|
+
}
|
|
1868
|
+
case 6: {
|
|
1735
1869
|
if (tag !== 50) {
|
|
1736
1870
|
break;
|
|
1737
1871
|
}
|
|
1738
1872
|
message.admin = reader.string();
|
|
1739
1873
|
continue;
|
|
1740
|
-
|
|
1874
|
+
}
|
|
1875
|
+
case 7: {
|
|
1741
1876
|
if (tag !== 58) {
|
|
1742
1877
|
break;
|
|
1743
1878
|
}
|
|
1744
1879
|
message.label = reader.string();
|
|
1745
1880
|
continue;
|
|
1746
|
-
|
|
1881
|
+
}
|
|
1882
|
+
case 8: {
|
|
1747
1883
|
if (tag !== 66) {
|
|
1748
1884
|
break;
|
|
1749
1885
|
}
|
|
1750
1886
|
message.msg = reader.bytes();
|
|
1751
1887
|
continue;
|
|
1752
|
-
|
|
1888
|
+
}
|
|
1889
|
+
case 9: {
|
|
1753
1890
|
if (tag !== 74) {
|
|
1754
1891
|
break;
|
|
1755
1892
|
}
|
|
1756
1893
|
message.funds.push(Coin.decode(reader, reader.uint32()));
|
|
1757
1894
|
continue;
|
|
1758
|
-
|
|
1895
|
+
}
|
|
1896
|
+
case 10: {
|
|
1759
1897
|
if (tag !== 82) {
|
|
1760
1898
|
break;
|
|
1761
1899
|
}
|
|
1762
1900
|
message.source = reader.string();
|
|
1763
1901
|
continue;
|
|
1764
|
-
|
|
1902
|
+
}
|
|
1903
|
+
case 11: {
|
|
1765
1904
|
if (tag !== 90) {
|
|
1766
1905
|
break;
|
|
1767
1906
|
}
|
|
1768
1907
|
message.builder = reader.string();
|
|
1769
1908
|
continue;
|
|
1770
|
-
|
|
1909
|
+
}
|
|
1910
|
+
case 12: {
|
|
1771
1911
|
if (tag !== 98) {
|
|
1772
1912
|
break;
|
|
1773
1913
|
}
|
|
1774
1914
|
message.codeHash = reader.bytes();
|
|
1775
1915
|
continue;
|
|
1916
|
+
}
|
|
1776
1917
|
}
|
|
1777
1918
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1778
1919
|
break;
|
|
1779
1920
|
}
|
|
1780
|
-
reader.
|
|
1921
|
+
reader.skip(tag & 7);
|
|
1781
1922
|
}
|
|
1782
1923
|
return message;
|
|
1783
1924
|
},
|
|
1784
1925
|
fromJSON(object) {
|
|
1785
1926
|
return {
|
|
1786
|
-
authority: isSet(object.authority)
|
|
1927
|
+
authority: isSet(object.authority)
|
|
1928
|
+
? globalThis.String(object.authority)
|
|
1929
|
+
: "",
|
|
1787
1930
|
wasmByteCode: isSet(object.wasmByteCode)
|
|
1788
1931
|
? bytesFromBase64(object.wasmByteCode)
|
|
1789
|
-
: new Uint8Array(),
|
|
1932
|
+
: new Uint8Array(0),
|
|
1790
1933
|
instantiatePermission: isSet(object.instantiatePermission)
|
|
1791
1934
|
? AccessConfig.fromJSON(object.instantiatePermission)
|
|
1792
1935
|
: undefined,
|
|
1793
|
-
unpinCode: isSet(object.unpinCode)
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1936
|
+
unpinCode: isSet(object.unpinCode)
|
|
1937
|
+
? globalThis.Boolean(object.unpinCode)
|
|
1938
|
+
: false,
|
|
1939
|
+
admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
|
|
1940
|
+
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
1941
|
+
msg: isSet(object.msg)
|
|
1942
|
+
? bytesFromBase64(object.msg)
|
|
1943
|
+
: new Uint8Array(0),
|
|
1944
|
+
funds: globalThis.Array.isArray(object?.funds)
|
|
1798
1945
|
? object.funds.map((e) => Coin.fromJSON(e))
|
|
1799
1946
|
: [],
|
|
1800
|
-
source: isSet(object.source) ? String(object.source) : "",
|
|
1801
|
-
builder: isSet(object.builder) ? String(object.builder) : "",
|
|
1947
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
1948
|
+
builder: isSet(object.builder) ? globalThis.String(object.builder) : "",
|
|
1802
1949
|
codeHash: isSet(object.codeHash)
|
|
1803
1950
|
? bytesFromBase64(object.codeHash)
|
|
1804
|
-
: new Uint8Array(),
|
|
1951
|
+
: new Uint8Array(0),
|
|
1805
1952
|
};
|
|
1806
1953
|
},
|
|
1807
1954
|
toJSON(message) {
|
|
1808
1955
|
const obj = {};
|
|
1809
|
-
message.authority !==
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
message.unpinCode !==
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
message.
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1956
|
+
if (message.authority !== "") {
|
|
1957
|
+
obj.authority = message.authority;
|
|
1958
|
+
}
|
|
1959
|
+
if (message.wasmByteCode.length !== 0) {
|
|
1960
|
+
obj.wasmByteCode = base64FromBytes(message.wasmByteCode);
|
|
1961
|
+
}
|
|
1962
|
+
if (message.instantiatePermission !== undefined) {
|
|
1963
|
+
obj.instantiatePermission = AccessConfig.toJSON(message.instantiatePermission);
|
|
1964
|
+
}
|
|
1965
|
+
if (message.unpinCode !== false) {
|
|
1966
|
+
obj.unpinCode = message.unpinCode;
|
|
1967
|
+
}
|
|
1968
|
+
if (message.admin !== "") {
|
|
1969
|
+
obj.admin = message.admin;
|
|
1970
|
+
}
|
|
1971
|
+
if (message.label !== "") {
|
|
1972
|
+
obj.label = message.label;
|
|
1973
|
+
}
|
|
1974
|
+
if (message.msg.length !== 0) {
|
|
1975
|
+
obj.msg = base64FromBytes(message.msg);
|
|
1976
|
+
}
|
|
1977
|
+
if (message.funds?.length) {
|
|
1978
|
+
obj.funds = message.funds.map((e) => Coin.toJSON(e));
|
|
1979
|
+
}
|
|
1980
|
+
if (message.source !== "") {
|
|
1981
|
+
obj.source = message.source;
|
|
1982
|
+
}
|
|
1983
|
+
if (message.builder !== "") {
|
|
1984
|
+
obj.builder = message.builder;
|
|
1985
|
+
}
|
|
1986
|
+
if (message.codeHash.length !== 0) {
|
|
1987
|
+
obj.codeHash = base64FromBytes(message.codeHash);
|
|
1988
|
+
}
|
|
1833
1989
|
return obj;
|
|
1834
1990
|
},
|
|
1835
1991
|
create(base) {
|
|
@@ -1838,7 +1994,7 @@ export const MsgStoreAndInstantiateContract = {
|
|
|
1838
1994
|
fromPartial(object) {
|
|
1839
1995
|
const message = createBaseMsgStoreAndInstantiateContract();
|
|
1840
1996
|
message.authority = object.authority ?? "";
|
|
1841
|
-
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
|
1997
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array(0);
|
|
1842
1998
|
message.instantiatePermission =
|
|
1843
1999
|
object.instantiatePermission !== undefined &&
|
|
1844
2000
|
object.instantiatePermission !== null
|
|
@@ -1847,19 +2003,19 @@ export const MsgStoreAndInstantiateContract = {
|
|
|
1847
2003
|
message.unpinCode = object.unpinCode ?? false;
|
|
1848
2004
|
message.admin = object.admin ?? "";
|
|
1849
2005
|
message.label = object.label ?? "";
|
|
1850
|
-
message.msg = object.msg ?? new Uint8Array();
|
|
2006
|
+
message.msg = object.msg ?? new Uint8Array(0);
|
|
1851
2007
|
message.funds = object.funds?.map((e) => Coin.fromPartial(e)) || [];
|
|
1852
2008
|
message.source = object.source ?? "";
|
|
1853
2009
|
message.builder = object.builder ?? "";
|
|
1854
|
-
message.codeHash = object.codeHash ?? new Uint8Array();
|
|
2010
|
+
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
1855
2011
|
return message;
|
|
1856
2012
|
},
|
|
1857
2013
|
};
|
|
1858
2014
|
function createBaseMsgStoreAndInstantiateContractResponse() {
|
|
1859
|
-
return { address: "", data: new Uint8Array() };
|
|
2015
|
+
return { address: "", data: new Uint8Array(0) };
|
|
1860
2016
|
}
|
|
1861
2017
|
export const MsgStoreAndInstantiateContractResponse = {
|
|
1862
|
-
encode(message, writer =
|
|
2018
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1863
2019
|
if (message.address !== "") {
|
|
1864
2020
|
writer.uint32(10).string(message.address);
|
|
1865
2021
|
}
|
|
@@ -1869,45 +2025,50 @@ export const MsgStoreAndInstantiateContractResponse = {
|
|
|
1869
2025
|
return writer;
|
|
1870
2026
|
},
|
|
1871
2027
|
decode(input, length) {
|
|
1872
|
-
const reader = input instanceof
|
|
2028
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1873
2029
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1874
2030
|
const message = createBaseMsgStoreAndInstantiateContractResponse();
|
|
1875
2031
|
while (reader.pos < end) {
|
|
1876
2032
|
const tag = reader.uint32();
|
|
1877
2033
|
switch (tag >>> 3) {
|
|
1878
|
-
case 1:
|
|
2034
|
+
case 1: {
|
|
1879
2035
|
if (tag !== 10) {
|
|
1880
2036
|
break;
|
|
1881
2037
|
}
|
|
1882
2038
|
message.address = reader.string();
|
|
1883
2039
|
continue;
|
|
1884
|
-
|
|
2040
|
+
}
|
|
2041
|
+
case 2: {
|
|
1885
2042
|
if (tag !== 18) {
|
|
1886
2043
|
break;
|
|
1887
2044
|
}
|
|
1888
2045
|
message.data = reader.bytes();
|
|
1889
2046
|
continue;
|
|
2047
|
+
}
|
|
1890
2048
|
}
|
|
1891
2049
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1892
2050
|
break;
|
|
1893
2051
|
}
|
|
1894
|
-
reader.
|
|
2052
|
+
reader.skip(tag & 7);
|
|
1895
2053
|
}
|
|
1896
2054
|
return message;
|
|
1897
2055
|
},
|
|
1898
2056
|
fromJSON(object) {
|
|
1899
2057
|
return {
|
|
1900
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
2058
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
1901
2059
|
data: isSet(object.data)
|
|
1902
2060
|
? bytesFromBase64(object.data)
|
|
1903
|
-
: new Uint8Array(),
|
|
2061
|
+
: new Uint8Array(0),
|
|
1904
2062
|
};
|
|
1905
2063
|
},
|
|
1906
2064
|
toJSON(message) {
|
|
1907
2065
|
const obj = {};
|
|
1908
|
-
message.address !==
|
|
1909
|
-
|
|
1910
|
-
|
|
2066
|
+
if (message.address !== "") {
|
|
2067
|
+
obj.address = message.address;
|
|
2068
|
+
}
|
|
2069
|
+
if (message.data.length !== 0) {
|
|
2070
|
+
obj.data = base64FromBytes(message.data);
|
|
2071
|
+
}
|
|
1911
2072
|
return obj;
|
|
1912
2073
|
},
|
|
1913
2074
|
create(base) {
|
|
@@ -1916,15 +2077,16 @@ export const MsgStoreAndInstantiateContractResponse = {
|
|
|
1916
2077
|
fromPartial(object) {
|
|
1917
2078
|
const message = createBaseMsgStoreAndInstantiateContractResponse();
|
|
1918
2079
|
message.address = object.address ?? "";
|
|
1919
|
-
message.data = object.data ?? new Uint8Array();
|
|
2080
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
1920
2081
|
return message;
|
|
1921
2082
|
},
|
|
1922
2083
|
};
|
|
2084
|
+
export const MsgServiceName = "cosmwasm.wasm.v1.Msg";
|
|
1923
2085
|
export class MsgClientImpl {
|
|
1924
2086
|
rpc;
|
|
1925
2087
|
service;
|
|
1926
2088
|
constructor(rpc, opts) {
|
|
1927
|
-
this.service = opts?.service ||
|
|
2089
|
+
this.service = opts?.service || MsgServiceName;
|
|
1928
2090
|
this.rpc = rpc;
|
|
1929
2091
|
this.StoreCode = this.StoreCode.bind(this);
|
|
1930
2092
|
this.InstantiateContract = this.InstantiateContract.bind(this);
|
|
@@ -1944,90 +2106,75 @@ export class MsgClientImpl {
|
|
|
1944
2106
|
StoreCode(request) {
|
|
1945
2107
|
const data = MsgStoreCode.encode(request).finish();
|
|
1946
2108
|
const promise = this.rpc.request(this.service, "StoreCode", data);
|
|
1947
|
-
return promise.then((data) => MsgStoreCodeResponse.decode(
|
|
2109
|
+
return promise.then((data) => MsgStoreCodeResponse.decode(new BinaryReader(data)));
|
|
1948
2110
|
}
|
|
1949
2111
|
InstantiateContract(request) {
|
|
1950
2112
|
const data = MsgInstantiateContract.encode(request).finish();
|
|
1951
2113
|
const promise = this.rpc.request(this.service, "InstantiateContract", data);
|
|
1952
|
-
return promise.then((data) => MsgInstantiateContractResponse.decode(
|
|
2114
|
+
return promise.then((data) => MsgInstantiateContractResponse.decode(new BinaryReader(data)));
|
|
1953
2115
|
}
|
|
1954
2116
|
InstantiateContract2(request) {
|
|
1955
2117
|
const data = MsgInstantiateContract2.encode(request).finish();
|
|
1956
2118
|
const promise = this.rpc.request(this.service, "InstantiateContract2", data);
|
|
1957
|
-
return promise.then((data) => MsgInstantiateContract2Response.decode(
|
|
2119
|
+
return promise.then((data) => MsgInstantiateContract2Response.decode(new BinaryReader(data)));
|
|
1958
2120
|
}
|
|
1959
2121
|
ExecuteContract(request) {
|
|
1960
2122
|
const data = MsgExecuteContract.encode(request).finish();
|
|
1961
2123
|
const promise = this.rpc.request(this.service, "ExecuteContract", data);
|
|
1962
|
-
return promise.then((data) => MsgExecuteContractResponse.decode(
|
|
2124
|
+
return promise.then((data) => MsgExecuteContractResponse.decode(new BinaryReader(data)));
|
|
1963
2125
|
}
|
|
1964
2126
|
MigrateContract(request) {
|
|
1965
2127
|
const data = MsgMigrateContract.encode(request).finish();
|
|
1966
2128
|
const promise = this.rpc.request(this.service, "MigrateContract", data);
|
|
1967
|
-
return promise.then((data) => MsgMigrateContractResponse.decode(
|
|
2129
|
+
return promise.then((data) => MsgMigrateContractResponse.decode(new BinaryReader(data)));
|
|
1968
2130
|
}
|
|
1969
2131
|
UpdateAdmin(request) {
|
|
1970
2132
|
const data = MsgUpdateAdmin.encode(request).finish();
|
|
1971
2133
|
const promise = this.rpc.request(this.service, "UpdateAdmin", data);
|
|
1972
|
-
return promise.then((data) => MsgUpdateAdminResponse.decode(
|
|
2134
|
+
return promise.then((data) => MsgUpdateAdminResponse.decode(new BinaryReader(data)));
|
|
1973
2135
|
}
|
|
1974
2136
|
ClearAdmin(request) {
|
|
1975
2137
|
const data = MsgClearAdmin.encode(request).finish();
|
|
1976
2138
|
const promise = this.rpc.request(this.service, "ClearAdmin", data);
|
|
1977
|
-
return promise.then((data) => MsgClearAdminResponse.decode(
|
|
2139
|
+
return promise.then((data) => MsgClearAdminResponse.decode(new BinaryReader(data)));
|
|
1978
2140
|
}
|
|
1979
2141
|
UpdateInstantiateConfig(request) {
|
|
1980
2142
|
const data = MsgUpdateInstantiateConfig.encode(request).finish();
|
|
1981
2143
|
const promise = this.rpc.request(this.service, "UpdateInstantiateConfig", data);
|
|
1982
|
-
return promise.then((data) => MsgUpdateInstantiateConfigResponse.decode(
|
|
2144
|
+
return promise.then((data) => MsgUpdateInstantiateConfigResponse.decode(new BinaryReader(data)));
|
|
1983
2145
|
}
|
|
1984
2146
|
UpdateParams(request) {
|
|
1985
2147
|
const data = MsgUpdateParams.encode(request).finish();
|
|
1986
2148
|
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
1987
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(
|
|
2149
|
+
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
1988
2150
|
}
|
|
1989
2151
|
SudoContract(request) {
|
|
1990
2152
|
const data = MsgSudoContract.encode(request).finish();
|
|
1991
2153
|
const promise = this.rpc.request(this.service, "SudoContract", data);
|
|
1992
|
-
return promise.then((data) => MsgSudoContractResponse.decode(
|
|
2154
|
+
return promise.then((data) => MsgSudoContractResponse.decode(new BinaryReader(data)));
|
|
1993
2155
|
}
|
|
1994
2156
|
PinCodes(request) {
|
|
1995
2157
|
const data = MsgPinCodes.encode(request).finish();
|
|
1996
2158
|
const promise = this.rpc.request(this.service, "PinCodes", data);
|
|
1997
|
-
return promise.then((data) => MsgPinCodesResponse.decode(
|
|
2159
|
+
return promise.then((data) => MsgPinCodesResponse.decode(new BinaryReader(data)));
|
|
1998
2160
|
}
|
|
1999
2161
|
UnpinCodes(request) {
|
|
2000
2162
|
const data = MsgUnpinCodes.encode(request).finish();
|
|
2001
2163
|
const promise = this.rpc.request(this.service, "UnpinCodes", data);
|
|
2002
|
-
return promise.then((data) => MsgUnpinCodesResponse.decode(
|
|
2164
|
+
return promise.then((data) => MsgUnpinCodesResponse.decode(new BinaryReader(data)));
|
|
2003
2165
|
}
|
|
2004
2166
|
StoreAndInstantiateContract(request) {
|
|
2005
2167
|
const data = MsgStoreAndInstantiateContract.encode(request).finish();
|
|
2006
2168
|
const promise = this.rpc.request(this.service, "StoreAndInstantiateContract", data);
|
|
2007
|
-
return promise.then((data) => MsgStoreAndInstantiateContractResponse.decode(
|
|
2169
|
+
return promise.then((data) => MsgStoreAndInstantiateContractResponse.decode(new BinaryReader(data)));
|
|
2008
2170
|
}
|
|
2009
2171
|
}
|
|
2010
|
-
var tsProtoGlobalThis = (() => {
|
|
2011
|
-
if (typeof globalThis !== "undefined") {
|
|
2012
|
-
return globalThis;
|
|
2013
|
-
}
|
|
2014
|
-
if (typeof self !== "undefined") {
|
|
2015
|
-
return self;
|
|
2016
|
-
}
|
|
2017
|
-
if (typeof window !== "undefined") {
|
|
2018
|
-
return window;
|
|
2019
|
-
}
|
|
2020
|
-
if (typeof global !== "undefined") {
|
|
2021
|
-
return global;
|
|
2022
|
-
}
|
|
2023
|
-
throw "Unable to locate global object";
|
|
2024
|
-
})();
|
|
2025
2172
|
function bytesFromBase64(b64) {
|
|
2026
|
-
if (
|
|
2027
|
-
return Uint8Array.from(
|
|
2173
|
+
if (globalThis.Buffer) {
|
|
2174
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
2028
2175
|
}
|
|
2029
2176
|
else {
|
|
2030
|
-
const bin =
|
|
2177
|
+
const bin = globalThis.atob(b64);
|
|
2031
2178
|
const arr = new Uint8Array(bin.length);
|
|
2032
2179
|
for (let i = 0; i < bin.length; ++i) {
|
|
2033
2180
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -2036,26 +2183,26 @@ function bytesFromBase64(b64) {
|
|
|
2036
2183
|
}
|
|
2037
2184
|
}
|
|
2038
2185
|
function base64FromBytes(arr) {
|
|
2039
|
-
if (
|
|
2040
|
-
return
|
|
2186
|
+
if (globalThis.Buffer) {
|
|
2187
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
2041
2188
|
}
|
|
2042
2189
|
else {
|
|
2043
2190
|
const bin = [];
|
|
2044
2191
|
arr.forEach((byte) => {
|
|
2045
|
-
bin.push(String.fromCharCode(byte));
|
|
2192
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
2046
2193
|
});
|
|
2047
|
-
return
|
|
2194
|
+
return globalThis.btoa(bin.join(""));
|
|
2048
2195
|
}
|
|
2049
2196
|
}
|
|
2050
|
-
function longToNumber(
|
|
2051
|
-
|
|
2052
|
-
|
|
2197
|
+
function longToNumber(int64) {
|
|
2198
|
+
const num = globalThis.Number(int64.toString());
|
|
2199
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
2200
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2053
2201
|
}
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
_m0.configure();
|
|
2202
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
2203
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2204
|
+
}
|
|
2205
|
+
return num;
|
|
2059
2206
|
}
|
|
2060
2207
|
function isSet(value) {
|
|
2061
2208
|
return value !== null && value !== undefined;
|