coreum-js 2.16.2 → 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 +16 -17
- 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 -120
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/main/coreum/asset/ft/v1/token.js +273 -197
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
- 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 -147
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
- 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/feemodel/v1/genesis.d.ts +13 -233
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
- 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 -79
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +9 -9
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +14 -8
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.js +3 -4
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.js +183 -223
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.js +57 -68
- package/dist/main/tendermint/types/validator.js +10 -13
- 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/wasm/v1/authz.d.ts +20 -471
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/genesis.d.ts +14 -1020
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -62
- 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.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -720
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -1201
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -788
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -297
- package/dist/main/wasm/v1/types.js +219 -190
- package/dist/module/client/index.js +4 -3
- 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 -120
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
- 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 -147
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
- 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 -233
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
- 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 -79
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
- 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/services/cosmostation.js +1 -1
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/wasm/v1/authz.d.ts +20 -471
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -1020
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -62
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/proposal.d.ts +23 -720
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -1201
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -788
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -297
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,54 +1,56 @@
|
|
|
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/authz.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
|
-
import { Any } from "
|
|
9
|
+
import { Any } from "cosmjs-types/google/protobuf/any";
|
|
6
10
|
export const protobufPackage = "cosmwasm.wasm.v1";
|
|
7
11
|
function createBaseContractExecutionAuthorization() {
|
|
8
12
|
return { grants: [] };
|
|
9
13
|
}
|
|
10
14
|
export const ContractExecutionAuthorization = {
|
|
11
|
-
encode(message, writer =
|
|
15
|
+
encode(message, writer = new BinaryWriter()) {
|
|
12
16
|
for (const v of message.grants) {
|
|
13
17
|
ContractGrant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
14
18
|
}
|
|
15
19
|
return writer;
|
|
16
20
|
},
|
|
17
21
|
decode(input, length) {
|
|
18
|
-
const reader = input instanceof
|
|
22
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19
23
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20
24
|
const message = createBaseContractExecutionAuthorization();
|
|
21
25
|
while (reader.pos < end) {
|
|
22
26
|
const tag = reader.uint32();
|
|
23
27
|
switch (tag >>> 3) {
|
|
24
|
-
case 1:
|
|
28
|
+
case 1: {
|
|
25
29
|
if (tag !== 10) {
|
|
26
30
|
break;
|
|
27
31
|
}
|
|
28
32
|
message.grants.push(ContractGrant.decode(reader, reader.uint32()));
|
|
29
33
|
continue;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32
37
|
break;
|
|
33
38
|
}
|
|
34
|
-
reader.
|
|
39
|
+
reader.skip(tag & 7);
|
|
35
40
|
}
|
|
36
41
|
return message;
|
|
37
42
|
},
|
|
38
43
|
fromJSON(object) {
|
|
39
44
|
return {
|
|
40
|
-
grants: Array.isArray(object?.grants)
|
|
45
|
+
grants: globalThis.Array.isArray(object?.grants)
|
|
41
46
|
? object.grants.map((e) => ContractGrant.fromJSON(e))
|
|
42
47
|
: [],
|
|
43
48
|
};
|
|
44
49
|
},
|
|
45
50
|
toJSON(message) {
|
|
46
51
|
const obj = {};
|
|
47
|
-
if (message.grants) {
|
|
48
|
-
obj.grants = message.grants.map((e) =>
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
obj.grants = [];
|
|
52
|
+
if (message.grants?.length) {
|
|
53
|
+
obj.grants = message.grants.map((e) => ContractGrant.toJSON(e));
|
|
52
54
|
}
|
|
53
55
|
return obj;
|
|
54
56
|
},
|
|
@@ -66,47 +68,45 @@ function createBaseContractMigrationAuthorization() {
|
|
|
66
68
|
return { grants: [] };
|
|
67
69
|
}
|
|
68
70
|
export const ContractMigrationAuthorization = {
|
|
69
|
-
encode(message, writer =
|
|
71
|
+
encode(message, writer = new BinaryWriter()) {
|
|
70
72
|
for (const v of message.grants) {
|
|
71
73
|
ContractGrant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
72
74
|
}
|
|
73
75
|
return writer;
|
|
74
76
|
},
|
|
75
77
|
decode(input, length) {
|
|
76
|
-
const reader = input instanceof
|
|
78
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
77
79
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
80
|
const message = createBaseContractMigrationAuthorization();
|
|
79
81
|
while (reader.pos < end) {
|
|
80
82
|
const tag = reader.uint32();
|
|
81
83
|
switch (tag >>> 3) {
|
|
82
|
-
case 1:
|
|
84
|
+
case 1: {
|
|
83
85
|
if (tag !== 10) {
|
|
84
86
|
break;
|
|
85
87
|
}
|
|
86
88
|
message.grants.push(ContractGrant.decode(reader, reader.uint32()));
|
|
87
89
|
continue;
|
|
90
|
+
}
|
|
88
91
|
}
|
|
89
92
|
if ((tag & 7) === 4 || tag === 0) {
|
|
90
93
|
break;
|
|
91
94
|
}
|
|
92
|
-
reader.
|
|
95
|
+
reader.skip(tag & 7);
|
|
93
96
|
}
|
|
94
97
|
return message;
|
|
95
98
|
},
|
|
96
99
|
fromJSON(object) {
|
|
97
100
|
return {
|
|
98
|
-
grants: Array.isArray(object?.grants)
|
|
101
|
+
grants: globalThis.Array.isArray(object?.grants)
|
|
99
102
|
? object.grants.map((e) => ContractGrant.fromJSON(e))
|
|
100
103
|
: [],
|
|
101
104
|
};
|
|
102
105
|
},
|
|
103
106
|
toJSON(message) {
|
|
104
107
|
const obj = {};
|
|
105
|
-
if (message.grants) {
|
|
106
|
-
obj.grants = message.grants.map((e) =>
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
obj.grants = [];
|
|
108
|
+
if (message.grants?.length) {
|
|
109
|
+
obj.grants = message.grants.map((e) => ContractGrant.toJSON(e));
|
|
110
110
|
}
|
|
111
111
|
return obj;
|
|
112
112
|
},
|
|
@@ -124,7 +124,7 @@ function createBaseContractGrant() {
|
|
|
124
124
|
return { contract: "", limit: undefined, filter: undefined };
|
|
125
125
|
}
|
|
126
126
|
export const ContractGrant = {
|
|
127
|
-
encode(message, writer =
|
|
127
|
+
encode(message, writer = new BinaryWriter()) {
|
|
128
128
|
if (message.contract !== "") {
|
|
129
129
|
writer.uint32(10).string(message.contract);
|
|
130
130
|
}
|
|
@@ -137,52 +137,61 @@ export const ContractGrant = {
|
|
|
137
137
|
return writer;
|
|
138
138
|
},
|
|
139
139
|
decode(input, length) {
|
|
140
|
-
const reader = input instanceof
|
|
140
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
141
141
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
142
142
|
const message = createBaseContractGrant();
|
|
143
143
|
while (reader.pos < end) {
|
|
144
144
|
const tag = reader.uint32();
|
|
145
145
|
switch (tag >>> 3) {
|
|
146
|
-
case 1:
|
|
146
|
+
case 1: {
|
|
147
147
|
if (tag !== 10) {
|
|
148
148
|
break;
|
|
149
149
|
}
|
|
150
150
|
message.contract = reader.string();
|
|
151
151
|
continue;
|
|
152
|
-
|
|
152
|
+
}
|
|
153
|
+
case 2: {
|
|
153
154
|
if (tag !== 18) {
|
|
154
155
|
break;
|
|
155
156
|
}
|
|
156
157
|
message.limit = Any.decode(reader, reader.uint32());
|
|
157
158
|
continue;
|
|
158
|
-
|
|
159
|
+
}
|
|
160
|
+
case 3: {
|
|
159
161
|
if (tag !== 26) {
|
|
160
162
|
break;
|
|
161
163
|
}
|
|
162
164
|
message.filter = Any.decode(reader, reader.uint32());
|
|
163
165
|
continue;
|
|
166
|
+
}
|
|
164
167
|
}
|
|
165
168
|
if ((tag & 7) === 4 || tag === 0) {
|
|
166
169
|
break;
|
|
167
170
|
}
|
|
168
|
-
reader.
|
|
171
|
+
reader.skip(tag & 7);
|
|
169
172
|
}
|
|
170
173
|
return message;
|
|
171
174
|
},
|
|
172
175
|
fromJSON(object) {
|
|
173
176
|
return {
|
|
174
|
-
contract: isSet(object.contract)
|
|
177
|
+
contract: isSet(object.contract)
|
|
178
|
+
? globalThis.String(object.contract)
|
|
179
|
+
: "",
|
|
175
180
|
limit: isSet(object.limit) ? Any.fromJSON(object.limit) : undefined,
|
|
176
181
|
filter: isSet(object.filter) ? Any.fromJSON(object.filter) : undefined,
|
|
177
182
|
};
|
|
178
183
|
},
|
|
179
184
|
toJSON(message) {
|
|
180
185
|
const obj = {};
|
|
181
|
-
message.contract !==
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
message.
|
|
185
|
-
|
|
186
|
+
if (message.contract !== "") {
|
|
187
|
+
obj.contract = message.contract;
|
|
188
|
+
}
|
|
189
|
+
if (message.limit !== undefined) {
|
|
190
|
+
obj.limit = Any.toJSON(message.limit);
|
|
191
|
+
}
|
|
192
|
+
if (message.filter !== undefined) {
|
|
193
|
+
obj.filter = Any.toJSON(message.filter);
|
|
194
|
+
}
|
|
186
195
|
return obj;
|
|
187
196
|
},
|
|
188
197
|
create(base) {
|
|
@@ -206,42 +215,46 @@ function createBaseMaxCallsLimit() {
|
|
|
206
215
|
return { remaining: 0 };
|
|
207
216
|
}
|
|
208
217
|
export const MaxCallsLimit = {
|
|
209
|
-
encode(message, writer =
|
|
218
|
+
encode(message, writer = new BinaryWriter()) {
|
|
210
219
|
if (message.remaining !== 0) {
|
|
211
220
|
writer.uint32(8).uint64(message.remaining);
|
|
212
221
|
}
|
|
213
222
|
return writer;
|
|
214
223
|
},
|
|
215
224
|
decode(input, length) {
|
|
216
|
-
const reader = input instanceof
|
|
225
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
217
226
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
227
|
const message = createBaseMaxCallsLimit();
|
|
219
228
|
while (reader.pos < end) {
|
|
220
229
|
const tag = reader.uint32();
|
|
221
230
|
switch (tag >>> 3) {
|
|
222
|
-
case 1:
|
|
231
|
+
case 1: {
|
|
223
232
|
if (tag !== 8) {
|
|
224
233
|
break;
|
|
225
234
|
}
|
|
226
235
|
message.remaining = longToNumber(reader.uint64());
|
|
227
236
|
continue;
|
|
237
|
+
}
|
|
228
238
|
}
|
|
229
239
|
if ((tag & 7) === 4 || tag === 0) {
|
|
230
240
|
break;
|
|
231
241
|
}
|
|
232
|
-
reader.
|
|
242
|
+
reader.skip(tag & 7);
|
|
233
243
|
}
|
|
234
244
|
return message;
|
|
235
245
|
},
|
|
236
246
|
fromJSON(object) {
|
|
237
247
|
return {
|
|
238
|
-
remaining: isSet(object.remaining)
|
|
248
|
+
remaining: isSet(object.remaining)
|
|
249
|
+
? globalThis.Number(object.remaining)
|
|
250
|
+
: 0,
|
|
239
251
|
};
|
|
240
252
|
},
|
|
241
253
|
toJSON(message) {
|
|
242
254
|
const obj = {};
|
|
243
|
-
message.remaining !==
|
|
244
|
-
|
|
255
|
+
if (message.remaining !== 0) {
|
|
256
|
+
obj.remaining = Math.round(message.remaining);
|
|
257
|
+
}
|
|
245
258
|
return obj;
|
|
246
259
|
},
|
|
247
260
|
create(base) {
|
|
@@ -257,47 +270,45 @@ function createBaseMaxFundsLimit() {
|
|
|
257
270
|
return { amounts: [] };
|
|
258
271
|
}
|
|
259
272
|
export const MaxFundsLimit = {
|
|
260
|
-
encode(message, writer =
|
|
273
|
+
encode(message, writer = new BinaryWriter()) {
|
|
261
274
|
for (const v of message.amounts) {
|
|
262
275
|
Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
263
276
|
}
|
|
264
277
|
return writer;
|
|
265
278
|
},
|
|
266
279
|
decode(input, length) {
|
|
267
|
-
const reader = input instanceof
|
|
280
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
268
281
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
269
282
|
const message = createBaseMaxFundsLimit();
|
|
270
283
|
while (reader.pos < end) {
|
|
271
284
|
const tag = reader.uint32();
|
|
272
285
|
switch (tag >>> 3) {
|
|
273
|
-
case 1:
|
|
286
|
+
case 1: {
|
|
274
287
|
if (tag !== 10) {
|
|
275
288
|
break;
|
|
276
289
|
}
|
|
277
290
|
message.amounts.push(Coin.decode(reader, reader.uint32()));
|
|
278
291
|
continue;
|
|
292
|
+
}
|
|
279
293
|
}
|
|
280
294
|
if ((tag & 7) === 4 || tag === 0) {
|
|
281
295
|
break;
|
|
282
296
|
}
|
|
283
|
-
reader.
|
|
297
|
+
reader.skip(tag & 7);
|
|
284
298
|
}
|
|
285
299
|
return message;
|
|
286
300
|
},
|
|
287
301
|
fromJSON(object) {
|
|
288
302
|
return {
|
|
289
|
-
amounts: Array.isArray(object?.amounts)
|
|
303
|
+
amounts: globalThis.Array.isArray(object?.amounts)
|
|
290
304
|
? object.amounts.map((e) => Coin.fromJSON(e))
|
|
291
305
|
: [],
|
|
292
306
|
};
|
|
293
307
|
},
|
|
294
308
|
toJSON(message) {
|
|
295
309
|
const obj = {};
|
|
296
|
-
if (message.amounts) {
|
|
297
|
-
obj.amounts = message.amounts.map((e) =>
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
obj.amounts = [];
|
|
310
|
+
if (message.amounts?.length) {
|
|
311
|
+
obj.amounts = message.amounts.map((e) => Coin.toJSON(e));
|
|
301
312
|
}
|
|
302
313
|
return obj;
|
|
303
314
|
},
|
|
@@ -314,7 +325,7 @@ function createBaseCombinedLimit() {
|
|
|
314
325
|
return { callsRemaining: 0, amounts: [] };
|
|
315
326
|
}
|
|
316
327
|
export const CombinedLimit = {
|
|
317
|
-
encode(message, writer =
|
|
328
|
+
encode(message, writer = new BinaryWriter()) {
|
|
318
329
|
if (message.callsRemaining !== 0) {
|
|
319
330
|
writer.uint32(8).uint64(message.callsRemaining);
|
|
320
331
|
}
|
|
@@ -324,51 +335,51 @@ export const CombinedLimit = {
|
|
|
324
335
|
return writer;
|
|
325
336
|
},
|
|
326
337
|
decode(input, length) {
|
|
327
|
-
const reader = input instanceof
|
|
338
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
328
339
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
329
340
|
const message = createBaseCombinedLimit();
|
|
330
341
|
while (reader.pos < end) {
|
|
331
342
|
const tag = reader.uint32();
|
|
332
343
|
switch (tag >>> 3) {
|
|
333
|
-
case 1:
|
|
344
|
+
case 1: {
|
|
334
345
|
if (tag !== 8) {
|
|
335
346
|
break;
|
|
336
347
|
}
|
|
337
348
|
message.callsRemaining = longToNumber(reader.uint64());
|
|
338
349
|
continue;
|
|
339
|
-
|
|
350
|
+
}
|
|
351
|
+
case 2: {
|
|
340
352
|
if (tag !== 18) {
|
|
341
353
|
break;
|
|
342
354
|
}
|
|
343
355
|
message.amounts.push(Coin.decode(reader, reader.uint32()));
|
|
344
356
|
continue;
|
|
357
|
+
}
|
|
345
358
|
}
|
|
346
359
|
if ((tag & 7) === 4 || tag === 0) {
|
|
347
360
|
break;
|
|
348
361
|
}
|
|
349
|
-
reader.
|
|
362
|
+
reader.skip(tag & 7);
|
|
350
363
|
}
|
|
351
364
|
return message;
|
|
352
365
|
},
|
|
353
366
|
fromJSON(object) {
|
|
354
367
|
return {
|
|
355
368
|
callsRemaining: isSet(object.callsRemaining)
|
|
356
|
-
? Number(object.callsRemaining)
|
|
369
|
+
? globalThis.Number(object.callsRemaining)
|
|
357
370
|
: 0,
|
|
358
|
-
amounts: Array.isArray(object?.amounts)
|
|
371
|
+
amounts: globalThis.Array.isArray(object?.amounts)
|
|
359
372
|
? object.amounts.map((e) => Coin.fromJSON(e))
|
|
360
373
|
: [],
|
|
361
374
|
};
|
|
362
375
|
},
|
|
363
376
|
toJSON(message) {
|
|
364
377
|
const obj = {};
|
|
365
|
-
message.callsRemaining !==
|
|
366
|
-
|
|
367
|
-
if (message.amounts) {
|
|
368
|
-
obj.amounts = message.amounts.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
378
|
+
if (message.callsRemaining !== 0) {
|
|
379
|
+
obj.callsRemaining = Math.round(message.callsRemaining);
|
|
369
380
|
}
|
|
370
|
-
|
|
371
|
-
obj.amounts =
|
|
381
|
+
if (message.amounts?.length) {
|
|
382
|
+
obj.amounts = message.amounts.map((e) => Coin.toJSON(e));
|
|
372
383
|
}
|
|
373
384
|
return obj;
|
|
374
385
|
},
|
|
@@ -386,11 +397,11 @@ function createBaseAllowAllMessagesFilter() {
|
|
|
386
397
|
return {};
|
|
387
398
|
}
|
|
388
399
|
export const AllowAllMessagesFilter = {
|
|
389
|
-
encode(_, writer =
|
|
400
|
+
encode(_, writer = new BinaryWriter()) {
|
|
390
401
|
return writer;
|
|
391
402
|
},
|
|
392
403
|
decode(input, length) {
|
|
393
|
-
const reader = input instanceof
|
|
404
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
394
405
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
406
|
const message = createBaseAllowAllMessagesFilter();
|
|
396
407
|
while (reader.pos < end) {
|
|
@@ -400,7 +411,7 @@ export const AllowAllMessagesFilter = {
|
|
|
400
411
|
if ((tag & 7) === 4 || tag === 0) {
|
|
401
412
|
break;
|
|
402
413
|
}
|
|
403
|
-
reader.
|
|
414
|
+
reader.skip(tag & 7);
|
|
404
415
|
}
|
|
405
416
|
return message;
|
|
406
417
|
},
|
|
@@ -423,47 +434,45 @@ function createBaseAcceptedMessageKeysFilter() {
|
|
|
423
434
|
return { keys: [] };
|
|
424
435
|
}
|
|
425
436
|
export const AcceptedMessageKeysFilter = {
|
|
426
|
-
encode(message, writer =
|
|
437
|
+
encode(message, writer = new BinaryWriter()) {
|
|
427
438
|
for (const v of message.keys) {
|
|
428
439
|
writer.uint32(10).string(v);
|
|
429
440
|
}
|
|
430
441
|
return writer;
|
|
431
442
|
},
|
|
432
443
|
decode(input, length) {
|
|
433
|
-
const reader = input instanceof
|
|
444
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
434
445
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
435
446
|
const message = createBaseAcceptedMessageKeysFilter();
|
|
436
447
|
while (reader.pos < end) {
|
|
437
448
|
const tag = reader.uint32();
|
|
438
449
|
switch (tag >>> 3) {
|
|
439
|
-
case 1:
|
|
450
|
+
case 1: {
|
|
440
451
|
if (tag !== 10) {
|
|
441
452
|
break;
|
|
442
453
|
}
|
|
443
454
|
message.keys.push(reader.string());
|
|
444
455
|
continue;
|
|
456
|
+
}
|
|
445
457
|
}
|
|
446
458
|
if ((tag & 7) === 4 || tag === 0) {
|
|
447
459
|
break;
|
|
448
460
|
}
|
|
449
|
-
reader.
|
|
461
|
+
reader.skip(tag & 7);
|
|
450
462
|
}
|
|
451
463
|
return message;
|
|
452
464
|
},
|
|
453
465
|
fromJSON(object) {
|
|
454
466
|
return {
|
|
455
|
-
keys: Array.isArray(object?.keys)
|
|
456
|
-
? object.keys.map((e) => String(e))
|
|
467
|
+
keys: globalThis.Array.isArray(object?.keys)
|
|
468
|
+
? object.keys.map((e) => globalThis.String(e))
|
|
457
469
|
: [],
|
|
458
470
|
};
|
|
459
471
|
},
|
|
460
472
|
toJSON(message) {
|
|
461
473
|
const obj = {};
|
|
462
|
-
if (message.keys) {
|
|
463
|
-
obj.keys = message.keys
|
|
464
|
-
}
|
|
465
|
-
else {
|
|
466
|
-
obj.keys = [];
|
|
474
|
+
if (message.keys?.length) {
|
|
475
|
+
obj.keys = message.keys;
|
|
467
476
|
}
|
|
468
477
|
return obj;
|
|
469
478
|
},
|
|
@@ -480,47 +489,45 @@ function createBaseAcceptedMessagesFilter() {
|
|
|
480
489
|
return { messages: [] };
|
|
481
490
|
}
|
|
482
491
|
export const AcceptedMessagesFilter = {
|
|
483
|
-
encode(message, writer =
|
|
492
|
+
encode(message, writer = new BinaryWriter()) {
|
|
484
493
|
for (const v of message.messages) {
|
|
485
494
|
writer.uint32(10).bytes(v);
|
|
486
495
|
}
|
|
487
496
|
return writer;
|
|
488
497
|
},
|
|
489
498
|
decode(input, length) {
|
|
490
|
-
const reader = input instanceof
|
|
499
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
491
500
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
492
501
|
const message = createBaseAcceptedMessagesFilter();
|
|
493
502
|
while (reader.pos < end) {
|
|
494
503
|
const tag = reader.uint32();
|
|
495
504
|
switch (tag >>> 3) {
|
|
496
|
-
case 1:
|
|
505
|
+
case 1: {
|
|
497
506
|
if (tag !== 10) {
|
|
498
507
|
break;
|
|
499
508
|
}
|
|
500
509
|
message.messages.push(reader.bytes());
|
|
501
510
|
continue;
|
|
511
|
+
}
|
|
502
512
|
}
|
|
503
513
|
if ((tag & 7) === 4 || tag === 0) {
|
|
504
514
|
break;
|
|
505
515
|
}
|
|
506
|
-
reader.
|
|
516
|
+
reader.skip(tag & 7);
|
|
507
517
|
}
|
|
508
518
|
return message;
|
|
509
519
|
},
|
|
510
520
|
fromJSON(object) {
|
|
511
521
|
return {
|
|
512
|
-
messages: Array.isArray(object?.messages)
|
|
522
|
+
messages: globalThis.Array.isArray(object?.messages)
|
|
513
523
|
? object.messages.map((e) => bytesFromBase64(e))
|
|
514
524
|
: [],
|
|
515
525
|
};
|
|
516
526
|
},
|
|
517
527
|
toJSON(message) {
|
|
518
528
|
const obj = {};
|
|
519
|
-
if (message.messages) {
|
|
520
|
-
obj.messages = message.messages.map((e) => base64FromBytes(e
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
obj.messages = [];
|
|
529
|
+
if (message.messages?.length) {
|
|
530
|
+
obj.messages = message.messages.map((e) => base64FromBytes(e));
|
|
524
531
|
}
|
|
525
532
|
return obj;
|
|
526
533
|
},
|
|
@@ -533,27 +540,12 @@ export const AcceptedMessagesFilter = {
|
|
|
533
540
|
return message;
|
|
534
541
|
},
|
|
535
542
|
};
|
|
536
|
-
var tsProtoGlobalThis = (() => {
|
|
537
|
-
if (typeof globalThis !== "undefined") {
|
|
538
|
-
return globalThis;
|
|
539
|
-
}
|
|
540
|
-
if (typeof self !== "undefined") {
|
|
541
|
-
return self;
|
|
542
|
-
}
|
|
543
|
-
if (typeof window !== "undefined") {
|
|
544
|
-
return window;
|
|
545
|
-
}
|
|
546
|
-
if (typeof global !== "undefined") {
|
|
547
|
-
return global;
|
|
548
|
-
}
|
|
549
|
-
throw "Unable to locate global object";
|
|
550
|
-
})();
|
|
551
543
|
function bytesFromBase64(b64) {
|
|
552
|
-
if (
|
|
553
|
-
return Uint8Array.from(
|
|
544
|
+
if (globalThis.Buffer) {
|
|
545
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
554
546
|
}
|
|
555
547
|
else {
|
|
556
|
-
const bin =
|
|
548
|
+
const bin = globalThis.atob(b64);
|
|
557
549
|
const arr = new Uint8Array(bin.length);
|
|
558
550
|
for (let i = 0; i < bin.length; ++i) {
|
|
559
551
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -562,26 +554,26 @@ function bytesFromBase64(b64) {
|
|
|
562
554
|
}
|
|
563
555
|
}
|
|
564
556
|
function base64FromBytes(arr) {
|
|
565
|
-
if (
|
|
566
|
-
return
|
|
557
|
+
if (globalThis.Buffer) {
|
|
558
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
567
559
|
}
|
|
568
560
|
else {
|
|
569
561
|
const bin = [];
|
|
570
562
|
arr.forEach((byte) => {
|
|
571
|
-
bin.push(String.fromCharCode(byte));
|
|
563
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
572
564
|
});
|
|
573
|
-
return
|
|
565
|
+
return globalThis.btoa(bin.join(""));
|
|
574
566
|
}
|
|
575
567
|
}
|
|
576
|
-
function longToNumber(
|
|
577
|
-
|
|
578
|
-
|
|
568
|
+
function longToNumber(int64) {
|
|
569
|
+
const num = globalThis.Number(int64.toString());
|
|
570
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
571
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
579
572
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
_m0.configure();
|
|
573
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
574
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
575
|
+
}
|
|
576
|
+
return num;
|
|
585
577
|
}
|
|
586
578
|
function isSet(value) {
|
|
587
579
|
return value !== null && value !== undefined;
|