@bze/bzejs 2.0.1 → 3.0.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 (44) hide show
  1. package/dist/bze/bundle.d.ts +129 -4
  2. package/dist/bze/burner/burned_coins.d.ts +106 -0
  3. package/dist/bze/burner/burned_coins.js +170 -1
  4. package/dist/bze/burner/genesis.d.ts +7 -1
  5. package/dist/bze/burner/genesis.js +27 -1
  6. package/dist/bze/burner/tx.d.ts +112 -0
  7. package/dist/bze/burner/tx.js +181 -1
  8. package/dist/bze/burner/tx.registry.d.ts +13 -1
  9. package/dist/bze/burner/tx.registry.js +19 -1
  10. package/dist/bze/burner/tx.rpc.func.d.ts +7 -1
  11. package/dist/bze/burner/tx.rpc.func.js +9 -1
  12. package/dist/bze/rewards/genesis.d.ts +10 -1
  13. package/dist/bze/rewards/genesis.js +40 -1
  14. package/dist/bze/rewards/params.d.ts +3 -0
  15. package/dist/bze/rewards/params.js +16 -4
  16. package/dist/bze/rewards/store.d.ts +162 -0
  17. package/dist/bze/rewards/store.js +273 -1
  18. package/dist/bze/tradebin/genesis.d.ts +5 -2
  19. package/dist/bze/tradebin/genesis.js +21 -5
  20. package/dist/bze/tradebin/params.d.ts +18 -0
  21. package/dist/bze/tradebin/params.js +76 -4
  22. package/dist/bze/tradebin/query.d.ts +1 -1
  23. package/dist/bze/tradebin/query.js +1 -1
  24. package/dist/bze/tradebin/tx.d.ts +1 -1
  25. package/dist/bze/tradebin/tx.js +1 -1
  26. package/dist/bze/tradebin/v2/params.d.ts +96 -0
  27. package/dist/bze/tradebin/v2/params.js +224 -0
  28. package/dist/bze/txfeecollector/params.d.ts +11 -4
  29. package/dist/bze/txfeecollector/params.js +41 -9
  30. package/dist/esm/bze/burner/burned_coins.js +169 -0
  31. package/dist/esm/bze/burner/genesis.js +28 -2
  32. package/dist/esm/bze/burner/tx.js +180 -0
  33. package/dist/esm/bze/burner/tx.registry.js +20 -2
  34. package/dist/esm/bze/burner/tx.rpc.func.js +9 -1
  35. package/dist/esm/bze/rewards/genesis.js +41 -2
  36. package/dist/esm/bze/rewards/params.js +16 -4
  37. package/dist/esm/bze/rewards/store.js +272 -0
  38. package/dist/esm/bze/tradebin/genesis.js +22 -6
  39. package/dist/esm/bze/tradebin/params.js +76 -4
  40. package/dist/esm/bze/tradebin/query.js +1 -1
  41. package/dist/esm/bze/tradebin/tx.js +1 -1
  42. package/dist/esm/bze/tradebin/v2/params.js +221 -0
  43. package/dist/esm/bze/txfeecollector/params.js +41 -9
  44. package/package.json +5 -2
@@ -415,6 +415,97 @@ export const PendingUnlockParticipant = {
415
415
  },
416
416
  registerTypeUrl() { }
417
417
  };
418
+ function createBaseUnlockParticipantsQueue() {
419
+ return {
420
+ unlockEpochs: []
421
+ };
422
+ }
423
+ /**
424
+ * @name UnlockParticipantsQueue
425
+ * @package bze.rewards
426
+ * @see proto type: bze.rewards.UnlockParticipantsQueue
427
+ */
428
+ export const UnlockParticipantsQueue = {
429
+ typeUrl: "/bze.rewards.UnlockParticipantsQueue",
430
+ is(o) {
431
+ return o && (o.$typeUrl === UnlockParticipantsQueue.typeUrl || Array.isArray(o.unlockEpochs) && (!o.unlockEpochs.length || typeof o.unlockEpochs[0] === "bigint"));
432
+ },
433
+ isSDK(o) {
434
+ return o && (o.$typeUrl === UnlockParticipantsQueue.typeUrl || Array.isArray(o.unlockEpochs) && (!o.unlockEpochs.length || typeof o.unlockEpochs[0] === "bigint"));
435
+ },
436
+ isAmino(o) {
437
+ return o && (o.$typeUrl === UnlockParticipantsQueue.typeUrl || Array.isArray(o.unlockEpochs) && (!o.unlockEpochs.length || typeof o.unlockEpochs[0] === "bigint"));
438
+ },
439
+ encode(message, writer = BinaryWriter.create()) {
440
+ writer.uint32(10).fork();
441
+ for (const v of message.unlockEpochs) {
442
+ writer.uint64(v);
443
+ }
444
+ writer.ldelim();
445
+ return writer;
446
+ },
447
+ decode(input, length) {
448
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
449
+ let end = length === undefined ? reader.len : reader.pos + length;
450
+ const message = createBaseUnlockParticipantsQueue();
451
+ while (reader.pos < end) {
452
+ const tag = reader.uint32();
453
+ switch (tag >>> 3) {
454
+ case 1:
455
+ if ((tag & 7) === 2) {
456
+ const end2 = reader.uint32() + reader.pos;
457
+ while (reader.pos < end2) {
458
+ message.unlockEpochs.push(reader.uint64());
459
+ }
460
+ }
461
+ else {
462
+ message.unlockEpochs.push(reader.uint64());
463
+ }
464
+ break;
465
+ default:
466
+ reader.skipType(tag & 7);
467
+ break;
468
+ }
469
+ }
470
+ return message;
471
+ },
472
+ fromPartial(object) {
473
+ const message = createBaseUnlockParticipantsQueue();
474
+ message.unlockEpochs = object.unlockEpochs?.map(e => BigInt(e.toString())) || [];
475
+ return message;
476
+ },
477
+ fromAmino(object) {
478
+ const message = createBaseUnlockParticipantsQueue();
479
+ message.unlockEpochs = object.unlockEpochs?.map(e => BigInt(e)) || [];
480
+ return message;
481
+ },
482
+ toAmino(message) {
483
+ const obj = {};
484
+ if (message.unlockEpochs) {
485
+ obj.unlockEpochs = message.unlockEpochs.map(e => e.toString());
486
+ }
487
+ else {
488
+ obj.unlockEpochs = message.unlockEpochs;
489
+ }
490
+ return obj;
491
+ },
492
+ fromAminoMsg(object) {
493
+ return UnlockParticipantsQueue.fromAmino(object.value);
494
+ },
495
+ fromProtoMsg(message) {
496
+ return UnlockParticipantsQueue.decode(message.value);
497
+ },
498
+ toProto(message) {
499
+ return UnlockParticipantsQueue.encode(message).finish();
500
+ },
501
+ toProtoMsg(message) {
502
+ return {
503
+ typeUrl: "/bze.rewards.UnlockParticipantsQueue",
504
+ value: UnlockParticipantsQueue.encode(message).finish()
505
+ };
506
+ },
507
+ registerTypeUrl() { }
508
+ };
418
509
  function createBaseTradingReward() {
419
510
  return {
420
511
  rewardId: "",
@@ -1047,3 +1138,184 @@ export const MarketIdTradingRewardId = {
1047
1138
  },
1048
1139
  registerTypeUrl() { }
1049
1140
  };
1141
+ function createBaseStakingRewardsDistributionQueue() {
1142
+ return {
1143
+ pending: false,
1144
+ cursor: ""
1145
+ };
1146
+ }
1147
+ /**
1148
+ * @name StakingRewardsDistributionQueue
1149
+ * @package bze.rewards
1150
+ * @see proto type: bze.rewards.StakingRewardsDistributionQueue
1151
+ */
1152
+ export const StakingRewardsDistributionQueue = {
1153
+ typeUrl: "/bze.rewards.StakingRewardsDistributionQueue",
1154
+ is(o) {
1155
+ return o && (o.$typeUrl === StakingRewardsDistributionQueue.typeUrl || typeof o.pending === "boolean" && typeof o.cursor === "string");
1156
+ },
1157
+ isSDK(o) {
1158
+ return o && (o.$typeUrl === StakingRewardsDistributionQueue.typeUrl || typeof o.pending === "boolean" && typeof o.cursor === "string");
1159
+ },
1160
+ isAmino(o) {
1161
+ return o && (o.$typeUrl === StakingRewardsDistributionQueue.typeUrl || typeof o.pending === "boolean" && typeof o.cursor === "string");
1162
+ },
1163
+ encode(message, writer = BinaryWriter.create()) {
1164
+ if (message.pending === true) {
1165
+ writer.uint32(8).bool(message.pending);
1166
+ }
1167
+ if (message.cursor !== "") {
1168
+ writer.uint32(18).string(message.cursor);
1169
+ }
1170
+ return writer;
1171
+ },
1172
+ decode(input, length) {
1173
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1174
+ let end = length === undefined ? reader.len : reader.pos + length;
1175
+ const message = createBaseStakingRewardsDistributionQueue();
1176
+ while (reader.pos < end) {
1177
+ const tag = reader.uint32();
1178
+ switch (tag >>> 3) {
1179
+ case 1:
1180
+ message.pending = reader.bool();
1181
+ break;
1182
+ case 2:
1183
+ message.cursor = reader.string();
1184
+ break;
1185
+ default:
1186
+ reader.skipType(tag & 7);
1187
+ break;
1188
+ }
1189
+ }
1190
+ return message;
1191
+ },
1192
+ fromPartial(object) {
1193
+ const message = createBaseStakingRewardsDistributionQueue();
1194
+ message.pending = object.pending ?? false;
1195
+ message.cursor = object.cursor ?? "";
1196
+ return message;
1197
+ },
1198
+ fromAmino(object) {
1199
+ const message = createBaseStakingRewardsDistributionQueue();
1200
+ if (object.pending !== undefined && object.pending !== null) {
1201
+ message.pending = object.pending;
1202
+ }
1203
+ if (object.cursor !== undefined && object.cursor !== null) {
1204
+ message.cursor = object.cursor;
1205
+ }
1206
+ return message;
1207
+ },
1208
+ toAmino(message) {
1209
+ const obj = {};
1210
+ obj.pending = message.pending === false ? undefined : message.pending;
1211
+ obj.cursor = message.cursor === "" ? undefined : message.cursor;
1212
+ return obj;
1213
+ },
1214
+ fromAminoMsg(object) {
1215
+ return StakingRewardsDistributionQueue.fromAmino(object.value);
1216
+ },
1217
+ fromProtoMsg(message) {
1218
+ return StakingRewardsDistributionQueue.decode(message.value);
1219
+ },
1220
+ toProto(message) {
1221
+ return StakingRewardsDistributionQueue.encode(message).finish();
1222
+ },
1223
+ toProtoMsg(message) {
1224
+ return {
1225
+ typeUrl: "/bze.rewards.StakingRewardsDistributionQueue",
1226
+ value: StakingRewardsDistributionQueue.encode(message).finish()
1227
+ };
1228
+ },
1229
+ registerTypeUrl() { }
1230
+ };
1231
+ function createBaseTradingRewardExpirationQueue() {
1232
+ return {
1233
+ removalEpochs: []
1234
+ };
1235
+ }
1236
+ /**
1237
+ * @name TradingRewardExpirationQueue
1238
+ * @package bze.rewards
1239
+ * @see proto type: bze.rewards.TradingRewardExpirationQueue
1240
+ */
1241
+ export const TradingRewardExpirationQueue = {
1242
+ typeUrl: "/bze.rewards.TradingRewardExpirationQueue",
1243
+ is(o) {
1244
+ return o && (o.$typeUrl === TradingRewardExpirationQueue.typeUrl || Array.isArray(o.removalEpochs) && (!o.removalEpochs.length || typeof o.removalEpochs[0] === "number"));
1245
+ },
1246
+ isSDK(o) {
1247
+ return o && (o.$typeUrl === TradingRewardExpirationQueue.typeUrl || Array.isArray(o.removal_epochs) && (!o.removal_epochs.length || typeof o.removal_epochs[0] === "number"));
1248
+ },
1249
+ isAmino(o) {
1250
+ return o && (o.$typeUrl === TradingRewardExpirationQueue.typeUrl || Array.isArray(o.removal_epochs) && (!o.removal_epochs.length || typeof o.removal_epochs[0] === "number"));
1251
+ },
1252
+ encode(message, writer = BinaryWriter.create()) {
1253
+ writer.uint32(10).fork();
1254
+ for (const v of message.removalEpochs) {
1255
+ writer.uint32(v);
1256
+ }
1257
+ writer.ldelim();
1258
+ return writer;
1259
+ },
1260
+ decode(input, length) {
1261
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1262
+ let end = length === undefined ? reader.len : reader.pos + length;
1263
+ const message = createBaseTradingRewardExpirationQueue();
1264
+ while (reader.pos < end) {
1265
+ const tag = reader.uint32();
1266
+ switch (tag >>> 3) {
1267
+ case 1:
1268
+ if ((tag & 7) === 2) {
1269
+ const end2 = reader.uint32() + reader.pos;
1270
+ while (reader.pos < end2) {
1271
+ message.removalEpochs.push(reader.uint32());
1272
+ }
1273
+ }
1274
+ else {
1275
+ message.removalEpochs.push(reader.uint32());
1276
+ }
1277
+ break;
1278
+ default:
1279
+ reader.skipType(tag & 7);
1280
+ break;
1281
+ }
1282
+ }
1283
+ return message;
1284
+ },
1285
+ fromPartial(object) {
1286
+ const message = createBaseTradingRewardExpirationQueue();
1287
+ message.removalEpochs = object.removalEpochs?.map(e => e) || [];
1288
+ return message;
1289
+ },
1290
+ fromAmino(object) {
1291
+ const message = createBaseTradingRewardExpirationQueue();
1292
+ message.removalEpochs = object.removal_epochs?.map(e => e) || [];
1293
+ return message;
1294
+ },
1295
+ toAmino(message) {
1296
+ const obj = {};
1297
+ if (message.removalEpochs) {
1298
+ obj.removal_epochs = message.removalEpochs.map(e => e);
1299
+ }
1300
+ else {
1301
+ obj.removal_epochs = message.removalEpochs;
1302
+ }
1303
+ return obj;
1304
+ },
1305
+ fromAminoMsg(object) {
1306
+ return TradingRewardExpirationQueue.fromAmino(object.value);
1307
+ },
1308
+ fromProtoMsg(message) {
1309
+ return TradingRewardExpirationQueue.decode(message.value);
1310
+ },
1311
+ toProto(message) {
1312
+ return TradingRewardExpirationQueue.encode(message).finish();
1313
+ },
1314
+ toProtoMsg(message) {
1315
+ return {
1316
+ typeUrl: "/bze.rewards.TradingRewardExpirationQueue",
1317
+ value: TradingRewardExpirationQueue.encode(message).finish()
1318
+ };
1319
+ },
1320
+ registerTypeUrl() { }
1321
+ };
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
- import { Params } from "./params";
3
- import { Market, QueueMessage, Order, AggregatedOrder, HistoryOrder, UserDust } from "./store";
2
+ import { Params } from "./v2/params";
3
+ import { Market, QueueMessage, Order, AggregatedOrder, HistoryOrder, UserDust, LiquidityPool } from "./store";
4
4
  import { BinaryReader, BinaryWriter } from "../../binary";
5
5
  import { GlobalDecoderRegistry } from "../../registry";
6
6
  function createBaseGenesisState() {
@@ -12,7 +12,8 @@ function createBaseGenesisState() {
12
12
  aggregatedOrderList: [],
13
13
  historyOrderList: [],
14
14
  orderCounter: BigInt(0),
15
- allUsersDust: []
15
+ allUsersDust: [],
16
+ liquidityPools: []
16
17
  };
17
18
  }
18
19
  /**
@@ -24,13 +25,13 @@ function createBaseGenesisState() {
24
25
  export const GenesisState = {
25
26
  typeUrl: "/bze.tradebin.GenesisState",
26
27
  is(o) {
27
- return o && (o.$typeUrl === GenesisState.typeUrl || Params.is(o.params) && Array.isArray(o.marketList) && (!o.marketList.length || Market.is(o.marketList[0])) && Array.isArray(o.queueMessageList) && (!o.queueMessageList.length || QueueMessage.is(o.queueMessageList[0])) && Array.isArray(o.orderList) && (!o.orderList.length || Order.is(o.orderList[0])) && Array.isArray(o.aggregatedOrderList) && (!o.aggregatedOrderList.length || AggregatedOrder.is(o.aggregatedOrderList[0])) && Array.isArray(o.historyOrderList) && (!o.historyOrderList.length || HistoryOrder.is(o.historyOrderList[0])) && typeof o.orderCounter === "bigint" && Array.isArray(o.allUsersDust) && (!o.allUsersDust.length || UserDust.is(o.allUsersDust[0])));
28
+ return o && (o.$typeUrl === GenesisState.typeUrl || Params.is(o.params) && Array.isArray(o.marketList) && (!o.marketList.length || Market.is(o.marketList[0])) && Array.isArray(o.queueMessageList) && (!o.queueMessageList.length || QueueMessage.is(o.queueMessageList[0])) && Array.isArray(o.orderList) && (!o.orderList.length || Order.is(o.orderList[0])) && Array.isArray(o.aggregatedOrderList) && (!o.aggregatedOrderList.length || AggregatedOrder.is(o.aggregatedOrderList[0])) && Array.isArray(o.historyOrderList) && (!o.historyOrderList.length || HistoryOrder.is(o.historyOrderList[0])) && typeof o.orderCounter === "bigint" && Array.isArray(o.allUsersDust) && (!o.allUsersDust.length || UserDust.is(o.allUsersDust[0])) && Array.isArray(o.liquidityPools) && (!o.liquidityPools.length || LiquidityPool.is(o.liquidityPools[0])));
28
29
  },
29
30
  isSDK(o) {
30
- return o && (o.$typeUrl === GenesisState.typeUrl || Params.isSDK(o.params) && Array.isArray(o.market_list) && (!o.market_list.length || Market.isSDK(o.market_list[0])) && Array.isArray(o.queue_message_list) && (!o.queue_message_list.length || QueueMessage.isSDK(o.queue_message_list[0])) && Array.isArray(o.order_list) && (!o.order_list.length || Order.isSDK(o.order_list[0])) && Array.isArray(o.aggregated_order_list) && (!o.aggregated_order_list.length || AggregatedOrder.isSDK(o.aggregated_order_list[0])) && Array.isArray(o.history_order_list) && (!o.history_order_list.length || HistoryOrder.isSDK(o.history_order_list[0])) && typeof o.order_counter === "bigint" && Array.isArray(o.all_users_dust) && (!o.all_users_dust.length || UserDust.isSDK(o.all_users_dust[0])));
31
+ return o && (o.$typeUrl === GenesisState.typeUrl || Params.isSDK(o.params) && Array.isArray(o.market_list) && (!o.market_list.length || Market.isSDK(o.market_list[0])) && Array.isArray(o.queue_message_list) && (!o.queue_message_list.length || QueueMessage.isSDK(o.queue_message_list[0])) && Array.isArray(o.order_list) && (!o.order_list.length || Order.isSDK(o.order_list[0])) && Array.isArray(o.aggregated_order_list) && (!o.aggregated_order_list.length || AggregatedOrder.isSDK(o.aggregated_order_list[0])) && Array.isArray(o.history_order_list) && (!o.history_order_list.length || HistoryOrder.isSDK(o.history_order_list[0])) && typeof o.order_counter === "bigint" && Array.isArray(o.all_users_dust) && (!o.all_users_dust.length || UserDust.isSDK(o.all_users_dust[0])) && Array.isArray(o.liquidity_pools) && (!o.liquidity_pools.length || LiquidityPool.isSDK(o.liquidity_pools[0])));
31
32
  },
32
33
  isAmino(o) {
33
- return o && (o.$typeUrl === GenesisState.typeUrl || Params.isAmino(o.params) && Array.isArray(o.market_list) && (!o.market_list.length || Market.isAmino(o.market_list[0])) && Array.isArray(o.queue_message_list) && (!o.queue_message_list.length || QueueMessage.isAmino(o.queue_message_list[0])) && Array.isArray(o.order_list) && (!o.order_list.length || Order.isAmino(o.order_list[0])) && Array.isArray(o.aggregated_order_list) && (!o.aggregated_order_list.length || AggregatedOrder.isAmino(o.aggregated_order_list[0])) && Array.isArray(o.history_order_list) && (!o.history_order_list.length || HistoryOrder.isAmino(o.history_order_list[0])) && typeof o.order_counter === "bigint" && Array.isArray(o.all_users_dust) && (!o.all_users_dust.length || UserDust.isAmino(o.all_users_dust[0])));
34
+ return o && (o.$typeUrl === GenesisState.typeUrl || Params.isAmino(o.params) && Array.isArray(o.market_list) && (!o.market_list.length || Market.isAmino(o.market_list[0])) && Array.isArray(o.queue_message_list) && (!o.queue_message_list.length || QueueMessage.isAmino(o.queue_message_list[0])) && Array.isArray(o.order_list) && (!o.order_list.length || Order.isAmino(o.order_list[0])) && Array.isArray(o.aggregated_order_list) && (!o.aggregated_order_list.length || AggregatedOrder.isAmino(o.aggregated_order_list[0])) && Array.isArray(o.history_order_list) && (!o.history_order_list.length || HistoryOrder.isAmino(o.history_order_list[0])) && typeof o.order_counter === "bigint" && Array.isArray(o.all_users_dust) && (!o.all_users_dust.length || UserDust.isAmino(o.all_users_dust[0])) && Array.isArray(o.liquidity_pools) && (!o.liquidity_pools.length || LiquidityPool.isAmino(o.liquidity_pools[0])));
34
35
  },
35
36
  encode(message, writer = BinaryWriter.create()) {
36
37
  if (message.params !== undefined) {
@@ -57,6 +58,9 @@ export const GenesisState = {
57
58
  for (const v of message.allUsersDust) {
58
59
  UserDust.encode(v, writer.uint32(66).fork()).ldelim();
59
60
  }
61
+ for (const v of message.liquidityPools) {
62
+ LiquidityPool.encode(v, writer.uint32(74).fork()).ldelim();
63
+ }
60
64
  return writer;
61
65
  },
62
66
  decode(input, length) {
@@ -90,6 +94,9 @@ export const GenesisState = {
90
94
  case 8:
91
95
  message.allUsersDust.push(UserDust.decode(reader, reader.uint32()));
92
96
  break;
97
+ case 9:
98
+ message.liquidityPools.push(LiquidityPool.decode(reader, reader.uint32()));
99
+ break;
93
100
  default:
94
101
  reader.skipType(tag & 7);
95
102
  break;
@@ -107,6 +114,7 @@ export const GenesisState = {
107
114
  message.historyOrderList = object.historyOrderList?.map(e => HistoryOrder.fromPartial(e)) || [];
108
115
  message.orderCounter = object.orderCounter !== undefined && object.orderCounter !== null ? BigInt(object.orderCounter.toString()) : BigInt(0);
109
116
  message.allUsersDust = object.allUsersDust?.map(e => UserDust.fromPartial(e)) || [];
117
+ message.liquidityPools = object.liquidityPools?.map(e => LiquidityPool.fromPartial(e)) || [];
110
118
  return message;
111
119
  },
112
120
  fromAmino(object) {
@@ -123,6 +131,7 @@ export const GenesisState = {
123
131
  message.orderCounter = BigInt(object.order_counter);
124
132
  }
125
133
  message.allUsersDust = object.all_users_dust?.map(e => UserDust.fromAmino(e)) || [];
134
+ message.liquidityPools = object.liquidity_pools?.map(e => LiquidityPool.fromAmino(e)) || [];
126
135
  return message;
127
136
  },
128
137
  toAmino(message) {
@@ -165,6 +174,12 @@ export const GenesisState = {
165
174
  else {
166
175
  obj.all_users_dust = message.allUsersDust;
167
176
  }
177
+ if (message.liquidityPools) {
178
+ obj.liquidity_pools = message.liquidityPools.map(e => e ? LiquidityPool.toAmino(e) : undefined);
179
+ }
180
+ else {
181
+ obj.liquidity_pools = message.liquidityPools;
182
+ }
168
183
  return obj;
169
184
  },
170
185
  fromAminoMsg(object) {
@@ -193,5 +208,6 @@ export const GenesisState = {
193
208
  AggregatedOrder.registerTypeUrl();
194
209
  HistoryOrder.registerTypeUrl();
195
210
  UserDust.registerTypeUrl();
211
+ LiquidityPool.registerTypeUrl();
196
212
  }
197
213
  };
@@ -7,7 +7,13 @@ function createBaseParams() {
7
7
  marketTakerFee: "",
8
8
  makerFeeDestination: "",
9
9
  takerFeeDestination: "",
10
- nativeDenom: ""
10
+ nativeDenom: "",
11
+ orderBookExtraGasWindow: BigInt(0),
12
+ orderBookQueueExtraGas: BigInt(0),
13
+ fillOrdersExtraGas: BigInt(0),
14
+ minNativeLiquidityForModuleSwap: "",
15
+ orderBookPerBlockMessages: BigInt(0),
16
+ orderBookQueueMessageScanExtraGas: BigInt(0)
11
17
  };
12
18
  }
13
19
  /**
@@ -20,13 +26,13 @@ export const Params = {
20
26
  typeUrl: "/bze.tradebin.Params",
21
27
  aminoType: "bze/x/tradebin/Params",
22
28
  is(o) {
23
- return o && (o.$typeUrl === Params.typeUrl || typeof o.createMarketFee === "string" && typeof o.marketMakerFee === "string" && typeof o.marketTakerFee === "string" && typeof o.makerFeeDestination === "string" && typeof o.takerFeeDestination === "string" && typeof o.nativeDenom === "string");
29
+ return o && (o.$typeUrl === Params.typeUrl || typeof o.createMarketFee === "string" && typeof o.marketMakerFee === "string" && typeof o.marketTakerFee === "string" && typeof o.makerFeeDestination === "string" && typeof o.takerFeeDestination === "string" && typeof o.nativeDenom === "string" && typeof o.orderBookExtraGasWindow === "bigint" && typeof o.orderBookQueueExtraGas === "bigint" && typeof o.fillOrdersExtraGas === "bigint" && typeof o.minNativeLiquidityForModuleSwap === "string" && typeof o.orderBookPerBlockMessages === "bigint" && typeof o.orderBookQueueMessageScanExtraGas === "bigint");
24
30
  },
25
31
  isSDK(o) {
26
- return o && (o.$typeUrl === Params.typeUrl || typeof o.createMarketFee === "string" && typeof o.marketMakerFee === "string" && typeof o.marketTakerFee === "string" && typeof o.makerFeeDestination === "string" && typeof o.takerFeeDestination === "string" && typeof o.native_denom === "string");
32
+ return o && (o.$typeUrl === Params.typeUrl || typeof o.createMarketFee === "string" && typeof o.marketMakerFee === "string" && typeof o.marketTakerFee === "string" && typeof o.makerFeeDestination === "string" && typeof o.takerFeeDestination === "string" && typeof o.native_denom === "string" && typeof o.orderBookExtraGasWindow === "bigint" && typeof o.orderBookQueueExtraGas === "bigint" && typeof o.fillOrdersExtraGas === "bigint" && typeof o.minNativeLiquidityForModuleSwap === "string" && typeof o.orderBookPerBlockMessages === "bigint" && typeof o.orderBookQueueMessageScanExtraGas === "bigint");
27
33
  },
28
34
  isAmino(o) {
29
- return o && (o.$typeUrl === Params.typeUrl || typeof o.createMarketFee === "string" && typeof o.marketMakerFee === "string" && typeof o.marketTakerFee === "string" && typeof o.makerFeeDestination === "string" && typeof o.takerFeeDestination === "string" && typeof o.native_denom === "string");
35
+ return o && (o.$typeUrl === Params.typeUrl || typeof o.createMarketFee === "string" && typeof o.marketMakerFee === "string" && typeof o.marketTakerFee === "string" && typeof o.makerFeeDestination === "string" && typeof o.takerFeeDestination === "string" && typeof o.native_denom === "string" && typeof o.orderBookExtraGasWindow === "bigint" && typeof o.orderBookQueueExtraGas === "bigint" && typeof o.fillOrdersExtraGas === "bigint" && typeof o.minNativeLiquidityForModuleSwap === "string" && typeof o.orderBookPerBlockMessages === "bigint" && typeof o.orderBookQueueMessageScanExtraGas === "bigint");
30
36
  },
31
37
  encode(message, writer = BinaryWriter.create()) {
32
38
  if (message.createMarketFee !== "") {
@@ -47,6 +53,24 @@ export const Params = {
47
53
  if (message.nativeDenom !== "") {
48
54
  writer.uint32(50).string(message.nativeDenom);
49
55
  }
56
+ if (message.orderBookExtraGasWindow !== BigInt(0)) {
57
+ writer.uint32(56).uint64(message.orderBookExtraGasWindow);
58
+ }
59
+ if (message.orderBookQueueExtraGas !== BigInt(0)) {
60
+ writer.uint32(64).uint64(message.orderBookQueueExtraGas);
61
+ }
62
+ if (message.fillOrdersExtraGas !== BigInt(0)) {
63
+ writer.uint32(72).uint64(message.fillOrdersExtraGas);
64
+ }
65
+ if (message.minNativeLiquidityForModuleSwap !== "") {
66
+ writer.uint32(82).string(message.minNativeLiquidityForModuleSwap);
67
+ }
68
+ if (message.orderBookPerBlockMessages !== BigInt(0)) {
69
+ writer.uint32(88).uint64(message.orderBookPerBlockMessages);
70
+ }
71
+ if (message.orderBookQueueMessageScanExtraGas !== BigInt(0)) {
72
+ writer.uint32(96).uint64(message.orderBookQueueMessageScanExtraGas);
73
+ }
50
74
  return writer;
51
75
  },
52
76
  decode(input, length) {
@@ -74,6 +98,24 @@ export const Params = {
74
98
  case 6:
75
99
  message.nativeDenom = reader.string();
76
100
  break;
101
+ case 7:
102
+ message.orderBookExtraGasWindow = reader.uint64();
103
+ break;
104
+ case 8:
105
+ message.orderBookQueueExtraGas = reader.uint64();
106
+ break;
107
+ case 9:
108
+ message.fillOrdersExtraGas = reader.uint64();
109
+ break;
110
+ case 10:
111
+ message.minNativeLiquidityForModuleSwap = reader.string();
112
+ break;
113
+ case 11:
114
+ message.orderBookPerBlockMessages = reader.uint64();
115
+ break;
116
+ case 12:
117
+ message.orderBookQueueMessageScanExtraGas = reader.uint64();
118
+ break;
77
119
  default:
78
120
  reader.skipType(tag & 7);
79
121
  break;
@@ -89,6 +131,12 @@ export const Params = {
89
131
  message.makerFeeDestination = object.makerFeeDestination ?? "";
90
132
  message.takerFeeDestination = object.takerFeeDestination ?? "";
91
133
  message.nativeDenom = object.nativeDenom ?? "";
134
+ message.orderBookExtraGasWindow = object.orderBookExtraGasWindow !== undefined && object.orderBookExtraGasWindow !== null ? BigInt(object.orderBookExtraGasWindow.toString()) : BigInt(0);
135
+ message.orderBookQueueExtraGas = object.orderBookQueueExtraGas !== undefined && object.orderBookQueueExtraGas !== null ? BigInt(object.orderBookQueueExtraGas.toString()) : BigInt(0);
136
+ message.fillOrdersExtraGas = object.fillOrdersExtraGas !== undefined && object.fillOrdersExtraGas !== null ? BigInt(object.fillOrdersExtraGas.toString()) : BigInt(0);
137
+ message.minNativeLiquidityForModuleSwap = object.minNativeLiquidityForModuleSwap ?? "";
138
+ message.orderBookPerBlockMessages = object.orderBookPerBlockMessages !== undefined && object.orderBookPerBlockMessages !== null ? BigInt(object.orderBookPerBlockMessages.toString()) : BigInt(0);
139
+ message.orderBookQueueMessageScanExtraGas = object.orderBookQueueMessageScanExtraGas !== undefined && object.orderBookQueueMessageScanExtraGas !== null ? BigInt(object.orderBookQueueMessageScanExtraGas.toString()) : BigInt(0);
92
140
  return message;
93
141
  },
94
142
  fromAmino(object) {
@@ -111,6 +159,24 @@ export const Params = {
111
159
  if (object.native_denom !== undefined && object.native_denom !== null) {
112
160
  message.nativeDenom = object.native_denom;
113
161
  }
162
+ if (object.orderBookExtraGasWindow !== undefined && object.orderBookExtraGasWindow !== null) {
163
+ message.orderBookExtraGasWindow = BigInt(object.orderBookExtraGasWindow);
164
+ }
165
+ if (object.orderBookQueueExtraGas !== undefined && object.orderBookQueueExtraGas !== null) {
166
+ message.orderBookQueueExtraGas = BigInt(object.orderBookQueueExtraGas);
167
+ }
168
+ if (object.fillOrdersExtraGas !== undefined && object.fillOrdersExtraGas !== null) {
169
+ message.fillOrdersExtraGas = BigInt(object.fillOrdersExtraGas);
170
+ }
171
+ if (object.minNativeLiquidityForModuleSwap !== undefined && object.minNativeLiquidityForModuleSwap !== null) {
172
+ message.minNativeLiquidityForModuleSwap = object.minNativeLiquidityForModuleSwap;
173
+ }
174
+ if (object.orderBookPerBlockMessages !== undefined && object.orderBookPerBlockMessages !== null) {
175
+ message.orderBookPerBlockMessages = BigInt(object.orderBookPerBlockMessages);
176
+ }
177
+ if (object.orderBookQueueMessageScanExtraGas !== undefined && object.orderBookQueueMessageScanExtraGas !== null) {
178
+ message.orderBookQueueMessageScanExtraGas = BigInt(object.orderBookQueueMessageScanExtraGas);
179
+ }
114
180
  return message;
115
181
  },
116
182
  toAmino(message) {
@@ -121,6 +187,12 @@ export const Params = {
121
187
  obj.makerFeeDestination = message.makerFeeDestination === "" ? undefined : message.makerFeeDestination;
122
188
  obj.takerFeeDestination = message.takerFeeDestination === "" ? undefined : message.takerFeeDestination;
123
189
  obj.native_denom = message.nativeDenom === "" ? undefined : message.nativeDenom;
190
+ obj.orderBookExtraGasWindow = message.orderBookExtraGasWindow !== BigInt(0) ? message.orderBookExtraGasWindow?.toString() : undefined;
191
+ obj.orderBookQueueExtraGas = message.orderBookQueueExtraGas !== BigInt(0) ? message.orderBookQueueExtraGas?.toString() : undefined;
192
+ obj.fillOrdersExtraGas = message.fillOrdersExtraGas !== BigInt(0) ? message.fillOrdersExtraGas?.toString() : undefined;
193
+ obj.minNativeLiquidityForModuleSwap = message.minNativeLiquidityForModuleSwap === "" ? undefined : message.minNativeLiquidityForModuleSwap;
194
+ obj.orderBookPerBlockMessages = message.orderBookPerBlockMessages !== BigInt(0) ? message.orderBookPerBlockMessages?.toString() : undefined;
195
+ obj.orderBookQueueMessageScanExtraGas = message.orderBookQueueMessageScanExtraGas !== BigInt(0) ? message.orderBookQueueMessageScanExtraGas?.toString() : undefined;
124
196
  return obj;
125
197
  },
126
198
  fromAminoMsg(object) {
@@ -1,6 +1,6 @@
1
1
  //@ts-nocheck
2
2
  import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination";
3
- import { Params } from "./params";
3
+ import { Params } from "./v2/params";
4
4
  import { Market, OrderReference, AggregatedOrder, HistoryOrder, Order, UserDust, LiquidityPool } from "./store";
5
5
  import { BinaryReader, BinaryWriter } from "../../binary";
6
6
  import { GlobalDecoderRegistry } from "../../registry";
@@ -1,5 +1,5 @@
1
1
  //@ts-nocheck
2
- import { Params } from "./params";
2
+ import { Params } from "./v2/params";
3
3
  import { Coin } from "../../cosmos/base/v1beta1/coin";
4
4
  import { BinaryReader, BinaryWriter } from "../../binary";
5
5
  import { GlobalDecoderRegistry } from "../../registry";