coreum-js 2.16.3 → 2.17.1
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 +2 -0
- package/dist/main/coreum/dex/index.js +11 -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 +2 -0
- package/dist/module/coreum/dex/index.js +8 -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,12 +1,21 @@
|
|
|
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/ibc.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
export const protobufPackage = "cosmwasm.wasm.v1";
|
|
5
9
|
function createBaseMsgIBCSend() {
|
|
6
|
-
return {
|
|
10
|
+
return {
|
|
11
|
+
channel: "",
|
|
12
|
+
timeoutHeight: 0,
|
|
13
|
+
timeoutTimestamp: 0,
|
|
14
|
+
data: new Uint8Array(0),
|
|
15
|
+
};
|
|
7
16
|
}
|
|
8
17
|
export const MsgIBCSend = {
|
|
9
|
-
encode(message, writer =
|
|
18
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10
19
|
if (message.channel !== "") {
|
|
11
20
|
writer.uint32(18).string(message.channel);
|
|
12
21
|
}
|
|
@@ -22,59 +31,76 @@ export const MsgIBCSend = {
|
|
|
22
31
|
return writer;
|
|
23
32
|
},
|
|
24
33
|
decode(input, length) {
|
|
25
|
-
const reader = input instanceof
|
|
34
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
26
35
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
36
|
const message = createBaseMsgIBCSend();
|
|
28
37
|
while (reader.pos < end) {
|
|
29
38
|
const tag = reader.uint32();
|
|
30
39
|
switch (tag >>> 3) {
|
|
31
|
-
case 2:
|
|
40
|
+
case 2: {
|
|
32
41
|
if (tag !== 18) {
|
|
33
42
|
break;
|
|
34
43
|
}
|
|
35
44
|
message.channel = reader.string();
|
|
36
45
|
continue;
|
|
37
|
-
|
|
46
|
+
}
|
|
47
|
+
case 4: {
|
|
38
48
|
if (tag !== 32) {
|
|
39
49
|
break;
|
|
40
50
|
}
|
|
41
51
|
message.timeoutHeight = longToNumber(reader.uint64());
|
|
42
52
|
continue;
|
|
43
|
-
|
|
53
|
+
}
|
|
54
|
+
case 5: {
|
|
44
55
|
if (tag !== 40) {
|
|
45
56
|
break;
|
|
46
57
|
}
|
|
47
58
|
message.timeoutTimestamp = longToNumber(reader.uint64());
|
|
48
59
|
continue;
|
|
49
|
-
|
|
60
|
+
}
|
|
61
|
+
case 6: {
|
|
50
62
|
if (tag !== 50) {
|
|
51
63
|
break;
|
|
52
64
|
}
|
|
53
65
|
message.data = reader.bytes();
|
|
54
66
|
continue;
|
|
67
|
+
}
|
|
55
68
|
}
|
|
56
69
|
if ((tag & 7) === 4 || tag === 0) {
|
|
57
70
|
break;
|
|
58
71
|
}
|
|
59
|
-
reader.
|
|
72
|
+
reader.skip(tag & 7);
|
|
60
73
|
}
|
|
61
74
|
return message;
|
|
62
75
|
},
|
|
63
76
|
fromJSON(object) {
|
|
64
77
|
return {
|
|
65
|
-
channel: isSet(object.channel) ? String(object.channel) : "",
|
|
66
|
-
timeoutHeight: isSet(object.timeoutHeight)
|
|
67
|
-
|
|
68
|
-
|
|
78
|
+
channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
|
|
79
|
+
timeoutHeight: isSet(object.timeoutHeight)
|
|
80
|
+
? globalThis.Number(object.timeoutHeight)
|
|
81
|
+
: 0,
|
|
82
|
+
timeoutTimestamp: isSet(object.timeoutTimestamp)
|
|
83
|
+
? globalThis.Number(object.timeoutTimestamp)
|
|
84
|
+
: 0,
|
|
85
|
+
data: isSet(object.data)
|
|
86
|
+
? bytesFromBase64(object.data)
|
|
87
|
+
: new Uint8Array(0),
|
|
69
88
|
};
|
|
70
89
|
},
|
|
71
90
|
toJSON(message) {
|
|
72
91
|
const obj = {};
|
|
73
|
-
message.channel !==
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
message.
|
|
77
|
-
|
|
92
|
+
if (message.channel !== "") {
|
|
93
|
+
obj.channel = message.channel;
|
|
94
|
+
}
|
|
95
|
+
if (message.timeoutHeight !== 0) {
|
|
96
|
+
obj.timeoutHeight = Math.round(message.timeoutHeight);
|
|
97
|
+
}
|
|
98
|
+
if (message.timeoutTimestamp !== 0) {
|
|
99
|
+
obj.timeoutTimestamp = Math.round(message.timeoutTimestamp);
|
|
100
|
+
}
|
|
101
|
+
if (message.data.length !== 0) {
|
|
102
|
+
obj.data = base64FromBytes(message.data);
|
|
103
|
+
}
|
|
78
104
|
return obj;
|
|
79
105
|
},
|
|
80
106
|
create(base) {
|
|
@@ -85,7 +111,7 @@ export const MsgIBCSend = {
|
|
|
85
111
|
message.channel = object.channel ?? "";
|
|
86
112
|
message.timeoutHeight = object.timeoutHeight ?? 0;
|
|
87
113
|
message.timeoutTimestamp = object.timeoutTimestamp ?? 0;
|
|
88
|
-
message.data = object.data ?? new Uint8Array();
|
|
114
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
89
115
|
return message;
|
|
90
116
|
},
|
|
91
117
|
};
|
|
@@ -93,39 +119,44 @@ function createBaseMsgIBCSendResponse() {
|
|
|
93
119
|
return { sequence: 0 };
|
|
94
120
|
}
|
|
95
121
|
export const MsgIBCSendResponse = {
|
|
96
|
-
encode(message, writer =
|
|
122
|
+
encode(message, writer = new BinaryWriter()) {
|
|
97
123
|
if (message.sequence !== 0) {
|
|
98
124
|
writer.uint32(8).uint64(message.sequence);
|
|
99
125
|
}
|
|
100
126
|
return writer;
|
|
101
127
|
},
|
|
102
128
|
decode(input, length) {
|
|
103
|
-
const reader = input instanceof
|
|
129
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
104
130
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
131
|
const message = createBaseMsgIBCSendResponse();
|
|
106
132
|
while (reader.pos < end) {
|
|
107
133
|
const tag = reader.uint32();
|
|
108
134
|
switch (tag >>> 3) {
|
|
109
|
-
case 1:
|
|
135
|
+
case 1: {
|
|
110
136
|
if (tag !== 8) {
|
|
111
137
|
break;
|
|
112
138
|
}
|
|
113
139
|
message.sequence = longToNumber(reader.uint64());
|
|
114
140
|
continue;
|
|
141
|
+
}
|
|
115
142
|
}
|
|
116
143
|
if ((tag & 7) === 4 || tag === 0) {
|
|
117
144
|
break;
|
|
118
145
|
}
|
|
119
|
-
reader.
|
|
146
|
+
reader.skip(tag & 7);
|
|
120
147
|
}
|
|
121
148
|
return message;
|
|
122
149
|
},
|
|
123
150
|
fromJSON(object) {
|
|
124
|
-
return {
|
|
151
|
+
return {
|
|
152
|
+
sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
|
|
153
|
+
};
|
|
125
154
|
},
|
|
126
155
|
toJSON(message) {
|
|
127
156
|
const obj = {};
|
|
128
|
-
message.sequence !==
|
|
157
|
+
if (message.sequence !== 0) {
|
|
158
|
+
obj.sequence = Math.round(message.sequence);
|
|
159
|
+
}
|
|
129
160
|
return obj;
|
|
130
161
|
},
|
|
131
162
|
create(base) {
|
|
@@ -141,39 +172,44 @@ function createBaseMsgIBCCloseChannel() {
|
|
|
141
172
|
return { channel: "" };
|
|
142
173
|
}
|
|
143
174
|
export const MsgIBCCloseChannel = {
|
|
144
|
-
encode(message, writer =
|
|
175
|
+
encode(message, writer = new BinaryWriter()) {
|
|
145
176
|
if (message.channel !== "") {
|
|
146
177
|
writer.uint32(18).string(message.channel);
|
|
147
178
|
}
|
|
148
179
|
return writer;
|
|
149
180
|
},
|
|
150
181
|
decode(input, length) {
|
|
151
|
-
const reader = input instanceof
|
|
182
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
152
183
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
153
184
|
const message = createBaseMsgIBCCloseChannel();
|
|
154
185
|
while (reader.pos < end) {
|
|
155
186
|
const tag = reader.uint32();
|
|
156
187
|
switch (tag >>> 3) {
|
|
157
|
-
case 2:
|
|
188
|
+
case 2: {
|
|
158
189
|
if (tag !== 18) {
|
|
159
190
|
break;
|
|
160
191
|
}
|
|
161
192
|
message.channel = reader.string();
|
|
162
193
|
continue;
|
|
194
|
+
}
|
|
163
195
|
}
|
|
164
196
|
if ((tag & 7) === 4 || tag === 0) {
|
|
165
197
|
break;
|
|
166
198
|
}
|
|
167
|
-
reader.
|
|
199
|
+
reader.skip(tag & 7);
|
|
168
200
|
}
|
|
169
201
|
return message;
|
|
170
202
|
},
|
|
171
203
|
fromJSON(object) {
|
|
172
|
-
return {
|
|
204
|
+
return {
|
|
205
|
+
channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
|
|
206
|
+
};
|
|
173
207
|
},
|
|
174
208
|
toJSON(message) {
|
|
175
209
|
const obj = {};
|
|
176
|
-
message.channel !==
|
|
210
|
+
if (message.channel !== "") {
|
|
211
|
+
obj.channel = message.channel;
|
|
212
|
+
}
|
|
177
213
|
return obj;
|
|
178
214
|
},
|
|
179
215
|
create(base) {
|
|
@@ -185,27 +221,12 @@ export const MsgIBCCloseChannel = {
|
|
|
185
221
|
return message;
|
|
186
222
|
},
|
|
187
223
|
};
|
|
188
|
-
var tsProtoGlobalThis = (() => {
|
|
189
|
-
if (typeof globalThis !== "undefined") {
|
|
190
|
-
return globalThis;
|
|
191
|
-
}
|
|
192
|
-
if (typeof self !== "undefined") {
|
|
193
|
-
return self;
|
|
194
|
-
}
|
|
195
|
-
if (typeof window !== "undefined") {
|
|
196
|
-
return window;
|
|
197
|
-
}
|
|
198
|
-
if (typeof global !== "undefined") {
|
|
199
|
-
return global;
|
|
200
|
-
}
|
|
201
|
-
throw "Unable to locate global object";
|
|
202
|
-
})();
|
|
203
224
|
function bytesFromBase64(b64) {
|
|
204
|
-
if (
|
|
205
|
-
return Uint8Array.from(
|
|
225
|
+
if (globalThis.Buffer) {
|
|
226
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
206
227
|
}
|
|
207
228
|
else {
|
|
208
|
-
const bin =
|
|
229
|
+
const bin = globalThis.atob(b64);
|
|
209
230
|
const arr = new Uint8Array(bin.length);
|
|
210
231
|
for (let i = 0; i < bin.length; ++i) {
|
|
211
232
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -214,26 +235,26 @@ function bytesFromBase64(b64) {
|
|
|
214
235
|
}
|
|
215
236
|
}
|
|
216
237
|
function base64FromBytes(arr) {
|
|
217
|
-
if (
|
|
218
|
-
return
|
|
238
|
+
if (globalThis.Buffer) {
|
|
239
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
219
240
|
}
|
|
220
241
|
else {
|
|
221
242
|
const bin = [];
|
|
222
243
|
arr.forEach((byte) => {
|
|
223
|
-
bin.push(String.fromCharCode(byte));
|
|
244
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
224
245
|
});
|
|
225
|
-
return
|
|
246
|
+
return globalThis.btoa(bin.join(""));
|
|
226
247
|
}
|
|
227
248
|
}
|
|
228
|
-
function longToNumber(
|
|
229
|
-
|
|
230
|
-
|
|
249
|
+
function longToNumber(int64) {
|
|
250
|
+
const num = globalThis.Number(int64.toString());
|
|
251
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
252
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
231
253
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
_m0.configure();
|
|
254
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
255
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
256
|
+
}
|
|
257
|
+
return num;
|
|
237
258
|
}
|
|
238
259
|
function isSet(value) {
|
|
239
260
|
return value !== null && value !== undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
1
|
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract } from "./tx";
|
|
3
2
|
import { MsgIBCSend, MsgIBCCloseChannel } from "./ibc";
|
|
4
|
-
export declare const cosmwasmRegistry: ReadonlyArray<[string,
|
|
3
|
+
export declare const cosmwasmRegistry: ReadonlyArray<[string, any]>;
|
|
5
4
|
/**
|
|
6
5
|
* Transaction Module for the IBC Module (wasm)
|
|
7
6
|
*/
|
|
@@ -68,16 +68,52 @@ export declare const PageRequest: {
|
|
|
68
68
|
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
|
|
69
69
|
fromJSON(object: any): PageRequest;
|
|
70
70
|
toJSON(message: PageRequest): unknown;
|
|
71
|
-
create<I extends
|
|
72
|
-
|
|
71
|
+
create<I extends {
|
|
72
|
+
key?: Uint8Array;
|
|
73
|
+
offset?: number;
|
|
74
|
+
limit?: number;
|
|
75
|
+
countTotal?: boolean;
|
|
76
|
+
reverse?: boolean;
|
|
77
|
+
} & {
|
|
78
|
+
key?: Uint8Array;
|
|
79
|
+
offset?: number;
|
|
80
|
+
limit?: number;
|
|
81
|
+
countTotal?: boolean;
|
|
82
|
+
reverse?: boolean;
|
|
83
|
+
} & { [K in Exclude<keyof I, keyof PageRequest>]: never; }>(base?: I): PageRequest;
|
|
84
|
+
fromPartial<I_1 extends {
|
|
85
|
+
key?: Uint8Array;
|
|
86
|
+
offset?: number;
|
|
87
|
+
limit?: number;
|
|
88
|
+
countTotal?: boolean;
|
|
89
|
+
reverse?: boolean;
|
|
90
|
+
} & {
|
|
91
|
+
key?: Uint8Array;
|
|
92
|
+
offset?: number;
|
|
93
|
+
limit?: number;
|
|
94
|
+
countTotal?: boolean;
|
|
95
|
+
reverse?: boolean;
|
|
96
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PageRequest>]: never; }>(object: I_1): PageRequest;
|
|
73
97
|
};
|
|
74
98
|
export declare const PageResponse: {
|
|
75
99
|
encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
|
|
76
100
|
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
|
|
77
101
|
fromJSON(object: any): PageResponse;
|
|
78
102
|
toJSON(message: PageResponse): unknown;
|
|
79
|
-
create<I extends
|
|
80
|
-
|
|
103
|
+
create<I extends {
|
|
104
|
+
nextKey?: Uint8Array;
|
|
105
|
+
total?: number;
|
|
106
|
+
} & {
|
|
107
|
+
nextKey?: Uint8Array;
|
|
108
|
+
total?: number;
|
|
109
|
+
} & { [K in Exclude<keyof I, keyof PageResponse>]: never; }>(base?: I): PageResponse;
|
|
110
|
+
fromPartial<I_1 extends {
|
|
111
|
+
nextKey?: Uint8Array;
|
|
112
|
+
total?: number;
|
|
113
|
+
} & {
|
|
114
|
+
nextKey?: Uint8Array;
|
|
115
|
+
total?: number;
|
|
116
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PageResponse>]: never; }>(object: I_1): PageResponse;
|
|
81
117
|
};
|
|
82
118
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
83
119
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
2
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
3
|
import { AccessConfig } from "./types";
|
|
4
4
|
export declare const protobufPackage = "cosmwasm.wasm.v1";
|
|
@@ -292,112 +292,21 @@ export interface StoreAndInstantiateContractProposal {
|
|
|
292
292
|
*/
|
|
293
293
|
codeHash: Uint8Array;
|
|
294
294
|
}
|
|
295
|
-
export declare const StoreCodeProposal:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
export declare const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
create<I extends Exact<DeepPartial<InstantiateContractProposal>, I>>(base?: I): InstantiateContractProposal;
|
|
309
|
-
fromPartial<I extends Exact<DeepPartial<InstantiateContractProposal>, I>>(object: I): InstantiateContractProposal;
|
|
310
|
-
};
|
|
311
|
-
export declare const InstantiateContract2Proposal: {
|
|
312
|
-
encode(message: InstantiateContract2Proposal, writer?: _m0.Writer): _m0.Writer;
|
|
313
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InstantiateContract2Proposal;
|
|
314
|
-
fromJSON(object: any): InstantiateContract2Proposal;
|
|
315
|
-
toJSON(message: InstantiateContract2Proposal): unknown;
|
|
316
|
-
create<I extends Exact<DeepPartial<InstantiateContract2Proposal>, I>>(base?: I): InstantiateContract2Proposal;
|
|
317
|
-
fromPartial<I extends Exact<DeepPartial<InstantiateContract2Proposal>, I>>(object: I): InstantiateContract2Proposal;
|
|
318
|
-
};
|
|
319
|
-
export declare const MigrateContractProposal: {
|
|
320
|
-
encode(message: MigrateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
321
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MigrateContractProposal;
|
|
322
|
-
fromJSON(object: any): MigrateContractProposal;
|
|
323
|
-
toJSON(message: MigrateContractProposal): unknown;
|
|
324
|
-
create<I extends Exact<DeepPartial<MigrateContractProposal>, I>>(base?: I): MigrateContractProposal;
|
|
325
|
-
fromPartial<I extends Exact<DeepPartial<MigrateContractProposal>, I>>(object: I): MigrateContractProposal;
|
|
326
|
-
};
|
|
327
|
-
export declare const SudoContractProposal: {
|
|
328
|
-
encode(message: SudoContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
329
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SudoContractProposal;
|
|
330
|
-
fromJSON(object: any): SudoContractProposal;
|
|
331
|
-
toJSON(message: SudoContractProposal): unknown;
|
|
332
|
-
create<I extends Exact<DeepPartial<SudoContractProposal>, I>>(base?: I): SudoContractProposal;
|
|
333
|
-
fromPartial<I extends Exact<DeepPartial<SudoContractProposal>, I>>(object: I): SudoContractProposal;
|
|
334
|
-
};
|
|
335
|
-
export declare const ExecuteContractProposal: {
|
|
336
|
-
encode(message: ExecuteContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
337
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ExecuteContractProposal;
|
|
338
|
-
fromJSON(object: any): ExecuteContractProposal;
|
|
339
|
-
toJSON(message: ExecuteContractProposal): unknown;
|
|
340
|
-
create<I extends Exact<DeepPartial<ExecuteContractProposal>, I>>(base?: I): ExecuteContractProposal;
|
|
341
|
-
fromPartial<I extends Exact<DeepPartial<ExecuteContractProposal>, I>>(object: I): ExecuteContractProposal;
|
|
342
|
-
};
|
|
343
|
-
export declare const UpdateAdminProposal: {
|
|
344
|
-
encode(message: UpdateAdminProposal, writer?: _m0.Writer): _m0.Writer;
|
|
345
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateAdminProposal;
|
|
346
|
-
fromJSON(object: any): UpdateAdminProposal;
|
|
347
|
-
toJSON(message: UpdateAdminProposal): unknown;
|
|
348
|
-
create<I extends Exact<DeepPartial<UpdateAdminProposal>, I>>(base?: I): UpdateAdminProposal;
|
|
349
|
-
fromPartial<I extends Exact<DeepPartial<UpdateAdminProposal>, I>>(object: I): UpdateAdminProposal;
|
|
350
|
-
};
|
|
351
|
-
export declare const ClearAdminProposal: {
|
|
352
|
-
encode(message: ClearAdminProposal, writer?: _m0.Writer): _m0.Writer;
|
|
353
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClearAdminProposal;
|
|
354
|
-
fromJSON(object: any): ClearAdminProposal;
|
|
355
|
-
toJSON(message: ClearAdminProposal): unknown;
|
|
356
|
-
create<I extends Exact<DeepPartial<ClearAdminProposal>, I>>(base?: I): ClearAdminProposal;
|
|
357
|
-
fromPartial<I extends Exact<DeepPartial<ClearAdminProposal>, I>>(object: I): ClearAdminProposal;
|
|
358
|
-
};
|
|
359
|
-
export declare const PinCodesProposal: {
|
|
360
|
-
encode(message: PinCodesProposal, writer?: _m0.Writer): _m0.Writer;
|
|
361
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PinCodesProposal;
|
|
362
|
-
fromJSON(object: any): PinCodesProposal;
|
|
363
|
-
toJSON(message: PinCodesProposal): unknown;
|
|
364
|
-
create<I extends Exact<DeepPartial<PinCodesProposal>, I>>(base?: I): PinCodesProposal;
|
|
365
|
-
fromPartial<I extends Exact<DeepPartial<PinCodesProposal>, I>>(object: I): PinCodesProposal;
|
|
366
|
-
};
|
|
367
|
-
export declare const UnpinCodesProposal: {
|
|
368
|
-
encode(message: UnpinCodesProposal, writer?: _m0.Writer): _m0.Writer;
|
|
369
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UnpinCodesProposal;
|
|
370
|
-
fromJSON(object: any): UnpinCodesProposal;
|
|
371
|
-
toJSON(message: UnpinCodesProposal): unknown;
|
|
372
|
-
create<I extends Exact<DeepPartial<UnpinCodesProposal>, I>>(base?: I): UnpinCodesProposal;
|
|
373
|
-
fromPartial<I extends Exact<DeepPartial<UnpinCodesProposal>, I>>(object: I): UnpinCodesProposal;
|
|
374
|
-
};
|
|
375
|
-
export declare const AccessConfigUpdate: {
|
|
376
|
-
encode(message: AccessConfigUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
377
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfigUpdate;
|
|
378
|
-
fromJSON(object: any): AccessConfigUpdate;
|
|
379
|
-
toJSON(message: AccessConfigUpdate): unknown;
|
|
380
|
-
create<I extends Exact<DeepPartial<AccessConfigUpdate>, I>>(base?: I): AccessConfigUpdate;
|
|
381
|
-
fromPartial<I extends Exact<DeepPartial<AccessConfigUpdate>, I>>(object: I): AccessConfigUpdate;
|
|
382
|
-
};
|
|
383
|
-
export declare const UpdateInstantiateConfigProposal: {
|
|
384
|
-
encode(message: UpdateInstantiateConfigProposal, writer?: _m0.Writer): _m0.Writer;
|
|
385
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstantiateConfigProposal;
|
|
386
|
-
fromJSON(object: any): UpdateInstantiateConfigProposal;
|
|
387
|
-
toJSON(message: UpdateInstantiateConfigProposal): unknown;
|
|
388
|
-
create<I extends Exact<DeepPartial<UpdateInstantiateConfigProposal>, I>>(base?: I): UpdateInstantiateConfigProposal;
|
|
389
|
-
fromPartial<I extends Exact<DeepPartial<UpdateInstantiateConfigProposal>, I>>(object: I): UpdateInstantiateConfigProposal;
|
|
390
|
-
};
|
|
391
|
-
export declare const StoreAndInstantiateContractProposal: {
|
|
392
|
-
encode(message: StoreAndInstantiateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
393
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StoreAndInstantiateContractProposal;
|
|
394
|
-
fromJSON(object: any): StoreAndInstantiateContractProposal;
|
|
395
|
-
toJSON(message: StoreAndInstantiateContractProposal): unknown;
|
|
396
|
-
create<I extends Exact<DeepPartial<StoreAndInstantiateContractProposal>, I>>(base?: I): StoreAndInstantiateContractProposal;
|
|
397
|
-
fromPartial<I extends Exact<DeepPartial<StoreAndInstantiateContractProposal>, I>>(object: I): StoreAndInstantiateContractProposal;
|
|
398
|
-
};
|
|
295
|
+
export declare const StoreCodeProposal: MessageFns<StoreCodeProposal>;
|
|
296
|
+
export declare const InstantiateContractProposal: MessageFns<InstantiateContractProposal>;
|
|
297
|
+
export declare const InstantiateContract2Proposal: MessageFns<InstantiateContract2Proposal>;
|
|
298
|
+
export declare const MigrateContractProposal: MessageFns<MigrateContractProposal>;
|
|
299
|
+
export declare const SudoContractProposal: MessageFns<SudoContractProposal>;
|
|
300
|
+
export declare const ExecuteContractProposal: MessageFns<ExecuteContractProposal>;
|
|
301
|
+
export declare const UpdateAdminProposal: MessageFns<UpdateAdminProposal>;
|
|
302
|
+
export declare const ClearAdminProposal: MessageFns<ClearAdminProposal>;
|
|
303
|
+
export declare const PinCodesProposal: MessageFns<PinCodesProposal>;
|
|
304
|
+
export declare const UnpinCodesProposal: MessageFns<UnpinCodesProposal>;
|
|
305
|
+
export declare const AccessConfigUpdate: MessageFns<AccessConfigUpdate>;
|
|
306
|
+
export declare const UpdateInstantiateConfigProposal: MessageFns<UpdateInstantiateConfigProposal>;
|
|
307
|
+
export declare const StoreAndInstantiateContractProposal: MessageFns<StoreAndInstantiateContractProposal>;
|
|
399
308
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
400
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
309
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
401
310
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
402
311
|
} : Partial<T>;
|
|
403
312
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -406,4 +315,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
406
315
|
} & {
|
|
407
316
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
408
317
|
};
|
|
318
|
+
export interface MessageFns<T> {
|
|
319
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
320
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
321
|
+
fromJSON(object: any): T;
|
|
322
|
+
toJSON(message: T): unknown;
|
|
323
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
324
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
325
|
+
}
|
|
409
326
|
export {};
|