decentralcardgame-cardchain-client-ts 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +441 -315
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +1501 -1298
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +64 -64
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +64 -64
  5. package/DecentralCardGame.cardchain.cardchain/rest.ts +1 -0
  6. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +10 -0
  7. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +11 -0
  8. package/DecentralCardGame.cardchain.featureflag/module.js +4 -1
  9. package/DecentralCardGame.cardchain.featureflag/module.ts +71 -69
  10. package/cosmos.auth.v1beta1/module.js +4 -1
  11. package/cosmos.auth.v1beta1/module.ts +71 -69
  12. package/package.json +1 -1
  13. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +0 -832
  14. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +0 -954
  15. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +0 -126
  16. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +0 -162
  17. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +0 -407
  18. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +0 -481
  19. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +0 -272
  20. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +0 -324
  21. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +0 -96
  22. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +0 -124
  23. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +0 -364
  24. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +0 -435
  25. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +0 -86
  26. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +0 -114
  27. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +0 -82
  28. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +0 -112
  29. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +0 -435
  30. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +0 -512
  31. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +0 -2204
  32. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +0 -2687
  33. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +0 -88
  34. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +0 -120
  35. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +0 -177
  36. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +0 -217
  37. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +0 -112
  38. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +0 -146
  39. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +0 -441
  40. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +0 -522
  41. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +0 -112
  42. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +0 -146
  43. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +0 -5079
  44. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +0 -6194
  45. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +0 -631
  46. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +0 -748
  47. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +0 -416
  48. package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +0 -494
  49. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.js +0 -86
  50. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.ts +0 -114
  51. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.js +0 -164
  52. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.ts +0 -205
  53. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.js +0 -40
  54. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.ts +0 -62
  55. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.js +0 -100
  56. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.ts +0 -130
  57. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.js +0 -325
  58. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.ts +0 -424
  59. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.js +0 -9
  60. package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.ts +0 -21
@@ -1,112 +0,0 @@
1
- /* eslint-disable */
2
- import Long from "long";
3
- import _m0 from "protobufjs/minimal";
4
-
5
- export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
6
-
7
- export interface Num {
8
- num: number;
9
- }
10
-
11
- function createBaseNum(): Num {
12
- return { num: 0 };
13
- }
14
-
15
- export const Num = {
16
- encode(message: Num, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17
- if (message.num !== 0) {
18
- writer.uint32(8).uint64(message.num);
19
- }
20
- return writer;
21
- },
22
-
23
- decode(input: _m0.Reader | Uint8Array, length?: number): Num {
24
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
25
- let end = length === undefined ? reader.len : reader.pos + length;
26
- const message = createBaseNum();
27
- while (reader.pos < end) {
28
- const tag = reader.uint32();
29
- switch (tag >>> 3) {
30
- case 1:
31
- if (tag !== 8) {
32
- break;
33
- }
34
-
35
- message.num = longToNumber(reader.uint64() as Long);
36
- continue;
37
- }
38
- if ((tag & 7) === 4 || tag === 0) {
39
- break;
40
- }
41
- reader.skipType(tag & 7);
42
- }
43
- return message;
44
- },
45
-
46
- fromJSON(object: any): Num {
47
- return { num: isSet(object.num) ? Number(object.num) : 0 };
48
- },
49
-
50
- toJSON(message: Num): unknown {
51
- const obj: any = {};
52
- if (message.num !== 0) {
53
- obj.num = Math.round(message.num);
54
- }
55
- return obj;
56
- },
57
-
58
- create<I extends Exact<DeepPartial<Num>, I>>(base?: I): Num {
59
- return Num.fromPartial(base ?? ({} as any));
60
- },
61
- fromPartial<I extends Exact<DeepPartial<Num>, I>>(object: I): Num {
62
- const message = createBaseNum();
63
- message.num = object.num ?? 0;
64
- return message;
65
- },
66
- };
67
-
68
- declare const self: any | undefined;
69
- declare const window: any | undefined;
70
- declare const global: any | undefined;
71
- const tsProtoGlobalThis: any = (() => {
72
- if (typeof globalThis !== "undefined") {
73
- return globalThis;
74
- }
75
- if (typeof self !== "undefined") {
76
- return self;
77
- }
78
- if (typeof window !== "undefined") {
79
- return window;
80
- }
81
- if (typeof global !== "undefined") {
82
- return global;
83
- }
84
- throw "Unable to locate global object";
85
- })();
86
-
87
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
88
-
89
- export type DeepPartial<T> = T extends Builtin ? T
90
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
91
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
92
- : Partial<T>;
93
-
94
- type KeysOfUnion<T> = T extends T ? keyof T : never;
95
- export type Exact<P, I extends P> = P extends Builtin ? P
96
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
97
-
98
- function longToNumber(long: Long): number {
99
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
100
- throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
101
- }
102
- return long.toNumber();
103
- }
104
-
105
- if (_m0.util.Long !== Long) {
106
- _m0.util.Long = Long as any;
107
- _m0.configure();
108
- }
109
-
110
- function isSet(value: any): boolean {
111
- return value !== null && value !== undefined;
112
- }
@@ -1,435 +0,0 @@
1
- /* eslint-disable */
2
- import Long from "long";
3
- import _m0 from "protobufjs/minimal";
4
- export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
5
- function createBaseParams() {
6
- return {
7
- votingRightsExpirationTime: 0,
8
- setSize: 0,
9
- setPrice: "",
10
- activeSetsAmount: 0,
11
- setCreationFee: "",
12
- collateralDeposit: "",
13
- winnerReward: 0,
14
- hourlyFaucet: "",
15
- inflationRate: "",
16
- raresPerPack: 0,
17
- commonsPerPack: 0,
18
- unCommonsPerPack: 0,
19
- trialPeriod: 0,
20
- gameVoteRatio: 0,
21
- cardAuctionPriceReductionPeriod: 0,
22
- airDropValue: "",
23
- airDropMaxBlockHeight: 0,
24
- trialVoteReward: "",
25
- votePoolFraction: 0,
26
- votingRewardCap: 0,
27
- matchWorkerDelay: 0,
28
- rareDropRatio: 0,
29
- exceptionalDropRatio: 0,
30
- uniqueDropRatio: 0,
31
- };
32
- }
33
- export const Params = {
34
- encode(message, writer = _m0.Writer.create()) {
35
- if (message.votingRightsExpirationTime !== 0) {
36
- writer.uint32(8).int64(message.votingRightsExpirationTime);
37
- }
38
- if (message.setSize !== 0) {
39
- writer.uint32(16).uint64(message.setSize);
40
- }
41
- if (message.setPrice !== "") {
42
- writer.uint32(26).string(message.setPrice);
43
- }
44
- if (message.activeSetsAmount !== 0) {
45
- writer.uint32(32).uint64(message.activeSetsAmount);
46
- }
47
- if (message.setCreationFee !== "") {
48
- writer.uint32(42).string(message.setCreationFee);
49
- }
50
- if (message.collateralDeposit !== "") {
51
- writer.uint32(50).string(message.collateralDeposit);
52
- }
53
- if (message.winnerReward !== 0) {
54
- writer.uint32(56).int64(message.winnerReward);
55
- }
56
- if (message.hourlyFaucet !== "") {
57
- writer.uint32(74).string(message.hourlyFaucet);
58
- }
59
- if (message.inflationRate !== "") {
60
- writer.uint32(82).string(message.inflationRate);
61
- }
62
- if (message.raresPerPack !== 0) {
63
- writer.uint32(88).uint64(message.raresPerPack);
64
- }
65
- if (message.commonsPerPack !== 0) {
66
- writer.uint32(96).uint64(message.commonsPerPack);
67
- }
68
- if (message.unCommonsPerPack !== 0) {
69
- writer.uint32(104).uint64(message.unCommonsPerPack);
70
- }
71
- if (message.trialPeriod !== 0) {
72
- writer.uint32(112).uint64(message.trialPeriod);
73
- }
74
- if (message.gameVoteRatio !== 0) {
75
- writer.uint32(120).int64(message.gameVoteRatio);
76
- }
77
- if (message.cardAuctionPriceReductionPeriod !== 0) {
78
- writer.uint32(128).int64(message.cardAuctionPriceReductionPeriod);
79
- }
80
- if (message.airDropValue !== "") {
81
- writer.uint32(138).string(message.airDropValue);
82
- }
83
- if (message.airDropMaxBlockHeight !== 0) {
84
- writer.uint32(144).int64(message.airDropMaxBlockHeight);
85
- }
86
- if (message.trialVoteReward !== "") {
87
- writer.uint32(154).string(message.trialVoteReward);
88
- }
89
- if (message.votePoolFraction !== 0) {
90
- writer.uint32(160).int64(message.votePoolFraction);
91
- }
92
- if (message.votingRewardCap !== 0) {
93
- writer.uint32(64).int64(message.votingRewardCap);
94
- }
95
- if (message.matchWorkerDelay !== 0) {
96
- writer.uint32(168).uint64(message.matchWorkerDelay);
97
- }
98
- if (message.rareDropRatio !== 0) {
99
- writer.uint32(176).uint64(message.rareDropRatio);
100
- }
101
- if (message.exceptionalDropRatio !== 0) {
102
- writer.uint32(184).uint64(message.exceptionalDropRatio);
103
- }
104
- if (message.uniqueDropRatio !== 0) {
105
- writer.uint32(192).uint64(message.uniqueDropRatio);
106
- }
107
- return writer;
108
- },
109
- decode(input, length) {
110
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
111
- let end = length === undefined ? reader.len : reader.pos + length;
112
- const message = createBaseParams();
113
- while (reader.pos < end) {
114
- const tag = reader.uint32();
115
- switch (tag >>> 3) {
116
- case 1:
117
- if (tag !== 8) {
118
- break;
119
- }
120
- message.votingRightsExpirationTime = longToNumber(reader.int64());
121
- continue;
122
- case 2:
123
- if (tag !== 16) {
124
- break;
125
- }
126
- message.setSize = longToNumber(reader.uint64());
127
- continue;
128
- case 3:
129
- if (tag !== 26) {
130
- break;
131
- }
132
- message.setPrice = reader.string();
133
- continue;
134
- case 4:
135
- if (tag !== 32) {
136
- break;
137
- }
138
- message.activeSetsAmount = longToNumber(reader.uint64());
139
- continue;
140
- case 5:
141
- if (tag !== 42) {
142
- break;
143
- }
144
- message.setCreationFee = reader.string();
145
- continue;
146
- case 6:
147
- if (tag !== 50) {
148
- break;
149
- }
150
- message.collateralDeposit = reader.string();
151
- continue;
152
- case 7:
153
- if (tag !== 56) {
154
- break;
155
- }
156
- message.winnerReward = longToNumber(reader.int64());
157
- continue;
158
- case 9:
159
- if (tag !== 74) {
160
- break;
161
- }
162
- message.hourlyFaucet = reader.string();
163
- continue;
164
- case 10:
165
- if (tag !== 82) {
166
- break;
167
- }
168
- message.inflationRate = reader.string();
169
- continue;
170
- case 11:
171
- if (tag !== 88) {
172
- break;
173
- }
174
- message.raresPerPack = longToNumber(reader.uint64());
175
- continue;
176
- case 12:
177
- if (tag !== 96) {
178
- break;
179
- }
180
- message.commonsPerPack = longToNumber(reader.uint64());
181
- continue;
182
- case 13:
183
- if (tag !== 104) {
184
- break;
185
- }
186
- message.unCommonsPerPack = longToNumber(reader.uint64());
187
- continue;
188
- case 14:
189
- if (tag !== 112) {
190
- break;
191
- }
192
- message.trialPeriod = longToNumber(reader.uint64());
193
- continue;
194
- case 15:
195
- if (tag !== 120) {
196
- break;
197
- }
198
- message.gameVoteRatio = longToNumber(reader.int64());
199
- continue;
200
- case 16:
201
- if (tag !== 128) {
202
- break;
203
- }
204
- message.cardAuctionPriceReductionPeriod = longToNumber(reader.int64());
205
- continue;
206
- case 17:
207
- if (tag !== 138) {
208
- break;
209
- }
210
- message.airDropValue = reader.string();
211
- continue;
212
- case 18:
213
- if (tag !== 144) {
214
- break;
215
- }
216
- message.airDropMaxBlockHeight = longToNumber(reader.int64());
217
- continue;
218
- case 19:
219
- if (tag !== 154) {
220
- break;
221
- }
222
- message.trialVoteReward = reader.string();
223
- continue;
224
- case 20:
225
- if (tag !== 160) {
226
- break;
227
- }
228
- message.votePoolFraction = longToNumber(reader.int64());
229
- continue;
230
- case 8:
231
- if (tag !== 64) {
232
- break;
233
- }
234
- message.votingRewardCap = longToNumber(reader.int64());
235
- continue;
236
- case 21:
237
- if (tag !== 168) {
238
- break;
239
- }
240
- message.matchWorkerDelay = longToNumber(reader.uint64());
241
- continue;
242
- case 22:
243
- if (tag !== 176) {
244
- break;
245
- }
246
- message.rareDropRatio = longToNumber(reader.uint64());
247
- continue;
248
- case 23:
249
- if (tag !== 184) {
250
- break;
251
- }
252
- message.exceptionalDropRatio = longToNumber(reader.uint64());
253
- continue;
254
- case 24:
255
- if (tag !== 192) {
256
- break;
257
- }
258
- message.uniqueDropRatio = longToNumber(reader.uint64());
259
- continue;
260
- }
261
- if ((tag & 7) === 4 || tag === 0) {
262
- break;
263
- }
264
- reader.skipType(tag & 7);
265
- }
266
- return message;
267
- },
268
- fromJSON(object) {
269
- return {
270
- votingRightsExpirationTime: isSet(object.votingRightsExpirationTime)
271
- ? Number(object.votingRightsExpirationTime)
272
- : 0,
273
- setSize: isSet(object.setSize) ? Number(object.setSize) : 0,
274
- setPrice: isSet(object.setPrice) ? String(object.setPrice) : "",
275
- activeSetsAmount: isSet(object.activeSetsAmount) ? Number(object.activeSetsAmount) : 0,
276
- setCreationFee: isSet(object.setCreationFee) ? String(object.setCreationFee) : "",
277
- collateralDeposit: isSet(object.collateralDeposit) ? String(object.collateralDeposit) : "",
278
- winnerReward: isSet(object.winnerReward) ? Number(object.winnerReward) : 0,
279
- hourlyFaucet: isSet(object.hourlyFaucet) ? String(object.hourlyFaucet) : "",
280
- inflationRate: isSet(object.inflationRate) ? String(object.inflationRate) : "",
281
- raresPerPack: isSet(object.raresPerPack) ? Number(object.raresPerPack) : 0,
282
- commonsPerPack: isSet(object.commonsPerPack) ? Number(object.commonsPerPack) : 0,
283
- unCommonsPerPack: isSet(object.unCommonsPerPack) ? Number(object.unCommonsPerPack) : 0,
284
- trialPeriod: isSet(object.trialPeriod) ? Number(object.trialPeriod) : 0,
285
- gameVoteRatio: isSet(object.gameVoteRatio) ? Number(object.gameVoteRatio) : 0,
286
- cardAuctionPriceReductionPeriod: isSet(object.cardAuctionPriceReductionPeriod)
287
- ? Number(object.cardAuctionPriceReductionPeriod)
288
- : 0,
289
- airDropValue: isSet(object.airDropValue) ? String(object.airDropValue) : "",
290
- airDropMaxBlockHeight: isSet(object.airDropMaxBlockHeight) ? Number(object.airDropMaxBlockHeight) : 0,
291
- trialVoteReward: isSet(object.trialVoteReward) ? String(object.trialVoteReward) : "",
292
- votePoolFraction: isSet(object.votePoolFraction) ? Number(object.votePoolFraction) : 0,
293
- votingRewardCap: isSet(object.votingRewardCap) ? Number(object.votingRewardCap) : 0,
294
- matchWorkerDelay: isSet(object.matchWorkerDelay) ? Number(object.matchWorkerDelay) : 0,
295
- rareDropRatio: isSet(object.rareDropRatio) ? Number(object.rareDropRatio) : 0,
296
- exceptionalDropRatio: isSet(object.exceptionalDropRatio) ? Number(object.exceptionalDropRatio) : 0,
297
- uniqueDropRatio: isSet(object.uniqueDropRatio) ? Number(object.uniqueDropRatio) : 0,
298
- };
299
- },
300
- toJSON(message) {
301
- const obj = {};
302
- if (message.votingRightsExpirationTime !== 0) {
303
- obj.votingRightsExpirationTime = Math.round(message.votingRightsExpirationTime);
304
- }
305
- if (message.setSize !== 0) {
306
- obj.setSize = Math.round(message.setSize);
307
- }
308
- if (message.setPrice !== "") {
309
- obj.setPrice = message.setPrice;
310
- }
311
- if (message.activeSetsAmount !== 0) {
312
- obj.activeSetsAmount = Math.round(message.activeSetsAmount);
313
- }
314
- if (message.setCreationFee !== "") {
315
- obj.setCreationFee = message.setCreationFee;
316
- }
317
- if (message.collateralDeposit !== "") {
318
- obj.collateralDeposit = message.collateralDeposit;
319
- }
320
- if (message.winnerReward !== 0) {
321
- obj.winnerReward = Math.round(message.winnerReward);
322
- }
323
- if (message.hourlyFaucet !== "") {
324
- obj.hourlyFaucet = message.hourlyFaucet;
325
- }
326
- if (message.inflationRate !== "") {
327
- obj.inflationRate = message.inflationRate;
328
- }
329
- if (message.raresPerPack !== 0) {
330
- obj.raresPerPack = Math.round(message.raresPerPack);
331
- }
332
- if (message.commonsPerPack !== 0) {
333
- obj.commonsPerPack = Math.round(message.commonsPerPack);
334
- }
335
- if (message.unCommonsPerPack !== 0) {
336
- obj.unCommonsPerPack = Math.round(message.unCommonsPerPack);
337
- }
338
- if (message.trialPeriod !== 0) {
339
- obj.trialPeriod = Math.round(message.trialPeriod);
340
- }
341
- if (message.gameVoteRatio !== 0) {
342
- obj.gameVoteRatio = Math.round(message.gameVoteRatio);
343
- }
344
- if (message.cardAuctionPriceReductionPeriod !== 0) {
345
- obj.cardAuctionPriceReductionPeriod = Math.round(message.cardAuctionPriceReductionPeriod);
346
- }
347
- if (message.airDropValue !== "") {
348
- obj.airDropValue = message.airDropValue;
349
- }
350
- if (message.airDropMaxBlockHeight !== 0) {
351
- obj.airDropMaxBlockHeight = Math.round(message.airDropMaxBlockHeight);
352
- }
353
- if (message.trialVoteReward !== "") {
354
- obj.trialVoteReward = message.trialVoteReward;
355
- }
356
- if (message.votePoolFraction !== 0) {
357
- obj.votePoolFraction = Math.round(message.votePoolFraction);
358
- }
359
- if (message.votingRewardCap !== 0) {
360
- obj.votingRewardCap = Math.round(message.votingRewardCap);
361
- }
362
- if (message.matchWorkerDelay !== 0) {
363
- obj.matchWorkerDelay = Math.round(message.matchWorkerDelay);
364
- }
365
- if (message.rareDropRatio !== 0) {
366
- obj.rareDropRatio = Math.round(message.rareDropRatio);
367
- }
368
- if (message.exceptionalDropRatio !== 0) {
369
- obj.exceptionalDropRatio = Math.round(message.exceptionalDropRatio);
370
- }
371
- if (message.uniqueDropRatio !== 0) {
372
- obj.uniqueDropRatio = Math.round(message.uniqueDropRatio);
373
- }
374
- return obj;
375
- },
376
- create(base) {
377
- return Params.fromPartial(base ?? {});
378
- },
379
- fromPartial(object) {
380
- const message = createBaseParams();
381
- message.votingRightsExpirationTime = object.votingRightsExpirationTime ?? 0;
382
- message.setSize = object.setSize ?? 0;
383
- message.setPrice = object.setPrice ?? "";
384
- message.activeSetsAmount = object.activeSetsAmount ?? 0;
385
- message.setCreationFee = object.setCreationFee ?? "";
386
- message.collateralDeposit = object.collateralDeposit ?? "";
387
- message.winnerReward = object.winnerReward ?? 0;
388
- message.hourlyFaucet = object.hourlyFaucet ?? "";
389
- message.inflationRate = object.inflationRate ?? "";
390
- message.raresPerPack = object.raresPerPack ?? 0;
391
- message.commonsPerPack = object.commonsPerPack ?? 0;
392
- message.unCommonsPerPack = object.unCommonsPerPack ?? 0;
393
- message.trialPeriod = object.trialPeriod ?? 0;
394
- message.gameVoteRatio = object.gameVoteRatio ?? 0;
395
- message.cardAuctionPriceReductionPeriod = object.cardAuctionPriceReductionPeriod ?? 0;
396
- message.airDropValue = object.airDropValue ?? "";
397
- message.airDropMaxBlockHeight = object.airDropMaxBlockHeight ?? 0;
398
- message.trialVoteReward = object.trialVoteReward ?? "";
399
- message.votePoolFraction = object.votePoolFraction ?? 0;
400
- message.votingRewardCap = object.votingRewardCap ?? 0;
401
- message.matchWorkerDelay = object.matchWorkerDelay ?? 0;
402
- message.rareDropRatio = object.rareDropRatio ?? 0;
403
- message.exceptionalDropRatio = object.exceptionalDropRatio ?? 0;
404
- message.uniqueDropRatio = object.uniqueDropRatio ?? 0;
405
- return message;
406
- },
407
- };
408
- const tsProtoGlobalThis = (() => {
409
- if (typeof globalThis !== "undefined") {
410
- return globalThis;
411
- }
412
- if (typeof self !== "undefined") {
413
- return self;
414
- }
415
- if (typeof window !== "undefined") {
416
- return window;
417
- }
418
- if (typeof global !== "undefined") {
419
- return global;
420
- }
421
- throw "Unable to locate global object";
422
- })();
423
- function longToNumber(long) {
424
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
425
- throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
426
- }
427
- return long.toNumber();
428
- }
429
- if (_m0.util.Long !== Long) {
430
- _m0.util.Long = Long;
431
- _m0.configure();
432
- }
433
- function isSet(value) {
434
- return value !== null && value !== undefined;
435
- }