@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
|
@@ -90,3 +90,172 @@ export const BurnedCoins = {
|
|
|
90
90
|
},
|
|
91
91
|
registerTypeUrl() { }
|
|
92
92
|
};
|
|
93
|
+
function createBasePeriodicBurnQueue() {
|
|
94
|
+
return {
|
|
95
|
+
pending: false
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @name PeriodicBurnQueue
|
|
100
|
+
* @package bze.burner
|
|
101
|
+
* @see proto type: bze.burner.PeriodicBurnQueue
|
|
102
|
+
*/
|
|
103
|
+
export const PeriodicBurnQueue = {
|
|
104
|
+
typeUrl: "/bze.burner.PeriodicBurnQueue",
|
|
105
|
+
is(o) {
|
|
106
|
+
return o && (o.$typeUrl === PeriodicBurnQueue.typeUrl || typeof o.pending === "boolean");
|
|
107
|
+
},
|
|
108
|
+
isSDK(o) {
|
|
109
|
+
return o && (o.$typeUrl === PeriodicBurnQueue.typeUrl || typeof o.pending === "boolean");
|
|
110
|
+
},
|
|
111
|
+
isAmino(o) {
|
|
112
|
+
return o && (o.$typeUrl === PeriodicBurnQueue.typeUrl || typeof o.pending === "boolean");
|
|
113
|
+
},
|
|
114
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
115
|
+
if (message.pending === true) {
|
|
116
|
+
writer.uint32(8).bool(message.pending);
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input, length) {
|
|
121
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBasePeriodicBurnQueue();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
message.pending = reader.bool();
|
|
129
|
+
break;
|
|
130
|
+
default:
|
|
131
|
+
reader.skipType(tag & 7);
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBasePeriodicBurnQueue();
|
|
139
|
+
message.pending = object.pending ?? false;
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
fromAmino(object) {
|
|
143
|
+
const message = createBasePeriodicBurnQueue();
|
|
144
|
+
if (object.pending !== undefined && object.pending !== null) {
|
|
145
|
+
message.pending = object.pending;
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
toAmino(message) {
|
|
150
|
+
const obj = {};
|
|
151
|
+
obj.pending = message.pending === false ? undefined : message.pending;
|
|
152
|
+
return obj;
|
|
153
|
+
},
|
|
154
|
+
fromAminoMsg(object) {
|
|
155
|
+
return PeriodicBurnQueue.fromAmino(object.value);
|
|
156
|
+
},
|
|
157
|
+
fromProtoMsg(message) {
|
|
158
|
+
return PeriodicBurnQueue.decode(message.value);
|
|
159
|
+
},
|
|
160
|
+
toProto(message) {
|
|
161
|
+
return PeriodicBurnQueue.encode(message).finish();
|
|
162
|
+
},
|
|
163
|
+
toProtoMsg(message) {
|
|
164
|
+
return {
|
|
165
|
+
typeUrl: "/bze.burner.PeriodicBurnQueue",
|
|
166
|
+
value: PeriodicBurnQueue.encode(message).finish()
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
registerTypeUrl() { }
|
|
170
|
+
};
|
|
171
|
+
function createBaseRaffleCleanupQueue() {
|
|
172
|
+
return {
|
|
173
|
+
pendingEpochs: []
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @name RaffleCleanupQueue
|
|
178
|
+
* @package bze.burner
|
|
179
|
+
* @see proto type: bze.burner.RaffleCleanupQueue
|
|
180
|
+
*/
|
|
181
|
+
export const RaffleCleanupQueue = {
|
|
182
|
+
typeUrl: "/bze.burner.RaffleCleanupQueue",
|
|
183
|
+
is(o) {
|
|
184
|
+
return o && (o.$typeUrl === RaffleCleanupQueue.typeUrl || Array.isArray(o.pendingEpochs) && (!o.pendingEpochs.length || typeof o.pendingEpochs[0] === "bigint"));
|
|
185
|
+
},
|
|
186
|
+
isSDK(o) {
|
|
187
|
+
return o && (o.$typeUrl === RaffleCleanupQueue.typeUrl || Array.isArray(o.pending_epochs) && (!o.pending_epochs.length || typeof o.pending_epochs[0] === "bigint"));
|
|
188
|
+
},
|
|
189
|
+
isAmino(o) {
|
|
190
|
+
return o && (o.$typeUrl === RaffleCleanupQueue.typeUrl || Array.isArray(o.pending_epochs) && (!o.pending_epochs.length || typeof o.pending_epochs[0] === "bigint"));
|
|
191
|
+
},
|
|
192
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
193
|
+
writer.uint32(10).fork();
|
|
194
|
+
for (const v of message.pendingEpochs) {
|
|
195
|
+
writer.uint64(v);
|
|
196
|
+
}
|
|
197
|
+
writer.ldelim();
|
|
198
|
+
return writer;
|
|
199
|
+
},
|
|
200
|
+
decode(input, length) {
|
|
201
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
+
const message = createBaseRaffleCleanupQueue();
|
|
204
|
+
while (reader.pos < end) {
|
|
205
|
+
const tag = reader.uint32();
|
|
206
|
+
switch (tag >>> 3) {
|
|
207
|
+
case 1:
|
|
208
|
+
if ((tag & 7) === 2) {
|
|
209
|
+
const end2 = reader.uint32() + reader.pos;
|
|
210
|
+
while (reader.pos < end2) {
|
|
211
|
+
message.pendingEpochs.push(reader.uint64());
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
message.pendingEpochs.push(reader.uint64());
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
default:
|
|
219
|
+
reader.skipType(tag & 7);
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return message;
|
|
224
|
+
},
|
|
225
|
+
fromPartial(object) {
|
|
226
|
+
const message = createBaseRaffleCleanupQueue();
|
|
227
|
+
message.pendingEpochs = object.pendingEpochs?.map(e => BigInt(e.toString())) || [];
|
|
228
|
+
return message;
|
|
229
|
+
},
|
|
230
|
+
fromAmino(object) {
|
|
231
|
+
const message = createBaseRaffleCleanupQueue();
|
|
232
|
+
message.pendingEpochs = object.pending_epochs?.map(e => BigInt(e)) || [];
|
|
233
|
+
return message;
|
|
234
|
+
},
|
|
235
|
+
toAmino(message) {
|
|
236
|
+
const obj = {};
|
|
237
|
+
if (message.pendingEpochs) {
|
|
238
|
+
obj.pending_epochs = message.pendingEpochs.map(e => e.toString());
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
obj.pending_epochs = message.pendingEpochs;
|
|
242
|
+
}
|
|
243
|
+
return obj;
|
|
244
|
+
},
|
|
245
|
+
fromAminoMsg(object) {
|
|
246
|
+
return RaffleCleanupQueue.fromAmino(object.value);
|
|
247
|
+
},
|
|
248
|
+
fromProtoMsg(message) {
|
|
249
|
+
return RaffleCleanupQueue.decode(message.value);
|
|
250
|
+
},
|
|
251
|
+
toProto(message) {
|
|
252
|
+
return RaffleCleanupQueue.encode(message).finish();
|
|
253
|
+
},
|
|
254
|
+
toProtoMsg(message) {
|
|
255
|
+
return {
|
|
256
|
+
typeUrl: "/bze.burner.RaffleCleanupQueue",
|
|
257
|
+
value: RaffleCleanupQueue.encode(message).finish()
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
registerTypeUrl() { }
|
|
261
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { BurnedCoins } from "./burned_coins";
|
|
3
|
+
import { BurnedCoins, PeriodicBurnQueue, RaffleCleanupQueue } from "./burned_coins";
|
|
4
4
|
import { Raffle, RaffleWinner, RaffleParticipant } from "./raffle";
|
|
5
5
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
6
6
|
import { GlobalDecoderRegistry } from "../../registry";
|
|
@@ -11,7 +11,9 @@ function createBaseGenesisState() {
|
|
|
11
11
|
raffleList: [],
|
|
12
12
|
raffleWinnersList: [],
|
|
13
13
|
raffleParticipantsList: [],
|
|
14
|
-
raffleParticipantCounter: BigInt(0)
|
|
14
|
+
raffleParticipantCounter: BigInt(0),
|
|
15
|
+
periodicBurnQueue: undefined,
|
|
16
|
+
raffleCleanupQueue: undefined
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
@@ -50,6 +52,12 @@ export const GenesisState = {
|
|
|
50
52
|
if (message.raffleParticipantCounter !== BigInt(0)) {
|
|
51
53
|
writer.uint32(48).uint64(message.raffleParticipantCounter);
|
|
52
54
|
}
|
|
55
|
+
if (message.periodicBurnQueue !== undefined) {
|
|
56
|
+
PeriodicBurnQueue.encode(message.periodicBurnQueue, writer.uint32(58).fork()).ldelim();
|
|
57
|
+
}
|
|
58
|
+
if (message.raffleCleanupQueue !== undefined) {
|
|
59
|
+
RaffleCleanupQueue.encode(message.raffleCleanupQueue, writer.uint32(66).fork()).ldelim();
|
|
60
|
+
}
|
|
53
61
|
return writer;
|
|
54
62
|
},
|
|
55
63
|
decode(input, length) {
|
|
@@ -77,6 +85,12 @@ export const GenesisState = {
|
|
|
77
85
|
case 6:
|
|
78
86
|
message.raffleParticipantCounter = reader.uint64();
|
|
79
87
|
break;
|
|
88
|
+
case 7:
|
|
89
|
+
message.periodicBurnQueue = PeriodicBurnQueue.decode(reader, reader.uint32());
|
|
90
|
+
break;
|
|
91
|
+
case 8:
|
|
92
|
+
message.raffleCleanupQueue = RaffleCleanupQueue.decode(reader, reader.uint32());
|
|
93
|
+
break;
|
|
80
94
|
default:
|
|
81
95
|
reader.skipType(tag & 7);
|
|
82
96
|
break;
|
|
@@ -92,6 +106,8 @@ export const GenesisState = {
|
|
|
92
106
|
message.raffleWinnersList = object.raffleWinnersList?.map(e => RaffleWinner.fromPartial(e)) || [];
|
|
93
107
|
message.raffleParticipantsList = object.raffleParticipantsList?.map(e => RaffleParticipant.fromPartial(e)) || [];
|
|
94
108
|
message.raffleParticipantCounter = object.raffleParticipantCounter !== undefined && object.raffleParticipantCounter !== null ? BigInt(object.raffleParticipantCounter.toString()) : BigInt(0);
|
|
109
|
+
message.periodicBurnQueue = object.periodicBurnQueue !== undefined && object.periodicBurnQueue !== null ? PeriodicBurnQueue.fromPartial(object.periodicBurnQueue) : undefined;
|
|
110
|
+
message.raffleCleanupQueue = object.raffleCleanupQueue !== undefined && object.raffleCleanupQueue !== null ? RaffleCleanupQueue.fromPartial(object.raffleCleanupQueue) : undefined;
|
|
95
111
|
return message;
|
|
96
112
|
},
|
|
97
113
|
fromAmino(object) {
|
|
@@ -106,6 +122,12 @@ export const GenesisState = {
|
|
|
106
122
|
if (object.raffle_participant_counter !== undefined && object.raffle_participant_counter !== null) {
|
|
107
123
|
message.raffleParticipantCounter = BigInt(object.raffle_participant_counter);
|
|
108
124
|
}
|
|
125
|
+
if (object.periodic_burn_queue !== undefined && object.periodic_burn_queue !== null) {
|
|
126
|
+
message.periodicBurnQueue = PeriodicBurnQueue.fromAmino(object.periodic_burn_queue);
|
|
127
|
+
}
|
|
128
|
+
if (object.raffle_cleanup_queue !== undefined && object.raffle_cleanup_queue !== null) {
|
|
129
|
+
message.raffleCleanupQueue = RaffleCleanupQueue.fromAmino(object.raffle_cleanup_queue);
|
|
130
|
+
}
|
|
109
131
|
return message;
|
|
110
132
|
},
|
|
111
133
|
toAmino(message) {
|
|
@@ -136,6 +158,8 @@ export const GenesisState = {
|
|
|
136
158
|
obj.raffle_participants_list = message.raffleParticipantsList;
|
|
137
159
|
}
|
|
138
160
|
obj.raffle_participant_counter = message.raffleParticipantCounter ? message.raffleParticipantCounter?.toString() : "0";
|
|
161
|
+
obj.periodic_burn_queue = message.periodicBurnQueue ? PeriodicBurnQueue.toAmino(message.periodicBurnQueue) : undefined;
|
|
162
|
+
obj.raffle_cleanup_queue = message.raffleCleanupQueue ? RaffleCleanupQueue.toAmino(message.raffleCleanupQueue) : undefined;
|
|
139
163
|
return obj;
|
|
140
164
|
},
|
|
141
165
|
fromAminoMsg(object) {
|
|
@@ -162,5 +186,7 @@ export const GenesisState = {
|
|
|
162
186
|
Raffle.registerTypeUrl();
|
|
163
187
|
RaffleWinner.registerTypeUrl();
|
|
164
188
|
RaffleParticipant.registerTypeUrl();
|
|
189
|
+
PeriodicBurnQueue.registerTypeUrl();
|
|
190
|
+
RaffleCleanupQueue.registerTypeUrl();
|
|
165
191
|
}
|
|
166
192
|
};
|
|
@@ -730,3 +730,190 @@ export const MsgJoinRaffleResponse = {
|
|
|
730
730
|
},
|
|
731
731
|
registerTypeUrl() { }
|
|
732
732
|
};
|
|
733
|
+
function createBaseMsgMoveIbcLockedCoins() {
|
|
734
|
+
return {
|
|
735
|
+
creator: "",
|
|
736
|
+
denom: ""
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* @name MsgMoveIbcLockedCoins
|
|
741
|
+
* @package bze.burner
|
|
742
|
+
* @see proto type: bze.burner.MsgMoveIbcLockedCoins
|
|
743
|
+
*/
|
|
744
|
+
export const MsgMoveIbcLockedCoins = {
|
|
745
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoins",
|
|
746
|
+
aminoType: "bze/x/burner/MsgMoveIbcLockedCoins",
|
|
747
|
+
is(o) {
|
|
748
|
+
return o && (o.$typeUrl === MsgMoveIbcLockedCoins.typeUrl || typeof o.creator === "string" && typeof o.denom === "string");
|
|
749
|
+
},
|
|
750
|
+
isSDK(o) {
|
|
751
|
+
return o && (o.$typeUrl === MsgMoveIbcLockedCoins.typeUrl || typeof o.creator === "string" && typeof o.denom === "string");
|
|
752
|
+
},
|
|
753
|
+
isAmino(o) {
|
|
754
|
+
return o && (o.$typeUrl === MsgMoveIbcLockedCoins.typeUrl || typeof o.creator === "string" && typeof o.denom === "string");
|
|
755
|
+
},
|
|
756
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
757
|
+
if (message.creator !== "") {
|
|
758
|
+
writer.uint32(10).string(message.creator);
|
|
759
|
+
}
|
|
760
|
+
if (message.denom !== "") {
|
|
761
|
+
writer.uint32(18).string(message.denom);
|
|
762
|
+
}
|
|
763
|
+
return writer;
|
|
764
|
+
},
|
|
765
|
+
decode(input, length) {
|
|
766
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
767
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
768
|
+
const message = createBaseMsgMoveIbcLockedCoins();
|
|
769
|
+
while (reader.pos < end) {
|
|
770
|
+
const tag = reader.uint32();
|
|
771
|
+
switch (tag >>> 3) {
|
|
772
|
+
case 1:
|
|
773
|
+
message.creator = reader.string();
|
|
774
|
+
break;
|
|
775
|
+
case 2:
|
|
776
|
+
message.denom = reader.string();
|
|
777
|
+
break;
|
|
778
|
+
default:
|
|
779
|
+
reader.skipType(tag & 7);
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
return message;
|
|
784
|
+
},
|
|
785
|
+
fromPartial(object) {
|
|
786
|
+
const message = createBaseMsgMoveIbcLockedCoins();
|
|
787
|
+
message.creator = object.creator ?? "";
|
|
788
|
+
message.denom = object.denom ?? "";
|
|
789
|
+
return message;
|
|
790
|
+
},
|
|
791
|
+
fromAmino(object) {
|
|
792
|
+
const message = createBaseMsgMoveIbcLockedCoins();
|
|
793
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
794
|
+
message.creator = object.creator;
|
|
795
|
+
}
|
|
796
|
+
if (object.denom !== undefined && object.denom !== null) {
|
|
797
|
+
message.denom = object.denom;
|
|
798
|
+
}
|
|
799
|
+
return message;
|
|
800
|
+
},
|
|
801
|
+
toAmino(message) {
|
|
802
|
+
const obj = {};
|
|
803
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
804
|
+
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
805
|
+
return obj;
|
|
806
|
+
},
|
|
807
|
+
fromAminoMsg(object) {
|
|
808
|
+
return MsgMoveIbcLockedCoins.fromAmino(object.value);
|
|
809
|
+
},
|
|
810
|
+
toAminoMsg(message) {
|
|
811
|
+
return {
|
|
812
|
+
type: "bze/x/burner/MsgMoveIbcLockedCoins",
|
|
813
|
+
value: MsgMoveIbcLockedCoins.toAmino(message)
|
|
814
|
+
};
|
|
815
|
+
},
|
|
816
|
+
fromProtoMsg(message) {
|
|
817
|
+
return MsgMoveIbcLockedCoins.decode(message.value);
|
|
818
|
+
},
|
|
819
|
+
toProto(message) {
|
|
820
|
+
return MsgMoveIbcLockedCoins.encode(message).finish();
|
|
821
|
+
},
|
|
822
|
+
toProtoMsg(message) {
|
|
823
|
+
return {
|
|
824
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoins",
|
|
825
|
+
value: MsgMoveIbcLockedCoins.encode(message).finish()
|
|
826
|
+
};
|
|
827
|
+
},
|
|
828
|
+
registerTypeUrl() { }
|
|
829
|
+
};
|
|
830
|
+
function createBaseMsgMoveIbcLockedCoinsResponse() {
|
|
831
|
+
return {
|
|
832
|
+
added: "",
|
|
833
|
+
refunded: ""
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* @name MsgMoveIbcLockedCoinsResponse
|
|
838
|
+
* @package bze.burner
|
|
839
|
+
* @see proto type: bze.burner.MsgMoveIbcLockedCoinsResponse
|
|
840
|
+
*/
|
|
841
|
+
export const MsgMoveIbcLockedCoinsResponse = {
|
|
842
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoinsResponse",
|
|
843
|
+
is(o) {
|
|
844
|
+
return o && (o.$typeUrl === MsgMoveIbcLockedCoinsResponse.typeUrl || typeof o.added === "string" && typeof o.refunded === "string");
|
|
845
|
+
},
|
|
846
|
+
isSDK(o) {
|
|
847
|
+
return o && (o.$typeUrl === MsgMoveIbcLockedCoinsResponse.typeUrl || typeof o.added === "string" && typeof o.refunded === "string");
|
|
848
|
+
},
|
|
849
|
+
isAmino(o) {
|
|
850
|
+
return o && (o.$typeUrl === MsgMoveIbcLockedCoinsResponse.typeUrl || typeof o.added === "string" && typeof o.refunded === "string");
|
|
851
|
+
},
|
|
852
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
853
|
+
if (message.added !== "") {
|
|
854
|
+
writer.uint32(10).string(message.added);
|
|
855
|
+
}
|
|
856
|
+
if (message.refunded !== "") {
|
|
857
|
+
writer.uint32(18).string(message.refunded);
|
|
858
|
+
}
|
|
859
|
+
return writer;
|
|
860
|
+
},
|
|
861
|
+
decode(input, length) {
|
|
862
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
863
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
864
|
+
const message = createBaseMsgMoveIbcLockedCoinsResponse();
|
|
865
|
+
while (reader.pos < end) {
|
|
866
|
+
const tag = reader.uint32();
|
|
867
|
+
switch (tag >>> 3) {
|
|
868
|
+
case 1:
|
|
869
|
+
message.added = reader.string();
|
|
870
|
+
break;
|
|
871
|
+
case 2:
|
|
872
|
+
message.refunded = reader.string();
|
|
873
|
+
break;
|
|
874
|
+
default:
|
|
875
|
+
reader.skipType(tag & 7);
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
return message;
|
|
880
|
+
},
|
|
881
|
+
fromPartial(object) {
|
|
882
|
+
const message = createBaseMsgMoveIbcLockedCoinsResponse();
|
|
883
|
+
message.added = object.added ?? "";
|
|
884
|
+
message.refunded = object.refunded ?? "";
|
|
885
|
+
return message;
|
|
886
|
+
},
|
|
887
|
+
fromAmino(object) {
|
|
888
|
+
const message = createBaseMsgMoveIbcLockedCoinsResponse();
|
|
889
|
+
if (object.added !== undefined && object.added !== null) {
|
|
890
|
+
message.added = object.added;
|
|
891
|
+
}
|
|
892
|
+
if (object.refunded !== undefined && object.refunded !== null) {
|
|
893
|
+
message.refunded = object.refunded;
|
|
894
|
+
}
|
|
895
|
+
return message;
|
|
896
|
+
},
|
|
897
|
+
toAmino(message) {
|
|
898
|
+
const obj = {};
|
|
899
|
+
obj.added = message.added === "" ? undefined : message.added;
|
|
900
|
+
obj.refunded = message.refunded === "" ? undefined : message.refunded;
|
|
901
|
+
return obj;
|
|
902
|
+
},
|
|
903
|
+
fromAminoMsg(object) {
|
|
904
|
+
return MsgMoveIbcLockedCoinsResponse.fromAmino(object.value);
|
|
905
|
+
},
|
|
906
|
+
fromProtoMsg(message) {
|
|
907
|
+
return MsgMoveIbcLockedCoinsResponse.decode(message.value);
|
|
908
|
+
},
|
|
909
|
+
toProto(message) {
|
|
910
|
+
return MsgMoveIbcLockedCoinsResponse.encode(message).finish();
|
|
911
|
+
},
|
|
912
|
+
toProtoMsg(message) {
|
|
913
|
+
return {
|
|
914
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoinsResponse",
|
|
915
|
+
value: MsgMoveIbcLockedCoinsResponse.encode(message).finish()
|
|
916
|
+
};
|
|
917
|
+
},
|
|
918
|
+
registerTypeUrl() { }
|
|
919
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgFundBurner, MsgStartRaffle, MsgJoinRaffle } from "./tx";
|
|
2
|
-
export const registry = [["/bze.burner.MsgUpdateParams", MsgUpdateParams], ["/bze.burner.MsgFundBurner", MsgFundBurner], ["/bze.burner.MsgStartRaffle", MsgStartRaffle], ["/bze.burner.MsgJoinRaffle", MsgJoinRaffle]];
|
|
1
|
+
import { MsgUpdateParams, MsgFundBurner, MsgStartRaffle, MsgJoinRaffle, MsgMoveIbcLockedCoins } from "./tx";
|
|
2
|
+
export const registry = [["/bze.burner.MsgUpdateParams", MsgUpdateParams], ["/bze.burner.MsgFundBurner", MsgFundBurner], ["/bze.burner.MsgStartRaffle", MsgStartRaffle], ["/bze.burner.MsgJoinRaffle", MsgJoinRaffle], ["/bze.burner.MsgMoveIbcLockedCoins", MsgMoveIbcLockedCoins]];
|
|
3
3
|
export const MessageComposer = {
|
|
4
4
|
encoded: {
|
|
5
5
|
updateParams(value) {
|
|
@@ -25,6 +25,12 @@ export const MessageComposer = {
|
|
|
25
25
|
typeUrl: "/bze.burner.MsgJoinRaffle",
|
|
26
26
|
value: MsgJoinRaffle.encode(value).finish()
|
|
27
27
|
};
|
|
28
|
+
},
|
|
29
|
+
moveIbcLockedCoins(value) {
|
|
30
|
+
return {
|
|
31
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoins",
|
|
32
|
+
value: MsgMoveIbcLockedCoins.encode(value).finish()
|
|
33
|
+
};
|
|
28
34
|
}
|
|
29
35
|
},
|
|
30
36
|
withTypeUrl: {
|
|
@@ -51,6 +57,12 @@ export const MessageComposer = {
|
|
|
51
57
|
typeUrl: "/bze.burner.MsgJoinRaffle",
|
|
52
58
|
value
|
|
53
59
|
};
|
|
60
|
+
},
|
|
61
|
+
moveIbcLockedCoins(value) {
|
|
62
|
+
return {
|
|
63
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoins",
|
|
64
|
+
value
|
|
65
|
+
};
|
|
54
66
|
}
|
|
55
67
|
},
|
|
56
68
|
fromPartial: {
|
|
@@ -77,6 +89,12 @@ export const MessageComposer = {
|
|
|
77
89
|
typeUrl: "/bze.burner.MsgJoinRaffle",
|
|
78
90
|
value: MsgJoinRaffle.fromPartial(value)
|
|
79
91
|
};
|
|
92
|
+
},
|
|
93
|
+
moveIbcLockedCoins(value) {
|
|
94
|
+
return {
|
|
95
|
+
typeUrl: "/bze.burner.MsgMoveIbcLockedCoins",
|
|
96
|
+
value: MsgMoveIbcLockedCoins.fromPartial(value)
|
|
97
|
+
};
|
|
80
98
|
}
|
|
81
99
|
}
|
|
82
100
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { buildTx } from "../../helper-func-types";
|
|
3
|
-
import { MsgUpdateParams, MsgFundBurner, MsgStartRaffle, MsgJoinRaffle } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgFundBurner, MsgStartRaffle, MsgJoinRaffle, MsgMoveIbcLockedCoins } from "./tx";
|
|
4
4
|
/**
|
|
5
5
|
* UpdateParams defines a (governance) operation for updating the module
|
|
6
6
|
* parameters. The authority defaults to the x/gov module account.
|
|
@@ -35,3 +35,11 @@ export const startRaffle = buildTx({
|
|
|
35
35
|
export const joinRaffle = buildTx({
|
|
36
36
|
msg: MsgJoinRaffle
|
|
37
37
|
});
|
|
38
|
+
/**
|
|
39
|
+
* @name moveIbcLockedCoins
|
|
40
|
+
* @package bze.burner
|
|
41
|
+
* @see proto service: bze.burner.MoveIbcLockedCoins
|
|
42
|
+
*/
|
|
43
|
+
export const moveIbcLockedCoins = buildTx({
|
|
44
|
+
msg: MsgMoveIbcLockedCoins
|
|
45
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { StakingReward, TradingReward, StakingRewardParticipant, PendingUnlockParticipant, TradingRewardLeaderboard, TradingRewardCandidate, MarketIdTradingRewardId, TradingRewardExpiration } from "./store";
|
|
3
|
+
import { StakingReward, TradingReward, StakingRewardParticipant, PendingUnlockParticipant, TradingRewardLeaderboard, TradingRewardCandidate, MarketIdTradingRewardId, TradingRewardExpiration, UnlockParticipantsQueue, StakingRewardsDistributionQueue, TradingRewardExpirationQueue } from "./store";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
5
5
|
import { GlobalDecoderRegistry } from "../../registry";
|
|
6
6
|
function createBaseGenesisState() {
|
|
@@ -17,7 +17,10 @@ function createBaseGenesisState() {
|
|
|
17
17
|
tradingRewardCandidateList: [],
|
|
18
18
|
marketIdTradingRewardIdList: [],
|
|
19
19
|
pendingTradingRewardExpirationList: [],
|
|
20
|
-
activeTradingRewardExpirationList: []
|
|
20
|
+
activeTradingRewardExpirationList: [],
|
|
21
|
+
unlockParticipantsQueue: undefined,
|
|
22
|
+
stakingRewardsDistributionQueue: undefined,
|
|
23
|
+
tradingRewardExpirationQueue: undefined
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
@@ -77,6 +80,15 @@ export const GenesisState = {
|
|
|
77
80
|
for (const v of message.activeTradingRewardExpirationList) {
|
|
78
81
|
TradingRewardExpiration.encode(v, writer.uint32(106).fork()).ldelim();
|
|
79
82
|
}
|
|
83
|
+
if (message.unlockParticipantsQueue !== undefined) {
|
|
84
|
+
UnlockParticipantsQueue.encode(message.unlockParticipantsQueue, writer.uint32(114).fork()).ldelim();
|
|
85
|
+
}
|
|
86
|
+
if (message.stakingRewardsDistributionQueue !== undefined) {
|
|
87
|
+
StakingRewardsDistributionQueue.encode(message.stakingRewardsDistributionQueue, writer.uint32(122).fork()).ldelim();
|
|
88
|
+
}
|
|
89
|
+
if (message.tradingRewardExpirationQueue !== undefined) {
|
|
90
|
+
TradingRewardExpirationQueue.encode(message.tradingRewardExpirationQueue, writer.uint32(130).fork()).ldelim();
|
|
91
|
+
}
|
|
80
92
|
return writer;
|
|
81
93
|
},
|
|
82
94
|
decode(input, length) {
|
|
@@ -125,6 +137,15 @@ export const GenesisState = {
|
|
|
125
137
|
case 13:
|
|
126
138
|
message.activeTradingRewardExpirationList.push(TradingRewardExpiration.decode(reader, reader.uint32()));
|
|
127
139
|
break;
|
|
140
|
+
case 14:
|
|
141
|
+
message.unlockParticipantsQueue = UnlockParticipantsQueue.decode(reader, reader.uint32());
|
|
142
|
+
break;
|
|
143
|
+
case 15:
|
|
144
|
+
message.stakingRewardsDistributionQueue = StakingRewardsDistributionQueue.decode(reader, reader.uint32());
|
|
145
|
+
break;
|
|
146
|
+
case 16:
|
|
147
|
+
message.tradingRewardExpirationQueue = TradingRewardExpirationQueue.decode(reader, reader.uint32());
|
|
148
|
+
break;
|
|
128
149
|
default:
|
|
129
150
|
reader.skipType(tag & 7);
|
|
130
151
|
break;
|
|
@@ -147,6 +168,9 @@ export const GenesisState = {
|
|
|
147
168
|
message.marketIdTradingRewardIdList = object.marketIdTradingRewardIdList?.map(e => MarketIdTradingRewardId.fromPartial(e)) || [];
|
|
148
169
|
message.pendingTradingRewardExpirationList = object.pendingTradingRewardExpirationList?.map(e => TradingRewardExpiration.fromPartial(e)) || [];
|
|
149
170
|
message.activeTradingRewardExpirationList = object.activeTradingRewardExpirationList?.map(e => TradingRewardExpiration.fromPartial(e)) || [];
|
|
171
|
+
message.unlockParticipantsQueue = object.unlockParticipantsQueue !== undefined && object.unlockParticipantsQueue !== null ? UnlockParticipantsQueue.fromPartial(object.unlockParticipantsQueue) : undefined;
|
|
172
|
+
message.stakingRewardsDistributionQueue = object.stakingRewardsDistributionQueue !== undefined && object.stakingRewardsDistributionQueue !== null ? StakingRewardsDistributionQueue.fromPartial(object.stakingRewardsDistributionQueue) : undefined;
|
|
173
|
+
message.tradingRewardExpirationQueue = object.tradingRewardExpirationQueue !== undefined && object.tradingRewardExpirationQueue !== null ? TradingRewardExpirationQueue.fromPartial(object.tradingRewardExpirationQueue) : undefined;
|
|
150
174
|
return message;
|
|
151
175
|
},
|
|
152
176
|
fromAmino(object) {
|
|
@@ -170,6 +194,15 @@ export const GenesisState = {
|
|
|
170
194
|
message.marketIdTradingRewardIdList = object.market_id_trading_reward_id_list?.map(e => MarketIdTradingRewardId.fromAmino(e)) || [];
|
|
171
195
|
message.pendingTradingRewardExpirationList = object.pending_trading_reward_expiration_list?.map(e => TradingRewardExpiration.fromAmino(e)) || [];
|
|
172
196
|
message.activeTradingRewardExpirationList = object.active_trading_reward_expiration_list?.map(e => TradingRewardExpiration.fromAmino(e)) || [];
|
|
197
|
+
if (object.unlock_participants_queue !== undefined && object.unlock_participants_queue !== null) {
|
|
198
|
+
message.unlockParticipantsQueue = UnlockParticipantsQueue.fromAmino(object.unlock_participants_queue);
|
|
199
|
+
}
|
|
200
|
+
if (object.staking_rewards_distribution_queue !== undefined && object.staking_rewards_distribution_queue !== null) {
|
|
201
|
+
message.stakingRewardsDistributionQueue = StakingRewardsDistributionQueue.fromAmino(object.staking_rewards_distribution_queue);
|
|
202
|
+
}
|
|
203
|
+
if (object.trading_reward_expiration_queue !== undefined && object.trading_reward_expiration_queue !== null) {
|
|
204
|
+
message.tradingRewardExpirationQueue = TradingRewardExpirationQueue.fromAmino(object.trading_reward_expiration_queue);
|
|
205
|
+
}
|
|
173
206
|
return message;
|
|
174
207
|
},
|
|
175
208
|
toAmino(message) {
|
|
@@ -237,6 +270,9 @@ export const GenesisState = {
|
|
|
237
270
|
else {
|
|
238
271
|
obj.active_trading_reward_expiration_list = message.activeTradingRewardExpirationList;
|
|
239
272
|
}
|
|
273
|
+
obj.unlock_participants_queue = message.unlockParticipantsQueue ? UnlockParticipantsQueue.toAmino(message.unlockParticipantsQueue) : undefined;
|
|
274
|
+
obj.staking_rewards_distribution_queue = message.stakingRewardsDistributionQueue ? StakingRewardsDistributionQueue.toAmino(message.stakingRewardsDistributionQueue) : undefined;
|
|
275
|
+
obj.trading_reward_expiration_queue = message.tradingRewardExpirationQueue ? TradingRewardExpirationQueue.toAmino(message.tradingRewardExpirationQueue) : undefined;
|
|
240
276
|
return obj;
|
|
241
277
|
},
|
|
242
278
|
fromAminoMsg(object) {
|
|
@@ -267,5 +303,8 @@ export const GenesisState = {
|
|
|
267
303
|
TradingRewardCandidate.registerTypeUrl();
|
|
268
304
|
MarketIdTradingRewardId.registerTypeUrl();
|
|
269
305
|
TradingRewardExpiration.registerTypeUrl();
|
|
306
|
+
UnlockParticipantsQueue.registerTypeUrl();
|
|
307
|
+
StakingRewardsDistributionQueue.registerTypeUrl();
|
|
308
|
+
TradingRewardExpirationQueue.registerTypeUrl();
|
|
270
309
|
}
|
|
271
310
|
};
|
|
@@ -5,7 +5,8 @@ import { GlobalDecoderRegistry } from "../../registry";
|
|
|
5
5
|
function createBaseParams() {
|
|
6
6
|
return {
|
|
7
7
|
createStakingRewardFee: Coin.fromPartial({}),
|
|
8
|
-
createTradingRewardFee: Coin.fromPartial({})
|
|
8
|
+
createTradingRewardFee: Coin.fromPartial({}),
|
|
9
|
+
extraGasForExitStake: BigInt(0)
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
@@ -18,13 +19,13 @@ export const Params = {
|
|
|
18
19
|
typeUrl: "/bze.rewards.Params",
|
|
19
20
|
aminoType: "bze/x/rewards/Params",
|
|
20
21
|
is(o) {
|
|
21
|
-
return o && (o.$typeUrl === Params.typeUrl || Coin.is(o.createStakingRewardFee) && Coin.is(o.createTradingRewardFee));
|
|
22
|
+
return o && (o.$typeUrl === Params.typeUrl || Coin.is(o.createStakingRewardFee) && Coin.is(o.createTradingRewardFee) && typeof o.extraGasForExitStake === "bigint");
|
|
22
23
|
},
|
|
23
24
|
isSDK(o) {
|
|
24
|
-
return o && (o.$typeUrl === Params.typeUrl || Coin.isSDK(o.createStakingRewardFee) && Coin.isSDK(o.createTradingRewardFee));
|
|
25
|
+
return o && (o.$typeUrl === Params.typeUrl || Coin.isSDK(o.createStakingRewardFee) && Coin.isSDK(o.createTradingRewardFee) && typeof o.extraGasForExitStake === "bigint");
|
|
25
26
|
},
|
|
26
27
|
isAmino(o) {
|
|
27
|
-
return o && (o.$typeUrl === Params.typeUrl || Coin.isAmino(o.createStakingRewardFee) && Coin.isAmino(o.createTradingRewardFee));
|
|
28
|
+
return o && (o.$typeUrl === Params.typeUrl || Coin.isAmino(o.createStakingRewardFee) && Coin.isAmino(o.createTradingRewardFee) && typeof o.extraGasForExitStake === "bigint");
|
|
28
29
|
},
|
|
29
30
|
encode(message, writer = BinaryWriter.create()) {
|
|
30
31
|
if (message.createStakingRewardFee !== undefined) {
|
|
@@ -33,6 +34,9 @@ export const Params = {
|
|
|
33
34
|
if (message.createTradingRewardFee !== undefined) {
|
|
34
35
|
Coin.encode(message.createTradingRewardFee, writer.uint32(18).fork()).ldelim();
|
|
35
36
|
}
|
|
37
|
+
if (message.extraGasForExitStake !== BigInt(0)) {
|
|
38
|
+
writer.uint32(24).uint64(message.extraGasForExitStake);
|
|
39
|
+
}
|
|
36
40
|
return writer;
|
|
37
41
|
},
|
|
38
42
|
decode(input, length) {
|
|
@@ -48,6 +52,9 @@ export const Params = {
|
|
|
48
52
|
case 2:
|
|
49
53
|
message.createTradingRewardFee = Coin.decode(reader, reader.uint32());
|
|
50
54
|
break;
|
|
55
|
+
case 3:
|
|
56
|
+
message.extraGasForExitStake = reader.uint64();
|
|
57
|
+
break;
|
|
51
58
|
default:
|
|
52
59
|
reader.skipType(tag & 7);
|
|
53
60
|
break;
|
|
@@ -59,6 +66,7 @@ export const Params = {
|
|
|
59
66
|
const message = createBaseParams();
|
|
60
67
|
message.createStakingRewardFee = object.createStakingRewardFee !== undefined && object.createStakingRewardFee !== null ? Coin.fromPartial(object.createStakingRewardFee) : undefined;
|
|
61
68
|
message.createTradingRewardFee = object.createTradingRewardFee !== undefined && object.createTradingRewardFee !== null ? Coin.fromPartial(object.createTradingRewardFee) : undefined;
|
|
69
|
+
message.extraGasForExitStake = object.extraGasForExitStake !== undefined && object.extraGasForExitStake !== null ? BigInt(object.extraGasForExitStake.toString()) : BigInt(0);
|
|
62
70
|
return message;
|
|
63
71
|
},
|
|
64
72
|
fromAmino(object) {
|
|
@@ -69,12 +77,16 @@ export const Params = {
|
|
|
69
77
|
if (object.createTradingRewardFee !== undefined && object.createTradingRewardFee !== null) {
|
|
70
78
|
message.createTradingRewardFee = Coin.fromAmino(object.createTradingRewardFee);
|
|
71
79
|
}
|
|
80
|
+
if (object.extraGasForExitStake !== undefined && object.extraGasForExitStake !== null) {
|
|
81
|
+
message.extraGasForExitStake = BigInt(object.extraGasForExitStake);
|
|
82
|
+
}
|
|
72
83
|
return message;
|
|
73
84
|
},
|
|
74
85
|
toAmino(message) {
|
|
75
86
|
const obj = {};
|
|
76
87
|
obj.createStakingRewardFee = message.createStakingRewardFee ? Coin.toAmino(message.createStakingRewardFee) : undefined;
|
|
77
88
|
obj.createTradingRewardFee = message.createTradingRewardFee ? Coin.toAmino(message.createTradingRewardFee) : undefined;
|
|
89
|
+
obj.extraGasForExitStake = message.extraGasForExitStake !== BigInt(0) ? message.extraGasForExitStake?.toString() : undefined;
|
|
78
90
|
return obj;
|
|
79
91
|
},
|
|
80
92
|
fromAminoMsg(object) {
|