@bze/bzejs 2.0.2 → 3.0.1
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/bze/bundle.d.ts +131 -4
- package/dist/bze/burner/burned_coins.d.ts +106 -0
- package/dist/bze/burner/burned_coins.js +170 -1
- package/dist/bze/burner/genesis.d.ts +7 -1
- package/dist/bze/burner/genesis.js +27 -1
- package/dist/bze/burner/tx.d.ts +114 -0
- package/dist/bze/burner/tx.js +188 -1
- package/dist/bze/burner/tx.registry.d.ts +13 -1
- package/dist/bze/burner/tx.registry.js +19 -1
- package/dist/bze/burner/tx.rpc.func.d.ts +7 -1
- package/dist/bze/burner/tx.rpc.func.js +9 -1
- package/dist/bze/rewards/genesis.d.ts +10 -1
- package/dist/bze/rewards/genesis.js +40 -1
- package/dist/bze/rewards/params.d.ts +3 -0
- package/dist/bze/rewards/params.js +16 -4
- package/dist/bze/rewards/store.d.ts +162 -0
- package/dist/bze/rewards/store.js +273 -1
- package/dist/bze/tradebin/genesis.d.ts +5 -2
- package/dist/bze/tradebin/genesis.js +21 -5
- package/dist/bze/tradebin/params.d.ts +18 -0
- package/dist/bze/tradebin/params.js +76 -4
- package/dist/bze/tradebin/query.d.ts +1 -1
- package/dist/bze/tradebin/query.js +1 -1
- package/dist/bze/tradebin/tx.d.ts +1 -1
- package/dist/bze/tradebin/tx.js +1 -1
- package/dist/bze/tradebin/v2/params.d.ts +96 -0
- package/dist/bze/tradebin/v2/params.js +224 -0
- package/dist/bze/txfeecollector/params.d.ts +11 -4
- package/dist/bze/txfeecollector/params.js +41 -9
- package/dist/esm/bze/burner/burned_coins.js +169 -0
- package/dist/esm/bze/burner/genesis.js +28 -2
- package/dist/esm/bze/burner/tx.js +187 -0
- package/dist/esm/bze/burner/tx.registry.js +20 -2
- package/dist/esm/bze/burner/tx.rpc.func.js +9 -1
- package/dist/esm/bze/rewards/genesis.js +41 -2
- package/dist/esm/bze/rewards/params.js +16 -4
- package/dist/esm/bze/rewards/store.js +272 -0
- package/dist/esm/bze/tradebin/genesis.js +22 -6
- package/dist/esm/bze/tradebin/params.js +76 -4
- package/dist/esm/bze/tradebin/query.js +1 -1
- package/dist/esm/bze/tradebin/tx.js +1 -1
- package/dist/esm/bze/tradebin/v2/params.js +221 -0
- package/dist/esm/bze/txfeecollector/params.js +41 -9
- package/package.json +11 -6
|
@@ -10,7 +10,13 @@ function createBaseParams() {
|
|
|
10
10
|
marketTakerFee: "",
|
|
11
11
|
makerFeeDestination: "",
|
|
12
12
|
takerFeeDestination: "",
|
|
13
|
-
nativeDenom: ""
|
|
13
|
+
nativeDenom: "",
|
|
14
|
+
orderBookExtraGasWindow: BigInt(0),
|
|
15
|
+
orderBookQueueExtraGas: BigInt(0),
|
|
16
|
+
fillOrdersExtraGas: BigInt(0),
|
|
17
|
+
minNativeLiquidityForModuleSwap: "",
|
|
18
|
+
orderBookPerBlockMessages: BigInt(0),
|
|
19
|
+
orderBookQueueMessageScanExtraGas: BigInt(0)
|
|
14
20
|
};
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
@@ -23,13 +29,13 @@ exports.Params = {
|
|
|
23
29
|
typeUrl: "/bze.tradebin.Params",
|
|
24
30
|
aminoType: "bze/x/tradebin/Params",
|
|
25
31
|
is(o) {
|
|
26
|
-
return o && (o.$typeUrl === exports.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");
|
|
32
|
+
return o && (o.$typeUrl === exports.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");
|
|
27
33
|
},
|
|
28
34
|
isSDK(o) {
|
|
29
|
-
return o && (o.$typeUrl === exports.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 === exports.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
|
isAmino(o) {
|
|
32
|
-
return o && (o.$typeUrl === exports.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");
|
|
38
|
+
return o && (o.$typeUrl === exports.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");
|
|
33
39
|
},
|
|
34
40
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
35
41
|
if (message.createMarketFee !== "") {
|
|
@@ -50,6 +56,24 @@ exports.Params = {
|
|
|
50
56
|
if (message.nativeDenom !== "") {
|
|
51
57
|
writer.uint32(50).string(message.nativeDenom);
|
|
52
58
|
}
|
|
59
|
+
if (message.orderBookExtraGasWindow !== BigInt(0)) {
|
|
60
|
+
writer.uint32(56).uint64(message.orderBookExtraGasWindow);
|
|
61
|
+
}
|
|
62
|
+
if (message.orderBookQueueExtraGas !== BigInt(0)) {
|
|
63
|
+
writer.uint32(64).uint64(message.orderBookQueueExtraGas);
|
|
64
|
+
}
|
|
65
|
+
if (message.fillOrdersExtraGas !== BigInt(0)) {
|
|
66
|
+
writer.uint32(72).uint64(message.fillOrdersExtraGas);
|
|
67
|
+
}
|
|
68
|
+
if (message.minNativeLiquidityForModuleSwap !== "") {
|
|
69
|
+
writer.uint32(82).string(message.minNativeLiquidityForModuleSwap);
|
|
70
|
+
}
|
|
71
|
+
if (message.orderBookPerBlockMessages !== BigInt(0)) {
|
|
72
|
+
writer.uint32(88).uint64(message.orderBookPerBlockMessages);
|
|
73
|
+
}
|
|
74
|
+
if (message.orderBookQueueMessageScanExtraGas !== BigInt(0)) {
|
|
75
|
+
writer.uint32(96).uint64(message.orderBookQueueMessageScanExtraGas);
|
|
76
|
+
}
|
|
53
77
|
return writer;
|
|
54
78
|
},
|
|
55
79
|
decode(input, length) {
|
|
@@ -77,6 +101,24 @@ exports.Params = {
|
|
|
77
101
|
case 6:
|
|
78
102
|
message.nativeDenom = reader.string();
|
|
79
103
|
break;
|
|
104
|
+
case 7:
|
|
105
|
+
message.orderBookExtraGasWindow = reader.uint64();
|
|
106
|
+
break;
|
|
107
|
+
case 8:
|
|
108
|
+
message.orderBookQueueExtraGas = reader.uint64();
|
|
109
|
+
break;
|
|
110
|
+
case 9:
|
|
111
|
+
message.fillOrdersExtraGas = reader.uint64();
|
|
112
|
+
break;
|
|
113
|
+
case 10:
|
|
114
|
+
message.minNativeLiquidityForModuleSwap = reader.string();
|
|
115
|
+
break;
|
|
116
|
+
case 11:
|
|
117
|
+
message.orderBookPerBlockMessages = reader.uint64();
|
|
118
|
+
break;
|
|
119
|
+
case 12:
|
|
120
|
+
message.orderBookQueueMessageScanExtraGas = reader.uint64();
|
|
121
|
+
break;
|
|
80
122
|
default:
|
|
81
123
|
reader.skipType(tag & 7);
|
|
82
124
|
break;
|
|
@@ -92,6 +134,12 @@ exports.Params = {
|
|
|
92
134
|
message.makerFeeDestination = object.makerFeeDestination ?? "";
|
|
93
135
|
message.takerFeeDestination = object.takerFeeDestination ?? "";
|
|
94
136
|
message.nativeDenom = object.nativeDenom ?? "";
|
|
137
|
+
message.orderBookExtraGasWindow = object.orderBookExtraGasWindow !== undefined && object.orderBookExtraGasWindow !== null ? BigInt(object.orderBookExtraGasWindow.toString()) : BigInt(0);
|
|
138
|
+
message.orderBookQueueExtraGas = object.orderBookQueueExtraGas !== undefined && object.orderBookQueueExtraGas !== null ? BigInt(object.orderBookQueueExtraGas.toString()) : BigInt(0);
|
|
139
|
+
message.fillOrdersExtraGas = object.fillOrdersExtraGas !== undefined && object.fillOrdersExtraGas !== null ? BigInt(object.fillOrdersExtraGas.toString()) : BigInt(0);
|
|
140
|
+
message.minNativeLiquidityForModuleSwap = object.minNativeLiquidityForModuleSwap ?? "";
|
|
141
|
+
message.orderBookPerBlockMessages = object.orderBookPerBlockMessages !== undefined && object.orderBookPerBlockMessages !== null ? BigInt(object.orderBookPerBlockMessages.toString()) : BigInt(0);
|
|
142
|
+
message.orderBookQueueMessageScanExtraGas = object.orderBookQueueMessageScanExtraGas !== undefined && object.orderBookQueueMessageScanExtraGas !== null ? BigInt(object.orderBookQueueMessageScanExtraGas.toString()) : BigInt(0);
|
|
95
143
|
return message;
|
|
96
144
|
},
|
|
97
145
|
fromAmino(object) {
|
|
@@ -114,6 +162,24 @@ exports.Params = {
|
|
|
114
162
|
if (object.native_denom !== undefined && object.native_denom !== null) {
|
|
115
163
|
message.nativeDenom = object.native_denom;
|
|
116
164
|
}
|
|
165
|
+
if (object.orderBookExtraGasWindow !== undefined && object.orderBookExtraGasWindow !== null) {
|
|
166
|
+
message.orderBookExtraGasWindow = BigInt(object.orderBookExtraGasWindow);
|
|
167
|
+
}
|
|
168
|
+
if (object.orderBookQueueExtraGas !== undefined && object.orderBookQueueExtraGas !== null) {
|
|
169
|
+
message.orderBookQueueExtraGas = BigInt(object.orderBookQueueExtraGas);
|
|
170
|
+
}
|
|
171
|
+
if (object.fillOrdersExtraGas !== undefined && object.fillOrdersExtraGas !== null) {
|
|
172
|
+
message.fillOrdersExtraGas = BigInt(object.fillOrdersExtraGas);
|
|
173
|
+
}
|
|
174
|
+
if (object.minNativeLiquidityForModuleSwap !== undefined && object.minNativeLiquidityForModuleSwap !== null) {
|
|
175
|
+
message.minNativeLiquidityForModuleSwap = object.minNativeLiquidityForModuleSwap;
|
|
176
|
+
}
|
|
177
|
+
if (object.orderBookPerBlockMessages !== undefined && object.orderBookPerBlockMessages !== null) {
|
|
178
|
+
message.orderBookPerBlockMessages = BigInt(object.orderBookPerBlockMessages);
|
|
179
|
+
}
|
|
180
|
+
if (object.orderBookQueueMessageScanExtraGas !== undefined && object.orderBookQueueMessageScanExtraGas !== null) {
|
|
181
|
+
message.orderBookQueueMessageScanExtraGas = BigInt(object.orderBookQueueMessageScanExtraGas);
|
|
182
|
+
}
|
|
117
183
|
return message;
|
|
118
184
|
},
|
|
119
185
|
toAmino(message) {
|
|
@@ -124,6 +190,12 @@ exports.Params = {
|
|
|
124
190
|
obj.makerFeeDestination = message.makerFeeDestination === "" ? undefined : message.makerFeeDestination;
|
|
125
191
|
obj.takerFeeDestination = message.takerFeeDestination === "" ? undefined : message.takerFeeDestination;
|
|
126
192
|
obj.native_denom = message.nativeDenom === "" ? undefined : message.nativeDenom;
|
|
193
|
+
obj.orderBookExtraGasWindow = message.orderBookExtraGasWindow !== BigInt(0) ? message.orderBookExtraGasWindow?.toString() : undefined;
|
|
194
|
+
obj.orderBookQueueExtraGas = message.orderBookQueueExtraGas !== BigInt(0) ? message.orderBookQueueExtraGas?.toString() : undefined;
|
|
195
|
+
obj.fillOrdersExtraGas = message.fillOrdersExtraGas !== BigInt(0) ? message.fillOrdersExtraGas?.toString() : undefined;
|
|
196
|
+
obj.minNativeLiquidityForModuleSwap = message.minNativeLiquidityForModuleSwap === "" ? undefined : message.minNativeLiquidityForModuleSwap;
|
|
197
|
+
obj.orderBookPerBlockMessages = message.orderBookPerBlockMessages !== BigInt(0) ? message.orderBookPerBlockMessages?.toString() : undefined;
|
|
198
|
+
obj.orderBookQueueMessageScanExtraGas = message.orderBookQueueMessageScanExtraGas !== BigInt(0) ? message.orderBookQueueMessageScanExtraGas?.toString() : undefined;
|
|
127
199
|
return obj;
|
|
128
200
|
},
|
|
129
201
|
fromAminoMsg(object) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
-
import { Params, ParamsAmino, ParamsSDKType } from "./params";
|
|
2
|
+
import { Params, ParamsAmino, ParamsSDKType } from "./v2/params";
|
|
3
3
|
import { Market, MarketAmino, MarketSDKType, OrderReference, OrderReferenceAmino, OrderReferenceSDKType, AggregatedOrder, AggregatedOrderAmino, AggregatedOrderSDKType, HistoryOrder, HistoryOrderAmino, HistoryOrderSDKType, Order, OrderAmino, OrderSDKType, UserDust, UserDustAmino, UserDustSDKType, LiquidityPool, LiquidityPoolAmino, LiquidityPoolSDKType } from "./store";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
5
5
|
/**
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.QueryLiquidityPoolResponse = exports.QueryLiquidityPoolRequest = exports.QueryAllLiquidityPoolsResponse = exports.QueryAllLiquidityPoolsRequest = exports.QueryAllUserDustResponse = exports.QueryAllUserDustRequest = exports.QueryMarketOrderResponse = exports.QueryMarketOrderRequest = exports.QueryMarketHistoryResponse = exports.QueryMarketHistoryRequest = exports.QueryMarketAggregatedOrdersResponse = exports.QueryMarketAggregatedOrdersRequest = exports.QueryUserMarketOrdersResponse = exports.QueryUserMarketOrdersRequest = exports.QueryAssetMarketsResponse = exports.QueryAssetMarketsRequest = exports.QueryAllMarketsResponse = exports.QueryAllMarketsRequest = exports.QueryMarketResponse = exports.QueryMarketRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const pagination_1 = require("../../cosmos/base/query/v1beta1/pagination");
|
|
6
|
-
const params_1 = require("./params");
|
|
6
|
+
const params_1 = require("./v2/params");
|
|
7
7
|
const store_1 = require("./store");
|
|
8
8
|
const binary_1 = require("../../binary");
|
|
9
9
|
const registry_1 = require("../../registry");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Params, ParamsAmino, ParamsSDKType } from "./params";
|
|
1
|
+
import { Params, ParamsAmino, ParamsSDKType } from "./v2/params";
|
|
2
2
|
import { Coin, CoinAmino, CoinSDKType } from "../../cosmos/base/v1beta1/coin";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
4
4
|
/**
|
package/dist/bze/tradebin/tx.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MsgMultiSwapResponse = exports.MsgMultiSwap = exports.MsgRemoveLiquidityResponse = exports.MsgRemoveLiquidity = exports.MsgAddLiquidityResponse = exports.MsgAddLiquidity = exports.MsgCreateLiquidityPoolResponse = exports.MsgCreateLiquidityPool = exports.MsgFillOrdersResponse = exports.FillOrderItem = exports.MsgFillOrders = exports.MsgCancelOrderResponse = exports.MsgCancelOrder = exports.MsgCreateOrderResponse = exports.MsgCreateOrder = exports.MsgCreateMarketResponse = exports.MsgCreateMarket = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const params_1 = require("./params");
|
|
5
|
+
const params_1 = require("./v2/params");
|
|
6
6
|
const coin_1 = require("../../cosmos/base/v1beta1/coin");
|
|
7
7
|
const binary_1 = require("../../binary");
|
|
8
8
|
const registry_1 = require("../../registry");
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
/**
|
|
4
|
+
* Params defines the parameters for the module with proper types
|
|
5
|
+
* for fee fields (migrated from string to cosmos.base.v1beta1.Coin).
|
|
6
|
+
* @name Params
|
|
7
|
+
* @package bze.tradebin.v2
|
|
8
|
+
* @see proto type: bze.tradebin.v2.Params
|
|
9
|
+
*/
|
|
10
|
+
export interface Params {
|
|
11
|
+
createMarketFee: Coin;
|
|
12
|
+
marketMakerFee: Coin;
|
|
13
|
+
marketTakerFee: Coin;
|
|
14
|
+
makerFeeDestination: string;
|
|
15
|
+
takerFeeDestination: string;
|
|
16
|
+
nativeDenom: string;
|
|
17
|
+
orderBookExtraGasWindow: bigint;
|
|
18
|
+
orderBookQueueExtraGas: bigint;
|
|
19
|
+
fillOrdersExtraGas: bigint;
|
|
20
|
+
minNativeLiquidityForModuleSwap: string;
|
|
21
|
+
orderBookPerBlockMessages: bigint;
|
|
22
|
+
orderBookQueueMessageScanExtraGas: bigint;
|
|
23
|
+
}
|
|
24
|
+
export interface ParamsProtoMsg {
|
|
25
|
+
typeUrl: "/bze.tradebin.v2.Params";
|
|
26
|
+
value: Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Params defines the parameters for the module with proper types
|
|
30
|
+
* for fee fields (migrated from string to cosmos.base.v1beta1.Coin).
|
|
31
|
+
* @name ParamsAmino
|
|
32
|
+
* @package bze.tradebin.v2
|
|
33
|
+
* @see proto type: bze.tradebin.v2.Params
|
|
34
|
+
*/
|
|
35
|
+
export interface ParamsAmino {
|
|
36
|
+
createMarketFee?: CoinAmino;
|
|
37
|
+
marketMakerFee?: CoinAmino;
|
|
38
|
+
marketTakerFee?: CoinAmino;
|
|
39
|
+
makerFeeDestination?: string;
|
|
40
|
+
takerFeeDestination?: string;
|
|
41
|
+
native_denom?: string;
|
|
42
|
+
orderBookExtraGasWindow?: string;
|
|
43
|
+
orderBookQueueExtraGas?: string;
|
|
44
|
+
fillOrdersExtraGas?: string;
|
|
45
|
+
minNativeLiquidityForModuleSwap?: string;
|
|
46
|
+
orderBookPerBlockMessages?: string;
|
|
47
|
+
orderBookQueueMessageScanExtraGas?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface ParamsAminoMsg {
|
|
50
|
+
type: "/bze.tradebin.v2.Params";
|
|
51
|
+
value: ParamsAmino;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Params defines the parameters for the module with proper types
|
|
55
|
+
* for fee fields (migrated from string to cosmos.base.v1beta1.Coin).
|
|
56
|
+
* @name ParamsSDKType
|
|
57
|
+
* @package bze.tradebin.v2
|
|
58
|
+
* @see proto type: bze.tradebin.v2.Params
|
|
59
|
+
*/
|
|
60
|
+
export interface ParamsSDKType {
|
|
61
|
+
createMarketFee: CoinSDKType;
|
|
62
|
+
marketMakerFee: CoinSDKType;
|
|
63
|
+
marketTakerFee: CoinSDKType;
|
|
64
|
+
makerFeeDestination: string;
|
|
65
|
+
takerFeeDestination: string;
|
|
66
|
+
native_denom: string;
|
|
67
|
+
orderBookExtraGasWindow: bigint;
|
|
68
|
+
orderBookQueueExtraGas: bigint;
|
|
69
|
+
fillOrdersExtraGas: bigint;
|
|
70
|
+
minNativeLiquidityForModuleSwap: string;
|
|
71
|
+
orderBookPerBlockMessages: bigint;
|
|
72
|
+
orderBookQueueMessageScanExtraGas: bigint;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Params defines the parameters for the module with proper types
|
|
76
|
+
* for fee fields (migrated from string to cosmos.base.v1beta1.Coin).
|
|
77
|
+
* @name Params
|
|
78
|
+
* @package bze.tradebin.v2
|
|
79
|
+
* @see proto type: bze.tradebin.v2.Params
|
|
80
|
+
*/
|
|
81
|
+
export declare const Params: {
|
|
82
|
+
typeUrl: string;
|
|
83
|
+
is(o: any): o is Params;
|
|
84
|
+
isSDK(o: any): o is ParamsSDKType;
|
|
85
|
+
isAmino(o: any): o is ParamsAmino;
|
|
86
|
+
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
|
|
87
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params;
|
|
88
|
+
fromPartial(object: Partial<Params>): Params;
|
|
89
|
+
fromAmino(object: ParamsAmino): Params;
|
|
90
|
+
toAmino(message: Params): ParamsAmino;
|
|
91
|
+
fromAminoMsg(object: ParamsAminoMsg): Params;
|
|
92
|
+
fromProtoMsg(message: ParamsProtoMsg): Params;
|
|
93
|
+
toProto(message: Params): Uint8Array;
|
|
94
|
+
toProtoMsg(message: Params): ParamsProtoMsg;
|
|
95
|
+
registerTypeUrl(): void;
|
|
96
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Params = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
6
|
+
const binary_1 = require("../../../binary");
|
|
7
|
+
const registry_1 = require("../../../registry");
|
|
8
|
+
function createBaseParams() {
|
|
9
|
+
return {
|
|
10
|
+
createMarketFee: coin_1.Coin.fromPartial({}),
|
|
11
|
+
marketMakerFee: coin_1.Coin.fromPartial({}),
|
|
12
|
+
marketTakerFee: coin_1.Coin.fromPartial({}),
|
|
13
|
+
makerFeeDestination: "",
|
|
14
|
+
takerFeeDestination: "",
|
|
15
|
+
nativeDenom: "",
|
|
16
|
+
orderBookExtraGasWindow: BigInt(0),
|
|
17
|
+
orderBookQueueExtraGas: BigInt(0),
|
|
18
|
+
fillOrdersExtraGas: BigInt(0),
|
|
19
|
+
minNativeLiquidityForModuleSwap: "",
|
|
20
|
+
orderBookPerBlockMessages: BigInt(0),
|
|
21
|
+
orderBookQueueMessageScanExtraGas: BigInt(0)
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Params defines the parameters for the module with proper types
|
|
26
|
+
* for fee fields (migrated from string to cosmos.base.v1beta1.Coin).
|
|
27
|
+
* @name Params
|
|
28
|
+
* @package bze.tradebin.v2
|
|
29
|
+
* @see proto type: bze.tradebin.v2.Params
|
|
30
|
+
*/
|
|
31
|
+
exports.Params = {
|
|
32
|
+
typeUrl: "/bze.tradebin.v2.Params",
|
|
33
|
+
is(o) {
|
|
34
|
+
return o && (o.$typeUrl === exports.Params.typeUrl || coin_1.Coin.is(o.createMarketFee) && coin_1.Coin.is(o.marketMakerFee) && coin_1.Coin.is(o.marketTakerFee) && 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");
|
|
35
|
+
},
|
|
36
|
+
isSDK(o) {
|
|
37
|
+
return o && (o.$typeUrl === exports.Params.typeUrl || coin_1.Coin.isSDK(o.createMarketFee) && coin_1.Coin.isSDK(o.marketMakerFee) && coin_1.Coin.isSDK(o.marketTakerFee) && 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");
|
|
38
|
+
},
|
|
39
|
+
isAmino(o) {
|
|
40
|
+
return o && (o.$typeUrl === exports.Params.typeUrl || coin_1.Coin.isAmino(o.createMarketFee) && coin_1.Coin.isAmino(o.marketMakerFee) && coin_1.Coin.isAmino(o.marketTakerFee) && 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");
|
|
41
|
+
},
|
|
42
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
43
|
+
if (message.createMarketFee !== undefined) {
|
|
44
|
+
coin_1.Coin.encode(message.createMarketFee, writer.uint32(10).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
if (message.marketMakerFee !== undefined) {
|
|
47
|
+
coin_1.Coin.encode(message.marketMakerFee, writer.uint32(18).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
if (message.marketTakerFee !== undefined) {
|
|
50
|
+
coin_1.Coin.encode(message.marketTakerFee, writer.uint32(26).fork()).ldelim();
|
|
51
|
+
}
|
|
52
|
+
if (message.makerFeeDestination !== "") {
|
|
53
|
+
writer.uint32(34).string(message.makerFeeDestination);
|
|
54
|
+
}
|
|
55
|
+
if (message.takerFeeDestination !== "") {
|
|
56
|
+
writer.uint32(42).string(message.takerFeeDestination);
|
|
57
|
+
}
|
|
58
|
+
if (message.nativeDenom !== "") {
|
|
59
|
+
writer.uint32(50).string(message.nativeDenom);
|
|
60
|
+
}
|
|
61
|
+
if (message.orderBookExtraGasWindow !== BigInt(0)) {
|
|
62
|
+
writer.uint32(56).uint64(message.orderBookExtraGasWindow);
|
|
63
|
+
}
|
|
64
|
+
if (message.orderBookQueueExtraGas !== BigInt(0)) {
|
|
65
|
+
writer.uint32(64).uint64(message.orderBookQueueExtraGas);
|
|
66
|
+
}
|
|
67
|
+
if (message.fillOrdersExtraGas !== BigInt(0)) {
|
|
68
|
+
writer.uint32(72).uint64(message.fillOrdersExtraGas);
|
|
69
|
+
}
|
|
70
|
+
if (message.minNativeLiquidityForModuleSwap !== "") {
|
|
71
|
+
writer.uint32(82).string(message.minNativeLiquidityForModuleSwap);
|
|
72
|
+
}
|
|
73
|
+
if (message.orderBookPerBlockMessages !== BigInt(0)) {
|
|
74
|
+
writer.uint32(88).uint64(message.orderBookPerBlockMessages);
|
|
75
|
+
}
|
|
76
|
+
if (message.orderBookQueueMessageScanExtraGas !== BigInt(0)) {
|
|
77
|
+
writer.uint32(96).uint64(message.orderBookQueueMessageScanExtraGas);
|
|
78
|
+
}
|
|
79
|
+
return writer;
|
|
80
|
+
},
|
|
81
|
+
decode(input, length) {
|
|
82
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
83
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
84
|
+
const message = createBaseParams();
|
|
85
|
+
while (reader.pos < end) {
|
|
86
|
+
const tag = reader.uint32();
|
|
87
|
+
switch (tag >>> 3) {
|
|
88
|
+
case 1:
|
|
89
|
+
message.createMarketFee = coin_1.Coin.decode(reader, reader.uint32());
|
|
90
|
+
break;
|
|
91
|
+
case 2:
|
|
92
|
+
message.marketMakerFee = coin_1.Coin.decode(reader, reader.uint32());
|
|
93
|
+
break;
|
|
94
|
+
case 3:
|
|
95
|
+
message.marketTakerFee = coin_1.Coin.decode(reader, reader.uint32());
|
|
96
|
+
break;
|
|
97
|
+
case 4:
|
|
98
|
+
message.makerFeeDestination = reader.string();
|
|
99
|
+
break;
|
|
100
|
+
case 5:
|
|
101
|
+
message.takerFeeDestination = reader.string();
|
|
102
|
+
break;
|
|
103
|
+
case 6:
|
|
104
|
+
message.nativeDenom = reader.string();
|
|
105
|
+
break;
|
|
106
|
+
case 7:
|
|
107
|
+
message.orderBookExtraGasWindow = reader.uint64();
|
|
108
|
+
break;
|
|
109
|
+
case 8:
|
|
110
|
+
message.orderBookQueueExtraGas = reader.uint64();
|
|
111
|
+
break;
|
|
112
|
+
case 9:
|
|
113
|
+
message.fillOrdersExtraGas = reader.uint64();
|
|
114
|
+
break;
|
|
115
|
+
case 10:
|
|
116
|
+
message.minNativeLiquidityForModuleSwap = reader.string();
|
|
117
|
+
break;
|
|
118
|
+
case 11:
|
|
119
|
+
message.orderBookPerBlockMessages = reader.uint64();
|
|
120
|
+
break;
|
|
121
|
+
case 12:
|
|
122
|
+
message.orderBookQueueMessageScanExtraGas = reader.uint64();
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
reader.skipType(tag & 7);
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
fromPartial(object) {
|
|
132
|
+
const message = createBaseParams();
|
|
133
|
+
message.createMarketFee = object.createMarketFee !== undefined && object.createMarketFee !== null ? coin_1.Coin.fromPartial(object.createMarketFee) : undefined;
|
|
134
|
+
message.marketMakerFee = object.marketMakerFee !== undefined && object.marketMakerFee !== null ? coin_1.Coin.fromPartial(object.marketMakerFee) : undefined;
|
|
135
|
+
message.marketTakerFee = object.marketTakerFee !== undefined && object.marketTakerFee !== null ? coin_1.Coin.fromPartial(object.marketTakerFee) : undefined;
|
|
136
|
+
message.makerFeeDestination = object.makerFeeDestination ?? "";
|
|
137
|
+
message.takerFeeDestination = object.takerFeeDestination ?? "";
|
|
138
|
+
message.nativeDenom = object.nativeDenom ?? "";
|
|
139
|
+
message.orderBookExtraGasWindow = object.orderBookExtraGasWindow !== undefined && object.orderBookExtraGasWindow !== null ? BigInt(object.orderBookExtraGasWindow.toString()) : BigInt(0);
|
|
140
|
+
message.orderBookQueueExtraGas = object.orderBookQueueExtraGas !== undefined && object.orderBookQueueExtraGas !== null ? BigInt(object.orderBookQueueExtraGas.toString()) : BigInt(0);
|
|
141
|
+
message.fillOrdersExtraGas = object.fillOrdersExtraGas !== undefined && object.fillOrdersExtraGas !== null ? BigInt(object.fillOrdersExtraGas.toString()) : BigInt(0);
|
|
142
|
+
message.minNativeLiquidityForModuleSwap = object.minNativeLiquidityForModuleSwap ?? "";
|
|
143
|
+
message.orderBookPerBlockMessages = object.orderBookPerBlockMessages !== undefined && object.orderBookPerBlockMessages !== null ? BigInt(object.orderBookPerBlockMessages.toString()) : BigInt(0);
|
|
144
|
+
message.orderBookQueueMessageScanExtraGas = object.orderBookQueueMessageScanExtraGas !== undefined && object.orderBookQueueMessageScanExtraGas !== null ? BigInt(object.orderBookQueueMessageScanExtraGas.toString()) : BigInt(0);
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
fromAmino(object) {
|
|
148
|
+
const message = createBaseParams();
|
|
149
|
+
if (object.createMarketFee !== undefined && object.createMarketFee !== null) {
|
|
150
|
+
message.createMarketFee = coin_1.Coin.fromAmino(object.createMarketFee);
|
|
151
|
+
}
|
|
152
|
+
if (object.marketMakerFee !== undefined && object.marketMakerFee !== null) {
|
|
153
|
+
message.marketMakerFee = coin_1.Coin.fromAmino(object.marketMakerFee);
|
|
154
|
+
}
|
|
155
|
+
if (object.marketTakerFee !== undefined && object.marketTakerFee !== null) {
|
|
156
|
+
message.marketTakerFee = coin_1.Coin.fromAmino(object.marketTakerFee);
|
|
157
|
+
}
|
|
158
|
+
if (object.makerFeeDestination !== undefined && object.makerFeeDestination !== null) {
|
|
159
|
+
message.makerFeeDestination = object.makerFeeDestination;
|
|
160
|
+
}
|
|
161
|
+
if (object.takerFeeDestination !== undefined && object.takerFeeDestination !== null) {
|
|
162
|
+
message.takerFeeDestination = object.takerFeeDestination;
|
|
163
|
+
}
|
|
164
|
+
if (object.native_denom !== undefined && object.native_denom !== null) {
|
|
165
|
+
message.nativeDenom = object.native_denom;
|
|
166
|
+
}
|
|
167
|
+
if (object.orderBookExtraGasWindow !== undefined && object.orderBookExtraGasWindow !== null) {
|
|
168
|
+
message.orderBookExtraGasWindow = BigInt(object.orderBookExtraGasWindow);
|
|
169
|
+
}
|
|
170
|
+
if (object.orderBookQueueExtraGas !== undefined && object.orderBookQueueExtraGas !== null) {
|
|
171
|
+
message.orderBookQueueExtraGas = BigInt(object.orderBookQueueExtraGas);
|
|
172
|
+
}
|
|
173
|
+
if (object.fillOrdersExtraGas !== undefined && object.fillOrdersExtraGas !== null) {
|
|
174
|
+
message.fillOrdersExtraGas = BigInt(object.fillOrdersExtraGas);
|
|
175
|
+
}
|
|
176
|
+
if (object.minNativeLiquidityForModuleSwap !== undefined && object.minNativeLiquidityForModuleSwap !== null) {
|
|
177
|
+
message.minNativeLiquidityForModuleSwap = object.minNativeLiquidityForModuleSwap;
|
|
178
|
+
}
|
|
179
|
+
if (object.orderBookPerBlockMessages !== undefined && object.orderBookPerBlockMessages !== null) {
|
|
180
|
+
message.orderBookPerBlockMessages = BigInt(object.orderBookPerBlockMessages);
|
|
181
|
+
}
|
|
182
|
+
if (object.orderBookQueueMessageScanExtraGas !== undefined && object.orderBookQueueMessageScanExtraGas !== null) {
|
|
183
|
+
message.orderBookQueueMessageScanExtraGas = BigInt(object.orderBookQueueMessageScanExtraGas);
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
toAmino(message) {
|
|
188
|
+
const obj = {};
|
|
189
|
+
obj.createMarketFee = message.createMarketFee ? coin_1.Coin.toAmino(message.createMarketFee) : undefined;
|
|
190
|
+
obj.marketMakerFee = message.marketMakerFee ? coin_1.Coin.toAmino(message.marketMakerFee) : undefined;
|
|
191
|
+
obj.marketTakerFee = message.marketTakerFee ? coin_1.Coin.toAmino(message.marketTakerFee) : undefined;
|
|
192
|
+
obj.makerFeeDestination = message.makerFeeDestination === "" ? undefined : message.makerFeeDestination;
|
|
193
|
+
obj.takerFeeDestination = message.takerFeeDestination === "" ? undefined : message.takerFeeDestination;
|
|
194
|
+
obj.native_denom = message.nativeDenom === "" ? undefined : message.nativeDenom;
|
|
195
|
+
obj.orderBookExtraGasWindow = message.orderBookExtraGasWindow !== BigInt(0) ? message.orderBookExtraGasWindow?.toString() : undefined;
|
|
196
|
+
obj.orderBookQueueExtraGas = message.orderBookQueueExtraGas !== BigInt(0) ? message.orderBookQueueExtraGas?.toString() : undefined;
|
|
197
|
+
obj.fillOrdersExtraGas = message.fillOrdersExtraGas !== BigInt(0) ? message.fillOrdersExtraGas?.toString() : undefined;
|
|
198
|
+
obj.minNativeLiquidityForModuleSwap = message.minNativeLiquidityForModuleSwap === "" ? undefined : message.minNativeLiquidityForModuleSwap;
|
|
199
|
+
obj.orderBookPerBlockMessages = message.orderBookPerBlockMessages !== BigInt(0) ? message.orderBookPerBlockMessages?.toString() : undefined;
|
|
200
|
+
obj.orderBookQueueMessageScanExtraGas = message.orderBookQueueMessageScanExtraGas !== BigInt(0) ? message.orderBookQueueMessageScanExtraGas?.toString() : undefined;
|
|
201
|
+
return obj;
|
|
202
|
+
},
|
|
203
|
+
fromAminoMsg(object) {
|
|
204
|
+
return exports.Params.fromAmino(object.value);
|
|
205
|
+
},
|
|
206
|
+
fromProtoMsg(message) {
|
|
207
|
+
return exports.Params.decode(message.value);
|
|
208
|
+
},
|
|
209
|
+
toProto(message) {
|
|
210
|
+
return exports.Params.encode(message).finish();
|
|
211
|
+
},
|
|
212
|
+
toProtoMsg(message) {
|
|
213
|
+
return {
|
|
214
|
+
typeUrl: "/bze.tradebin.v2.Params",
|
|
215
|
+
value: exports.Params.encode(message).finish()
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
registerTypeUrl() {
|
|
219
|
+
if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.Params.typeUrl)) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
coin_1.Coin.registerTypeUrl();
|
|
223
|
+
}
|
|
224
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../cosmos/base/v1beta1/coin";
|
|
1
2
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
2
3
|
/**
|
|
3
4
|
* Params defines the parameters for the module.
|
|
@@ -6,6 +7,8 @@ import { BinaryReader, BinaryWriter } from "../../binary";
|
|
|
6
7
|
* @see proto type: bze.txfeecollector.Params
|
|
7
8
|
*/
|
|
8
9
|
export interface Params {
|
|
10
|
+
validatorMinGasFee: DecCoin;
|
|
11
|
+
maxBalanceIterations: bigint;
|
|
9
12
|
}
|
|
10
13
|
export interface ParamsProtoMsg {
|
|
11
14
|
typeUrl: "/bze.txfeecollector.Params";
|
|
@@ -18,6 +21,8 @@ export interface ParamsProtoMsg {
|
|
|
18
21
|
* @see proto type: bze.txfeecollector.Params
|
|
19
22
|
*/
|
|
20
23
|
export interface ParamsAmino {
|
|
24
|
+
ValidatorMinGasFee?: DecCoinAmino;
|
|
25
|
+
MaxBalanceIterations?: string;
|
|
21
26
|
}
|
|
22
27
|
export interface ParamsAminoMsg {
|
|
23
28
|
type: "bze/x/txfeecollector/Params";
|
|
@@ -30,6 +35,8 @@ export interface ParamsAminoMsg {
|
|
|
30
35
|
* @see proto type: bze.txfeecollector.Params
|
|
31
36
|
*/
|
|
32
37
|
export interface ParamsSDKType {
|
|
38
|
+
ValidatorMinGasFee: DecCoinSDKType;
|
|
39
|
+
MaxBalanceIterations: bigint;
|
|
33
40
|
}
|
|
34
41
|
/**
|
|
35
42
|
* Params defines the parameters for the module.
|
|
@@ -43,11 +50,11 @@ export declare const Params: {
|
|
|
43
50
|
is(o: any): o is Params;
|
|
44
51
|
isSDK(o: any): o is ParamsSDKType;
|
|
45
52
|
isAmino(o: any): o is ParamsAmino;
|
|
46
|
-
encode(
|
|
53
|
+
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
|
|
47
54
|
decode(input: BinaryReader | Uint8Array, length?: number): Params;
|
|
48
|
-
fromPartial(
|
|
49
|
-
fromAmino(
|
|
50
|
-
toAmino(
|
|
55
|
+
fromPartial(object: Partial<Params>): Params;
|
|
56
|
+
fromAmino(object: ParamsAmino): Params;
|
|
57
|
+
toAmino(message: Params): ParamsAmino;
|
|
51
58
|
fromAminoMsg(object: ParamsAminoMsg): Params;
|
|
52
59
|
toAminoMsg(message: Params): ParamsAminoMsg;
|
|
53
60
|
fromProtoMsg(message: ParamsProtoMsg): Params;
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Params = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
+
const coin_1 = require("../../cosmos/base/v1beta1/coin");
|
|
5
6
|
const binary_1 = require("../../binary");
|
|
7
|
+
const registry_1 = require("../../registry");
|
|
6
8
|
function createBaseParams() {
|
|
7
|
-
return {
|
|
9
|
+
return {
|
|
10
|
+
validatorMinGasFee: coin_1.DecCoin.fromPartial({}),
|
|
11
|
+
maxBalanceIterations: BigInt(0)
|
|
12
|
+
};
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
15
|
* Params defines the parameters for the module.
|
|
@@ -16,15 +21,21 @@ exports.Params = {
|
|
|
16
21
|
typeUrl: "/bze.txfeecollector.Params",
|
|
17
22
|
aminoType: "bze/x/txfeecollector/Params",
|
|
18
23
|
is(o) {
|
|
19
|
-
return o && o.$typeUrl === exports.Params.typeUrl;
|
|
24
|
+
return o && (o.$typeUrl === exports.Params.typeUrl || coin_1.DecCoin.is(o.validatorMinGasFee) && typeof o.maxBalanceIterations === "bigint");
|
|
20
25
|
},
|
|
21
26
|
isSDK(o) {
|
|
22
|
-
return o && o.$typeUrl === exports.Params.typeUrl;
|
|
27
|
+
return o && (o.$typeUrl === exports.Params.typeUrl || coin_1.DecCoin.isSDK(o.ValidatorMinGasFee) && typeof o.MaxBalanceIterations === "bigint");
|
|
23
28
|
},
|
|
24
29
|
isAmino(o) {
|
|
25
|
-
return o && o.$typeUrl === exports.Params.typeUrl;
|
|
30
|
+
return o && (o.$typeUrl === exports.Params.typeUrl || coin_1.DecCoin.isAmino(o.ValidatorMinGasFee) && typeof o.MaxBalanceIterations === "bigint");
|
|
26
31
|
},
|
|
27
|
-
encode(
|
|
32
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
33
|
+
if (message.validatorMinGasFee !== undefined) {
|
|
34
|
+
coin_1.DecCoin.encode(message.validatorMinGasFee, writer.uint32(10).fork()).ldelim();
|
|
35
|
+
}
|
|
36
|
+
if (message.maxBalanceIterations !== BigInt(0)) {
|
|
37
|
+
writer.uint32(16).uint64(message.maxBalanceIterations);
|
|
38
|
+
}
|
|
28
39
|
return writer;
|
|
29
40
|
},
|
|
30
41
|
decode(input, length) {
|
|
@@ -34,6 +45,12 @@ exports.Params = {
|
|
|
34
45
|
while (reader.pos < end) {
|
|
35
46
|
const tag = reader.uint32();
|
|
36
47
|
switch (tag >>> 3) {
|
|
48
|
+
case 1:
|
|
49
|
+
message.validatorMinGasFee = coin_1.DecCoin.decode(reader, reader.uint32());
|
|
50
|
+
break;
|
|
51
|
+
case 2:
|
|
52
|
+
message.maxBalanceIterations = reader.uint64();
|
|
53
|
+
break;
|
|
37
54
|
default:
|
|
38
55
|
reader.skipType(tag & 7);
|
|
39
56
|
break;
|
|
@@ -41,16 +58,26 @@ exports.Params = {
|
|
|
41
58
|
}
|
|
42
59
|
return message;
|
|
43
60
|
},
|
|
44
|
-
fromPartial(
|
|
61
|
+
fromPartial(object) {
|
|
45
62
|
const message = createBaseParams();
|
|
63
|
+
message.validatorMinGasFee = object.validatorMinGasFee !== undefined && object.validatorMinGasFee !== null ? coin_1.DecCoin.fromPartial(object.validatorMinGasFee) : undefined;
|
|
64
|
+
message.maxBalanceIterations = object.maxBalanceIterations !== undefined && object.maxBalanceIterations !== null ? BigInt(object.maxBalanceIterations.toString()) : BigInt(0);
|
|
46
65
|
return message;
|
|
47
66
|
},
|
|
48
|
-
fromAmino(
|
|
67
|
+
fromAmino(object) {
|
|
49
68
|
const message = createBaseParams();
|
|
69
|
+
if (object.ValidatorMinGasFee !== undefined && object.ValidatorMinGasFee !== null) {
|
|
70
|
+
message.validatorMinGasFee = coin_1.DecCoin.fromAmino(object.ValidatorMinGasFee);
|
|
71
|
+
}
|
|
72
|
+
if (object.MaxBalanceIterations !== undefined && object.MaxBalanceIterations !== null) {
|
|
73
|
+
message.maxBalanceIterations = BigInt(object.MaxBalanceIterations);
|
|
74
|
+
}
|
|
50
75
|
return message;
|
|
51
76
|
},
|
|
52
|
-
toAmino(
|
|
77
|
+
toAmino(message) {
|
|
53
78
|
const obj = {};
|
|
79
|
+
obj.ValidatorMinGasFee = message.validatorMinGasFee ? coin_1.DecCoin.toAmino(message.validatorMinGasFee) : undefined;
|
|
80
|
+
obj.MaxBalanceIterations = message.maxBalanceIterations !== BigInt(0) ? message.maxBalanceIterations?.toString() : undefined;
|
|
54
81
|
return obj;
|
|
55
82
|
},
|
|
56
83
|
fromAminoMsg(object) {
|
|
@@ -74,5 +101,10 @@ exports.Params = {
|
|
|
74
101
|
value: exports.Params.encode(message).finish()
|
|
75
102
|
};
|
|
76
103
|
},
|
|
77
|
-
registerTypeUrl() {
|
|
104
|
+
registerTypeUrl() {
|
|
105
|
+
if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.Params.typeUrl)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
coin_1.DecCoin.registerTypeUrl();
|
|
109
|
+
}
|
|
78
110
|
};
|