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