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.
Files changed (203) hide show
  1. package/dist/main/client/index.js +16 -17
  2. package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
  3. package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
  4. package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
  5. package/dist/main/coreum/asset/ft/v1/event.js +744 -138
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
  9. package/dist/main/coreum/asset/ft/v1/params.js +37 -33
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
  11. package/dist/main/coreum/asset/ft/v1/query.js +697 -217
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
  13. package/dist/main/coreum/asset/ft/v1/token.js +273 -197
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
  15. package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
  16. package/dist/main/coreum/asset/index.d.ts +2 -3
  17. package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
  18. package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
  19. package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
  20. package/dist/main/coreum/asset/nft/v1/event.js +475 -147
  21. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
  22. package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
  23. package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
  24. package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
  25. package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
  26. package/dist/main/coreum/asset/nft/v1/params.js +17 -20
  27. package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
  28. package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
  29. package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
  30. package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
  31. package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
  32. package/dist/main/coreum/asset/nft/v1/types.js +273 -45
  33. package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
  34. package/dist/main/coreum/customparams/v1/genesis.js +26 -22
  35. package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
  36. package/dist/main/coreum/customparams/v1/params.js +23 -20
  37. package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
  38. package/dist/main/coreum/customparams/v1/query.js +35 -29
  39. package/dist/main/coreum/dex/index.d.ts +1 -0
  40. package/dist/main/coreum/dex/index.js +12 -0
  41. package/dist/main/coreum/dex/v1/event.d.ts +73 -0
  42. package/dist/main/coreum/dex/v1/event.js +470 -0
  43. package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
  44. package/dist/main/coreum/dex/v1/genesis.js +318 -0
  45. package/dist/main/coreum/dex/v1/order.d.ts +172 -0
  46. package/dist/main/coreum/dex/v1/order.js +1137 -0
  47. package/dist/main/coreum/dex/v1/params.d.ts +34 -0
  48. package/dist/main/coreum/dex/v1/params.js +139 -0
  49. package/dist/main/coreum/dex/v1/query.d.ts +133 -0
  50. package/dist/main/coreum/dex/v1/query.js +873 -0
  51. package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
  52. package/dist/main/coreum/dex/v1/tx.js +521 -0
  53. package/dist/main/coreum/extensions/dex.d.ts +12 -0
  54. package/dist/main/coreum/extensions/dex.js +32 -0
  55. package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
  56. package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
  57. package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
  58. package/dist/main/coreum/feemodel/v1/params.js +113 -66
  59. package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
  60. package/dist/main/coreum/feemodel/v1/query.js +196 -43
  61. package/dist/main/coreum/index.d.ts +46 -0
  62. package/dist/main/coreum/index.js +58 -1
  63. package/dist/main/coreum/nft/index.d.ts +1 -2
  64. package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
  65. package/dist/main/coreum/nft/v1beta1/event.js +103 -77
  66. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
  67. package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
  68. package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
  69. package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
  70. package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
  71. package/dist/main/coreum/nft/v1beta1/query.js +259 -223
  72. package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
  73. package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
  74. package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
  75. package/dist/main/cosmos/extensions/distribution.js +9 -9
  76. package/dist/main/cosmos/extensions/gov.d.ts +13 -13
  77. package/dist/main/cosmos/extensions/gov.js +14 -8
  78. package/dist/main/cosmos/index.d.ts +8 -8
  79. package/dist/main/google/api/http.js +18 -21
  80. package/dist/main/google/protobuf/any.js +3 -4
  81. package/dist/main/google/protobuf/duration.js +3 -4
  82. package/dist/main/google/protobuf/timestamp.js +3 -4
  83. package/dist/main/services/cosmostation.js +1 -1
  84. package/dist/main/tendermint/abci/types.js +183 -223
  85. package/dist/main/tendermint/crypto/keys.js +3 -4
  86. package/dist/main/tendermint/crypto/proof.js +19 -24
  87. package/dist/main/tendermint/types/params.js +15 -20
  88. package/dist/main/tendermint/types/types.js +57 -68
  89. package/dist/main/tendermint/types/validator.js +10 -13
  90. package/dist/main/tendermint/version/types.js +6 -8
  91. package/dist/main/types/core.d.ts +2 -1
  92. package/dist/main/types/core.js +2 -0
  93. package/dist/main/wasm/v1/authz.d.ts +20 -471
  94. package/dist/main/wasm/v1/authz.js +129 -148
  95. package/dist/main/wasm/v1/genesis.d.ts +14 -1020
  96. package/dist/main/wasm/v1/genesis.js +169 -140
  97. package/dist/main/wasm/v1/ibc.d.ts +13 -62
  98. package/dist/main/wasm/v1/ibc.js +91 -76
  99. package/dist/main/wasm/v1/index.d.ts +1 -2
  100. package/dist/main/wasm/v1/pagination.js +9 -11
  101. package/dist/main/wasm/v1/proposal.d.ts +23 -720
  102. package/dist/main/wasm/v1/proposal.js +634 -465
  103. package/dist/main/wasm/v1/query.d.ts +35 -1201
  104. package/dist/main/wasm/v1/query.js +370 -363
  105. package/dist/main/wasm/v1/tx.d.ts +37 -788
  106. package/dist/main/wasm/v1/tx.js +621 -497
  107. package/dist/main/wasm/v1/types.d.ts +19 -297
  108. package/dist/main/wasm/v1/types.js +219 -190
  109. package/dist/module/client/index.js +4 -3
  110. package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
  111. package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
  112. package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
  113. package/dist/module/coreum/asset/ft/v1/event.js +721 -109
  114. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
  115. package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
  116. package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
  117. package/dist/module/coreum/asset/ft/v1/params.js +35 -27
  118. package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
  119. package/dist/module/coreum/asset/ft/v1/query.js +672 -180
  120. package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
  121. package/dist/module/coreum/asset/ft/v1/token.js +236 -152
  122. package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
  123. package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
  124. package/dist/module/coreum/asset/index.d.ts +2 -3
  125. package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
  126. package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
  127. package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
  128. package/dist/module/coreum/asset/nft/v1/event.js +448 -112
  129. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
  130. package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
  131. package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
  132. package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
  133. package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
  134. package/dist/module/coreum/asset/nft/v1/params.js +16 -16
  135. package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
  136. package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
  137. package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
  138. package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
  139. package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
  140. package/dist/module/coreum/asset/nft/v1/types.js +269 -39
  141. package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
  142. package/dist/module/coreum/customparams/v1/genesis.js +25 -18
  143. package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
  144. package/dist/module/coreum/customparams/v1/params.js +21 -14
  145. package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
  146. package/dist/module/coreum/customparams/v1/query.js +32 -23
  147. package/dist/module/coreum/dex/index.d.ts +1 -0
  148. package/dist/module/coreum/dex/index.js +9 -0
  149. package/dist/module/coreum/dex/v1/event.d.ts +73 -0
  150. package/dist/module/coreum/dex/v1/event.js +467 -0
  151. package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
  152. package/dist/module/coreum/dex/v1/genesis.js +315 -0
  153. package/dist/module/coreum/dex/v1/order.d.ts +172 -0
  154. package/dist/module/coreum/dex/v1/order.js +1128 -0
  155. package/dist/module/coreum/dex/v1/params.d.ts +34 -0
  156. package/dist/module/coreum/dex/v1/params.js +136 -0
  157. package/dist/module/coreum/dex/v1/query.d.ts +133 -0
  158. package/dist/module/coreum/dex/v1/query.js +871 -0
  159. package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
  160. package/dist/module/coreum/dex/v1/tx.js +519 -0
  161. package/dist/module/coreum/extensions/dex.d.ts +12 -0
  162. package/dist/module/coreum/extensions/dex.js +28 -0
  163. package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
  164. package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
  165. package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
  166. package/dist/module/coreum/feemodel/v1/params.js +105 -54
  167. package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
  168. package/dist/module/coreum/feemodel/v1/query.js +191 -35
  169. package/dist/module/coreum/index.d.ts +46 -0
  170. package/dist/module/coreum/index.js +57 -0
  171. package/dist/module/coreum/nft/index.d.ts +1 -2
  172. package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
  173. package/dist/module/coreum/nft/v1beta1/event.js +90 -58
  174. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
  175. package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
  176. package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
  177. package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
  178. package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
  179. package/dist/module/coreum/nft/v1beta1/query.js +231 -183
  180. package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
  181. package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
  182. package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
  183. package/dist/module/cosmos/extensions/gov.d.ts +13 -13
  184. package/dist/module/cosmos/index.d.ts +8 -8
  185. package/dist/module/services/cosmostation.js +1 -1
  186. package/dist/module/types/core.d.ts +2 -1
  187. package/dist/module/types/core.js +2 -0
  188. package/dist/module/wasm/v1/authz.d.ts +20 -471
  189. package/dist/module/wasm/v1/authz.js +111 -119
  190. package/dist/module/wasm/v1/genesis.d.ts +14 -1020
  191. package/dist/module/wasm/v1/genesis.js +161 -125
  192. package/dist/module/wasm/v1/ibc.d.ts +13 -62
  193. package/dist/module/wasm/v1/ibc.js +83 -62
  194. package/dist/module/wasm/v1/index.d.ts +1 -2
  195. package/dist/module/wasm/v1/proposal.d.ts +23 -720
  196. package/dist/module/wasm/v1/proposal.js +562 -377
  197. package/dist/module/wasm/v1/query.d.ts +35 -1201
  198. package/dist/module/wasm/v1/query.js +330 -301
  199. package/dist/module/wasm/v1/tx.d.ts +37 -788
  200. package/dist/module/wasm/v1/tx.js +551 -404
  201. package/dist/module/wasm/v1/types.d.ts +19 -297
  202. package/dist/module/wasm/v1/types.js +196 -156
  203. package/package.json +11 -10
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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 long_1 = __importDefault(require("long"));
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 = minimal_1.default.Writer.create()) {
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 minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
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 != 10) {
86
+ case 1: {
87
+ if (tag !== 10) {
79
88
  break;
80
89
  }
81
90
  message.denom = reader.string();
82
91
  continue;
83
- case 2:
84
- if (tag != 18) {
92
+ }
93
+ case 2: {
94
+ if (tag !== 18) {
85
95
  break;
86
96
  }
87
97
  message.issuer = reader.string();
88
98
  continue;
89
- case 3:
90
- if (tag != 26) {
99
+ }
100
+ case 3: {
101
+ if (tag !== 26) {
91
102
  break;
92
103
  }
93
104
  message.symbol = reader.string();
94
105
  continue;
95
- case 4:
96
- if (tag != 34) {
106
+ }
107
+ case 4: {
108
+ if (tag !== 34) {
97
109
  break;
98
110
  }
99
111
  message.subunit = reader.string();
100
112
  continue;
101
- case 5:
102
- if (tag != 40) {
113
+ }
114
+ case 5: {
115
+ if (tag !== 40) {
103
116
  break;
104
117
  }
105
118
  message.precision = reader.uint32();
106
119
  continue;
107
- case 6:
108
- if (tag != 50) {
120
+ }
121
+ case 6: {
122
+ if (tag !== 50) {
109
123
  break;
110
124
  }
111
125
  message.initialAmount = reader.string();
112
126
  continue;
113
- case 7:
114
- if (tag != 58) {
127
+ }
128
+ case 7: {
129
+ if (tag !== 58) {
115
130
  break;
116
131
  }
117
132
  message.description = reader.string();
118
133
  continue;
119
- case 8:
120
- if (tag == 64) {
134
+ }
135
+ case 8: {
136
+ if (tag === 64) {
121
137
  message.features.push(reader.int32());
122
138
  continue;
123
139
  }
124
- if (tag == 66) {
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
- case 9:
133
- if (tag != 74) {
148
+ }
149
+ case 9: {
150
+ if (tag !== 74) {
134
151
  break;
135
152
  }
136
153
  message.burnRate = reader.string();
137
154
  continue;
138
- case 10:
139
- if (tag != 82) {
155
+ }
156
+ case 10: {
157
+ if (tag !== 82) {
140
158
  break;
141
159
  }
142
160
  message.sendCommissionRate = reader.string();
143
161
  continue;
144
- case 11:
145
- if (tag != 90) {
162
+ }
163
+ case 11: {
164
+ if (tag !== 90) {
146
165
  break;
147
166
  }
148
167
  message.uri = reader.string();
149
168
  continue;
150
- case 10:
151
- if (tag != 98) {
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) == 4 || tag == 0) {
192
+ if ((tag & 7) === 4 || tag === 0) {
158
193
  break;
159
194
  }
160
- reader.skipType(tag & 7);
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) ? Number(object.precision) : 0,
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) ? String(object.description) : "",
175
- features: Array.isArray(object === null || object === void 0 ? void 0 : object.features)
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) ? String(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 !== undefined && (obj.denom = message.denom);
189
- message.issuer !== undefined && (obj.issuer = message.issuer);
190
- message.symbol !== undefined && (obj.symbol = message.symbol);
191
- message.subunit !== undefined && (obj.subunit = message.subunit);
192
- message.precision !== undefined &&
193
- (obj.precision = Math.round(message.precision));
194
- message.initialAmount !== undefined &&
195
- (obj.initialAmount = message.initialAmount);
196
- message.description !== undefined &&
197
- (obj.description = message.description);
198
- if (message.features) {
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
- else {
202
- obj.features = [];
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 !== null && base !== void 0 ? 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 = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
218
- message.issuer = (_b = object.issuer) !== null && _b !== void 0 ? _b : "";
219
- message.symbol = (_c = object.symbol) !== null && _c !== void 0 ? _c : "";
220
- message.subunit = (_d = object.subunit) !== null && _d !== void 0 ? _d : "";
221
- message.precision = (_e = object.precision) !== null && _e !== void 0 ? _e : 0;
222
- message.initialAmount = (_f = object.initialAmount) !== null && _f !== void 0 ? _f : "";
223
- message.description = (_g = object.description) !== null && _g !== void 0 ? _g : "";
224
- message.features = ((_h = object.features) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
225
- message.burnRate = (_j = object.burnRate) !== null && _j !== void 0 ? _j : "";
226
- message.sendCommissionRate = (_k = object.sendCommissionRate) !== null && _k !== void 0 ? _k : "";
227
- message.uri = (_l = object.uri) !== null && _l !== void 0 ? _l : "";
228
- message.uriHash = (_m = object.uriHash) !== null && _m !== void 0 ? _m : "";
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 = minimal_1.default.Writer.create()) {
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 minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
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 != 10) {
328
+ case 1: {
329
+ if (tag !== 10) {
260
330
  break;
261
331
  }
262
332
  message.account = reader.string();
263
333
  continue;
264
- case 2:
265
- if (tag != 18) {
334
+ }
335
+ case 2: {
336
+ if (tag !== 18) {
266
337
  break;
267
338
  }
268
339
  message.denom = reader.string();
269
340
  continue;
270
- case 3:
271
- if (tag != 26) {
341
+ }
342
+ case 3: {
343
+ if (tag !== 26) {
272
344
  break;
273
345
  }
274
346
  message.previousAmount = reader.string();
275
347
  continue;
276
- case 4:
277
- if (tag != 34) {
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) == 4 || tag == 0) {
357
+ if ((tag & 7) === 4 || tag === 0) {
284
358
  break;
285
359
  }
286
- reader.skipType(tag & 7);
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 !== undefined && (obj.account = message.account);
305
- message.denom !== undefined && (obj.denom = message.denom);
306
- message.previousAmount !== undefined &&
307
- (obj.previousAmount = message.previousAmount);
308
- message.currentAmount !== undefined &&
309
- (obj.currentAmount = message.currentAmount);
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 !== null && base !== void 0 ? 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 = (_a = object.account) !== null && _a !== void 0 ? _a : "";
319
- message.denom = (_b = object.denom) !== null && _b !== void 0 ? _b : "";
320
- message.previousAmount = (_c = object.previousAmount) !== null && _c !== void 0 ? _c : "";
321
- message.currentAmount = (_d = object.currentAmount) !== null && _d !== void 0 ? _d : "";
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 = minimal_1.default.Writer.create()) {
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 minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
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 != 10) {
513
+ case 1: {
514
+ if (tag !== 10) {
353
515
  break;
354
516
  }
355
517
  message.account = reader.string();
356
518
  continue;
357
- case 2:
358
- if (tag != 18) {
519
+ }
520
+ case 2: {
521
+ if (tag !== 18) {
359
522
  break;
360
523
  }
361
524
  message.denom = reader.string();
362
525
  continue;
363
- case 3:
364
- if (tag != 26) {
526
+ }
527
+ case 3: {
528
+ if (tag !== 26) {
365
529
  break;
366
530
  }
367
531
  message.previousAmount = reader.string();
368
532
  continue;
369
- case 4:
370
- if (tag != 34) {
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) == 4 || tag == 0) {
542
+ if ((tag & 7) === 4 || tag === 0) {
377
543
  break;
378
544
  }
379
- reader.skipType(tag & 7);
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 !== undefined && (obj.account = message.account);
398
- message.denom !== undefined && (obj.denom = message.denom);
399
- message.previousAmount !== undefined &&
400
- (obj.previousAmount = message.previousAmount);
401
- message.currentAmount !== undefined &&
402
- (obj.currentAmount = message.currentAmount);
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 !== null && base !== void 0 ? 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 = (_a = object.account) !== null && _a !== void 0 ? _a : "";
412
- message.denom = (_b = object.denom) !== null && _b !== void 0 ? _b : "";
413
- message.previousAmount = (_c = object.previousAmount) !== null && _c !== void 0 ? _c : "";
414
- message.currentAmount = (_d = object.currentAmount) !== null && _d !== void 0 ? _d : "";
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
- if (minimal_1.default.util.Long !== long_1.default) {
419
- minimal_1.default.util.Long = long_1.default;
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
  }