decentralcardgame-cardchain-client-ts 0.0.3 → 0.0.4
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/DecentralCardGame.cardchain.cardchain/module.js +1044 -0
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -70
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +30 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +11 -17
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +1 -217
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +166 -8
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +7 -65
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/params.js +30 -10
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/tx.js +4137 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -21
- package/client.js +2 -1
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.distribution.v1beta1/module.js +24 -24
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1/module.js +31 -31
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1beta1/module.js +22 -22
- package/cosmos.gov.v1beta1/registry.js +2 -2
- package/cosmos.group.v1/module.js +102 -102
- package/cosmos.group.v1/registry.js +14 -14
- package/cosmos.group.v1/rest.js +15 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.js +110 -0
- package/cosmos.staking.v1beta1/module.js +40 -40
- package/cosmos.staking.v1beta1/registry.js +8 -8
- package/cosmos.vesting.v1beta1/module.js +16 -16
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.js +9 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +266 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +24 -6
- package/ibc.core.client.v1/rest.js +14 -14
- package/ibc.core.connection.v1/rest.js +14 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +83 -1
- package/package.json +2 -2
- package/tsconfig.json +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Coin } from "../../cosmos/base/v1beta1/coin";
|
|
4
5
|
import { responseFromJSON, responseToJSON } from "./council";
|
|
5
6
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
6
7
|
export var Outcome;
|
|
@@ -141,15 +142,15 @@ export const MsgCreateuserResponse = {
|
|
|
141
142
|
},
|
|
142
143
|
};
|
|
143
144
|
function createBaseMsgBuyCardScheme() {
|
|
144
|
-
return { creator: "", bid:
|
|
145
|
+
return { creator: "", bid: undefined };
|
|
145
146
|
}
|
|
146
147
|
export const MsgBuyCardScheme = {
|
|
147
148
|
encode(message, writer = _m0.Writer.create()) {
|
|
148
149
|
if (message.creator !== "") {
|
|
149
150
|
writer.uint32(10).string(message.creator);
|
|
150
151
|
}
|
|
151
|
-
if (message.bid !==
|
|
152
|
-
writer.uint32(18).
|
|
152
|
+
if (message.bid !== undefined) {
|
|
153
|
+
Coin.encode(message.bid, writer.uint32(18).fork()).ldelim();
|
|
153
154
|
}
|
|
154
155
|
return writer;
|
|
155
156
|
},
|
|
@@ -164,7 +165,7 @@ export const MsgBuyCardScheme = {
|
|
|
164
165
|
message.creator = reader.string();
|
|
165
166
|
break;
|
|
166
167
|
case 2:
|
|
167
|
-
message.bid = reader.
|
|
168
|
+
message.bid = Coin.decode(reader, reader.uint32());
|
|
168
169
|
break;
|
|
169
170
|
default:
|
|
170
171
|
reader.skipType(tag & 7);
|
|
@@ -176,19 +177,19 @@ export const MsgBuyCardScheme = {
|
|
|
176
177
|
fromJSON(object) {
|
|
177
178
|
return {
|
|
178
179
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
179
|
-
bid: isSet(object.bid) ?
|
|
180
|
+
bid: isSet(object.bid) ? Coin.fromJSON(object.bid) : undefined,
|
|
180
181
|
};
|
|
181
182
|
},
|
|
182
183
|
toJSON(message) {
|
|
183
184
|
const obj = {};
|
|
184
185
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
185
|
-
message.bid !== undefined && (obj.bid = message.bid);
|
|
186
|
+
message.bid !== undefined && (obj.bid = message.bid ? Coin.toJSON(message.bid) : undefined);
|
|
186
187
|
return obj;
|
|
187
188
|
},
|
|
188
189
|
fromPartial(object) {
|
|
189
190
|
const message = createBaseMsgBuyCardScheme();
|
|
190
191
|
message.creator = object.creator ?? "";
|
|
191
|
-
message.bid = object.bid
|
|
192
|
+
message.bid = (object.bid !== undefined && object.bid !== null) ? Coin.fromPartial(object.bid) : undefined;
|
|
192
193
|
return message;
|
|
193
194
|
},
|
|
194
195
|
};
|
|
@@ -328,7 +329,7 @@ export const MsgVoteCardResponse = {
|
|
|
328
329
|
},
|
|
329
330
|
};
|
|
330
331
|
function createBaseMsgSaveCardContent() {
|
|
331
|
-
return { creator: "", cardId: 0, content: new Uint8Array(), notes: "", artist: "" };
|
|
332
|
+
return { creator: "", cardId: 0, content: new Uint8Array(), notes: "", artist: "", balanceAnchor: false };
|
|
332
333
|
}
|
|
333
334
|
export const MsgSaveCardContent = {
|
|
334
335
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -347,6 +348,9 @@ export const MsgSaveCardContent = {
|
|
|
347
348
|
if (message.artist !== "") {
|
|
348
349
|
writer.uint32(42).string(message.artist);
|
|
349
350
|
}
|
|
351
|
+
if (message.balanceAnchor === true) {
|
|
352
|
+
writer.uint32(48).bool(message.balanceAnchor);
|
|
353
|
+
}
|
|
350
354
|
return writer;
|
|
351
355
|
},
|
|
352
356
|
decode(input, length) {
|
|
@@ -371,6 +375,9 @@ export const MsgSaveCardContent = {
|
|
|
371
375
|
case 5:
|
|
372
376
|
message.artist = reader.string();
|
|
373
377
|
break;
|
|
378
|
+
case 6:
|
|
379
|
+
message.balanceAnchor = reader.bool();
|
|
380
|
+
break;
|
|
374
381
|
default:
|
|
375
382
|
reader.skipType(tag & 7);
|
|
376
383
|
break;
|
|
@@ -385,6 +392,7 @@ export const MsgSaveCardContent = {
|
|
|
385
392
|
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(),
|
|
386
393
|
notes: isSet(object.notes) ? String(object.notes) : "",
|
|
387
394
|
artist: isSet(object.artist) ? String(object.artist) : "",
|
|
395
|
+
balanceAnchor: isSet(object.balanceAnchor) ? Boolean(object.balanceAnchor) : false,
|
|
388
396
|
};
|
|
389
397
|
},
|
|
390
398
|
toJSON(message) {
|
|
@@ -395,6 +403,7 @@ export const MsgSaveCardContent = {
|
|
|
395
403
|
&& (obj.content = base64FromBytes(message.content !== undefined ? message.content : new Uint8Array()));
|
|
396
404
|
message.notes !== undefined && (obj.notes = message.notes);
|
|
397
405
|
message.artist !== undefined && (obj.artist = message.artist);
|
|
406
|
+
message.balanceAnchor !== undefined && (obj.balanceAnchor = message.balanceAnchor);
|
|
398
407
|
return obj;
|
|
399
408
|
},
|
|
400
409
|
fromPartial(object) {
|
|
@@ -404,6 +413,7 @@ export const MsgSaveCardContent = {
|
|
|
404
413
|
message.content = object.content ?? new Uint8Array();
|
|
405
414
|
message.notes = object.notes ?? "";
|
|
406
415
|
message.artist = object.artist ?? "";
|
|
416
|
+
message.balanceAnchor = object.balanceAnchor ?? false;
|
|
407
417
|
return message;
|
|
408
418
|
},
|
|
409
419
|
};
|
|
@@ -3836,6 +3846,148 @@ export const MsgSetUserBiographyResponse = {
|
|
|
3836
3846
|
return message;
|
|
3837
3847
|
},
|
|
3838
3848
|
};
|
|
3849
|
+
function createBaseSingleVote() {
|
|
3850
|
+
return { cardId: 0, voteType: "" };
|
|
3851
|
+
}
|
|
3852
|
+
export const SingleVote = {
|
|
3853
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3854
|
+
if (message.cardId !== 0) {
|
|
3855
|
+
writer.uint32(8).uint64(message.cardId);
|
|
3856
|
+
}
|
|
3857
|
+
if (message.voteType !== "") {
|
|
3858
|
+
writer.uint32(18).string(message.voteType);
|
|
3859
|
+
}
|
|
3860
|
+
return writer;
|
|
3861
|
+
},
|
|
3862
|
+
decode(input, length) {
|
|
3863
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3864
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3865
|
+
const message = createBaseSingleVote();
|
|
3866
|
+
while (reader.pos < end) {
|
|
3867
|
+
const tag = reader.uint32();
|
|
3868
|
+
switch (tag >>> 3) {
|
|
3869
|
+
case 1:
|
|
3870
|
+
message.cardId = longToNumber(reader.uint64());
|
|
3871
|
+
break;
|
|
3872
|
+
case 2:
|
|
3873
|
+
message.voteType = reader.string();
|
|
3874
|
+
break;
|
|
3875
|
+
default:
|
|
3876
|
+
reader.skipType(tag & 7);
|
|
3877
|
+
break;
|
|
3878
|
+
}
|
|
3879
|
+
}
|
|
3880
|
+
return message;
|
|
3881
|
+
},
|
|
3882
|
+
fromJSON(object) {
|
|
3883
|
+
return {
|
|
3884
|
+
cardId: isSet(object.cardId) ? Number(object.cardId) : 0,
|
|
3885
|
+
voteType: isSet(object.voteType) ? String(object.voteType) : "",
|
|
3886
|
+
};
|
|
3887
|
+
},
|
|
3888
|
+
toJSON(message) {
|
|
3889
|
+
const obj = {};
|
|
3890
|
+
message.cardId !== undefined && (obj.cardId = Math.round(message.cardId));
|
|
3891
|
+
message.voteType !== undefined && (obj.voteType = message.voteType);
|
|
3892
|
+
return obj;
|
|
3893
|
+
},
|
|
3894
|
+
fromPartial(object) {
|
|
3895
|
+
const message = createBaseSingleVote();
|
|
3896
|
+
message.cardId = object.cardId ?? 0;
|
|
3897
|
+
message.voteType = object.voteType ?? "";
|
|
3898
|
+
return message;
|
|
3899
|
+
},
|
|
3900
|
+
};
|
|
3901
|
+
function createBaseMsgMultiVoteCard() {
|
|
3902
|
+
return { creator: "", votes: [] };
|
|
3903
|
+
}
|
|
3904
|
+
export const MsgMultiVoteCard = {
|
|
3905
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3906
|
+
if (message.creator !== "") {
|
|
3907
|
+
writer.uint32(10).string(message.creator);
|
|
3908
|
+
}
|
|
3909
|
+
for (const v of message.votes) {
|
|
3910
|
+
SingleVote.encode(v, writer.uint32(18).fork()).ldelim();
|
|
3911
|
+
}
|
|
3912
|
+
return writer;
|
|
3913
|
+
},
|
|
3914
|
+
decode(input, length) {
|
|
3915
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3916
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3917
|
+
const message = createBaseMsgMultiVoteCard();
|
|
3918
|
+
while (reader.pos < end) {
|
|
3919
|
+
const tag = reader.uint32();
|
|
3920
|
+
switch (tag >>> 3) {
|
|
3921
|
+
case 1:
|
|
3922
|
+
message.creator = reader.string();
|
|
3923
|
+
break;
|
|
3924
|
+
case 2:
|
|
3925
|
+
message.votes.push(SingleVote.decode(reader, reader.uint32()));
|
|
3926
|
+
break;
|
|
3927
|
+
default:
|
|
3928
|
+
reader.skipType(tag & 7);
|
|
3929
|
+
break;
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
return message;
|
|
3933
|
+
},
|
|
3934
|
+
fromJSON(object) {
|
|
3935
|
+
return {
|
|
3936
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
3937
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e) => SingleVote.fromJSON(e)) : [],
|
|
3938
|
+
};
|
|
3939
|
+
},
|
|
3940
|
+
toJSON(message) {
|
|
3941
|
+
const obj = {};
|
|
3942
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3943
|
+
if (message.votes) {
|
|
3944
|
+
obj.votes = message.votes.map((e) => e ? SingleVote.toJSON(e) : undefined);
|
|
3945
|
+
}
|
|
3946
|
+
else {
|
|
3947
|
+
obj.votes = [];
|
|
3948
|
+
}
|
|
3949
|
+
return obj;
|
|
3950
|
+
},
|
|
3951
|
+
fromPartial(object) {
|
|
3952
|
+
const message = createBaseMsgMultiVoteCard();
|
|
3953
|
+
message.creator = object.creator ?? "";
|
|
3954
|
+
message.votes = object.votes?.map((e) => SingleVote.fromPartial(e)) || [];
|
|
3955
|
+
return message;
|
|
3956
|
+
},
|
|
3957
|
+
};
|
|
3958
|
+
function createBaseMsgMultiVoteCardResponse() {
|
|
3959
|
+
return {};
|
|
3960
|
+
}
|
|
3961
|
+
export const MsgMultiVoteCardResponse = {
|
|
3962
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
3963
|
+
return writer;
|
|
3964
|
+
},
|
|
3965
|
+
decode(input, length) {
|
|
3966
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3967
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3968
|
+
const message = createBaseMsgMultiVoteCardResponse();
|
|
3969
|
+
while (reader.pos < end) {
|
|
3970
|
+
const tag = reader.uint32();
|
|
3971
|
+
switch (tag >>> 3) {
|
|
3972
|
+
default:
|
|
3973
|
+
reader.skipType(tag & 7);
|
|
3974
|
+
break;
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3977
|
+
return message;
|
|
3978
|
+
},
|
|
3979
|
+
fromJSON(_) {
|
|
3980
|
+
return {};
|
|
3981
|
+
},
|
|
3982
|
+
toJSON(_) {
|
|
3983
|
+
const obj = {};
|
|
3984
|
+
return obj;
|
|
3985
|
+
},
|
|
3986
|
+
fromPartial(_) {
|
|
3987
|
+
const message = createBaseMsgMultiVoteCardResponse();
|
|
3988
|
+
return message;
|
|
3989
|
+
},
|
|
3990
|
+
};
|
|
3839
3991
|
export class MsgClientImpl {
|
|
3840
3992
|
constructor(rpc) {
|
|
3841
3993
|
this.rpc = rpc;
|
|
@@ -3879,6 +4031,7 @@ export class MsgClientImpl {
|
|
|
3879
4031
|
this.SetCollectionArtist = this.SetCollectionArtist.bind(this);
|
|
3880
4032
|
this.SetUserWebsite = this.SetUserWebsite.bind(this);
|
|
3881
4033
|
this.SetUserBiography = this.SetUserBiography.bind(this);
|
|
4034
|
+
this.MultiVoteCard = this.MultiVoteCard.bind(this);
|
|
3882
4035
|
}
|
|
3883
4036
|
Createuser(request) {
|
|
3884
4037
|
const data = MsgCreateuser.encode(request).finish();
|
|
@@ -4080,6 +4233,11 @@ export class MsgClientImpl {
|
|
|
4080
4233
|
const promise = this.rpc.request("DecentralCardGame.cardchain.cardchain.Msg", "SetUserBiography", data);
|
|
4081
4234
|
return promise.then((data) => MsgSetUserBiographyResponse.decode(new _m0.Reader(data)));
|
|
4082
4235
|
}
|
|
4236
|
+
MultiVoteCard(request) {
|
|
4237
|
+
const data = MsgMultiVoteCard.encode(request).finish();
|
|
4238
|
+
const promise = this.rpc.request("DecentralCardGame.cardchain.cardchain.Msg", "MultiVoteCard", data);
|
|
4239
|
+
return promise.then((data) => MsgMultiVoteCardResponse.decode(new _m0.Reader(data)));
|
|
4240
|
+
}
|
|
4083
4241
|
}
|
|
4084
4242
|
var globalThis = (() => {
|
|
4085
4243
|
if (typeof globalThis !== "undefined") {
|
|
@@ -102,7 +102,7 @@ function createBaseUser() {
|
|
|
102
102
|
ownedPrototypes: [],
|
|
103
103
|
cards: [],
|
|
104
104
|
voteRights: [],
|
|
105
|
-
|
|
105
|
+
CouncilStatus: 0,
|
|
106
106
|
ReportMatches: false,
|
|
107
107
|
profileCard: 0,
|
|
108
108
|
airDrops: undefined,
|
|
@@ -134,8 +134,8 @@ export const User = {
|
|
|
134
134
|
for (const v of message.voteRights) {
|
|
135
135
|
VoteRight.encode(v, writer.uint32(42).fork()).ldelim();
|
|
136
136
|
}
|
|
137
|
-
if (message.
|
|
138
|
-
|
|
137
|
+
if (message.CouncilStatus !== 0) {
|
|
138
|
+
writer.uint32(48).int32(message.CouncilStatus);
|
|
139
139
|
}
|
|
140
140
|
if (message.ReportMatches === true) {
|
|
141
141
|
writer.uint32(56).bool(message.ReportMatches);
|
|
@@ -204,7 +204,7 @@ export const User = {
|
|
|
204
204
|
message.voteRights.push(VoteRight.decode(reader, reader.uint32()));
|
|
205
205
|
break;
|
|
206
206
|
case 6:
|
|
207
|
-
message.
|
|
207
|
+
message.CouncilStatus = reader.int32();
|
|
208
208
|
break;
|
|
209
209
|
case 7:
|
|
210
210
|
message.ReportMatches = reader.bool();
|
|
@@ -240,9 +240,7 @@ export const User = {
|
|
|
240
240
|
ownedPrototypes: Array.isArray(object?.ownedPrototypes) ? object.ownedPrototypes.map((e) => Number(e)) : [],
|
|
241
241
|
cards: Array.isArray(object?.cards) ? object.cards.map((e) => Number(e)) : [],
|
|
242
242
|
voteRights: Array.isArray(object?.voteRights) ? object.voteRights.map((e) => VoteRight.fromJSON(e)) : [],
|
|
243
|
-
|
|
244
|
-
? CouncilParticipation.fromJSON(object.councilParticipation)
|
|
245
|
-
: undefined,
|
|
243
|
+
CouncilStatus: isSet(object.CouncilStatus) ? councilStatusFromJSON(object.CouncilStatus) : 0,
|
|
246
244
|
ReportMatches: isSet(object.ReportMatches) ? Boolean(object.ReportMatches) : false,
|
|
247
245
|
profileCard: isSet(object.profileCard) ? Number(object.profileCard) : 0,
|
|
248
246
|
airDrops: isSet(object.airDrops) ? AirDrops.fromJSON(object.airDrops) : undefined,
|
|
@@ -280,9 +278,7 @@ export const User = {
|
|
|
280
278
|
else {
|
|
281
279
|
obj.voteRights = [];
|
|
282
280
|
}
|
|
283
|
-
message.
|
|
284
|
-
? CouncilParticipation.toJSON(message.councilParticipation)
|
|
285
|
-
: undefined);
|
|
281
|
+
message.CouncilStatus !== undefined && (obj.CouncilStatus = councilStatusToJSON(message.CouncilStatus));
|
|
286
282
|
message.ReportMatches !== undefined && (obj.ReportMatches = message.ReportMatches);
|
|
287
283
|
message.profileCard !== undefined && (obj.profileCard = Math.round(message.profileCard));
|
|
288
284
|
message.airDrops !== undefined && (obj.airDrops = message.airDrops ? AirDrops.toJSON(message.airDrops) : undefined);
|
|
@@ -303,9 +299,7 @@ export const User = {
|
|
|
303
299
|
message.ownedPrototypes = object.ownedPrototypes?.map((e) => e) || [];
|
|
304
300
|
message.cards = object.cards?.map((e) => e) || [];
|
|
305
301
|
message.voteRights = object.voteRights?.map((e) => VoteRight.fromPartial(e)) || [];
|
|
306
|
-
message.
|
|
307
|
-
? CouncilParticipation.fromPartial(object.councilParticipation)
|
|
308
|
-
: undefined;
|
|
302
|
+
message.CouncilStatus = object.CouncilStatus ?? 0;
|
|
309
303
|
message.ReportMatches = object.ReportMatches ?? false;
|
|
310
304
|
message.profileCard = object.profileCard ?? 0;
|
|
311
305
|
message.airDrops = (object.airDrops !== undefined && object.airDrops !== null)
|
|
@@ -317,58 +311,6 @@ export const User = {
|
|
|
317
311
|
return message;
|
|
318
312
|
},
|
|
319
313
|
};
|
|
320
|
-
function createBaseCouncilParticipation() {
|
|
321
|
-
return { status: 0, council: 0 };
|
|
322
|
-
}
|
|
323
|
-
export const CouncilParticipation = {
|
|
324
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
325
|
-
if (message.status !== 0) {
|
|
326
|
-
writer.uint32(8).int32(message.status);
|
|
327
|
-
}
|
|
328
|
-
if (message.council !== 0) {
|
|
329
|
-
writer.uint32(16).uint64(message.council);
|
|
330
|
-
}
|
|
331
|
-
return writer;
|
|
332
|
-
},
|
|
333
|
-
decode(input, length) {
|
|
334
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
335
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
336
|
-
const message = createBaseCouncilParticipation();
|
|
337
|
-
while (reader.pos < end) {
|
|
338
|
-
const tag = reader.uint32();
|
|
339
|
-
switch (tag >>> 3) {
|
|
340
|
-
case 1:
|
|
341
|
-
message.status = reader.int32();
|
|
342
|
-
break;
|
|
343
|
-
case 2:
|
|
344
|
-
message.council = longToNumber(reader.uint64());
|
|
345
|
-
break;
|
|
346
|
-
default:
|
|
347
|
-
reader.skipType(tag & 7);
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
return message;
|
|
352
|
-
},
|
|
353
|
-
fromJSON(object) {
|
|
354
|
-
return {
|
|
355
|
-
status: isSet(object.status) ? councilStatusFromJSON(object.status) : 0,
|
|
356
|
-
council: isSet(object.council) ? Number(object.council) : 0,
|
|
357
|
-
};
|
|
358
|
-
},
|
|
359
|
-
toJSON(message) {
|
|
360
|
-
const obj = {};
|
|
361
|
-
message.status !== undefined && (obj.status = councilStatusToJSON(message.status));
|
|
362
|
-
message.council !== undefined && (obj.council = Math.round(message.council));
|
|
363
|
-
return obj;
|
|
364
|
-
},
|
|
365
|
-
fromPartial(object) {
|
|
366
|
-
const message = createBaseCouncilParticipation();
|
|
367
|
-
message.status = object.status ?? 0;
|
|
368
|
-
message.council = object.council ?? 0;
|
|
369
|
-
return message;
|
|
370
|
-
},
|
|
371
|
-
};
|
|
372
314
|
function createBaseBoosterPack() {
|
|
373
315
|
return { collectionId: 0, timeStamp: 0, raritiesPerPack: [] };
|
|
374
316
|
}
|
|
@@ -11,7 +11,6 @@ function createBaseParams() {
|
|
|
11
11
|
collectionCreationFee: "",
|
|
12
12
|
collateralDeposit: "",
|
|
13
13
|
winnerReward: 0,
|
|
14
|
-
voterReward: 0,
|
|
15
14
|
hourlyFaucet: "",
|
|
16
15
|
inflationRate: "",
|
|
17
16
|
raresPerPack: 0,
|
|
@@ -22,6 +21,9 @@ function createBaseParams() {
|
|
|
22
21
|
cardAuctionPriceReductionPeriod: 0,
|
|
23
22
|
airDropValue: "",
|
|
24
23
|
airDropMaxBlockHeight: 0,
|
|
24
|
+
trialVoteReward: "",
|
|
25
|
+
votePoolFraction: 0,
|
|
26
|
+
votingRewardCap: 0,
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
export const Params = {
|
|
@@ -47,9 +49,6 @@ export const Params = {
|
|
|
47
49
|
if (message.winnerReward !== 0) {
|
|
48
50
|
writer.uint32(56).int64(message.winnerReward);
|
|
49
51
|
}
|
|
50
|
-
if (message.voterReward !== 0) {
|
|
51
|
-
writer.uint32(64).int64(message.voterReward);
|
|
52
|
-
}
|
|
53
52
|
if (message.hourlyFaucet !== "") {
|
|
54
53
|
writer.uint32(74).string(message.hourlyFaucet);
|
|
55
54
|
}
|
|
@@ -80,6 +79,15 @@ export const Params = {
|
|
|
80
79
|
if (message.airDropMaxBlockHeight !== 0) {
|
|
81
80
|
writer.uint32(144).int64(message.airDropMaxBlockHeight);
|
|
82
81
|
}
|
|
82
|
+
if (message.trialVoteReward !== "") {
|
|
83
|
+
writer.uint32(154).string(message.trialVoteReward);
|
|
84
|
+
}
|
|
85
|
+
if (message.votePoolFraction !== 0) {
|
|
86
|
+
writer.uint32(160).int64(message.votePoolFraction);
|
|
87
|
+
}
|
|
88
|
+
if (message.votingRewardCap !== 0) {
|
|
89
|
+
writer.uint32(64).int64(message.votingRewardCap);
|
|
90
|
+
}
|
|
83
91
|
return writer;
|
|
84
92
|
},
|
|
85
93
|
decode(input, length) {
|
|
@@ -110,9 +118,6 @@ export const Params = {
|
|
|
110
118
|
case 7:
|
|
111
119
|
message.winnerReward = longToNumber(reader.int64());
|
|
112
120
|
break;
|
|
113
|
-
case 8:
|
|
114
|
-
message.voterReward = longToNumber(reader.int64());
|
|
115
|
-
break;
|
|
116
121
|
case 9:
|
|
117
122
|
message.hourlyFaucet = reader.string();
|
|
118
123
|
break;
|
|
@@ -143,6 +148,15 @@ export const Params = {
|
|
|
143
148
|
case 18:
|
|
144
149
|
message.airDropMaxBlockHeight = longToNumber(reader.int64());
|
|
145
150
|
break;
|
|
151
|
+
case 19:
|
|
152
|
+
message.trialVoteReward = reader.string();
|
|
153
|
+
break;
|
|
154
|
+
case 20:
|
|
155
|
+
message.votePoolFraction = longToNumber(reader.int64());
|
|
156
|
+
break;
|
|
157
|
+
case 8:
|
|
158
|
+
message.votingRewardCap = longToNumber(reader.int64());
|
|
159
|
+
break;
|
|
146
160
|
default:
|
|
147
161
|
reader.skipType(tag & 7);
|
|
148
162
|
break;
|
|
@@ -161,7 +175,6 @@ export const Params = {
|
|
|
161
175
|
collectionCreationFee: isSet(object.collectionCreationFee) ? String(object.collectionCreationFee) : "",
|
|
162
176
|
collateralDeposit: isSet(object.collateralDeposit) ? String(object.collateralDeposit) : "",
|
|
163
177
|
winnerReward: isSet(object.winnerReward) ? Number(object.winnerReward) : 0,
|
|
164
|
-
voterReward: isSet(object.voterReward) ? Number(object.voterReward) : 0,
|
|
165
178
|
hourlyFaucet: isSet(object.hourlyFaucet) ? String(object.hourlyFaucet) : "",
|
|
166
179
|
inflationRate: isSet(object.inflationRate) ? String(object.inflationRate) : "",
|
|
167
180
|
raresPerPack: isSet(object.raresPerPack) ? Number(object.raresPerPack) : 0,
|
|
@@ -174,6 +187,9 @@ export const Params = {
|
|
|
174
187
|
: 0,
|
|
175
188
|
airDropValue: isSet(object.airDropValue) ? String(object.airDropValue) : "",
|
|
176
189
|
airDropMaxBlockHeight: isSet(object.airDropMaxBlockHeight) ? Number(object.airDropMaxBlockHeight) : 0,
|
|
190
|
+
trialVoteReward: isSet(object.trialVoteReward) ? String(object.trialVoteReward) : "",
|
|
191
|
+
votePoolFraction: isSet(object.votePoolFraction) ? Number(object.votePoolFraction) : 0,
|
|
192
|
+
votingRewardCap: isSet(object.votingRewardCap) ? Number(object.votingRewardCap) : 0,
|
|
177
193
|
};
|
|
178
194
|
},
|
|
179
195
|
toJSON(message) {
|
|
@@ -187,7 +203,6 @@ export const Params = {
|
|
|
187
203
|
message.collectionCreationFee !== undefined && (obj.collectionCreationFee = message.collectionCreationFee);
|
|
188
204
|
message.collateralDeposit !== undefined && (obj.collateralDeposit = message.collateralDeposit);
|
|
189
205
|
message.winnerReward !== undefined && (obj.winnerReward = Math.round(message.winnerReward));
|
|
190
|
-
message.voterReward !== undefined && (obj.voterReward = Math.round(message.voterReward));
|
|
191
206
|
message.hourlyFaucet !== undefined && (obj.hourlyFaucet = message.hourlyFaucet);
|
|
192
207
|
message.inflationRate !== undefined && (obj.inflationRate = message.inflationRate);
|
|
193
208
|
message.raresPerPack !== undefined && (obj.raresPerPack = Math.round(message.raresPerPack));
|
|
@@ -200,6 +215,9 @@ export const Params = {
|
|
|
200
215
|
message.airDropValue !== undefined && (obj.airDropValue = message.airDropValue);
|
|
201
216
|
message.airDropMaxBlockHeight !== undefined
|
|
202
217
|
&& (obj.airDropMaxBlockHeight = Math.round(message.airDropMaxBlockHeight));
|
|
218
|
+
message.trialVoteReward !== undefined && (obj.trialVoteReward = message.trialVoteReward);
|
|
219
|
+
message.votePoolFraction !== undefined && (obj.votePoolFraction = Math.round(message.votePoolFraction));
|
|
220
|
+
message.votingRewardCap !== undefined && (obj.votingRewardCap = Math.round(message.votingRewardCap));
|
|
203
221
|
return obj;
|
|
204
222
|
},
|
|
205
223
|
fromPartial(object) {
|
|
@@ -211,7 +229,6 @@ export const Params = {
|
|
|
211
229
|
message.collectionCreationFee = object.collectionCreationFee ?? "";
|
|
212
230
|
message.collateralDeposit = object.collateralDeposit ?? "";
|
|
213
231
|
message.winnerReward = object.winnerReward ?? 0;
|
|
214
|
-
message.voterReward = object.voterReward ?? 0;
|
|
215
232
|
message.hourlyFaucet = object.hourlyFaucet ?? "";
|
|
216
233
|
message.inflationRate = object.inflationRate ?? "";
|
|
217
234
|
message.raresPerPack = object.raresPerPack ?? 0;
|
|
@@ -222,6 +239,9 @@ export const Params = {
|
|
|
222
239
|
message.cardAuctionPriceReductionPeriod = object.cardAuctionPriceReductionPeriod ?? 0;
|
|
223
240
|
message.airDropValue = object.airDropValue ?? "";
|
|
224
241
|
message.airDropMaxBlockHeight = object.airDropMaxBlockHeight ?? 0;
|
|
242
|
+
message.trialVoteReward = object.trialVoteReward ?? "";
|
|
243
|
+
message.votePoolFraction = object.votePoolFraction ?? 0;
|
|
244
|
+
message.votingRewardCap = object.votingRewardCap ?? 0;
|
|
225
245
|
return message;
|
|
226
246
|
},
|
|
227
247
|
};
|