decentralcardgame-cardchain-client-ts 0.0.23 → 0.0.24
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export function isAminoMsgTransferCard(msg) {
|
|
2
|
-
return msg.type === "cardchain/
|
|
2
|
+
return msg.type === "cardchain/TransferCard";
|
|
3
3
|
}
|
|
4
4
|
export function isAminoMsgRegisterForCouncil(msg) {
|
|
5
|
-
return msg.type === "cardchain/
|
|
5
|
+
return msg.type === "cardchain/RegisterForCouncil";
|
|
6
6
|
}
|
|
7
7
|
export function createDecentralCardgameAminoConverters() {
|
|
8
8
|
return {
|
|
9
9
|
"/DecentralCardGame.cardchain.cardchain.MsgTransferCard": {
|
|
10
|
-
aminoType: "cardchain/
|
|
10
|
+
aminoType: "cardchain/TransferCard",
|
|
11
11
|
toAmino: (msg) => (msg),
|
|
12
12
|
fromAmino: (msg) => (msg),
|
|
13
13
|
},
|
|
14
14
|
"/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil": {
|
|
15
|
-
aminoType: "cardchain/
|
|
15
|
+
aminoType: "cardchain/RegisterForCouncil",
|
|
16
16
|
toAmino: (msg) => {
|
|
17
17
|
console.log("Hier hier, was da los?", msg);
|
|
18
18
|
return msg;
|
|
@@ -9,7 +9,7 @@ type AminoConverters = Record<string, AminoConverter>;
|
|
|
9
9
|
|
|
10
10
|
/** A high level transaction of the coin module */
|
|
11
11
|
export interface AminoMsgTransferCard extends AminoMsg {
|
|
12
|
-
readonly type: "cardchain/
|
|
12
|
+
readonly type: "cardchain/TransferCard";
|
|
13
13
|
readonly value: {
|
|
14
14
|
readonly creator: string;
|
|
15
15
|
readonly cardId: number;
|
|
@@ -18,30 +18,30 @@ export interface AminoMsgTransferCard extends AminoMsg {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface AminoMsgRegisterForCouncil extends AminoMsg {
|
|
21
|
-
readonly type: "cardchain/
|
|
21
|
+
readonly type: "cardchain/RegisterForCouncil";
|
|
22
22
|
readonly value: {
|
|
23
23
|
readonly creator: string;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export function isAminoMsgTransferCard(msg: AminoMsg): msg is AminoMsgTransferCard {
|
|
28
|
-
return msg.type === "cardchain/
|
|
28
|
+
return msg.type === "cardchain/TransferCard";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export function isAminoMsgRegisterForCouncil(msg: AminoMsg): msg is AminoMsgRegisterForCouncil {
|
|
32
|
-
return msg.type === "cardchain/
|
|
32
|
+
return msg.type === "cardchain/RegisterForCouncil";
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
export function createDecentralCardgameAminoConverters(): AminoConverters {
|
|
37
37
|
return {
|
|
38
38
|
"/DecentralCardGame.cardchain.cardchain.MsgTransferCard": {
|
|
39
|
-
aminoType: "cardchain/
|
|
39
|
+
aminoType: "cardchain/TransferCard",
|
|
40
40
|
toAmino: (msg: MsgTransferCard): AminoMsgTransferCard["value"] => (msg),
|
|
41
41
|
fromAmino: (msg: AminoMsgTransferCard["value"]): MsgTransferCard => (msg),
|
|
42
42
|
},
|
|
43
43
|
"/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil": {
|
|
44
|
-
aminoType: "cardchain/
|
|
44
|
+
aminoType: "cardchain/RegisterForCouncil",
|
|
45
45
|
toAmino: (msg: MsgRegisterForCouncil): AminoMsgRegisterForCouncil["value"] => {
|
|
46
46
|
console.log("Hier hier, was da los?", msg)
|
|
47
47
|
return msg
|
package/package.json
CHANGED