decentralcardgame-cardchain-client-ts 0.0.19 → 0.0.20

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,6 +1,9 @@
1
- export function isAminoMsgSend(msg) {
1
+ export function isAminoMsgTransferCard(msg) {
2
2
  return msg.type === "decentral-cardgame/MsgTransferCard";
3
3
  }
4
+ export function isAminoMsgRegisterForCouncil(msg) {
5
+ return msg.type === "decentral-cardgame/MsgRegisterForCouncil";
6
+ }
4
7
  export function createDecentralCardgameAminoConverters() {
5
8
  return {
6
9
  "/DecentralCardGame.cardchain.cardchain.MsgTransferCard": {
@@ -8,5 +11,13 @@ export function createDecentralCardgameAminoConverters() {
8
11
  toAmino: (msg) => (msg),
9
12
  fromAmino: (msg) => (msg),
10
13
  },
14
+ "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil": {
15
+ aminoType: "decentral-cardgame/MsgRegisterForCouncil",
16
+ toAmino: (msg) => {
17
+ console.log("Hier hier, was da los?", msg);
18
+ return msg;
19
+ },
20
+ fromAmino: (msg) => (msg),
21
+ },
11
22
  };
12
23
  }
@@ -3,7 +3,7 @@ import { AminoMsg } from "@cosmjs/amino";
3
3
 
4
4
  // eslint-disable-next-line import/no-cycle
5
5
  import { AminoConverter } from "@cosmjs/stargate";
6
- import { MsgTransferCard } from "./tx";
6
+ import {MsgRegisterForCouncil, MsgTransferCard } from "./tx";
7
7
 
8
8
  type AminoConverters = Record<string, AminoConverter>;
9
9
 
@@ -17,10 +17,22 @@ export interface AminoMsgTransferCard extends AminoMsg {
17
17
  };
18
18
  }
19
19
 
20
- export function isAminoMsgSend(msg: AminoMsg): msg is AminoMsgTransferCard {
20
+ export interface AminoMsgRegisterForCouncil extends AminoMsg {
21
+ readonly type: "decentral-cardgame/MsgRegisterForCouncil";
22
+ readonly value: {
23
+ readonly creator: string;
24
+ };
25
+ }
26
+
27
+ export function isAminoMsgTransferCard(msg: AminoMsg): msg is AminoMsgTransferCard {
21
28
  return msg.type === "decentral-cardgame/MsgTransferCard";
22
29
  }
23
30
 
31
+ export function isAminoMsgRegisterForCouncil(msg: AminoMsg): msg is AminoMsgRegisterForCouncil {
32
+ return msg.type === "decentral-cardgame/MsgRegisterForCouncil";
33
+ }
34
+
35
+
24
36
  export function createDecentralCardgameAminoConverters(): AminoConverters {
25
37
  return {
26
38
  "/DecentralCardGame.cardchain.cardchain.MsgTransferCard": {
@@ -28,5 +40,13 @@ export function createDecentralCardgameAminoConverters(): AminoConverters {
28
40
  toAmino: (msg: MsgTransferCard): AminoMsgTransferCard["value"] => (msg),
29
41
  fromAmino: (msg: AminoMsgTransferCard["value"]): MsgTransferCard => (msg),
30
42
  },
43
+ "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil": {
44
+ aminoType: "decentral-cardgame/MsgRegisterForCouncil",
45
+ toAmino: (msg: MsgRegisterForCouncil): AminoMsgRegisterForCouncil["value"] => {
46
+ console.log("Hier hier, was da los?", msg)
47
+ return msg
48
+ },
49
+ fromAmino: (msg: AminoMsgRegisterForCouncil["value"]): MsgRegisterForCouncil => (msg),
50
+ },
31
51
  };
32
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decentralcardgame-cardchain-client-ts",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Autogenerated Typescript Client for crowdcontrol cardchain",
5
5
  "author": "Lxgr <lxgr@protonmail.com>",
6
6
  "license": "GPL-v3",