@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.
- package/dist/bze/bundle.d.ts +129 -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 +112 -0
- package/dist/bze/burner/tx.js +181 -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 +180 -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 +5 -2
package/dist/bze/bundle.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare namespace bze {
|
|
|
50
50
|
fundBurner: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: _7.MsgFundBurner | _7.MsgFundBurner[], fee: import("..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
|
|
51
51
|
startRaffle: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: _7.MsgStartRaffle | _7.MsgStartRaffle[], fee: import("..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
|
|
52
52
|
joinRaffle: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: _7.MsgJoinRaffle | _7.MsgJoinRaffle[], fee: import("..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
|
|
53
|
+
moveIbcLockedCoins: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: _7.MsgMoveIbcLockedCoins | _7.MsgMoveIbcLockedCoins[], fee: import("..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
|
|
53
54
|
getParams: (client: import("..").EndpointOrRpc, request: _5.QueryParamsRequest) => Promise<_5.QueryParamsResponse>;
|
|
54
55
|
getRaffles: (client: import("..").EndpointOrRpc, request: _5.QueryRafflesRequest) => Promise<_5.QueryRafflesResponse>;
|
|
55
56
|
getRaffleWinners: (client: import("..").EndpointOrRpc, request: _5.QueryRaffleWinnersRequest) => Promise<_5.QueryRaffleWinnersResponse>;
|
|
@@ -74,6 +75,10 @@ export declare namespace bze {
|
|
|
74
75
|
typeUrl: string;
|
|
75
76
|
value: Uint8Array<ArrayBufferLike>;
|
|
76
77
|
};
|
|
78
|
+
moveIbcLockedCoins(value: _7.MsgMoveIbcLockedCoins): {
|
|
79
|
+
typeUrl: string;
|
|
80
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
81
|
+
};
|
|
77
82
|
};
|
|
78
83
|
withTypeUrl: {
|
|
79
84
|
updateParams(value: _7.MsgUpdateParams): {
|
|
@@ -92,6 +97,10 @@ export declare namespace bze {
|
|
|
92
97
|
typeUrl: string;
|
|
93
98
|
value: _7.MsgJoinRaffle;
|
|
94
99
|
};
|
|
100
|
+
moveIbcLockedCoins(value: _7.MsgMoveIbcLockedCoins): {
|
|
101
|
+
typeUrl: string;
|
|
102
|
+
value: _7.MsgMoveIbcLockedCoins;
|
|
103
|
+
};
|
|
95
104
|
};
|
|
96
105
|
fromPartial: {
|
|
97
106
|
updateParams(value: _7.MsgUpdateParams): {
|
|
@@ -110,6 +119,10 @@ export declare namespace bze {
|
|
|
110
119
|
typeUrl: string;
|
|
111
120
|
value: _7.MsgJoinRaffle;
|
|
112
121
|
};
|
|
122
|
+
moveIbcLockedCoins(value: _7.MsgMoveIbcLockedCoins): {
|
|
123
|
+
typeUrl: string;
|
|
124
|
+
value: _7.MsgMoveIbcLockedCoins;
|
|
125
|
+
};
|
|
113
126
|
};
|
|
114
127
|
};
|
|
115
128
|
MsgUpdateParams: {
|
|
@@ -248,6 +261,38 @@ export declare namespace bze {
|
|
|
248
261
|
toProtoMsg(message: _7.MsgJoinRaffleResponse): _7.MsgJoinRaffleResponseProtoMsg;
|
|
249
262
|
registerTypeUrl(): void;
|
|
250
263
|
};
|
|
264
|
+
MsgMoveIbcLockedCoins: {
|
|
265
|
+
typeUrl: string;
|
|
266
|
+
is(o: any): o is _7.MsgMoveIbcLockedCoins;
|
|
267
|
+
isSDK(o: any): o is _7.MsgMoveIbcLockedCoinsSDKType;
|
|
268
|
+
isAmino(o: any): o is _7.MsgMoveIbcLockedCoinsAmino;
|
|
269
|
+
encode(message: _7.MsgMoveIbcLockedCoins, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
270
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _7.MsgMoveIbcLockedCoins;
|
|
271
|
+
fromPartial(object: Partial<_7.MsgMoveIbcLockedCoins>): _7.MsgMoveIbcLockedCoins;
|
|
272
|
+
fromAmino(object: _7.MsgMoveIbcLockedCoinsAmino): _7.MsgMoveIbcLockedCoins;
|
|
273
|
+
toAmino(message: _7.MsgMoveIbcLockedCoins): _7.MsgMoveIbcLockedCoinsAmino;
|
|
274
|
+
fromAminoMsg(object: _7.MsgMoveIbcLockedCoinsAminoMsg): _7.MsgMoveIbcLockedCoins;
|
|
275
|
+
fromProtoMsg(message: _7.MsgMoveIbcLockedCoinsProtoMsg): _7.MsgMoveIbcLockedCoins;
|
|
276
|
+
toProto(message: _7.MsgMoveIbcLockedCoins): Uint8Array;
|
|
277
|
+
toProtoMsg(message: _7.MsgMoveIbcLockedCoins): _7.MsgMoveIbcLockedCoinsProtoMsg;
|
|
278
|
+
registerTypeUrl(): void;
|
|
279
|
+
};
|
|
280
|
+
MsgMoveIbcLockedCoinsResponse: {
|
|
281
|
+
typeUrl: string;
|
|
282
|
+
is(o: any): o is _7.MsgMoveIbcLockedCoinsResponse;
|
|
283
|
+
isSDK(o: any): o is _7.MsgMoveIbcLockedCoinsResponseSDKType;
|
|
284
|
+
isAmino(o: any): o is _7.MsgMoveIbcLockedCoinsResponseAmino;
|
|
285
|
+
encode(message: _7.MsgMoveIbcLockedCoinsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
286
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _7.MsgMoveIbcLockedCoinsResponse;
|
|
287
|
+
fromPartial(object: Partial<_7.MsgMoveIbcLockedCoinsResponse>): _7.MsgMoveIbcLockedCoinsResponse;
|
|
288
|
+
fromAmino(object: _7.MsgMoveIbcLockedCoinsResponseAmino): _7.MsgMoveIbcLockedCoinsResponse;
|
|
289
|
+
toAmino(message: _7.MsgMoveIbcLockedCoinsResponse): _7.MsgMoveIbcLockedCoinsResponseAmino;
|
|
290
|
+
fromAminoMsg(object: _7.MsgMoveIbcLockedCoinsResponseAminoMsg): _7.MsgMoveIbcLockedCoinsResponse;
|
|
291
|
+
fromProtoMsg(message: _7.MsgMoveIbcLockedCoinsResponseProtoMsg): _7.MsgMoveIbcLockedCoinsResponse;
|
|
292
|
+
toProto(message: _7.MsgMoveIbcLockedCoinsResponse): Uint8Array;
|
|
293
|
+
toProtoMsg(message: _7.MsgMoveIbcLockedCoinsResponse): _7.MsgMoveIbcLockedCoinsResponseProtoMsg;
|
|
294
|
+
registerTypeUrl(): void;
|
|
295
|
+
};
|
|
251
296
|
Raffle: {
|
|
252
297
|
typeUrl: string;
|
|
253
298
|
is(o: any): o is _6.Raffle;
|
|
@@ -570,6 +615,38 @@ export declare namespace bze {
|
|
|
570
615
|
toProtoMsg(message: _1.BurnedCoins): _1.BurnedCoinsProtoMsg;
|
|
571
616
|
registerTypeUrl(): void;
|
|
572
617
|
};
|
|
618
|
+
PeriodicBurnQueue: {
|
|
619
|
+
typeUrl: string;
|
|
620
|
+
is(o: any): o is _1.PeriodicBurnQueue;
|
|
621
|
+
isSDK(o: any): o is _1.PeriodicBurnQueueSDKType;
|
|
622
|
+
isAmino(o: any): o is _1.PeriodicBurnQueueAmino;
|
|
623
|
+
encode(message: _1.PeriodicBurnQueue, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
624
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _1.PeriodicBurnQueue;
|
|
625
|
+
fromPartial(object: Partial<_1.PeriodicBurnQueue>): _1.PeriodicBurnQueue;
|
|
626
|
+
fromAmino(object: _1.PeriodicBurnQueueAmino): _1.PeriodicBurnQueue;
|
|
627
|
+
toAmino(message: _1.PeriodicBurnQueue): _1.PeriodicBurnQueueAmino;
|
|
628
|
+
fromAminoMsg(object: _1.PeriodicBurnQueueAminoMsg): _1.PeriodicBurnQueue;
|
|
629
|
+
fromProtoMsg(message: _1.PeriodicBurnQueueProtoMsg): _1.PeriodicBurnQueue;
|
|
630
|
+
toProto(message: _1.PeriodicBurnQueue): Uint8Array;
|
|
631
|
+
toProtoMsg(message: _1.PeriodicBurnQueue): _1.PeriodicBurnQueueProtoMsg;
|
|
632
|
+
registerTypeUrl(): void;
|
|
633
|
+
};
|
|
634
|
+
RaffleCleanupQueue: {
|
|
635
|
+
typeUrl: string;
|
|
636
|
+
is(o: any): o is _1.RaffleCleanupQueue;
|
|
637
|
+
isSDK(o: any): o is _1.RaffleCleanupQueueSDKType;
|
|
638
|
+
isAmino(o: any): o is _1.RaffleCleanupQueueAmino;
|
|
639
|
+
encode(message: _1.RaffleCleanupQueue, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
640
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _1.RaffleCleanupQueue;
|
|
641
|
+
fromPartial(object: Partial<_1.RaffleCleanupQueue>): _1.RaffleCleanupQueue;
|
|
642
|
+
fromAmino(object: _1.RaffleCleanupQueueAmino): _1.RaffleCleanupQueue;
|
|
643
|
+
toAmino(message: _1.RaffleCleanupQueue): _1.RaffleCleanupQueueAmino;
|
|
644
|
+
fromAminoMsg(object: _1.RaffleCleanupQueueAminoMsg): _1.RaffleCleanupQueue;
|
|
645
|
+
fromProtoMsg(message: _1.RaffleCleanupQueueProtoMsg): _1.RaffleCleanupQueue;
|
|
646
|
+
toProto(message: _1.RaffleCleanupQueue): Uint8Array;
|
|
647
|
+
toProtoMsg(message: _1.RaffleCleanupQueue): _1.RaffleCleanupQueueProtoMsg;
|
|
648
|
+
registerTypeUrl(): void;
|
|
649
|
+
};
|
|
573
650
|
};
|
|
574
651
|
const cointrunk: {
|
|
575
652
|
updateParams: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: _13.MsgUpdateParams | _13.MsgUpdateParams[], fee: import("..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
|
|
@@ -1851,6 +1928,22 @@ export declare namespace bze {
|
|
|
1851
1928
|
toProtoMsg(message: _22.PendingUnlockParticipant): _22.PendingUnlockParticipantProtoMsg;
|
|
1852
1929
|
registerTypeUrl(): void;
|
|
1853
1930
|
};
|
|
1931
|
+
UnlockParticipantsQueue: {
|
|
1932
|
+
typeUrl: string;
|
|
1933
|
+
is(o: any): o is _22.UnlockParticipantsQueue;
|
|
1934
|
+
isSDK(o: any): o is _22.UnlockParticipantsQueueSDKType;
|
|
1935
|
+
isAmino(o: any): o is _22.UnlockParticipantsQueueAmino;
|
|
1936
|
+
encode(message: _22.UnlockParticipantsQueue, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
1937
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _22.UnlockParticipantsQueue;
|
|
1938
|
+
fromPartial(object: Partial<_22.UnlockParticipantsQueue>): _22.UnlockParticipantsQueue;
|
|
1939
|
+
fromAmino(object: _22.UnlockParticipantsQueueAmino): _22.UnlockParticipantsQueue;
|
|
1940
|
+
toAmino(message: _22.UnlockParticipantsQueue): _22.UnlockParticipantsQueueAmino;
|
|
1941
|
+
fromAminoMsg(object: _22.UnlockParticipantsQueueAminoMsg): _22.UnlockParticipantsQueue;
|
|
1942
|
+
fromProtoMsg(message: _22.UnlockParticipantsQueueProtoMsg): _22.UnlockParticipantsQueue;
|
|
1943
|
+
toProto(message: _22.UnlockParticipantsQueue): Uint8Array;
|
|
1944
|
+
toProtoMsg(message: _22.UnlockParticipantsQueue): _22.UnlockParticipantsQueueProtoMsg;
|
|
1945
|
+
registerTypeUrl(): void;
|
|
1946
|
+
};
|
|
1854
1947
|
TradingReward: {
|
|
1855
1948
|
typeUrl: string;
|
|
1856
1949
|
is(o: any): o is _22.TradingReward;
|
|
@@ -1947,6 +2040,38 @@ export declare namespace bze {
|
|
|
1947
2040
|
toProtoMsg(message: _22.MarketIdTradingRewardId): _22.MarketIdTradingRewardIdProtoMsg;
|
|
1948
2041
|
registerTypeUrl(): void;
|
|
1949
2042
|
};
|
|
2043
|
+
StakingRewardsDistributionQueue: {
|
|
2044
|
+
typeUrl: string;
|
|
2045
|
+
is(o: any): o is _22.StakingRewardsDistributionQueue;
|
|
2046
|
+
isSDK(o: any): o is _22.StakingRewardsDistributionQueueSDKType;
|
|
2047
|
+
isAmino(o: any): o is _22.StakingRewardsDistributionQueueAmino;
|
|
2048
|
+
encode(message: _22.StakingRewardsDistributionQueue, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
2049
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _22.StakingRewardsDistributionQueue;
|
|
2050
|
+
fromPartial(object: Partial<_22.StakingRewardsDistributionQueue>): _22.StakingRewardsDistributionQueue;
|
|
2051
|
+
fromAmino(object: _22.StakingRewardsDistributionQueueAmino): _22.StakingRewardsDistributionQueue;
|
|
2052
|
+
toAmino(message: _22.StakingRewardsDistributionQueue): _22.StakingRewardsDistributionQueueAmino;
|
|
2053
|
+
fromAminoMsg(object: _22.StakingRewardsDistributionQueueAminoMsg): _22.StakingRewardsDistributionQueue;
|
|
2054
|
+
fromProtoMsg(message: _22.StakingRewardsDistributionQueueProtoMsg): _22.StakingRewardsDistributionQueue;
|
|
2055
|
+
toProto(message: _22.StakingRewardsDistributionQueue): Uint8Array;
|
|
2056
|
+
toProtoMsg(message: _22.StakingRewardsDistributionQueue): _22.StakingRewardsDistributionQueueProtoMsg;
|
|
2057
|
+
registerTypeUrl(): void;
|
|
2058
|
+
};
|
|
2059
|
+
TradingRewardExpirationQueue: {
|
|
2060
|
+
typeUrl: string;
|
|
2061
|
+
is(o: any): o is _22.TradingRewardExpirationQueue;
|
|
2062
|
+
isSDK(o: any): o is _22.TradingRewardExpirationQueueSDKType;
|
|
2063
|
+
isAmino(o: any): o is _22.TradingRewardExpirationQueueAmino;
|
|
2064
|
+
encode(message: _22.TradingRewardExpirationQueue, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
2065
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _22.TradingRewardExpirationQueue;
|
|
2066
|
+
fromPartial(object: Partial<_22.TradingRewardExpirationQueue>): _22.TradingRewardExpirationQueue;
|
|
2067
|
+
fromAmino(object: _22.TradingRewardExpirationQueueAmino): _22.TradingRewardExpirationQueue;
|
|
2068
|
+
toAmino(message: _22.TradingRewardExpirationQueue): _22.TradingRewardExpirationQueueAmino;
|
|
2069
|
+
fromAminoMsg(object: _22.TradingRewardExpirationQueueAminoMsg): _22.TradingRewardExpirationQueue;
|
|
2070
|
+
fromProtoMsg(message: _22.TradingRewardExpirationQueueProtoMsg): _22.TradingRewardExpirationQueue;
|
|
2071
|
+
toProto(message: _22.TradingRewardExpirationQueue): Uint8Array;
|
|
2072
|
+
toProtoMsg(message: _22.TradingRewardExpirationQueue): _22.TradingRewardExpirationQueueProtoMsg;
|
|
2073
|
+
registerTypeUrl(): void;
|
|
2074
|
+
};
|
|
1950
2075
|
QueryParamsRequest: {
|
|
1951
2076
|
typeUrl: string;
|
|
1952
2077
|
is(o: any): o is _21.QueryParamsRequest;
|
|
@@ -4185,11 +4310,11 @@ export declare namespace bze {
|
|
|
4185
4310
|
is(o: any): o is _37.Params;
|
|
4186
4311
|
isSDK(o: any): o is _37.ParamsSDKType;
|
|
4187
4312
|
isAmino(o: any): o is _37.ParamsAmino;
|
|
4188
|
-
encode(
|
|
4313
|
+
encode(message: _37.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
4189
4314
|
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _37.Params;
|
|
4190
|
-
fromPartial(
|
|
4191
|
-
fromAmino(
|
|
4192
|
-
toAmino(
|
|
4315
|
+
fromPartial(object: Partial<_37.Params>): _37.Params;
|
|
4316
|
+
fromAmino(object: _37.ParamsAmino): _37.Params;
|
|
4317
|
+
toAmino(message: _37.Params): _37.ParamsAmino;
|
|
4193
4318
|
fromAminoMsg(object: _37.ParamsAminoMsg): _37.Params;
|
|
4194
4319
|
toAminoMsg(message: _37.Params): _37.ParamsAminoMsg;
|
|
4195
4320
|
fromProtoMsg(message: _37.ParamsProtoMsg): _37.Params;
|
|
@@ -34,6 +34,70 @@ export interface BurnedCoinsSDKType {
|
|
|
34
34
|
burned: string;
|
|
35
35
|
height: string;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @name PeriodicBurnQueue
|
|
39
|
+
* @package bze.burner
|
|
40
|
+
* @see proto type: bze.burner.PeriodicBurnQueue
|
|
41
|
+
*/
|
|
42
|
+
export interface PeriodicBurnQueue {
|
|
43
|
+
pending: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface PeriodicBurnQueueProtoMsg {
|
|
46
|
+
typeUrl: "/bze.burner.PeriodicBurnQueue";
|
|
47
|
+
value: Uint8Array;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @name PeriodicBurnQueueAmino
|
|
51
|
+
* @package bze.burner
|
|
52
|
+
* @see proto type: bze.burner.PeriodicBurnQueue
|
|
53
|
+
*/
|
|
54
|
+
export interface PeriodicBurnQueueAmino {
|
|
55
|
+
pending?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface PeriodicBurnQueueAminoMsg {
|
|
58
|
+
type: "/bze.burner.PeriodicBurnQueue";
|
|
59
|
+
value: PeriodicBurnQueueAmino;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @name PeriodicBurnQueueSDKType
|
|
63
|
+
* @package bze.burner
|
|
64
|
+
* @see proto type: bze.burner.PeriodicBurnQueue
|
|
65
|
+
*/
|
|
66
|
+
export interface PeriodicBurnQueueSDKType {
|
|
67
|
+
pending: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @name RaffleCleanupQueue
|
|
71
|
+
* @package bze.burner
|
|
72
|
+
* @see proto type: bze.burner.RaffleCleanupQueue
|
|
73
|
+
*/
|
|
74
|
+
export interface RaffleCleanupQueue {
|
|
75
|
+
pendingEpochs: bigint[];
|
|
76
|
+
}
|
|
77
|
+
export interface RaffleCleanupQueueProtoMsg {
|
|
78
|
+
typeUrl: "/bze.burner.RaffleCleanupQueue";
|
|
79
|
+
value: Uint8Array;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @name RaffleCleanupQueueAmino
|
|
83
|
+
* @package bze.burner
|
|
84
|
+
* @see proto type: bze.burner.RaffleCleanupQueue
|
|
85
|
+
*/
|
|
86
|
+
export interface RaffleCleanupQueueAmino {
|
|
87
|
+
pending_epochs?: string[];
|
|
88
|
+
}
|
|
89
|
+
export interface RaffleCleanupQueueAminoMsg {
|
|
90
|
+
type: "/bze.burner.RaffleCleanupQueue";
|
|
91
|
+
value: RaffleCleanupQueueAmino;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @name RaffleCleanupQueueSDKType
|
|
95
|
+
* @package bze.burner
|
|
96
|
+
* @see proto type: bze.burner.RaffleCleanupQueue
|
|
97
|
+
*/
|
|
98
|
+
export interface RaffleCleanupQueueSDKType {
|
|
99
|
+
pending_epochs: bigint[];
|
|
100
|
+
}
|
|
37
101
|
/**
|
|
38
102
|
* @name BurnedCoins
|
|
39
103
|
* @package bze.burner
|
|
@@ -55,3 +119,45 @@ export declare const BurnedCoins: {
|
|
|
55
119
|
toProtoMsg(message: BurnedCoins): BurnedCoinsProtoMsg;
|
|
56
120
|
registerTypeUrl(): void;
|
|
57
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* @name PeriodicBurnQueue
|
|
124
|
+
* @package bze.burner
|
|
125
|
+
* @see proto type: bze.burner.PeriodicBurnQueue
|
|
126
|
+
*/
|
|
127
|
+
export declare const PeriodicBurnQueue: {
|
|
128
|
+
typeUrl: string;
|
|
129
|
+
is(o: any): o is PeriodicBurnQueue;
|
|
130
|
+
isSDK(o: any): o is PeriodicBurnQueueSDKType;
|
|
131
|
+
isAmino(o: any): o is PeriodicBurnQueueAmino;
|
|
132
|
+
encode(message: PeriodicBurnQueue, writer?: BinaryWriter): BinaryWriter;
|
|
133
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PeriodicBurnQueue;
|
|
134
|
+
fromPartial(object: Partial<PeriodicBurnQueue>): PeriodicBurnQueue;
|
|
135
|
+
fromAmino(object: PeriodicBurnQueueAmino): PeriodicBurnQueue;
|
|
136
|
+
toAmino(message: PeriodicBurnQueue): PeriodicBurnQueueAmino;
|
|
137
|
+
fromAminoMsg(object: PeriodicBurnQueueAminoMsg): PeriodicBurnQueue;
|
|
138
|
+
fromProtoMsg(message: PeriodicBurnQueueProtoMsg): PeriodicBurnQueue;
|
|
139
|
+
toProto(message: PeriodicBurnQueue): Uint8Array;
|
|
140
|
+
toProtoMsg(message: PeriodicBurnQueue): PeriodicBurnQueueProtoMsg;
|
|
141
|
+
registerTypeUrl(): void;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* @name RaffleCleanupQueue
|
|
145
|
+
* @package bze.burner
|
|
146
|
+
* @see proto type: bze.burner.RaffleCleanupQueue
|
|
147
|
+
*/
|
|
148
|
+
export declare const RaffleCleanupQueue: {
|
|
149
|
+
typeUrl: string;
|
|
150
|
+
is(o: any): o is RaffleCleanupQueue;
|
|
151
|
+
isSDK(o: any): o is RaffleCleanupQueueSDKType;
|
|
152
|
+
isAmino(o: any): o is RaffleCleanupQueueAmino;
|
|
153
|
+
encode(message: RaffleCleanupQueue, writer?: BinaryWriter): BinaryWriter;
|
|
154
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RaffleCleanupQueue;
|
|
155
|
+
fromPartial(object: Partial<RaffleCleanupQueue>): RaffleCleanupQueue;
|
|
156
|
+
fromAmino(object: RaffleCleanupQueueAmino): RaffleCleanupQueue;
|
|
157
|
+
toAmino(message: RaffleCleanupQueue): RaffleCleanupQueueAmino;
|
|
158
|
+
fromAminoMsg(object: RaffleCleanupQueueAminoMsg): RaffleCleanupQueue;
|
|
159
|
+
fromProtoMsg(message: RaffleCleanupQueueProtoMsg): RaffleCleanupQueue;
|
|
160
|
+
toProto(message: RaffleCleanupQueue): Uint8Array;
|
|
161
|
+
toProtoMsg(message: RaffleCleanupQueue): RaffleCleanupQueueProtoMsg;
|
|
162
|
+
registerTypeUrl(): void;
|
|
163
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BurnedCoins = void 0;
|
|
3
|
+
exports.RaffleCleanupQueue = exports.PeriodicBurnQueue = exports.BurnedCoins = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const binary_1 = require("../../binary");
|
|
6
6
|
function createBaseBurnedCoins() {
|
|
@@ -93,3 +93,172 @@ exports.BurnedCoins = {
|
|
|
93
93
|
},
|
|
94
94
|
registerTypeUrl() { }
|
|
95
95
|
};
|
|
96
|
+
function createBasePeriodicBurnQueue() {
|
|
97
|
+
return {
|
|
98
|
+
pending: false
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @name PeriodicBurnQueue
|
|
103
|
+
* @package bze.burner
|
|
104
|
+
* @see proto type: bze.burner.PeriodicBurnQueue
|
|
105
|
+
*/
|
|
106
|
+
exports.PeriodicBurnQueue = {
|
|
107
|
+
typeUrl: "/bze.burner.PeriodicBurnQueue",
|
|
108
|
+
is(o) {
|
|
109
|
+
return o && (o.$typeUrl === exports.PeriodicBurnQueue.typeUrl || typeof o.pending === "boolean");
|
|
110
|
+
},
|
|
111
|
+
isSDK(o) {
|
|
112
|
+
return o && (o.$typeUrl === exports.PeriodicBurnQueue.typeUrl || typeof o.pending === "boolean");
|
|
113
|
+
},
|
|
114
|
+
isAmino(o) {
|
|
115
|
+
return o && (o.$typeUrl === exports.PeriodicBurnQueue.typeUrl || typeof o.pending === "boolean");
|
|
116
|
+
},
|
|
117
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
118
|
+
if (message.pending === true) {
|
|
119
|
+
writer.uint32(8).bool(message.pending);
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
decode(input, length) {
|
|
124
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
125
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
126
|
+
const message = createBasePeriodicBurnQueue();
|
|
127
|
+
while (reader.pos < end) {
|
|
128
|
+
const tag = reader.uint32();
|
|
129
|
+
switch (tag >>> 3) {
|
|
130
|
+
case 1:
|
|
131
|
+
message.pending = reader.bool();
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
reader.skipType(tag & 7);
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return message;
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBasePeriodicBurnQueue();
|
|
142
|
+
message.pending = object.pending ?? false;
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
fromAmino(object) {
|
|
146
|
+
const message = createBasePeriodicBurnQueue();
|
|
147
|
+
if (object.pending !== undefined && object.pending !== null) {
|
|
148
|
+
message.pending = object.pending;
|
|
149
|
+
}
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
toAmino(message) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
obj.pending = message.pending === false ? undefined : message.pending;
|
|
155
|
+
return obj;
|
|
156
|
+
},
|
|
157
|
+
fromAminoMsg(object) {
|
|
158
|
+
return exports.PeriodicBurnQueue.fromAmino(object.value);
|
|
159
|
+
},
|
|
160
|
+
fromProtoMsg(message) {
|
|
161
|
+
return exports.PeriodicBurnQueue.decode(message.value);
|
|
162
|
+
},
|
|
163
|
+
toProto(message) {
|
|
164
|
+
return exports.PeriodicBurnQueue.encode(message).finish();
|
|
165
|
+
},
|
|
166
|
+
toProtoMsg(message) {
|
|
167
|
+
return {
|
|
168
|
+
typeUrl: "/bze.burner.PeriodicBurnQueue",
|
|
169
|
+
value: exports.PeriodicBurnQueue.encode(message).finish()
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
registerTypeUrl() { }
|
|
173
|
+
};
|
|
174
|
+
function createBaseRaffleCleanupQueue() {
|
|
175
|
+
return {
|
|
176
|
+
pendingEpochs: []
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @name RaffleCleanupQueue
|
|
181
|
+
* @package bze.burner
|
|
182
|
+
* @see proto type: bze.burner.RaffleCleanupQueue
|
|
183
|
+
*/
|
|
184
|
+
exports.RaffleCleanupQueue = {
|
|
185
|
+
typeUrl: "/bze.burner.RaffleCleanupQueue",
|
|
186
|
+
is(o) {
|
|
187
|
+
return o && (o.$typeUrl === exports.RaffleCleanupQueue.typeUrl || Array.isArray(o.pendingEpochs) && (!o.pendingEpochs.length || typeof o.pendingEpochs[0] === "bigint"));
|
|
188
|
+
},
|
|
189
|
+
isSDK(o) {
|
|
190
|
+
return o && (o.$typeUrl === exports.RaffleCleanupQueue.typeUrl || Array.isArray(o.pending_epochs) && (!o.pending_epochs.length || typeof o.pending_epochs[0] === "bigint"));
|
|
191
|
+
},
|
|
192
|
+
isAmino(o) {
|
|
193
|
+
return o && (o.$typeUrl === exports.RaffleCleanupQueue.typeUrl || Array.isArray(o.pending_epochs) && (!o.pending_epochs.length || typeof o.pending_epochs[0] === "bigint"));
|
|
194
|
+
},
|
|
195
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
196
|
+
writer.uint32(10).fork();
|
|
197
|
+
for (const v of message.pendingEpochs) {
|
|
198
|
+
writer.uint64(v);
|
|
199
|
+
}
|
|
200
|
+
writer.ldelim();
|
|
201
|
+
return writer;
|
|
202
|
+
},
|
|
203
|
+
decode(input, length) {
|
|
204
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
205
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
206
|
+
const message = createBaseRaffleCleanupQueue();
|
|
207
|
+
while (reader.pos < end) {
|
|
208
|
+
const tag = reader.uint32();
|
|
209
|
+
switch (tag >>> 3) {
|
|
210
|
+
case 1:
|
|
211
|
+
if ((tag & 7) === 2) {
|
|
212
|
+
const end2 = reader.uint32() + reader.pos;
|
|
213
|
+
while (reader.pos < end2) {
|
|
214
|
+
message.pendingEpochs.push(reader.uint64());
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
message.pendingEpochs.push(reader.uint64());
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
default:
|
|
222
|
+
reader.skipType(tag & 7);
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return message;
|
|
227
|
+
},
|
|
228
|
+
fromPartial(object) {
|
|
229
|
+
const message = createBaseRaffleCleanupQueue();
|
|
230
|
+
message.pendingEpochs = object.pendingEpochs?.map(e => BigInt(e.toString())) || [];
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
fromAmino(object) {
|
|
234
|
+
const message = createBaseRaffleCleanupQueue();
|
|
235
|
+
message.pendingEpochs = object.pending_epochs?.map(e => BigInt(e)) || [];
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
toAmino(message) {
|
|
239
|
+
const obj = {};
|
|
240
|
+
if (message.pendingEpochs) {
|
|
241
|
+
obj.pending_epochs = message.pendingEpochs.map(e => e.toString());
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
obj.pending_epochs = message.pendingEpochs;
|
|
245
|
+
}
|
|
246
|
+
return obj;
|
|
247
|
+
},
|
|
248
|
+
fromAminoMsg(object) {
|
|
249
|
+
return exports.RaffleCleanupQueue.fromAmino(object.value);
|
|
250
|
+
},
|
|
251
|
+
fromProtoMsg(message) {
|
|
252
|
+
return exports.RaffleCleanupQueue.decode(message.value);
|
|
253
|
+
},
|
|
254
|
+
toProto(message) {
|
|
255
|
+
return exports.RaffleCleanupQueue.encode(message).finish();
|
|
256
|
+
},
|
|
257
|
+
toProtoMsg(message) {
|
|
258
|
+
return {
|
|
259
|
+
typeUrl: "/bze.burner.RaffleCleanupQueue",
|
|
260
|
+
value: exports.RaffleCleanupQueue.encode(message).finish()
|
|
261
|
+
};
|
|
262
|
+
},
|
|
263
|
+
registerTypeUrl() { }
|
|
264
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Params, ParamsAmino, ParamsSDKType } from "./params";
|
|
2
|
-
import { BurnedCoins, BurnedCoinsAmino, BurnedCoinsSDKType } from "./burned_coins";
|
|
2
|
+
import { BurnedCoins, BurnedCoinsAmino, BurnedCoinsSDKType, PeriodicBurnQueue, PeriodicBurnQueueAmino, PeriodicBurnQueueSDKType, RaffleCleanupQueue, RaffleCleanupQueueAmino, RaffleCleanupQueueSDKType } from "./burned_coins";
|
|
3
3
|
import { Raffle, RaffleAmino, RaffleSDKType, RaffleWinner, RaffleWinnerAmino, RaffleWinnerSDKType, RaffleParticipant, RaffleParticipantAmino, RaffleParticipantSDKType } from "./raffle";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
5
5
|
/**
|
|
@@ -18,6 +18,8 @@ export interface GenesisState {
|
|
|
18
18
|
raffleWinnersList: RaffleWinner[];
|
|
19
19
|
raffleParticipantsList: RaffleParticipant[];
|
|
20
20
|
raffleParticipantCounter: bigint;
|
|
21
|
+
periodicBurnQueue?: PeriodicBurnQueue;
|
|
22
|
+
raffleCleanupQueue?: RaffleCleanupQueue;
|
|
21
23
|
}
|
|
22
24
|
export interface GenesisStateProtoMsg {
|
|
23
25
|
typeUrl: "/bze.burner.GenesisState";
|
|
@@ -39,6 +41,8 @@ export interface GenesisStateAmino {
|
|
|
39
41
|
raffle_winners_list?: RaffleWinnerAmino[];
|
|
40
42
|
raffle_participants_list?: RaffleParticipantAmino[];
|
|
41
43
|
raffle_participant_counter: string;
|
|
44
|
+
periodic_burn_queue?: PeriodicBurnQueueAmino;
|
|
45
|
+
raffle_cleanup_queue?: RaffleCleanupQueueAmino;
|
|
42
46
|
}
|
|
43
47
|
export interface GenesisStateAminoMsg {
|
|
44
48
|
type: "/bze.burner.GenesisState";
|
|
@@ -57,6 +61,8 @@ export interface GenesisStateSDKType {
|
|
|
57
61
|
raffle_winners_list: RaffleWinnerSDKType[];
|
|
58
62
|
raffle_participants_list: RaffleParticipantSDKType[];
|
|
59
63
|
raffle_participant_counter: bigint;
|
|
64
|
+
periodic_burn_queue?: PeriodicBurnQueueSDKType;
|
|
65
|
+
raffle_cleanup_queue?: RaffleCleanupQueueSDKType;
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* GenesisState defines the burner module's genesis state.
|
|
@@ -14,7 +14,9 @@ function createBaseGenesisState() {
|
|
|
14
14
|
raffleList: [],
|
|
15
15
|
raffleWinnersList: [],
|
|
16
16
|
raffleParticipantsList: [],
|
|
17
|
-
raffleParticipantCounter: BigInt(0)
|
|
17
|
+
raffleParticipantCounter: BigInt(0),
|
|
18
|
+
periodicBurnQueue: undefined,
|
|
19
|
+
raffleCleanupQueue: undefined
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
@@ -53,6 +55,12 @@ exports.GenesisState = {
|
|
|
53
55
|
if (message.raffleParticipantCounter !== BigInt(0)) {
|
|
54
56
|
writer.uint32(48).uint64(message.raffleParticipantCounter);
|
|
55
57
|
}
|
|
58
|
+
if (message.periodicBurnQueue !== undefined) {
|
|
59
|
+
burned_coins_1.PeriodicBurnQueue.encode(message.periodicBurnQueue, writer.uint32(58).fork()).ldelim();
|
|
60
|
+
}
|
|
61
|
+
if (message.raffleCleanupQueue !== undefined) {
|
|
62
|
+
burned_coins_1.RaffleCleanupQueue.encode(message.raffleCleanupQueue, writer.uint32(66).fork()).ldelim();
|
|
63
|
+
}
|
|
56
64
|
return writer;
|
|
57
65
|
},
|
|
58
66
|
decode(input, length) {
|
|
@@ -80,6 +88,12 @@ exports.GenesisState = {
|
|
|
80
88
|
case 6:
|
|
81
89
|
message.raffleParticipantCounter = reader.uint64();
|
|
82
90
|
break;
|
|
91
|
+
case 7:
|
|
92
|
+
message.periodicBurnQueue = burned_coins_1.PeriodicBurnQueue.decode(reader, reader.uint32());
|
|
93
|
+
break;
|
|
94
|
+
case 8:
|
|
95
|
+
message.raffleCleanupQueue = burned_coins_1.RaffleCleanupQueue.decode(reader, reader.uint32());
|
|
96
|
+
break;
|
|
83
97
|
default:
|
|
84
98
|
reader.skipType(tag & 7);
|
|
85
99
|
break;
|
|
@@ -95,6 +109,8 @@ exports.GenesisState = {
|
|
|
95
109
|
message.raffleWinnersList = object.raffleWinnersList?.map(e => raffle_1.RaffleWinner.fromPartial(e)) || [];
|
|
96
110
|
message.raffleParticipantsList = object.raffleParticipantsList?.map(e => raffle_1.RaffleParticipant.fromPartial(e)) || [];
|
|
97
111
|
message.raffleParticipantCounter = object.raffleParticipantCounter !== undefined && object.raffleParticipantCounter !== null ? BigInt(object.raffleParticipantCounter.toString()) : BigInt(0);
|
|
112
|
+
message.periodicBurnQueue = object.periodicBurnQueue !== undefined && object.periodicBurnQueue !== null ? burned_coins_1.PeriodicBurnQueue.fromPartial(object.periodicBurnQueue) : undefined;
|
|
113
|
+
message.raffleCleanupQueue = object.raffleCleanupQueue !== undefined && object.raffleCleanupQueue !== null ? burned_coins_1.RaffleCleanupQueue.fromPartial(object.raffleCleanupQueue) : undefined;
|
|
98
114
|
return message;
|
|
99
115
|
},
|
|
100
116
|
fromAmino(object) {
|
|
@@ -109,6 +125,12 @@ exports.GenesisState = {
|
|
|
109
125
|
if (object.raffle_participant_counter !== undefined && object.raffle_participant_counter !== null) {
|
|
110
126
|
message.raffleParticipantCounter = BigInt(object.raffle_participant_counter);
|
|
111
127
|
}
|
|
128
|
+
if (object.periodic_burn_queue !== undefined && object.periodic_burn_queue !== null) {
|
|
129
|
+
message.periodicBurnQueue = burned_coins_1.PeriodicBurnQueue.fromAmino(object.periodic_burn_queue);
|
|
130
|
+
}
|
|
131
|
+
if (object.raffle_cleanup_queue !== undefined && object.raffle_cleanup_queue !== null) {
|
|
132
|
+
message.raffleCleanupQueue = burned_coins_1.RaffleCleanupQueue.fromAmino(object.raffle_cleanup_queue);
|
|
133
|
+
}
|
|
112
134
|
return message;
|
|
113
135
|
},
|
|
114
136
|
toAmino(message) {
|
|
@@ -139,6 +161,8 @@ exports.GenesisState = {
|
|
|
139
161
|
obj.raffle_participants_list = message.raffleParticipantsList;
|
|
140
162
|
}
|
|
141
163
|
obj.raffle_participant_counter = message.raffleParticipantCounter ? message.raffleParticipantCounter?.toString() : "0";
|
|
164
|
+
obj.periodic_burn_queue = message.periodicBurnQueue ? burned_coins_1.PeriodicBurnQueue.toAmino(message.periodicBurnQueue) : undefined;
|
|
165
|
+
obj.raffle_cleanup_queue = message.raffleCleanupQueue ? burned_coins_1.RaffleCleanupQueue.toAmino(message.raffleCleanupQueue) : undefined;
|
|
142
166
|
return obj;
|
|
143
167
|
},
|
|
144
168
|
fromAminoMsg(object) {
|
|
@@ -165,5 +189,7 @@ exports.GenesisState = {
|
|
|
165
189
|
raffle_1.Raffle.registerTypeUrl();
|
|
166
190
|
raffle_1.RaffleWinner.registerTypeUrl();
|
|
167
191
|
raffle_1.RaffleParticipant.registerTypeUrl();
|
|
192
|
+
burned_coins_1.PeriodicBurnQueue.registerTypeUrl();
|
|
193
|
+
burned_coins_1.RaffleCleanupQueue.registerTypeUrl();
|
|
168
194
|
}
|
|
169
195
|
};
|