decentralcardgame-cardchain-client-ts 0.0.2 → 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/module.ts +493 -458
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -70
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -69
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +11 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +30 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +33 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +11 -17
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +11 -17
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +1 -217
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +1 -252
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +166 -8
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +203 -11
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +7 -65
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +8 -77
- 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/DecentralCardGame.cardchain.cardchain/types.ts +22 -20
- 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 { Response, responseFromJSON, responseToJSON } from "./council";
|
|
5
6
|
|
|
6
7
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
@@ -61,8 +62,7 @@ export interface MsgCreateuserResponse {
|
|
|
61
62
|
|
|
62
63
|
export interface MsgBuyCardScheme {
|
|
63
64
|
creator: string;
|
|
64
|
-
|
|
65
|
-
bid: string;
|
|
65
|
+
bid: Coin | undefined;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export interface MsgBuyCardSchemeResponse {
|
|
@@ -88,6 +88,7 @@ export interface MsgSaveCardContent {
|
|
|
88
88
|
*/
|
|
89
89
|
notes: string;
|
|
90
90
|
artist: string;
|
|
91
|
+
balanceAnchor: boolean;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
export interface MsgSaveCardContentResponse {
|
|
@@ -312,6 +313,7 @@ export interface MsgCreateCouncil {
|
|
|
312
313
|
export interface MsgCreateCouncilResponse {
|
|
313
314
|
}
|
|
314
315
|
|
|
316
|
+
/** Add revision */
|
|
315
317
|
export interface MsgCommitCouncilResponse {
|
|
316
318
|
creator: string;
|
|
317
319
|
response: string;
|
|
@@ -415,6 +417,20 @@ export interface MsgSetUserBiography {
|
|
|
415
417
|
export interface MsgSetUserBiographyResponse {
|
|
416
418
|
}
|
|
417
419
|
|
|
420
|
+
export interface SingleVote {
|
|
421
|
+
cardId: number;
|
|
422
|
+
voteType: string;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/** this line is used by starport scaffolding # proto/tx/message */
|
|
426
|
+
export interface MsgMultiVoteCard {
|
|
427
|
+
creator: string;
|
|
428
|
+
votes: SingleVote[];
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export interface MsgMultiVoteCardResponse {
|
|
432
|
+
}
|
|
433
|
+
|
|
418
434
|
function createBaseMsgCreateuser(): MsgCreateuser {
|
|
419
435
|
return { creator: "", newUser: "", alias: "" };
|
|
420
436
|
}
|
|
@@ -522,7 +538,7 @@ export const MsgCreateuserResponse = {
|
|
|
522
538
|
};
|
|
523
539
|
|
|
524
540
|
function createBaseMsgBuyCardScheme(): MsgBuyCardScheme {
|
|
525
|
-
return { creator: "", bid:
|
|
541
|
+
return { creator: "", bid: undefined };
|
|
526
542
|
}
|
|
527
543
|
|
|
528
544
|
export const MsgBuyCardScheme = {
|
|
@@ -530,8 +546,8 @@ export const MsgBuyCardScheme = {
|
|
|
530
546
|
if (message.creator !== "") {
|
|
531
547
|
writer.uint32(10).string(message.creator);
|
|
532
548
|
}
|
|
533
|
-
if (message.bid !==
|
|
534
|
-
writer.uint32(18).
|
|
549
|
+
if (message.bid !== undefined) {
|
|
550
|
+
Coin.encode(message.bid, writer.uint32(18).fork()).ldelim();
|
|
535
551
|
}
|
|
536
552
|
return writer;
|
|
537
553
|
},
|
|
@@ -547,7 +563,7 @@ export const MsgBuyCardScheme = {
|
|
|
547
563
|
message.creator = reader.string();
|
|
548
564
|
break;
|
|
549
565
|
case 2:
|
|
550
|
-
message.bid = reader.
|
|
566
|
+
message.bid = Coin.decode(reader, reader.uint32());
|
|
551
567
|
break;
|
|
552
568
|
default:
|
|
553
569
|
reader.skipType(tag & 7);
|
|
@@ -560,21 +576,21 @@ export const MsgBuyCardScheme = {
|
|
|
560
576
|
fromJSON(object: any): MsgBuyCardScheme {
|
|
561
577
|
return {
|
|
562
578
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
563
|
-
bid: isSet(object.bid) ?
|
|
579
|
+
bid: isSet(object.bid) ? Coin.fromJSON(object.bid) : undefined,
|
|
564
580
|
};
|
|
565
581
|
},
|
|
566
582
|
|
|
567
583
|
toJSON(message: MsgBuyCardScheme): unknown {
|
|
568
584
|
const obj: any = {};
|
|
569
585
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
570
|
-
message.bid !== undefined && (obj.bid = message.bid);
|
|
586
|
+
message.bid !== undefined && (obj.bid = message.bid ? Coin.toJSON(message.bid) : undefined);
|
|
571
587
|
return obj;
|
|
572
588
|
},
|
|
573
589
|
|
|
574
590
|
fromPartial<I extends Exact<DeepPartial<MsgBuyCardScheme>, I>>(object: I): MsgBuyCardScheme {
|
|
575
591
|
const message = createBaseMsgBuyCardScheme();
|
|
576
592
|
message.creator = object.creator ?? "";
|
|
577
|
-
message.bid = object.bid
|
|
593
|
+
message.bid = (object.bid !== undefined && object.bid !== null) ? Coin.fromPartial(object.bid) : undefined;
|
|
578
594
|
return message;
|
|
579
595
|
},
|
|
580
596
|
};
|
|
@@ -733,7 +749,7 @@ export const MsgVoteCardResponse = {
|
|
|
733
749
|
};
|
|
734
750
|
|
|
735
751
|
function createBaseMsgSaveCardContent(): MsgSaveCardContent {
|
|
736
|
-
return { creator: "", cardId: 0, content: new Uint8Array(), notes: "", artist: "" };
|
|
752
|
+
return { creator: "", cardId: 0, content: new Uint8Array(), notes: "", artist: "", balanceAnchor: false };
|
|
737
753
|
}
|
|
738
754
|
|
|
739
755
|
export const MsgSaveCardContent = {
|
|
@@ -753,6 +769,9 @@ export const MsgSaveCardContent = {
|
|
|
753
769
|
if (message.artist !== "") {
|
|
754
770
|
writer.uint32(42).string(message.artist);
|
|
755
771
|
}
|
|
772
|
+
if (message.balanceAnchor === true) {
|
|
773
|
+
writer.uint32(48).bool(message.balanceAnchor);
|
|
774
|
+
}
|
|
756
775
|
return writer;
|
|
757
776
|
},
|
|
758
777
|
|
|
@@ -778,6 +797,9 @@ export const MsgSaveCardContent = {
|
|
|
778
797
|
case 5:
|
|
779
798
|
message.artist = reader.string();
|
|
780
799
|
break;
|
|
800
|
+
case 6:
|
|
801
|
+
message.balanceAnchor = reader.bool();
|
|
802
|
+
break;
|
|
781
803
|
default:
|
|
782
804
|
reader.skipType(tag & 7);
|
|
783
805
|
break;
|
|
@@ -793,6 +815,7 @@ export const MsgSaveCardContent = {
|
|
|
793
815
|
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(),
|
|
794
816
|
notes: isSet(object.notes) ? String(object.notes) : "",
|
|
795
817
|
artist: isSet(object.artist) ? String(object.artist) : "",
|
|
818
|
+
balanceAnchor: isSet(object.balanceAnchor) ? Boolean(object.balanceAnchor) : false,
|
|
796
819
|
};
|
|
797
820
|
},
|
|
798
821
|
|
|
@@ -804,6 +827,7 @@ export const MsgSaveCardContent = {
|
|
|
804
827
|
&& (obj.content = base64FromBytes(message.content !== undefined ? message.content : new Uint8Array()));
|
|
805
828
|
message.notes !== undefined && (obj.notes = message.notes);
|
|
806
829
|
message.artist !== undefined && (obj.artist = message.artist);
|
|
830
|
+
message.balanceAnchor !== undefined && (obj.balanceAnchor = message.balanceAnchor);
|
|
807
831
|
return obj;
|
|
808
832
|
},
|
|
809
833
|
|
|
@@ -814,6 +838,7 @@ export const MsgSaveCardContent = {
|
|
|
814
838
|
message.content = object.content ?? new Uint8Array();
|
|
815
839
|
message.notes = object.notes ?? "";
|
|
816
840
|
message.artist = object.artist ?? "";
|
|
841
|
+
message.balanceAnchor = object.balanceAnchor ?? false;
|
|
817
842
|
return message;
|
|
818
843
|
},
|
|
819
844
|
};
|
|
@@ -4708,6 +4733,165 @@ export const MsgSetUserBiographyResponse = {
|
|
|
4708
4733
|
},
|
|
4709
4734
|
};
|
|
4710
4735
|
|
|
4736
|
+
function createBaseSingleVote(): SingleVote {
|
|
4737
|
+
return { cardId: 0, voteType: "" };
|
|
4738
|
+
}
|
|
4739
|
+
|
|
4740
|
+
export const SingleVote = {
|
|
4741
|
+
encode(message: SingleVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4742
|
+
if (message.cardId !== 0) {
|
|
4743
|
+
writer.uint32(8).uint64(message.cardId);
|
|
4744
|
+
}
|
|
4745
|
+
if (message.voteType !== "") {
|
|
4746
|
+
writer.uint32(18).string(message.voteType);
|
|
4747
|
+
}
|
|
4748
|
+
return writer;
|
|
4749
|
+
},
|
|
4750
|
+
|
|
4751
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SingleVote {
|
|
4752
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4753
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4754
|
+
const message = createBaseSingleVote();
|
|
4755
|
+
while (reader.pos < end) {
|
|
4756
|
+
const tag = reader.uint32();
|
|
4757
|
+
switch (tag >>> 3) {
|
|
4758
|
+
case 1:
|
|
4759
|
+
message.cardId = longToNumber(reader.uint64() as Long);
|
|
4760
|
+
break;
|
|
4761
|
+
case 2:
|
|
4762
|
+
message.voteType = reader.string();
|
|
4763
|
+
break;
|
|
4764
|
+
default:
|
|
4765
|
+
reader.skipType(tag & 7);
|
|
4766
|
+
break;
|
|
4767
|
+
}
|
|
4768
|
+
}
|
|
4769
|
+
return message;
|
|
4770
|
+
},
|
|
4771
|
+
|
|
4772
|
+
fromJSON(object: any): SingleVote {
|
|
4773
|
+
return {
|
|
4774
|
+
cardId: isSet(object.cardId) ? Number(object.cardId) : 0,
|
|
4775
|
+
voteType: isSet(object.voteType) ? String(object.voteType) : "",
|
|
4776
|
+
};
|
|
4777
|
+
},
|
|
4778
|
+
|
|
4779
|
+
toJSON(message: SingleVote): unknown {
|
|
4780
|
+
const obj: any = {};
|
|
4781
|
+
message.cardId !== undefined && (obj.cardId = Math.round(message.cardId));
|
|
4782
|
+
message.voteType !== undefined && (obj.voteType = message.voteType);
|
|
4783
|
+
return obj;
|
|
4784
|
+
},
|
|
4785
|
+
|
|
4786
|
+
fromPartial<I extends Exact<DeepPartial<SingleVote>, I>>(object: I): SingleVote {
|
|
4787
|
+
const message = createBaseSingleVote();
|
|
4788
|
+
message.cardId = object.cardId ?? 0;
|
|
4789
|
+
message.voteType = object.voteType ?? "";
|
|
4790
|
+
return message;
|
|
4791
|
+
},
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
function createBaseMsgMultiVoteCard(): MsgMultiVoteCard {
|
|
4795
|
+
return { creator: "", votes: [] };
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
export const MsgMultiVoteCard = {
|
|
4799
|
+
encode(message: MsgMultiVoteCard, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4800
|
+
if (message.creator !== "") {
|
|
4801
|
+
writer.uint32(10).string(message.creator);
|
|
4802
|
+
}
|
|
4803
|
+
for (const v of message.votes) {
|
|
4804
|
+
SingleVote.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
4805
|
+
}
|
|
4806
|
+
return writer;
|
|
4807
|
+
},
|
|
4808
|
+
|
|
4809
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiVoteCard {
|
|
4810
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4811
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4812
|
+
const message = createBaseMsgMultiVoteCard();
|
|
4813
|
+
while (reader.pos < end) {
|
|
4814
|
+
const tag = reader.uint32();
|
|
4815
|
+
switch (tag >>> 3) {
|
|
4816
|
+
case 1:
|
|
4817
|
+
message.creator = reader.string();
|
|
4818
|
+
break;
|
|
4819
|
+
case 2:
|
|
4820
|
+
message.votes.push(SingleVote.decode(reader, reader.uint32()));
|
|
4821
|
+
break;
|
|
4822
|
+
default:
|
|
4823
|
+
reader.skipType(tag & 7);
|
|
4824
|
+
break;
|
|
4825
|
+
}
|
|
4826
|
+
}
|
|
4827
|
+
return message;
|
|
4828
|
+
},
|
|
4829
|
+
|
|
4830
|
+
fromJSON(object: any): MsgMultiVoteCard {
|
|
4831
|
+
return {
|
|
4832
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
4833
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => SingleVote.fromJSON(e)) : [],
|
|
4834
|
+
};
|
|
4835
|
+
},
|
|
4836
|
+
|
|
4837
|
+
toJSON(message: MsgMultiVoteCard): unknown {
|
|
4838
|
+
const obj: any = {};
|
|
4839
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
4840
|
+
if (message.votes) {
|
|
4841
|
+
obj.votes = message.votes.map((e) => e ? SingleVote.toJSON(e) : undefined);
|
|
4842
|
+
} else {
|
|
4843
|
+
obj.votes = [];
|
|
4844
|
+
}
|
|
4845
|
+
return obj;
|
|
4846
|
+
},
|
|
4847
|
+
|
|
4848
|
+
fromPartial<I extends Exact<DeepPartial<MsgMultiVoteCard>, I>>(object: I): MsgMultiVoteCard {
|
|
4849
|
+
const message = createBaseMsgMultiVoteCard();
|
|
4850
|
+
message.creator = object.creator ?? "";
|
|
4851
|
+
message.votes = object.votes?.map((e) => SingleVote.fromPartial(e)) || [];
|
|
4852
|
+
return message;
|
|
4853
|
+
},
|
|
4854
|
+
};
|
|
4855
|
+
|
|
4856
|
+
function createBaseMsgMultiVoteCardResponse(): MsgMultiVoteCardResponse {
|
|
4857
|
+
return {};
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
export const MsgMultiVoteCardResponse = {
|
|
4861
|
+
encode(_: MsgMultiVoteCardResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4862
|
+
return writer;
|
|
4863
|
+
},
|
|
4864
|
+
|
|
4865
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiVoteCardResponse {
|
|
4866
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4867
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4868
|
+
const message = createBaseMsgMultiVoteCardResponse();
|
|
4869
|
+
while (reader.pos < end) {
|
|
4870
|
+
const tag = reader.uint32();
|
|
4871
|
+
switch (tag >>> 3) {
|
|
4872
|
+
default:
|
|
4873
|
+
reader.skipType(tag & 7);
|
|
4874
|
+
break;
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
return message;
|
|
4878
|
+
},
|
|
4879
|
+
|
|
4880
|
+
fromJSON(_: any): MsgMultiVoteCardResponse {
|
|
4881
|
+
return {};
|
|
4882
|
+
},
|
|
4883
|
+
|
|
4884
|
+
toJSON(_: MsgMultiVoteCardResponse): unknown {
|
|
4885
|
+
const obj: any = {};
|
|
4886
|
+
return obj;
|
|
4887
|
+
},
|
|
4888
|
+
|
|
4889
|
+
fromPartial<I extends Exact<DeepPartial<MsgMultiVoteCardResponse>, I>>(_: I): MsgMultiVoteCardResponse {
|
|
4890
|
+
const message = createBaseMsgMultiVoteCardResponse();
|
|
4891
|
+
return message;
|
|
4892
|
+
},
|
|
4893
|
+
};
|
|
4894
|
+
|
|
4711
4895
|
/** Msg defines the Msg service. */
|
|
4712
4896
|
export interface Msg {
|
|
4713
4897
|
Createuser(request: MsgCreateuser): Promise<MsgCreateuserResponse>;
|
|
@@ -4751,8 +4935,9 @@ export interface Msg {
|
|
|
4751
4935
|
SetCollectionStoryWriter(request: MsgSetCollectionStoryWriter): Promise<MsgSetCollectionStoryWriterResponse>;
|
|
4752
4936
|
SetCollectionArtist(request: MsgSetCollectionArtist): Promise<MsgSetCollectionArtistResponse>;
|
|
4753
4937
|
SetUserWebsite(request: MsgSetUserWebsite): Promise<MsgSetUserWebsiteResponse>;
|
|
4754
|
-
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
4755
4938
|
SetUserBiography(request: MsgSetUserBiography): Promise<MsgSetUserBiographyResponse>;
|
|
4939
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
4940
|
+
MultiVoteCard(request: MsgMultiVoteCard): Promise<MsgMultiVoteCardResponse>;
|
|
4756
4941
|
}
|
|
4757
4942
|
|
|
4758
4943
|
export class MsgClientImpl implements Msg {
|
|
@@ -4799,6 +4984,7 @@ export class MsgClientImpl implements Msg {
|
|
|
4799
4984
|
this.SetCollectionArtist = this.SetCollectionArtist.bind(this);
|
|
4800
4985
|
this.SetUserWebsite = this.SetUserWebsite.bind(this);
|
|
4801
4986
|
this.SetUserBiography = this.SetUserBiography.bind(this);
|
|
4987
|
+
this.MultiVoteCard = this.MultiVoteCard.bind(this);
|
|
4802
4988
|
}
|
|
4803
4989
|
Createuser(request: MsgCreateuser): Promise<MsgCreateuserResponse> {
|
|
4804
4990
|
const data = MsgCreateuser.encode(request).finish();
|
|
@@ -5047,6 +5233,12 @@ export class MsgClientImpl implements Msg {
|
|
|
5047
5233
|
const promise = this.rpc.request("DecentralCardGame.cardchain.cardchain.Msg", "SetUserBiography", data);
|
|
5048
5234
|
return promise.then((data) => MsgSetUserBiographyResponse.decode(new _m0.Reader(data)));
|
|
5049
5235
|
}
|
|
5236
|
+
|
|
5237
|
+
MultiVoteCard(request: MsgMultiVoteCard): Promise<MsgMultiVoteCardResponse> {
|
|
5238
|
+
const data = MsgMultiVoteCard.encode(request).finish();
|
|
5239
|
+
const promise = this.rpc.request("DecentralCardGame.cardchain.cardchain.Msg", "MultiVoteCard", data);
|
|
5240
|
+
return promise.then((data) => MsgMultiVoteCardResponse.decode(new _m0.Reader(data)));
|
|
5241
|
+
}
|
|
5050
5242
|
}
|
|
5051
5243
|
|
|
5052
5244
|
interface Rpc {
|
|
@@ -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
|
}
|
|
@@ -107,7 +107,7 @@ export interface User {
|
|
|
107
107
|
ownedPrototypes: number[];
|
|
108
108
|
cards: number[];
|
|
109
109
|
voteRights: VoteRight[];
|
|
110
|
-
|
|
110
|
+
CouncilStatus: CouncilStatus;
|
|
111
111
|
ReportMatches: boolean;
|
|
112
112
|
profileCard: number;
|
|
113
113
|
airDrops: AirDrops | undefined;
|
|
@@ -116,11 +116,6 @@ export interface User {
|
|
|
116
116
|
biography: string;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export interface CouncilParticipation {
|
|
120
|
-
status: CouncilStatus;
|
|
121
|
-
council: number;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
119
|
export interface BoosterPack {
|
|
125
120
|
collectionId: number;
|
|
126
121
|
timeStamp: number;
|
|
@@ -142,7 +137,7 @@ function createBaseUser(): User {
|
|
|
142
137
|
ownedPrototypes: [],
|
|
143
138
|
cards: [],
|
|
144
139
|
voteRights: [],
|
|
145
|
-
|
|
140
|
+
CouncilStatus: 0,
|
|
146
141
|
ReportMatches: false,
|
|
147
142
|
profileCard: 0,
|
|
148
143
|
airDrops: undefined,
|
|
@@ -175,8 +170,8 @@ export const User = {
|
|
|
175
170
|
for (const v of message.voteRights) {
|
|
176
171
|
VoteRight.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
177
172
|
}
|
|
178
|
-
if (message.
|
|
179
|
-
|
|
173
|
+
if (message.CouncilStatus !== 0) {
|
|
174
|
+
writer.uint32(48).int32(message.CouncilStatus);
|
|
180
175
|
}
|
|
181
176
|
if (message.ReportMatches === true) {
|
|
182
177
|
writer.uint32(56).bool(message.ReportMatches);
|
|
@@ -243,7 +238,7 @@ export const User = {
|
|
|
243
238
|
message.voteRights.push(VoteRight.decode(reader, reader.uint32()));
|
|
244
239
|
break;
|
|
245
240
|
case 6:
|
|
246
|
-
message.
|
|
241
|
+
message.CouncilStatus = reader.int32() as any;
|
|
247
242
|
break;
|
|
248
243
|
case 7:
|
|
249
244
|
message.ReportMatches = reader.bool();
|
|
@@ -280,9 +275,7 @@ export const User = {
|
|
|
280
275
|
ownedPrototypes: Array.isArray(object?.ownedPrototypes) ? object.ownedPrototypes.map((e: any) => Number(e)) : [],
|
|
281
276
|
cards: Array.isArray(object?.cards) ? object.cards.map((e: any) => Number(e)) : [],
|
|
282
277
|
voteRights: Array.isArray(object?.voteRights) ? object.voteRights.map((e: any) => VoteRight.fromJSON(e)) : [],
|
|
283
|
-
|
|
284
|
-
? CouncilParticipation.fromJSON(object.councilParticipation)
|
|
285
|
-
: undefined,
|
|
278
|
+
CouncilStatus: isSet(object.CouncilStatus) ? councilStatusFromJSON(object.CouncilStatus) : 0,
|
|
286
279
|
ReportMatches: isSet(object.ReportMatches) ? Boolean(object.ReportMatches) : false,
|
|
287
280
|
profileCard: isSet(object.profileCard) ? Number(object.profileCard) : 0,
|
|
288
281
|
airDrops: isSet(object.airDrops) ? AirDrops.fromJSON(object.airDrops) : undefined,
|
|
@@ -317,9 +310,7 @@ export const User = {
|
|
|
317
310
|
} else {
|
|
318
311
|
obj.voteRights = [];
|
|
319
312
|
}
|
|
320
|
-
message.
|
|
321
|
-
? CouncilParticipation.toJSON(message.councilParticipation)
|
|
322
|
-
: undefined);
|
|
313
|
+
message.CouncilStatus !== undefined && (obj.CouncilStatus = councilStatusToJSON(message.CouncilStatus));
|
|
323
314
|
message.ReportMatches !== undefined && (obj.ReportMatches = message.ReportMatches);
|
|
324
315
|
message.profileCard !== undefined && (obj.profileCard = Math.round(message.profileCard));
|
|
325
316
|
message.airDrops !== undefined && (obj.airDrops = message.airDrops ? AirDrops.toJSON(message.airDrops) : undefined);
|
|
@@ -340,9 +331,7 @@ export const User = {
|
|
|
340
331
|
message.ownedPrototypes = object.ownedPrototypes?.map((e) => e) || [];
|
|
341
332
|
message.cards = object.cards?.map((e) => e) || [];
|
|
342
333
|
message.voteRights = object.voteRights?.map((e) => VoteRight.fromPartial(e)) || [];
|
|
343
|
-
message.
|
|
344
|
-
? CouncilParticipation.fromPartial(object.councilParticipation)
|
|
345
|
-
: undefined;
|
|
334
|
+
message.CouncilStatus = object.CouncilStatus ?? 0;
|
|
346
335
|
message.ReportMatches = object.ReportMatches ?? false;
|
|
347
336
|
message.profileCard = object.profileCard ?? 0;
|
|
348
337
|
message.airDrops = (object.airDrops !== undefined && object.airDrops !== null)
|
|
@@ -355,64 +344,6 @@ export const User = {
|
|
|
355
344
|
},
|
|
356
345
|
};
|
|
357
346
|
|
|
358
|
-
function createBaseCouncilParticipation(): CouncilParticipation {
|
|
359
|
-
return { status: 0, council: 0 };
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export const CouncilParticipation = {
|
|
363
|
-
encode(message: CouncilParticipation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
364
|
-
if (message.status !== 0) {
|
|
365
|
-
writer.uint32(8).int32(message.status);
|
|
366
|
-
}
|
|
367
|
-
if (message.council !== 0) {
|
|
368
|
-
writer.uint32(16).uint64(message.council);
|
|
369
|
-
}
|
|
370
|
-
return writer;
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CouncilParticipation {
|
|
374
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
375
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
376
|
-
const message = createBaseCouncilParticipation();
|
|
377
|
-
while (reader.pos < end) {
|
|
378
|
-
const tag = reader.uint32();
|
|
379
|
-
switch (tag >>> 3) {
|
|
380
|
-
case 1:
|
|
381
|
-
message.status = reader.int32() as any;
|
|
382
|
-
break;
|
|
383
|
-
case 2:
|
|
384
|
-
message.council = longToNumber(reader.uint64() as Long);
|
|
385
|
-
break;
|
|
386
|
-
default:
|
|
387
|
-
reader.skipType(tag & 7);
|
|
388
|
-
break;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return message;
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
fromJSON(object: any): CouncilParticipation {
|
|
395
|
-
return {
|
|
396
|
-
status: isSet(object.status) ? councilStatusFromJSON(object.status) : 0,
|
|
397
|
-
council: isSet(object.council) ? Number(object.council) : 0,
|
|
398
|
-
};
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
toJSON(message: CouncilParticipation): unknown {
|
|
402
|
-
const obj: any = {};
|
|
403
|
-
message.status !== undefined && (obj.status = councilStatusToJSON(message.status));
|
|
404
|
-
message.council !== undefined && (obj.council = Math.round(message.council));
|
|
405
|
-
return obj;
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
fromPartial<I extends Exact<DeepPartial<CouncilParticipation>, I>>(object: I): CouncilParticipation {
|
|
409
|
-
const message = createBaseCouncilParticipation();
|
|
410
|
-
message.status = object.status ?? 0;
|
|
411
|
-
message.council = object.council ?? 0;
|
|
412
|
-
return message;
|
|
413
|
-
},
|
|
414
|
-
};
|
|
415
|
-
|
|
416
347
|
function createBaseBoosterPack(): BoosterPack {
|
|
417
348
|
return { collectionId: 0, timeStamp: 0, raritiesPerPack: [] };
|
|
418
349
|
}
|