decentralcardgame-cardchain-client-ts 0.0.17 → 0.0.19
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 +304 -310
- package/DecentralCardGame.cardchain.cardchain/module.ts +460 -466
- package/DecentralCardGame.cardchain.cardchain/registry.js +60 -60
- package/DecentralCardGame.cardchain.cardchain/registry.ts +60 -60
- package/DecentralCardGame.cardchain.cardchain/rest.js +7 -31
- package/DecentralCardGame.cardchain.cardchain/rest.ts +9 -84
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/aminomessages.js +12 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/aminomessages.ts +32 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +0 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +0 -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/params.js +0 -11
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +0 -13
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2 -331
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2 -390
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +9 -9
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +57 -81
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +56 -93
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +50 -59
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +53 -71
- package/DecentralCardGame.cardchain.cardchain/types.js +1 -4
- package/DecentralCardGame.cardchain.cardchain/types.ts +0 -6
- package/client.js +7 -2
- package/client.ts +165 -154
- package/package.json +1 -1
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
2
|
-
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
3
1
|
import { MsgBuyBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
2
|
+
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
3
|
+
import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
|
|
4
|
+
import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
|
|
5
|
+
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
6
|
+
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
7
|
+
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
8
|
+
import { MsgRemoveContributorFromSet } from "./types/cardchain/cardchain/tx";
|
|
9
|
+
import { MsgOpenMatch } from "./types/cardchain/cardchain/tx";
|
|
10
|
+
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
4
12
|
import { MsgFinalizeSet } from "./types/cardchain/cardchain/tx";
|
|
13
|
+
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
5
16
|
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
6
|
-
import {
|
|
7
|
-
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
8
|
-
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
9
|
-
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
10
|
-
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
11
|
-
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
17
|
+
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
12
18
|
import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
|
|
13
19
|
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
20
|
+
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
21
|
+
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
18
26
|
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
19
|
-
import {
|
|
27
|
+
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
28
|
+
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
29
|
+
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
20
30
|
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
21
31
|
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
22
|
-
import {
|
|
23
|
-
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
24
|
-
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
25
|
-
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
26
|
-
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
27
|
-
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
28
|
-
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
29
|
-
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
30
|
-
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
31
|
-
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
32
|
-
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
33
|
-
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
34
|
-
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
35
33
|
import { MsgAddArtworkToSet } from "./types/cardchain/cardchain/tx";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
34
|
+
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
35
|
+
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
38
36
|
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
37
|
+
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
38
|
+
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
39
|
+
import { MsgCreateSet } from "./types/cardchain/cardchain/tx";
|
|
40
|
+
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
41
41
|
const msgTypes = [
|
|
42
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", MsgAddArtwork],
|
|
43
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", MsgSetSetStoryWriter],
|
|
44
42
|
["/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack", MsgBuyBoosterPack],
|
|
43
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", MsgAddCardToSet],
|
|
44
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromSet", MsgRemoveCardFromSet],
|
|
45
|
+
["/DecentralCardGame.cardchain.cardchain.MsgBuyCard", MsgBuyCard],
|
|
46
|
+
["/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", MsgChangeArtist],
|
|
47
|
+
["/DecentralCardGame.cardchain.cardchain.MsgTransferCard", MsgTransferCard],
|
|
48
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", MsgRemoveSellOffer],
|
|
49
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet", MsgRemoveContributorFromSet],
|
|
50
|
+
["/DecentralCardGame.cardchain.cardchain.MsgOpenMatch", MsgOpenMatch],
|
|
51
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", MsgRestartCouncil],
|
|
52
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", MsgAddContributorToSet],
|
|
45
53
|
["/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet", MsgFinalizeSet],
|
|
54
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", MsgSetSetStoryWriter],
|
|
55
|
+
["/DecentralCardGame.cardchain.cardchain.MsgReportMatch", MsgReportMatch],
|
|
56
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", MsgRevealCouncilResponse],
|
|
46
57
|
["/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite", MsgSetUserWebsite],
|
|
47
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
48
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", MsgSaveCardContent],
|
|
49
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetSetName", MsgSetSetName],
|
|
50
|
-
["/DecentralCardGame.cardchain.cardchain.MsgVoteCard", MsgVoteCard],
|
|
51
|
-
["/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", MsgRewokeCouncilRegistration],
|
|
52
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", MsgSetCardRarity],
|
|
58
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", MsgCreateCouncil],
|
|
53
59
|
["/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", MsgDonateToCard],
|
|
54
60
|
["/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", MsgRegisterForCouncil],
|
|
55
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
56
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
57
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
58
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
61
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", MsgSetSetArtist],
|
|
62
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetSetName", MsgSetSetName],
|
|
63
|
+
["/DecentralCardGame.cardchain.cardchain.MsgVoteCard", MsgVoteCard],
|
|
64
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", MsgAddStoryToSet],
|
|
65
|
+
["/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", MsgBuyCardScheme],
|
|
66
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", MsgAddArtwork],
|
|
59
67
|
["/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", MsgMultiVoteCard],
|
|
60
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
68
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", MsgSetUserBiography],
|
|
69
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", MsgRewokeCouncilRegistration],
|
|
70
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", MsgCreateSellOffer],
|
|
61
71
|
["/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", MsgSetProfileCard],
|
|
62
72
|
["/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", MsgCommitCouncilResponse],
|
|
63
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
64
|
-
["/DecentralCardGame.cardchain.cardchain.MsgReportMatch", MsgReportMatch],
|
|
65
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", MsgAddStoryToSet],
|
|
66
|
-
["/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", MsgTransferBoosterPack],
|
|
67
|
-
["/DecentralCardGame.cardchain.cardchain.MsgTransferCard", MsgTransferCard],
|
|
68
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", MsgSetSetArtist],
|
|
69
|
-
["/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", MsgOpenBoosterPack],
|
|
70
|
-
["/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", MsgCreateSellOffer],
|
|
71
|
-
["/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", MsgCreateCouncil],
|
|
72
|
-
["/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", MsgRevealCouncilResponse],
|
|
73
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", MsgSetUserBiography],
|
|
74
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", MsgAddContributorToSet],
|
|
75
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", MsgAddCardToSet],
|
|
73
|
+
["/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", MsgConfirmMatch],
|
|
76
74
|
["/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToSet", MsgAddArtworkToSet],
|
|
77
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
78
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
75
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", MsgSetCardRarity],
|
|
76
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", MsgSaveCardContent],
|
|
79
77
|
["/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", MsgApointMatchReporter],
|
|
80
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
81
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
78
|
+
["/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", MsgOpenBoosterPack],
|
|
79
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateuser", MsgCreateuser],
|
|
80
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateSet", MsgCreateSet],
|
|
81
|
+
["/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", MsgTransferBoosterPack],
|
|
82
82
|
];
|
|
83
83
|
export { msgTypes };
|
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
3
|
-
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
4
2
|
import { MsgBuyBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
3
|
+
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
4
|
+
import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
|
|
5
|
+
import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
|
|
6
|
+
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
7
|
+
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
8
|
+
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
9
|
+
import { MsgRemoveContributorFromSet } from "./types/cardchain/cardchain/tx";
|
|
10
|
+
import { MsgOpenMatch } from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
12
|
+
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
5
13
|
import { MsgFinalizeSet } from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
6
17
|
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
7
|
-
import {
|
|
8
|
-
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
9
|
-
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
10
|
-
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
11
|
-
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
12
|
-
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
18
|
+
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
13
19
|
import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
|
|
14
20
|
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
21
|
+
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
26
|
+
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
19
27
|
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
20
|
-
import {
|
|
28
|
+
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
29
|
+
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
30
|
+
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
21
31
|
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
22
32
|
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
23
|
-
import {
|
|
24
|
-
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
25
|
-
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
26
|
-
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
27
|
-
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
28
|
-
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
29
|
-
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
30
|
-
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
31
|
-
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
32
|
-
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
33
|
-
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
34
|
-
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
35
|
-
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
33
|
+
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
36
34
|
import { MsgAddArtworkToSet } from "./types/cardchain/cardchain/tx";
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
35
|
+
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
36
|
+
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
39
37
|
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
38
|
+
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
39
|
+
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
40
|
+
import { MsgCreateSet } from "./types/cardchain/cardchain/tx";
|
|
41
|
+
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
42
42
|
|
|
43
43
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
44
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", MsgAddArtwork],
|
|
45
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", MsgSetSetStoryWriter],
|
|
46
44
|
["/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack", MsgBuyBoosterPack],
|
|
45
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", MsgAddCardToSet],
|
|
46
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromSet", MsgRemoveCardFromSet],
|
|
47
|
+
["/DecentralCardGame.cardchain.cardchain.MsgBuyCard", MsgBuyCard],
|
|
48
|
+
["/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", MsgChangeArtist],
|
|
49
|
+
["/DecentralCardGame.cardchain.cardchain.MsgTransferCard", MsgTransferCard],
|
|
50
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", MsgRemoveSellOffer],
|
|
51
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet", MsgRemoveContributorFromSet],
|
|
52
|
+
["/DecentralCardGame.cardchain.cardchain.MsgOpenMatch", MsgOpenMatch],
|
|
53
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", MsgRestartCouncil],
|
|
54
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", MsgAddContributorToSet],
|
|
47
55
|
["/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet", MsgFinalizeSet],
|
|
56
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", MsgSetSetStoryWriter],
|
|
57
|
+
["/DecentralCardGame.cardchain.cardchain.MsgReportMatch", MsgReportMatch],
|
|
58
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", MsgRevealCouncilResponse],
|
|
48
59
|
["/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite", MsgSetUserWebsite],
|
|
49
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
50
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", MsgSaveCardContent],
|
|
51
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetSetName", MsgSetSetName],
|
|
52
|
-
["/DecentralCardGame.cardchain.cardchain.MsgVoteCard", MsgVoteCard],
|
|
53
|
-
["/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", MsgRewokeCouncilRegistration],
|
|
54
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", MsgSetCardRarity],
|
|
60
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", MsgCreateCouncil],
|
|
55
61
|
["/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", MsgDonateToCard],
|
|
56
62
|
["/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", MsgRegisterForCouncil],
|
|
57
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
58
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
59
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
60
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
63
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", MsgSetSetArtist],
|
|
64
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetSetName", MsgSetSetName],
|
|
65
|
+
["/DecentralCardGame.cardchain.cardchain.MsgVoteCard", MsgVoteCard],
|
|
66
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", MsgAddStoryToSet],
|
|
67
|
+
["/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", MsgBuyCardScheme],
|
|
68
|
+
["/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", MsgAddArtwork],
|
|
61
69
|
["/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", MsgMultiVoteCard],
|
|
62
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
70
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", MsgSetUserBiography],
|
|
71
|
+
["/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", MsgRewokeCouncilRegistration],
|
|
72
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", MsgCreateSellOffer],
|
|
63
73
|
["/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", MsgSetProfileCard],
|
|
64
74
|
["/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", MsgCommitCouncilResponse],
|
|
65
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
66
|
-
["/DecentralCardGame.cardchain.cardchain.MsgReportMatch", MsgReportMatch],
|
|
67
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", MsgAddStoryToSet],
|
|
68
|
-
["/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", MsgTransferBoosterPack],
|
|
69
|
-
["/DecentralCardGame.cardchain.cardchain.MsgTransferCard", MsgTransferCard],
|
|
70
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", MsgSetSetArtist],
|
|
71
|
-
["/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", MsgOpenBoosterPack],
|
|
72
|
-
["/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", MsgCreateSellOffer],
|
|
73
|
-
["/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", MsgCreateCouncil],
|
|
74
|
-
["/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", MsgRevealCouncilResponse],
|
|
75
|
-
["/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", MsgSetUserBiography],
|
|
76
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", MsgAddContributorToSet],
|
|
77
|
-
["/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", MsgAddCardToSet],
|
|
75
|
+
["/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", MsgConfirmMatch],
|
|
78
76
|
["/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToSet", MsgAddArtworkToSet],
|
|
79
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
80
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
77
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", MsgSetCardRarity],
|
|
78
|
+
["/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", MsgSaveCardContent],
|
|
81
79
|
["/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", MsgApointMatchReporter],
|
|
82
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
83
|
-
["/DecentralCardGame.cardchain.cardchain.
|
|
80
|
+
["/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", MsgOpenBoosterPack],
|
|
81
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateuser", MsgCreateuser],
|
|
82
|
+
["/DecentralCardGame.cardchain.cardchain.MsgCreateSet", MsgCreateSet],
|
|
83
|
+
["/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", MsgTransferBoosterPack],
|
|
84
84
|
|
|
85
85
|
];
|
|
86
86
|
|
|
@@ -25,7 +25,6 @@ export var CardchainCardRarity;
|
|
|
25
25
|
})(CardchainCardRarity || (CardchainCardRarity = {}));
|
|
26
26
|
export var CardchainCouncelingStatus;
|
|
27
27
|
(function (CardchainCouncelingStatus) {
|
|
28
|
-
CardchainCouncelingStatus["CouncilDoesNotExist"] = "councilDoesNotExist";
|
|
29
28
|
CardchainCouncelingStatus["CouncilOpen"] = "councilOpen";
|
|
30
29
|
CardchainCouncelingStatus["CouncilCreated"] = "councilCreated";
|
|
31
30
|
CardchainCouncelingStatus["CouncilClosed"] = "councilClosed";
|
|
@@ -73,6 +72,13 @@ export var CardchainSellOfferStatus;
|
|
|
73
72
|
CardchainSellOfferStatus["Sold"] = "sold";
|
|
74
73
|
CardchainSellOfferStatus["Removed"] = "removed";
|
|
75
74
|
})(CardchainSellOfferStatus || (CardchainSellOfferStatus = {}));
|
|
75
|
+
export var CardchainVoteType;
|
|
76
|
+
(function (CardchainVoteType) {
|
|
77
|
+
CardchainVoteType["FairEnough"] = "fairEnough";
|
|
78
|
+
CardchainVoteType["Inappropriate"] = "inappropriate";
|
|
79
|
+
CardchainVoteType["Overpowered"] = "overpowered";
|
|
80
|
+
CardchainVoteType["Underpowered"] = "underpowered";
|
|
81
|
+
})(CardchainVoteType || (CardchainVoteType = {}));
|
|
76
82
|
export var CardchaincardchainStatus;
|
|
77
83
|
(function (CardchaincardchainStatus) {
|
|
78
84
|
CardchaincardchainStatus["Scheme"] = "scheme";
|
|
@@ -84,7 +90,6 @@ export var CardchaincardchainStatus;
|
|
|
84
90
|
CardchaincardchainStatus["BannedSoon"] = "bannedSoon";
|
|
85
91
|
CardchaincardchainStatus["BannedVerySoon"] = "bannedVerySoon";
|
|
86
92
|
CardchaincardchainStatus["None"] = "none";
|
|
87
|
-
CardchaincardchainStatus["InCouncil"] = "inCouncil";
|
|
88
93
|
})(CardchaincardchainStatus || (CardchaincardchainStatus = {}));
|
|
89
94
|
import axios from "axios";
|
|
90
95
|
export var ContentType;
|
|
@@ -245,21 +250,6 @@ export class Api extends HttpClient {
|
|
|
245
250
|
format: "json",
|
|
246
251
|
...params,
|
|
247
252
|
});
|
|
248
|
-
/**
|
|
249
|
-
* No description
|
|
250
|
-
*
|
|
251
|
-
* @tags Query
|
|
252
|
-
* @name QueryQCouncils
|
|
253
|
-
* @summary Queries a list of QCouncils items.
|
|
254
|
-
* @request GET:/DecentralCardGame/Cardchain/cardchain/q_councils/{status}
|
|
255
|
-
*/
|
|
256
|
-
this.queryQCouncils = (status, query, params = {}) => this.request({
|
|
257
|
-
path: `/DecentralCardGame/Cardchain/cardchain/q_councils/${status}`,
|
|
258
|
-
method: "GET",
|
|
259
|
-
query: query,
|
|
260
|
-
format: "json",
|
|
261
|
-
...params,
|
|
262
|
-
});
|
|
263
253
|
/**
|
|
264
254
|
* No description
|
|
265
255
|
*
|
|
@@ -375,20 +365,6 @@ export class Api extends HttpClient {
|
|
|
375
365
|
format: "json",
|
|
376
366
|
...params,
|
|
377
367
|
});
|
|
378
|
-
/**
|
|
379
|
-
* No description
|
|
380
|
-
*
|
|
381
|
-
* @tags Query
|
|
382
|
-
* @name QueryQVotableCards
|
|
383
|
-
* @summary Queries a list of QVotableCards items.
|
|
384
|
-
* @request GET:/DecentralCardGame/Cardchain/cardchain/q_votable_cards/{address}
|
|
385
|
-
*/
|
|
386
|
-
this.queryQVotableCards = (address, params = {}) => this.request({
|
|
387
|
-
path: `/DecentralCardGame/Cardchain/cardchain/q_votable_cards/${address}`,
|
|
388
|
-
method: "GET",
|
|
389
|
-
format: "json",
|
|
390
|
-
...params,
|
|
391
|
-
});
|
|
392
368
|
/**
|
|
393
369
|
* No description
|
|
394
370
|
*
|
|
@@ -47,7 +47,6 @@ export enum CardchainCardRarity {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export enum CardchainCouncelingStatus {
|
|
50
|
-
CouncilDoesNotExist = "councilDoesNotExist",
|
|
51
50
|
CouncilOpen = "councilOpen",
|
|
52
51
|
CouncilCreated = "councilCreated",
|
|
53
52
|
CouncilClosed = "councilClosed",
|
|
@@ -69,13 +68,6 @@ export interface CardchainCouncil {
|
|
|
69
68
|
trialStart?: string;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
export interface CardchainCouncilParticipation {
|
|
73
|
-
status?: CardchainCouncilStatus;
|
|
74
|
-
|
|
75
|
-
/** @format uint64 */
|
|
76
|
-
council?: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
71
|
export enum CardchainCouncilStatus {
|
|
80
72
|
Available = "available",
|
|
81
73
|
Unavailable = "unavailable",
|
|
@@ -83,11 +75,6 @@ export enum CardchainCouncilStatus {
|
|
|
83
75
|
StartedCouncil = "startedCouncil",
|
|
84
76
|
}
|
|
85
77
|
|
|
86
|
-
export interface CardchainIgnoreCouncils {
|
|
87
|
-
status?: boolean;
|
|
88
|
-
card?: boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
78
|
export interface CardchainIgnoreMatches {
|
|
92
79
|
outcome?: boolean;
|
|
93
80
|
}
|
|
@@ -327,12 +314,6 @@ export interface CardchainParams {
|
|
|
327
314
|
|
|
328
315
|
/** @format uint64 */
|
|
329
316
|
uniqueDropRatio?: string;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* seconds till the council ends
|
|
333
|
-
* @format uint64
|
|
334
|
-
*/
|
|
335
|
-
councilVotingTimeLimit?: string;
|
|
336
317
|
}
|
|
337
318
|
|
|
338
319
|
/**
|
|
@@ -386,11 +367,6 @@ export interface CardchainQueryQCardsResponse {
|
|
|
386
367
|
cardsList?: string[];
|
|
387
368
|
}
|
|
388
369
|
|
|
389
|
-
export interface CardchainQueryQCouncilsResponse {
|
|
390
|
-
councilssIds?: string[];
|
|
391
|
-
councils?: CardchainCouncil[];
|
|
392
|
-
}
|
|
393
|
-
|
|
394
370
|
export interface CardchainQueryQMatchesResponse {
|
|
395
371
|
matchesList?: string[];
|
|
396
372
|
matches?: CardchainMatch[];
|
|
@@ -405,12 +381,6 @@ export interface CardchainQueryQSetsResponse {
|
|
|
405
381
|
setIds?: string[];
|
|
406
382
|
}
|
|
407
383
|
|
|
408
|
-
export interface CardchainQueryQVotableCardsResponse {
|
|
409
|
-
unregistered?: boolean;
|
|
410
|
-
noVoteRights?: boolean;
|
|
411
|
-
voteRights?: CardchainVoteRight[];
|
|
412
|
-
}
|
|
413
|
-
|
|
414
384
|
export interface CardchainQueryQVotingResultsResponse {
|
|
415
385
|
lastVotingResults?: CardchainVotingResults;
|
|
416
386
|
}
|
|
@@ -455,7 +425,7 @@ export interface CardchainServer {
|
|
|
455
425
|
export interface CardchainSingleVote {
|
|
456
426
|
/** @format uint64 */
|
|
457
427
|
cardId?: string;
|
|
458
|
-
voteType?:
|
|
428
|
+
voteType?: CardchainVoteType;
|
|
459
429
|
}
|
|
460
430
|
|
|
461
431
|
export interface CardchainUser {
|
|
@@ -463,8 +433,7 @@ export interface CardchainUser {
|
|
|
463
433
|
ownedCardSchemes?: string[];
|
|
464
434
|
ownedPrototypes?: string[];
|
|
465
435
|
cards?: string[];
|
|
466
|
-
|
|
467
|
-
councilParticipation?: CardchainCouncilParticipation;
|
|
436
|
+
CouncilStatus?: CardchainCouncilStatus;
|
|
468
437
|
ReportMatches?: boolean;
|
|
469
438
|
|
|
470
439
|
/** @format uint64 */
|
|
@@ -473,14 +442,15 @@ export interface CardchainUser {
|
|
|
473
442
|
boosterPacks?: CardchainBoosterPack[];
|
|
474
443
|
website?: string;
|
|
475
444
|
biography?: string;
|
|
445
|
+
votableCards?: string[];
|
|
446
|
+
votedCards?: string[];
|
|
476
447
|
}
|
|
477
448
|
|
|
478
|
-
export
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
expireBlock?: string;
|
|
449
|
+
export enum CardchainVoteType {
|
|
450
|
+
FairEnough = "fairEnough",
|
|
451
|
+
Inappropriate = "inappropriate",
|
|
452
|
+
Overpowered = "overpowered",
|
|
453
|
+
Underpowered = "underpowered",
|
|
484
454
|
}
|
|
485
455
|
|
|
486
456
|
export interface CardchainVotingResult {
|
|
@@ -541,7 +511,6 @@ export enum CardchaincardchainStatus {
|
|
|
541
511
|
BannedSoon = "bannedSoon",
|
|
542
512
|
BannedVerySoon = "bannedVerySoon",
|
|
543
513
|
None = "none",
|
|
544
|
-
InCouncil = "inCouncil",
|
|
545
514
|
}
|
|
546
515
|
|
|
547
516
|
export interface GooglerpcStatus {
|
|
@@ -812,34 +781,6 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
812
781
|
...params,
|
|
813
782
|
});
|
|
814
783
|
|
|
815
|
-
/**
|
|
816
|
-
* No description
|
|
817
|
-
*
|
|
818
|
-
* @tags Query
|
|
819
|
-
* @name QueryQCouncils
|
|
820
|
-
* @summary Queries a list of QCouncils items.
|
|
821
|
-
* @request GET:/DecentralCardGame/Cardchain/cardchain/q_councils/{status}
|
|
822
|
-
*/
|
|
823
|
-
queryQCouncils = (
|
|
824
|
-
status:
|
|
825
|
-
| "councilDoesNotExist"
|
|
826
|
-
| "councilOpen"
|
|
827
|
-
| "councilCreated"
|
|
828
|
-
| "councilClosed"
|
|
829
|
-
| "commited"
|
|
830
|
-
| "revealed"
|
|
831
|
-
| "suggestionsMade",
|
|
832
|
-
query?: { voters?: string[]; card?: string; creator?: string; "ignore.status"?: boolean; "ignore.card"?: boolean },
|
|
833
|
-
params: RequestParams = {},
|
|
834
|
-
) =>
|
|
835
|
-
this.request<CardchainQueryQCouncilsResponse, GooglerpcStatus>({
|
|
836
|
-
path: `/DecentralCardGame/Cardchain/cardchain/q_councils/${status}`,
|
|
837
|
-
method: "GET",
|
|
838
|
-
query: query,
|
|
839
|
-
format: "json",
|
|
840
|
-
...params,
|
|
841
|
-
});
|
|
842
|
-
|
|
843
784
|
/**
|
|
844
785
|
* No description
|
|
845
786
|
*
|
|
@@ -999,22 +940,6 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
999
940
|
...params,
|
|
1000
941
|
});
|
|
1001
942
|
|
|
1002
|
-
/**
|
|
1003
|
-
* No description
|
|
1004
|
-
*
|
|
1005
|
-
* @tags Query
|
|
1006
|
-
* @name QueryQVotableCards
|
|
1007
|
-
* @summary Queries a list of QVotableCards items.
|
|
1008
|
-
* @request GET:/DecentralCardGame/Cardchain/cardchain/q_votable_cards/{address}
|
|
1009
|
-
*/
|
|
1010
|
-
queryQVotableCards = (address: string, params: RequestParams = {}) =>
|
|
1011
|
-
this.request<CardchainQueryQVotableCardsResponse, GooglerpcStatus>({
|
|
1012
|
-
path: `/DecentralCardGame/Cardchain/cardchain/q_votable_cards/${address}`,
|
|
1013
|
-
method: "GET",
|
|
1014
|
-
format: "json",
|
|
1015
|
-
...params,
|
|
1016
|
-
});
|
|
1017
|
-
|
|
1018
943
|
/**
|
|
1019
944
|
* No description
|
|
1020
945
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function isAminoMsgSend(msg) {
|
|
2
|
+
return msg.type === "decentral-cardgame/MsgTransferCard";
|
|
3
|
+
}
|
|
4
|
+
export function createDecentralCardgameAminoConverters() {
|
|
5
|
+
return {
|
|
6
|
+
"/DecentralCardGame.cardchain.cardchain.MsgTransferCard": {
|
|
7
|
+
aminoType: "decentral-cardgame/MsgTransferCard",
|
|
8
|
+
toAmino: (msg) => (msg),
|
|
9
|
+
fromAmino: (msg) => (msg),
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
import { AminoMsg } from "@cosmjs/amino";
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line import/no-cycle
|
|
5
|
+
import { AminoConverter } from "@cosmjs/stargate";
|
|
6
|
+
import { MsgTransferCard } from "./tx";
|
|
7
|
+
|
|
8
|
+
type AminoConverters = Record<string, AminoConverter>;
|
|
9
|
+
|
|
10
|
+
/** A high level transaction of the coin module */
|
|
11
|
+
export interface AminoMsgTransferCard extends AminoMsg {
|
|
12
|
+
readonly type: "decentral-cardgame/MsgTransferCard";
|
|
13
|
+
readonly value: {
|
|
14
|
+
readonly creator: string;
|
|
15
|
+
readonly cardId: number;
|
|
16
|
+
readonly receiver: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function isAminoMsgSend(msg: AminoMsg): msg is AminoMsgTransferCard {
|
|
21
|
+
return msg.type === "decentral-cardgame/MsgTransferCard";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function createDecentralCardgameAminoConverters(): AminoConverters {
|
|
25
|
+
return {
|
|
26
|
+
"/DecentralCardGame.cardchain.cardchain.MsgTransferCard": {
|
|
27
|
+
aminoType: "decentral-cardgame/MsgTransferCard",
|
|
28
|
+
toAmino: (msg: MsgTransferCard): AminoMsgTransferCard["value"] => (msg),
|
|
29
|
+
fromAmino: (msg: AminoMsgTransferCard["value"]): MsgTransferCard => (msg),
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -13,7 +13,6 @@ export var Status;
|
|
|
13
13
|
Status[Status["bannedSoon"] = 6] = "bannedSoon";
|
|
14
14
|
Status[Status["bannedVerySoon"] = 7] = "bannedVerySoon";
|
|
15
15
|
Status[Status["none"] = 8] = "none";
|
|
16
|
-
Status[Status["inCouncil"] = 9] = "inCouncil";
|
|
17
16
|
Status[Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
17
|
})(Status || (Status = {}));
|
|
19
18
|
export function statusFromJSON(object) {
|
|
@@ -45,9 +44,6 @@ export function statusFromJSON(object) {
|
|
|
45
44
|
case 8:
|
|
46
45
|
case "none":
|
|
47
46
|
return Status.none;
|
|
48
|
-
case 9:
|
|
49
|
-
case "inCouncil":
|
|
50
|
-
return Status.inCouncil;
|
|
51
47
|
case -1:
|
|
52
48
|
case "UNRECOGNIZED":
|
|
53
49
|
default:
|
|
@@ -74,8 +70,6 @@ export function statusToJSON(object) {
|
|
|
74
70
|
return "bannedVerySoon";
|
|
75
71
|
case Status.none:
|
|
76
72
|
return "none";
|
|
77
|
-
case Status.inCouncil:
|
|
78
|
-
return "inCouncil";
|
|
79
73
|
case Status.UNRECOGNIZED:
|
|
80
74
|
default:
|
|
81
75
|
return "UNRECOGNIZED";
|
|
@@ -14,7 +14,6 @@ export enum Status {
|
|
|
14
14
|
bannedSoon = 6,
|
|
15
15
|
bannedVerySoon = 7,
|
|
16
16
|
none = 8,
|
|
17
|
-
inCouncil = 9,
|
|
18
17
|
UNRECOGNIZED = -1,
|
|
19
18
|
}
|
|
20
19
|
|
|
@@ -47,9 +46,6 @@ export function statusFromJSON(object: any): Status {
|
|
|
47
46
|
case 8:
|
|
48
47
|
case "none":
|
|
49
48
|
return Status.none;
|
|
50
|
-
case 9:
|
|
51
|
-
case "inCouncil":
|
|
52
|
-
return Status.inCouncil;
|
|
53
49
|
case -1:
|
|
54
50
|
case "UNRECOGNIZED":
|
|
55
51
|
default:
|
|
@@ -77,8 +73,6 @@ export function statusToJSON(object: Status): string {
|
|
|
77
73
|
return "bannedVerySoon";
|
|
78
74
|
case Status.none:
|
|
79
75
|
return "none";
|
|
80
|
-
case Status.inCouncil:
|
|
81
|
-
return "inCouncil";
|
|
82
76
|
case Status.UNRECOGNIZED:
|
|
83
77
|
default:
|
|
84
78
|
return "UNRECOGNIZED";
|