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,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: coreum-protos/ft/event.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EventWhitelistedAmountChanged = exports.EventFrozenAmountChanged = exports.EventIssued = exports.protobufPackage = void 0;
|
|
8
|
+
exports.EventDEXSettingsChanged = exports.EventAdminCleared = exports.EventAdminTransferred = exports.EventDEXExpectedToReceiveAmountChanged = exports.EventDEXLockedAmountChanged = exports.EventWhitelistedAmountChanged = exports.EventAmountClawedBack = exports.EventFrozenAmountChanged = exports.EventIssued = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const token_1 = require("./token");
|
|
11
12
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
12
13
|
function createBaseEventIssued() {
|
|
@@ -23,10 +24,12 @@ function createBaseEventIssued() {
|
|
|
23
24
|
sendCommissionRate: "",
|
|
24
25
|
uri: "",
|
|
25
26
|
uriHash: "",
|
|
27
|
+
admin: "",
|
|
28
|
+
dexSettings: undefined,
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
exports.EventIssued = {
|
|
29
|
-
encode(message, writer =
|
|
32
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
30
33
|
if (message.denom !== "") {
|
|
31
34
|
writer.uint32(10).string(message.denom);
|
|
32
35
|
}
|
|
@@ -65,63 +68,76 @@ exports.EventIssued = {
|
|
|
65
68
|
if (message.uriHash !== "") {
|
|
66
69
|
writer.uint32(98).string(message.uriHash);
|
|
67
70
|
}
|
|
71
|
+
if (message.admin !== "") {
|
|
72
|
+
writer.uint32(106).string(message.admin);
|
|
73
|
+
}
|
|
74
|
+
if (message.dexSettings !== undefined) {
|
|
75
|
+
token_1.DEXSettings.encode(message.dexSettings, writer.uint32(114).fork()).ldelim();
|
|
76
|
+
}
|
|
68
77
|
return writer;
|
|
69
78
|
},
|
|
70
79
|
decode(input, length) {
|
|
71
|
-
const reader = input instanceof
|
|
80
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
72
81
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
82
|
const message = createBaseEventIssued();
|
|
74
83
|
while (reader.pos < end) {
|
|
75
84
|
const tag = reader.uint32();
|
|
76
85
|
switch (tag >>> 3) {
|
|
77
|
-
case 1:
|
|
78
|
-
if (tag
|
|
86
|
+
case 1: {
|
|
87
|
+
if (tag !== 10) {
|
|
79
88
|
break;
|
|
80
89
|
}
|
|
81
90
|
message.denom = reader.string();
|
|
82
91
|
continue;
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
}
|
|
93
|
+
case 2: {
|
|
94
|
+
if (tag !== 18) {
|
|
85
95
|
break;
|
|
86
96
|
}
|
|
87
97
|
message.issuer = reader.string();
|
|
88
98
|
continue;
|
|
89
|
-
|
|
90
|
-
|
|
99
|
+
}
|
|
100
|
+
case 3: {
|
|
101
|
+
if (tag !== 26) {
|
|
91
102
|
break;
|
|
92
103
|
}
|
|
93
104
|
message.symbol = reader.string();
|
|
94
105
|
continue;
|
|
95
|
-
|
|
96
|
-
|
|
106
|
+
}
|
|
107
|
+
case 4: {
|
|
108
|
+
if (tag !== 34) {
|
|
97
109
|
break;
|
|
98
110
|
}
|
|
99
111
|
message.subunit = reader.string();
|
|
100
112
|
continue;
|
|
101
|
-
|
|
102
|
-
|
|
113
|
+
}
|
|
114
|
+
case 5: {
|
|
115
|
+
if (tag !== 40) {
|
|
103
116
|
break;
|
|
104
117
|
}
|
|
105
118
|
message.precision = reader.uint32();
|
|
106
119
|
continue;
|
|
107
|
-
|
|
108
|
-
|
|
120
|
+
}
|
|
121
|
+
case 6: {
|
|
122
|
+
if (tag !== 50) {
|
|
109
123
|
break;
|
|
110
124
|
}
|
|
111
125
|
message.initialAmount = reader.string();
|
|
112
126
|
continue;
|
|
113
|
-
|
|
114
|
-
|
|
127
|
+
}
|
|
128
|
+
case 7: {
|
|
129
|
+
if (tag !== 58) {
|
|
115
130
|
break;
|
|
116
131
|
}
|
|
117
132
|
message.description = reader.string();
|
|
118
133
|
continue;
|
|
119
|
-
|
|
120
|
-
|
|
134
|
+
}
|
|
135
|
+
case 8: {
|
|
136
|
+
if (tag === 64) {
|
|
121
137
|
message.features.push(reader.int32());
|
|
122
138
|
continue;
|
|
123
139
|
}
|
|
124
|
-
if (tag
|
|
140
|
+
if (tag === 66) {
|
|
125
141
|
const end2 = reader.uint32() + reader.pos;
|
|
126
142
|
while (reader.pos < end2) {
|
|
127
143
|
message.features.push(reader.int32());
|
|
@@ -129,103 +145,157 @@ exports.EventIssued = {
|
|
|
129
145
|
continue;
|
|
130
146
|
}
|
|
131
147
|
break;
|
|
132
|
-
|
|
133
|
-
|
|
148
|
+
}
|
|
149
|
+
case 9: {
|
|
150
|
+
if (tag !== 74) {
|
|
134
151
|
break;
|
|
135
152
|
}
|
|
136
153
|
message.burnRate = reader.string();
|
|
137
154
|
continue;
|
|
138
|
-
|
|
139
|
-
|
|
155
|
+
}
|
|
156
|
+
case 10: {
|
|
157
|
+
if (tag !== 82) {
|
|
140
158
|
break;
|
|
141
159
|
}
|
|
142
160
|
message.sendCommissionRate = reader.string();
|
|
143
161
|
continue;
|
|
144
|
-
|
|
145
|
-
|
|
162
|
+
}
|
|
163
|
+
case 11: {
|
|
164
|
+
if (tag !== 90) {
|
|
146
165
|
break;
|
|
147
166
|
}
|
|
148
167
|
message.uri = reader.string();
|
|
149
168
|
continue;
|
|
150
|
-
|
|
151
|
-
|
|
169
|
+
}
|
|
170
|
+
case 12: {
|
|
171
|
+
if (tag !== 98) {
|
|
152
172
|
break;
|
|
153
173
|
}
|
|
154
174
|
message.uriHash = reader.string();
|
|
155
175
|
continue;
|
|
176
|
+
}
|
|
177
|
+
case 13: {
|
|
178
|
+
if (tag !== 106) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
message.admin = reader.string();
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
case 14: {
|
|
185
|
+
if (tag !== 114) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
message.dexSettings = token_1.DEXSettings.decode(reader, reader.uint32());
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
156
191
|
}
|
|
157
|
-
if ((tag & 7)
|
|
192
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
158
193
|
break;
|
|
159
194
|
}
|
|
160
|
-
reader.
|
|
195
|
+
reader.skip(tag & 7);
|
|
161
196
|
}
|
|
162
197
|
return message;
|
|
163
198
|
},
|
|
164
199
|
fromJSON(object) {
|
|
165
200
|
return {
|
|
166
|
-
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
167
|
-
issuer: isSet(object.issuer) ? String(object.issuer) : "",
|
|
168
|
-
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
169
|
-
subunit: isSet(object.subunit) ? String(object.subunit) : "",
|
|
170
|
-
precision: isSet(object.precision)
|
|
201
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
202
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
203
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
204
|
+
subunit: isSet(object.subunit) ? globalThis.String(object.subunit) : "",
|
|
205
|
+
precision: isSet(object.precision)
|
|
206
|
+
? globalThis.Number(object.precision)
|
|
207
|
+
: 0,
|
|
171
208
|
initialAmount: isSet(object.initialAmount)
|
|
172
|
-
? String(object.initialAmount)
|
|
209
|
+
? globalThis.String(object.initialAmount)
|
|
173
210
|
: "",
|
|
174
|
-
description: isSet(object.description)
|
|
175
|
-
|
|
211
|
+
description: isSet(object.description)
|
|
212
|
+
? globalThis.String(object.description)
|
|
213
|
+
: "",
|
|
214
|
+
features: globalThis.Array.isArray(object?.features)
|
|
176
215
|
? object.features.map((e) => (0, token_1.featureFromJSON)(e))
|
|
177
216
|
: [],
|
|
178
|
-
burnRate: isSet(object.burnRate)
|
|
217
|
+
burnRate: isSet(object.burnRate)
|
|
218
|
+
? globalThis.String(object.burnRate)
|
|
219
|
+
: "",
|
|
179
220
|
sendCommissionRate: isSet(object.sendCommissionRate)
|
|
180
|
-
? String(object.sendCommissionRate)
|
|
221
|
+
? globalThis.String(object.sendCommissionRate)
|
|
181
222
|
: "",
|
|
182
|
-
uri: isSet(object.uri) ? String(object.uri) : "",
|
|
183
|
-
uriHash: isSet(object.uriHash) ? String(object.uriHash) : "",
|
|
223
|
+
uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
|
|
224
|
+
uriHash: isSet(object.uriHash) ? globalThis.String(object.uriHash) : "",
|
|
225
|
+
admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
|
|
226
|
+
dexSettings: isSet(object.dexSettings)
|
|
227
|
+
? token_1.DEXSettings.fromJSON(object.dexSettings)
|
|
228
|
+
: undefined,
|
|
184
229
|
};
|
|
185
230
|
},
|
|
186
231
|
toJSON(message) {
|
|
187
232
|
const obj = {};
|
|
188
|
-
message.denom !==
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
message.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
message.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
233
|
+
if (message.denom !== "") {
|
|
234
|
+
obj.denom = message.denom;
|
|
235
|
+
}
|
|
236
|
+
if (message.issuer !== "") {
|
|
237
|
+
obj.issuer = message.issuer;
|
|
238
|
+
}
|
|
239
|
+
if (message.symbol !== "") {
|
|
240
|
+
obj.symbol = message.symbol;
|
|
241
|
+
}
|
|
242
|
+
if (message.subunit !== "") {
|
|
243
|
+
obj.subunit = message.subunit;
|
|
244
|
+
}
|
|
245
|
+
if (message.precision !== 0) {
|
|
246
|
+
obj.precision = Math.round(message.precision);
|
|
247
|
+
}
|
|
248
|
+
if (message.initialAmount !== "") {
|
|
249
|
+
obj.initialAmount = message.initialAmount;
|
|
250
|
+
}
|
|
251
|
+
if (message.description !== "") {
|
|
252
|
+
obj.description = message.description;
|
|
253
|
+
}
|
|
254
|
+
if (message.features?.length) {
|
|
199
255
|
obj.features = message.features.map((e) => (0, token_1.featureToJSON)(e));
|
|
200
256
|
}
|
|
201
|
-
|
|
202
|
-
obj.
|
|
257
|
+
if (message.burnRate !== "") {
|
|
258
|
+
obj.burnRate = message.burnRate;
|
|
259
|
+
}
|
|
260
|
+
if (message.sendCommissionRate !== "") {
|
|
261
|
+
obj.sendCommissionRate = message.sendCommissionRate;
|
|
262
|
+
}
|
|
263
|
+
if (message.uri !== "") {
|
|
264
|
+
obj.uri = message.uri;
|
|
265
|
+
}
|
|
266
|
+
if (message.uriHash !== "") {
|
|
267
|
+
obj.uriHash = message.uriHash;
|
|
268
|
+
}
|
|
269
|
+
if (message.admin !== "") {
|
|
270
|
+
obj.admin = message.admin;
|
|
271
|
+
}
|
|
272
|
+
if (message.dexSettings !== undefined) {
|
|
273
|
+
obj.dexSettings = token_1.DEXSettings.toJSON(message.dexSettings);
|
|
203
274
|
}
|
|
204
|
-
message.burnRate !== undefined && (obj.burnRate = message.burnRate);
|
|
205
|
-
message.sendCommissionRate !== undefined &&
|
|
206
|
-
(obj.sendCommissionRate = message.sendCommissionRate);
|
|
207
|
-
message.uri !== undefined && (obj.uri = message.uri);
|
|
208
|
-
message.uriHash !== undefined && (obj.uriHash = message.uriHash);
|
|
209
275
|
return obj;
|
|
210
276
|
},
|
|
211
277
|
create(base) {
|
|
212
|
-
return exports.EventIssued.fromPartial(base
|
|
278
|
+
return exports.EventIssued.fromPartial(base ?? {});
|
|
213
279
|
},
|
|
214
280
|
fromPartial(object) {
|
|
215
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
216
281
|
const message = createBaseEventIssued();
|
|
217
|
-
message.denom =
|
|
218
|
-
message.issuer =
|
|
219
|
-
message.symbol =
|
|
220
|
-
message.subunit =
|
|
221
|
-
message.precision =
|
|
222
|
-
message.initialAmount =
|
|
223
|
-
message.description =
|
|
224
|
-
message.features =
|
|
225
|
-
message.burnRate =
|
|
226
|
-
message.sendCommissionRate =
|
|
227
|
-
message.uri =
|
|
228
|
-
message.uriHash =
|
|
282
|
+
message.denom = object.denom ?? "";
|
|
283
|
+
message.issuer = object.issuer ?? "";
|
|
284
|
+
message.symbol = object.symbol ?? "";
|
|
285
|
+
message.subunit = object.subunit ?? "";
|
|
286
|
+
message.precision = object.precision ?? 0;
|
|
287
|
+
message.initialAmount = object.initialAmount ?? "";
|
|
288
|
+
message.description = object.description ?? "";
|
|
289
|
+
message.features = object.features?.map((e) => e) || [];
|
|
290
|
+
message.burnRate = object.burnRate ?? "";
|
|
291
|
+
message.sendCommissionRate = object.sendCommissionRate ?? "";
|
|
292
|
+
message.uri = object.uri ?? "";
|
|
293
|
+
message.uriHash = object.uriHash ?? "";
|
|
294
|
+
message.admin = object.admin ?? "";
|
|
295
|
+
message.dexSettings =
|
|
296
|
+
object.dexSettings !== undefined && object.dexSettings !== null
|
|
297
|
+
? token_1.DEXSettings.fromPartial(object.dexSettings)
|
|
298
|
+
: undefined;
|
|
229
299
|
return message;
|
|
230
300
|
},
|
|
231
301
|
};
|
|
@@ -233,7 +303,7 @@ function createBaseEventFrozenAmountChanged() {
|
|
|
233
303
|
return { account: "", denom: "", previousAmount: "", currentAmount: "" };
|
|
234
304
|
}
|
|
235
305
|
exports.EventFrozenAmountChanged = {
|
|
236
|
-
encode(message, writer =
|
|
306
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
237
307
|
if (message.account !== "") {
|
|
238
308
|
writer.uint32(10).string(message.account);
|
|
239
309
|
}
|
|
@@ -249,76 +319,168 @@ exports.EventFrozenAmountChanged = {
|
|
|
249
319
|
return writer;
|
|
250
320
|
},
|
|
251
321
|
decode(input, length) {
|
|
252
|
-
const reader = input instanceof
|
|
322
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
253
323
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
254
324
|
const message = createBaseEventFrozenAmountChanged();
|
|
255
325
|
while (reader.pos < end) {
|
|
256
326
|
const tag = reader.uint32();
|
|
257
327
|
switch (tag >>> 3) {
|
|
258
|
-
case 1:
|
|
259
|
-
if (tag
|
|
328
|
+
case 1: {
|
|
329
|
+
if (tag !== 10) {
|
|
260
330
|
break;
|
|
261
331
|
}
|
|
262
332
|
message.account = reader.string();
|
|
263
333
|
continue;
|
|
264
|
-
|
|
265
|
-
|
|
334
|
+
}
|
|
335
|
+
case 2: {
|
|
336
|
+
if (tag !== 18) {
|
|
266
337
|
break;
|
|
267
338
|
}
|
|
268
339
|
message.denom = reader.string();
|
|
269
340
|
continue;
|
|
270
|
-
|
|
271
|
-
|
|
341
|
+
}
|
|
342
|
+
case 3: {
|
|
343
|
+
if (tag !== 26) {
|
|
272
344
|
break;
|
|
273
345
|
}
|
|
274
346
|
message.previousAmount = reader.string();
|
|
275
347
|
continue;
|
|
276
|
-
|
|
277
|
-
|
|
348
|
+
}
|
|
349
|
+
case 4: {
|
|
350
|
+
if (tag !== 34) {
|
|
278
351
|
break;
|
|
279
352
|
}
|
|
280
353
|
message.currentAmount = reader.string();
|
|
281
354
|
continue;
|
|
355
|
+
}
|
|
282
356
|
}
|
|
283
|
-
if ((tag & 7)
|
|
357
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
284
358
|
break;
|
|
285
359
|
}
|
|
286
|
-
reader.
|
|
360
|
+
reader.skip(tag & 7);
|
|
287
361
|
}
|
|
288
362
|
return message;
|
|
289
363
|
},
|
|
290
364
|
fromJSON(object) {
|
|
291
365
|
return {
|
|
292
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
293
|
-
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
366
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
367
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
294
368
|
previousAmount: isSet(object.previousAmount)
|
|
295
|
-
? String(object.previousAmount)
|
|
369
|
+
? globalThis.String(object.previousAmount)
|
|
296
370
|
: "",
|
|
297
371
|
currentAmount: isSet(object.currentAmount)
|
|
298
|
-
? String(object.currentAmount)
|
|
372
|
+
? globalThis.String(object.currentAmount)
|
|
299
373
|
: "",
|
|
300
374
|
};
|
|
301
375
|
},
|
|
302
376
|
toJSON(message) {
|
|
303
377
|
const obj = {};
|
|
304
|
-
message.account !==
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
378
|
+
if (message.account !== "") {
|
|
379
|
+
obj.account = message.account;
|
|
380
|
+
}
|
|
381
|
+
if (message.denom !== "") {
|
|
382
|
+
obj.denom = message.denom;
|
|
383
|
+
}
|
|
384
|
+
if (message.previousAmount !== "") {
|
|
385
|
+
obj.previousAmount = message.previousAmount;
|
|
386
|
+
}
|
|
387
|
+
if (message.currentAmount !== "") {
|
|
388
|
+
obj.currentAmount = message.currentAmount;
|
|
389
|
+
}
|
|
310
390
|
return obj;
|
|
311
391
|
},
|
|
312
392
|
create(base) {
|
|
313
|
-
return exports.EventFrozenAmountChanged.fromPartial(base
|
|
393
|
+
return exports.EventFrozenAmountChanged.fromPartial(base ?? {});
|
|
314
394
|
},
|
|
315
395
|
fromPartial(object) {
|
|
316
|
-
var _a, _b, _c, _d;
|
|
317
396
|
const message = createBaseEventFrozenAmountChanged();
|
|
318
|
-
message.account =
|
|
319
|
-
message.denom =
|
|
320
|
-
message.previousAmount =
|
|
321
|
-
message.currentAmount =
|
|
397
|
+
message.account = object.account ?? "";
|
|
398
|
+
message.denom = object.denom ?? "";
|
|
399
|
+
message.previousAmount = object.previousAmount ?? "";
|
|
400
|
+
message.currentAmount = object.currentAmount ?? "";
|
|
401
|
+
return message;
|
|
402
|
+
},
|
|
403
|
+
};
|
|
404
|
+
function createBaseEventAmountClawedBack() {
|
|
405
|
+
return { account: "", denom: "", amount: "" };
|
|
406
|
+
}
|
|
407
|
+
exports.EventAmountClawedBack = {
|
|
408
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
409
|
+
if (message.account !== "") {
|
|
410
|
+
writer.uint32(10).string(message.account);
|
|
411
|
+
}
|
|
412
|
+
if (message.denom !== "") {
|
|
413
|
+
writer.uint32(18).string(message.denom);
|
|
414
|
+
}
|
|
415
|
+
if (message.amount !== "") {
|
|
416
|
+
writer.uint32(26).string(message.amount);
|
|
417
|
+
}
|
|
418
|
+
return writer;
|
|
419
|
+
},
|
|
420
|
+
decode(input, length) {
|
|
421
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
422
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
423
|
+
const message = createBaseEventAmountClawedBack();
|
|
424
|
+
while (reader.pos < end) {
|
|
425
|
+
const tag = reader.uint32();
|
|
426
|
+
switch (tag >>> 3) {
|
|
427
|
+
case 1: {
|
|
428
|
+
if (tag !== 10) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
message.account = reader.string();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 2: {
|
|
435
|
+
if (tag !== 18) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.denom = reader.string();
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
case 3: {
|
|
442
|
+
if (tag !== 26) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
message.amount = reader.string();
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
reader.skip(tag & 7);
|
|
453
|
+
}
|
|
454
|
+
return message;
|
|
455
|
+
},
|
|
456
|
+
fromJSON(object) {
|
|
457
|
+
return {
|
|
458
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
459
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
460
|
+
amount: isSet(object.amount) ? globalThis.String(object.amount) : "",
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
toJSON(message) {
|
|
464
|
+
const obj = {};
|
|
465
|
+
if (message.account !== "") {
|
|
466
|
+
obj.account = message.account;
|
|
467
|
+
}
|
|
468
|
+
if (message.denom !== "") {
|
|
469
|
+
obj.denom = message.denom;
|
|
470
|
+
}
|
|
471
|
+
if (message.amount !== "") {
|
|
472
|
+
obj.amount = message.amount;
|
|
473
|
+
}
|
|
474
|
+
return obj;
|
|
475
|
+
},
|
|
476
|
+
create(base) {
|
|
477
|
+
return exports.EventAmountClawedBack.fromPartial(base ?? {});
|
|
478
|
+
},
|
|
479
|
+
fromPartial(object) {
|
|
480
|
+
const message = createBaseEventAmountClawedBack();
|
|
481
|
+
message.account = object.account ?? "";
|
|
482
|
+
message.denom = object.denom ?? "";
|
|
483
|
+
message.amount = object.amount ?? "";
|
|
322
484
|
return message;
|
|
323
485
|
},
|
|
324
486
|
};
|
|
@@ -326,7 +488,7 @@ function createBaseEventWhitelistedAmountChanged() {
|
|
|
326
488
|
return { account: "", denom: "", previousAmount: "", currentAmount: "" };
|
|
327
489
|
}
|
|
328
490
|
exports.EventWhitelistedAmountChanged = {
|
|
329
|
-
encode(message, writer =
|
|
491
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
330
492
|
if (message.account !== "") {
|
|
331
493
|
writer.uint32(10).string(message.account);
|
|
332
494
|
}
|
|
@@ -342,83 +504,527 @@ exports.EventWhitelistedAmountChanged = {
|
|
|
342
504
|
return writer;
|
|
343
505
|
},
|
|
344
506
|
decode(input, length) {
|
|
345
|
-
const reader = input instanceof
|
|
507
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
346
508
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
347
509
|
const message = createBaseEventWhitelistedAmountChanged();
|
|
348
510
|
while (reader.pos < end) {
|
|
349
511
|
const tag = reader.uint32();
|
|
350
512
|
switch (tag >>> 3) {
|
|
351
|
-
case 1:
|
|
352
|
-
if (tag
|
|
513
|
+
case 1: {
|
|
514
|
+
if (tag !== 10) {
|
|
353
515
|
break;
|
|
354
516
|
}
|
|
355
517
|
message.account = reader.string();
|
|
356
518
|
continue;
|
|
357
|
-
|
|
358
|
-
|
|
519
|
+
}
|
|
520
|
+
case 2: {
|
|
521
|
+
if (tag !== 18) {
|
|
359
522
|
break;
|
|
360
523
|
}
|
|
361
524
|
message.denom = reader.string();
|
|
362
525
|
continue;
|
|
363
|
-
|
|
364
|
-
|
|
526
|
+
}
|
|
527
|
+
case 3: {
|
|
528
|
+
if (tag !== 26) {
|
|
365
529
|
break;
|
|
366
530
|
}
|
|
367
531
|
message.previousAmount = reader.string();
|
|
368
532
|
continue;
|
|
369
|
-
|
|
370
|
-
|
|
533
|
+
}
|
|
534
|
+
case 4: {
|
|
535
|
+
if (tag !== 34) {
|
|
371
536
|
break;
|
|
372
537
|
}
|
|
373
538
|
message.currentAmount = reader.string();
|
|
374
539
|
continue;
|
|
540
|
+
}
|
|
375
541
|
}
|
|
376
|
-
if ((tag & 7)
|
|
542
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
377
543
|
break;
|
|
378
544
|
}
|
|
379
|
-
reader.
|
|
545
|
+
reader.skip(tag & 7);
|
|
380
546
|
}
|
|
381
547
|
return message;
|
|
382
548
|
},
|
|
383
549
|
fromJSON(object) {
|
|
384
550
|
return {
|
|
385
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
386
|
-
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
551
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
552
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
387
553
|
previousAmount: isSet(object.previousAmount)
|
|
388
|
-
? String(object.previousAmount)
|
|
554
|
+
? globalThis.String(object.previousAmount)
|
|
389
555
|
: "",
|
|
390
556
|
currentAmount: isSet(object.currentAmount)
|
|
391
|
-
? String(object.currentAmount)
|
|
557
|
+
? globalThis.String(object.currentAmount)
|
|
392
558
|
: "",
|
|
393
559
|
};
|
|
394
560
|
},
|
|
395
561
|
toJSON(message) {
|
|
396
562
|
const obj = {};
|
|
397
|
-
message.account !==
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
563
|
+
if (message.account !== "") {
|
|
564
|
+
obj.account = message.account;
|
|
565
|
+
}
|
|
566
|
+
if (message.denom !== "") {
|
|
567
|
+
obj.denom = message.denom;
|
|
568
|
+
}
|
|
569
|
+
if (message.previousAmount !== "") {
|
|
570
|
+
obj.previousAmount = message.previousAmount;
|
|
571
|
+
}
|
|
572
|
+
if (message.currentAmount !== "") {
|
|
573
|
+
obj.currentAmount = message.currentAmount;
|
|
574
|
+
}
|
|
403
575
|
return obj;
|
|
404
576
|
},
|
|
405
577
|
create(base) {
|
|
406
|
-
return exports.EventWhitelistedAmountChanged.fromPartial(base
|
|
578
|
+
return exports.EventWhitelistedAmountChanged.fromPartial(base ?? {});
|
|
407
579
|
},
|
|
408
580
|
fromPartial(object) {
|
|
409
|
-
var _a, _b, _c, _d;
|
|
410
581
|
const message = createBaseEventWhitelistedAmountChanged();
|
|
411
|
-
message.account =
|
|
412
|
-
message.denom =
|
|
413
|
-
message.previousAmount =
|
|
414
|
-
message.currentAmount =
|
|
582
|
+
message.account = object.account ?? "";
|
|
583
|
+
message.denom = object.denom ?? "";
|
|
584
|
+
message.previousAmount = object.previousAmount ?? "";
|
|
585
|
+
message.currentAmount = object.currentAmount ?? "";
|
|
586
|
+
return message;
|
|
587
|
+
},
|
|
588
|
+
};
|
|
589
|
+
function createBaseEventDEXLockedAmountChanged() {
|
|
590
|
+
return { account: "", denom: "", previousAmount: "", currentAmount: "" };
|
|
591
|
+
}
|
|
592
|
+
exports.EventDEXLockedAmountChanged = {
|
|
593
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
594
|
+
if (message.account !== "") {
|
|
595
|
+
writer.uint32(10).string(message.account);
|
|
596
|
+
}
|
|
597
|
+
if (message.denom !== "") {
|
|
598
|
+
writer.uint32(18).string(message.denom);
|
|
599
|
+
}
|
|
600
|
+
if (message.previousAmount !== "") {
|
|
601
|
+
writer.uint32(26).string(message.previousAmount);
|
|
602
|
+
}
|
|
603
|
+
if (message.currentAmount !== "") {
|
|
604
|
+
writer.uint32(34).string(message.currentAmount);
|
|
605
|
+
}
|
|
606
|
+
return writer;
|
|
607
|
+
},
|
|
608
|
+
decode(input, length) {
|
|
609
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
610
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
611
|
+
const message = createBaseEventDEXLockedAmountChanged();
|
|
612
|
+
while (reader.pos < end) {
|
|
613
|
+
const tag = reader.uint32();
|
|
614
|
+
switch (tag >>> 3) {
|
|
615
|
+
case 1: {
|
|
616
|
+
if (tag !== 10) {
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
message.account = reader.string();
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
case 2: {
|
|
623
|
+
if (tag !== 18) {
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
message.denom = reader.string();
|
|
627
|
+
continue;
|
|
628
|
+
}
|
|
629
|
+
case 3: {
|
|
630
|
+
if (tag !== 26) {
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
message.previousAmount = reader.string();
|
|
634
|
+
continue;
|
|
635
|
+
}
|
|
636
|
+
case 4: {
|
|
637
|
+
if (tag !== 34) {
|
|
638
|
+
break;
|
|
639
|
+
}
|
|
640
|
+
message.currentAmount = reader.string();
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
reader.skip(tag & 7);
|
|
648
|
+
}
|
|
649
|
+
return message;
|
|
650
|
+
},
|
|
651
|
+
fromJSON(object) {
|
|
652
|
+
return {
|
|
653
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
654
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
655
|
+
previousAmount: isSet(object.previousAmount)
|
|
656
|
+
? globalThis.String(object.previousAmount)
|
|
657
|
+
: "",
|
|
658
|
+
currentAmount: isSet(object.currentAmount)
|
|
659
|
+
? globalThis.String(object.currentAmount)
|
|
660
|
+
: "",
|
|
661
|
+
};
|
|
662
|
+
},
|
|
663
|
+
toJSON(message) {
|
|
664
|
+
const obj = {};
|
|
665
|
+
if (message.account !== "") {
|
|
666
|
+
obj.account = message.account;
|
|
667
|
+
}
|
|
668
|
+
if (message.denom !== "") {
|
|
669
|
+
obj.denom = message.denom;
|
|
670
|
+
}
|
|
671
|
+
if (message.previousAmount !== "") {
|
|
672
|
+
obj.previousAmount = message.previousAmount;
|
|
673
|
+
}
|
|
674
|
+
if (message.currentAmount !== "") {
|
|
675
|
+
obj.currentAmount = message.currentAmount;
|
|
676
|
+
}
|
|
677
|
+
return obj;
|
|
678
|
+
},
|
|
679
|
+
create(base) {
|
|
680
|
+
return exports.EventDEXLockedAmountChanged.fromPartial(base ?? {});
|
|
681
|
+
},
|
|
682
|
+
fromPartial(object) {
|
|
683
|
+
const message = createBaseEventDEXLockedAmountChanged();
|
|
684
|
+
message.account = object.account ?? "";
|
|
685
|
+
message.denom = object.denom ?? "";
|
|
686
|
+
message.previousAmount = object.previousAmount ?? "";
|
|
687
|
+
message.currentAmount = object.currentAmount ?? "";
|
|
688
|
+
return message;
|
|
689
|
+
},
|
|
690
|
+
};
|
|
691
|
+
function createBaseEventDEXExpectedToReceiveAmountChanged() {
|
|
692
|
+
return { account: "", denom: "", previousAmount: "", currentAmount: "" };
|
|
693
|
+
}
|
|
694
|
+
exports.EventDEXExpectedToReceiveAmountChanged = {
|
|
695
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
696
|
+
if (message.account !== "") {
|
|
697
|
+
writer.uint32(10).string(message.account);
|
|
698
|
+
}
|
|
699
|
+
if (message.denom !== "") {
|
|
700
|
+
writer.uint32(18).string(message.denom);
|
|
701
|
+
}
|
|
702
|
+
if (message.previousAmount !== "") {
|
|
703
|
+
writer.uint32(26).string(message.previousAmount);
|
|
704
|
+
}
|
|
705
|
+
if (message.currentAmount !== "") {
|
|
706
|
+
writer.uint32(34).string(message.currentAmount);
|
|
707
|
+
}
|
|
708
|
+
return writer;
|
|
709
|
+
},
|
|
710
|
+
decode(input, length) {
|
|
711
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
712
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
713
|
+
const message = createBaseEventDEXExpectedToReceiveAmountChanged();
|
|
714
|
+
while (reader.pos < end) {
|
|
715
|
+
const tag = reader.uint32();
|
|
716
|
+
switch (tag >>> 3) {
|
|
717
|
+
case 1: {
|
|
718
|
+
if (tag !== 10) {
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
message.account = reader.string();
|
|
722
|
+
continue;
|
|
723
|
+
}
|
|
724
|
+
case 2: {
|
|
725
|
+
if (tag !== 18) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
728
|
+
message.denom = reader.string();
|
|
729
|
+
continue;
|
|
730
|
+
}
|
|
731
|
+
case 3: {
|
|
732
|
+
if (tag !== 26) {
|
|
733
|
+
break;
|
|
734
|
+
}
|
|
735
|
+
message.previousAmount = reader.string();
|
|
736
|
+
continue;
|
|
737
|
+
}
|
|
738
|
+
case 4: {
|
|
739
|
+
if (tag !== 34) {
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
message.currentAmount = reader.string();
|
|
743
|
+
continue;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
reader.skip(tag & 7);
|
|
750
|
+
}
|
|
751
|
+
return message;
|
|
752
|
+
},
|
|
753
|
+
fromJSON(object) {
|
|
754
|
+
return {
|
|
755
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
756
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
757
|
+
previousAmount: isSet(object.previousAmount)
|
|
758
|
+
? globalThis.String(object.previousAmount)
|
|
759
|
+
: "",
|
|
760
|
+
currentAmount: isSet(object.currentAmount)
|
|
761
|
+
? globalThis.String(object.currentAmount)
|
|
762
|
+
: "",
|
|
763
|
+
};
|
|
764
|
+
},
|
|
765
|
+
toJSON(message) {
|
|
766
|
+
const obj = {};
|
|
767
|
+
if (message.account !== "") {
|
|
768
|
+
obj.account = message.account;
|
|
769
|
+
}
|
|
770
|
+
if (message.denom !== "") {
|
|
771
|
+
obj.denom = message.denom;
|
|
772
|
+
}
|
|
773
|
+
if (message.previousAmount !== "") {
|
|
774
|
+
obj.previousAmount = message.previousAmount;
|
|
775
|
+
}
|
|
776
|
+
if (message.currentAmount !== "") {
|
|
777
|
+
obj.currentAmount = message.currentAmount;
|
|
778
|
+
}
|
|
779
|
+
return obj;
|
|
780
|
+
},
|
|
781
|
+
create(base) {
|
|
782
|
+
return exports.EventDEXExpectedToReceiveAmountChanged.fromPartial(base ?? {});
|
|
783
|
+
},
|
|
784
|
+
fromPartial(object) {
|
|
785
|
+
const message = createBaseEventDEXExpectedToReceiveAmountChanged();
|
|
786
|
+
message.account = object.account ?? "";
|
|
787
|
+
message.denom = object.denom ?? "";
|
|
788
|
+
message.previousAmount = object.previousAmount ?? "";
|
|
789
|
+
message.currentAmount = object.currentAmount ?? "";
|
|
790
|
+
return message;
|
|
791
|
+
},
|
|
792
|
+
};
|
|
793
|
+
function createBaseEventAdminTransferred() {
|
|
794
|
+
return { denom: "", previousAdmin: "", currentAdmin: "" };
|
|
795
|
+
}
|
|
796
|
+
exports.EventAdminTransferred = {
|
|
797
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
798
|
+
if (message.denom !== "") {
|
|
799
|
+
writer.uint32(10).string(message.denom);
|
|
800
|
+
}
|
|
801
|
+
if (message.previousAdmin !== "") {
|
|
802
|
+
writer.uint32(18).string(message.previousAdmin);
|
|
803
|
+
}
|
|
804
|
+
if (message.currentAdmin !== "") {
|
|
805
|
+
writer.uint32(26).string(message.currentAdmin);
|
|
806
|
+
}
|
|
807
|
+
return writer;
|
|
808
|
+
},
|
|
809
|
+
decode(input, length) {
|
|
810
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
811
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
812
|
+
const message = createBaseEventAdminTransferred();
|
|
813
|
+
while (reader.pos < end) {
|
|
814
|
+
const tag = reader.uint32();
|
|
815
|
+
switch (tag >>> 3) {
|
|
816
|
+
case 1: {
|
|
817
|
+
if (tag !== 10) {
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
message.denom = reader.string();
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
case 2: {
|
|
824
|
+
if (tag !== 18) {
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
message.previousAdmin = reader.string();
|
|
828
|
+
continue;
|
|
829
|
+
}
|
|
830
|
+
case 3: {
|
|
831
|
+
if (tag !== 26) {
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
message.currentAdmin = reader.string();
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
reader.skip(tag & 7);
|
|
842
|
+
}
|
|
843
|
+
return message;
|
|
844
|
+
},
|
|
845
|
+
fromJSON(object) {
|
|
846
|
+
return {
|
|
847
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
848
|
+
previousAdmin: isSet(object.previousAdmin)
|
|
849
|
+
? globalThis.String(object.previousAdmin)
|
|
850
|
+
: "",
|
|
851
|
+
currentAdmin: isSet(object.currentAdmin)
|
|
852
|
+
? globalThis.String(object.currentAdmin)
|
|
853
|
+
: "",
|
|
854
|
+
};
|
|
855
|
+
},
|
|
856
|
+
toJSON(message) {
|
|
857
|
+
const obj = {};
|
|
858
|
+
if (message.denom !== "") {
|
|
859
|
+
obj.denom = message.denom;
|
|
860
|
+
}
|
|
861
|
+
if (message.previousAdmin !== "") {
|
|
862
|
+
obj.previousAdmin = message.previousAdmin;
|
|
863
|
+
}
|
|
864
|
+
if (message.currentAdmin !== "") {
|
|
865
|
+
obj.currentAdmin = message.currentAdmin;
|
|
866
|
+
}
|
|
867
|
+
return obj;
|
|
868
|
+
},
|
|
869
|
+
create(base) {
|
|
870
|
+
return exports.EventAdminTransferred.fromPartial(base ?? {});
|
|
871
|
+
},
|
|
872
|
+
fromPartial(object) {
|
|
873
|
+
const message = createBaseEventAdminTransferred();
|
|
874
|
+
message.denom = object.denom ?? "";
|
|
875
|
+
message.previousAdmin = object.previousAdmin ?? "";
|
|
876
|
+
message.currentAdmin = object.currentAdmin ?? "";
|
|
877
|
+
return message;
|
|
878
|
+
},
|
|
879
|
+
};
|
|
880
|
+
function createBaseEventAdminCleared() {
|
|
881
|
+
return { denom: "", previousAdmin: "" };
|
|
882
|
+
}
|
|
883
|
+
exports.EventAdminCleared = {
|
|
884
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
885
|
+
if (message.denom !== "") {
|
|
886
|
+
writer.uint32(10).string(message.denom);
|
|
887
|
+
}
|
|
888
|
+
if (message.previousAdmin !== "") {
|
|
889
|
+
writer.uint32(18).string(message.previousAdmin);
|
|
890
|
+
}
|
|
891
|
+
return writer;
|
|
892
|
+
},
|
|
893
|
+
decode(input, length) {
|
|
894
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
895
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
896
|
+
const message = createBaseEventAdminCleared();
|
|
897
|
+
while (reader.pos < end) {
|
|
898
|
+
const tag = reader.uint32();
|
|
899
|
+
switch (tag >>> 3) {
|
|
900
|
+
case 1: {
|
|
901
|
+
if (tag !== 10) {
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
904
|
+
message.denom = reader.string();
|
|
905
|
+
continue;
|
|
906
|
+
}
|
|
907
|
+
case 2: {
|
|
908
|
+
if (tag !== 18) {
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
message.previousAdmin = reader.string();
|
|
912
|
+
continue;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
reader.skip(tag & 7);
|
|
919
|
+
}
|
|
920
|
+
return message;
|
|
921
|
+
},
|
|
922
|
+
fromJSON(object) {
|
|
923
|
+
return {
|
|
924
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
925
|
+
previousAdmin: isSet(object.previousAdmin)
|
|
926
|
+
? globalThis.String(object.previousAdmin)
|
|
927
|
+
: "",
|
|
928
|
+
};
|
|
929
|
+
},
|
|
930
|
+
toJSON(message) {
|
|
931
|
+
const obj = {};
|
|
932
|
+
if (message.denom !== "") {
|
|
933
|
+
obj.denom = message.denom;
|
|
934
|
+
}
|
|
935
|
+
if (message.previousAdmin !== "") {
|
|
936
|
+
obj.previousAdmin = message.previousAdmin;
|
|
937
|
+
}
|
|
938
|
+
return obj;
|
|
939
|
+
},
|
|
940
|
+
create(base) {
|
|
941
|
+
return exports.EventAdminCleared.fromPartial(base ?? {});
|
|
942
|
+
},
|
|
943
|
+
fromPartial(object) {
|
|
944
|
+
const message = createBaseEventAdminCleared();
|
|
945
|
+
message.denom = object.denom ?? "";
|
|
946
|
+
message.previousAdmin = object.previousAdmin ?? "";
|
|
415
947
|
return message;
|
|
416
948
|
},
|
|
417
949
|
};
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
minimal_1.default.configure();
|
|
950
|
+
function createBaseEventDEXSettingsChanged() {
|
|
951
|
+
return { previousSettings: undefined, newSettings: undefined };
|
|
421
952
|
}
|
|
953
|
+
exports.EventDEXSettingsChanged = {
|
|
954
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
955
|
+
if (message.previousSettings !== undefined) {
|
|
956
|
+
token_1.DEXSettings.encode(message.previousSettings, writer.uint32(10).fork()).ldelim();
|
|
957
|
+
}
|
|
958
|
+
if (message.newSettings !== undefined) {
|
|
959
|
+
token_1.DEXSettings.encode(message.newSettings, writer.uint32(18).fork()).ldelim();
|
|
960
|
+
}
|
|
961
|
+
return writer;
|
|
962
|
+
},
|
|
963
|
+
decode(input, length) {
|
|
964
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
965
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
966
|
+
const message = createBaseEventDEXSettingsChanged();
|
|
967
|
+
while (reader.pos < end) {
|
|
968
|
+
const tag = reader.uint32();
|
|
969
|
+
switch (tag >>> 3) {
|
|
970
|
+
case 1: {
|
|
971
|
+
if (tag !== 10) {
|
|
972
|
+
break;
|
|
973
|
+
}
|
|
974
|
+
message.previousSettings = token_1.DEXSettings.decode(reader, reader.uint32());
|
|
975
|
+
continue;
|
|
976
|
+
}
|
|
977
|
+
case 2: {
|
|
978
|
+
if (tag !== 18) {
|
|
979
|
+
break;
|
|
980
|
+
}
|
|
981
|
+
message.newSettings = token_1.DEXSettings.decode(reader, reader.uint32());
|
|
982
|
+
continue;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
986
|
+
break;
|
|
987
|
+
}
|
|
988
|
+
reader.skip(tag & 7);
|
|
989
|
+
}
|
|
990
|
+
return message;
|
|
991
|
+
},
|
|
992
|
+
fromJSON(object) {
|
|
993
|
+
return {
|
|
994
|
+
previousSettings: isSet(object.previousSettings)
|
|
995
|
+
? token_1.DEXSettings.fromJSON(object.previousSettings)
|
|
996
|
+
: undefined,
|
|
997
|
+
newSettings: isSet(object.newSettings)
|
|
998
|
+
? token_1.DEXSettings.fromJSON(object.newSettings)
|
|
999
|
+
: undefined,
|
|
1000
|
+
};
|
|
1001
|
+
},
|
|
1002
|
+
toJSON(message) {
|
|
1003
|
+
const obj = {};
|
|
1004
|
+
if (message.previousSettings !== undefined) {
|
|
1005
|
+
obj.previousSettings = token_1.DEXSettings.toJSON(message.previousSettings);
|
|
1006
|
+
}
|
|
1007
|
+
if (message.newSettings !== undefined) {
|
|
1008
|
+
obj.newSettings = token_1.DEXSettings.toJSON(message.newSettings);
|
|
1009
|
+
}
|
|
1010
|
+
return obj;
|
|
1011
|
+
},
|
|
1012
|
+
create(base) {
|
|
1013
|
+
return exports.EventDEXSettingsChanged.fromPartial(base ?? {});
|
|
1014
|
+
},
|
|
1015
|
+
fromPartial(object) {
|
|
1016
|
+
const message = createBaseEventDEXSettingsChanged();
|
|
1017
|
+
message.previousSettings =
|
|
1018
|
+
object.previousSettings !== undefined && object.previousSettings !== null
|
|
1019
|
+
? token_1.DEXSettings.fromPartial(object.previousSettings)
|
|
1020
|
+
: undefined;
|
|
1021
|
+
message.newSettings =
|
|
1022
|
+
object.newSettings !== undefined && object.newSettings !== null
|
|
1023
|
+
? token_1.DEXSettings.fromPartial(object.newSettings)
|
|
1024
|
+
: undefined;
|
|
1025
|
+
return message;
|
|
1026
|
+
},
|
|
1027
|
+
};
|
|
422
1028
|
function isSet(value) {
|
|
423
1029
|
return value !== null && value !== undefined;
|
|
424
1030
|
}
|