decentralcardgame-cardchain-client-ts 0.0.28 → 0.0.30
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 +428 -460
- package/DecentralCardGame.cardchain.cardchain/module.ts +1496 -1571
- package/DecentralCardGame.cardchain.cardchain/registry.js +74 -66
- package/DecentralCardGame.cardchain.cardchain/registry.ts +74 -66
- package/DecentralCardGame.cardchain.cardchain/rest.js +71 -0
- package/DecentralCardGame.cardchain.cardchain/rest.ts +132 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +6 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +6 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/early_access_proposal.js +81 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/early_access_proposal.ts +106 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/encounters.js +295 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/encounters.ts +354 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +16 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +19 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +447 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +570 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +504 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +613 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +50 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +48 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/zealy.js +58 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/zealy.ts +82 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +5 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +8 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +9 -7
- package/DecentralCardGame.cardchain.featureflag/module.ts +69 -65
- package/client.js +2 -5
- package/client.ts +164 -162
- package/cosmos.authz.v1beta1/module.js +33 -22
- package/cosmos.authz.v1beta1/module.ts +220 -148
- package/cosmos.distribution.v1beta1/module.js +65 -35
- package/cosmos.distribution.v1beta1/module.ts +354 -200
- package/cosmos.evidence.v1beta1/module.js +21 -13
- package/cosmos.evidence.v1beta1/module.ts +115 -86
- package/cosmos.gov.v1/module.js +48 -29
- package/cosmos.gov.v1/module.ts +275 -178
- package/cosmos.mint.v1beta1/module.js +9 -7
- package/cosmos.mint.v1beta1/module.ts +67 -63
- package/cosmos.nft.v1beta1/module.js +9 -7
- package/cosmos.nft.v1beta1/module.ts +75 -71
- package/cosmos.tx.v1beta1/module.js +9 -7
- package/cosmos.tx.v1beta1/module.ts +89 -85
- package/cosmos.vesting.v1beta1/module.js +52 -29
- package/cosmos.vesting.v1beta1/module.ts +249 -149
- package/ibc.applications.interchain_accounts.controller.v1/module.js +9 -7
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +65 -61
- package/ibc.applications.transfer.v1/module.js +17 -12
- package/ibc.applications.transfer.v1/module.ts +114 -88
- package/ibc.core.channel.v1/module.js +1 -4
- package/ibc.core.channel.v1/module.ts +79 -81
- package/ibc.core.client.v1/module.js +1 -4
- package/ibc.core.client.v1/module.ts +81 -83
- package/ibc.core.connection.v1/module.js +6 -7
- package/ibc.core.connection.v1/module.ts +88 -84
- package/package.json +4 -1
- package/tsconfig.json +1 -1
|
@@ -2,31 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
import { StdFee } from "@cosmjs/amino";
|
|
4
4
|
import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import {
|
|
6
|
+
EncodeObject,
|
|
7
|
+
GeneratedType,
|
|
8
|
+
OfflineSigner,
|
|
9
|
+
Registry,
|
|
10
|
+
} from "@cosmjs/proto-signing";
|
|
11
|
+
import { msgTypes } from "./registry";
|
|
12
|
+
import { IgniteClient } from "../client";
|
|
13
|
+
import { MissingWalletError } from "../helpers";
|
|
9
14
|
import { Api } from "./rest";
|
|
10
15
|
|
|
11
|
-
import { Params as typeParams} from "./types"
|
|
12
|
-
|
|
13
|
-
export { };
|
|
14
|
-
|
|
16
|
+
import { Params as typeParams } from "./types";
|
|
15
17
|
|
|
18
|
+
export {};
|
|
16
19
|
|
|
17
20
|
export const registry = new Registry(msgTypes);
|
|
18
21
|
|
|
19
22
|
type Field = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
+
name: string;
|
|
24
|
+
type: unknown;
|
|
25
|
+
};
|
|
23
26
|
function getStructure(template) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const structure: { fields: Field[] } = { fields: [] };
|
|
28
|
+
for (let [key, value] of Object.entries(template)) {
|
|
29
|
+
let field = { name: key, type: typeof value };
|
|
30
|
+
structure.fields.push(field);
|
|
31
|
+
}
|
|
32
|
+
return structure;
|
|
30
33
|
}
|
|
31
34
|
const defaultFee = {
|
|
32
35
|
amount: [],
|
|
@@ -34,65 +37,66 @@ const defaultFee = {
|
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
interface TxClientOptions {
|
|
37
|
-
addr: string
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
addr: string;
|
|
41
|
+
prefix: string;
|
|
42
|
+
signer?: OfflineSigner;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
|
-
export const txClient = (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
export const txClient = (
|
|
46
|
+
{ signer, prefix, addr }: TxClientOptions = {
|
|
47
|
+
addr: "http://localhost:26657",
|
|
48
|
+
prefix: "cosmos",
|
|
49
|
+
},
|
|
50
|
+
) => {
|
|
51
|
+
return {};
|
|
48
52
|
};
|
|
49
53
|
|
|
50
54
|
interface QueryClientOptions {
|
|
51
|
-
addr: string
|
|
55
|
+
addr: string;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
export const queryClient = (
|
|
58
|
+
export const queryClient = (
|
|
59
|
+
{ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" },
|
|
60
|
+
) => {
|
|
55
61
|
return new Api({ baseURL: addr });
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
class SDKModule {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
public query: ReturnType<typeof queryClient>;
|
|
66
|
+
public tx: ReturnType<typeof txClient>;
|
|
67
|
+
public structure: Record<string, unknown>;
|
|
68
|
+
public registry: Array<[string, GeneratedType]> = [];
|
|
63
69
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
updateTX(client: IgniteClient) {
|
|
70
|
+
constructor(client: IgniteClient) {
|
|
71
|
+
this.query = queryClient({ addr: client.env.apiURL });
|
|
72
|
+
this.updateTX(client);
|
|
73
|
+
this.structure = {
|
|
74
|
+
Params: getStructure(typeParams.fromPartial({})),
|
|
75
|
+
};
|
|
76
|
+
client.on("signer-changed", (signer) => {
|
|
77
|
+
this.updateTX(client);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
updateTX(client: IgniteClient) {
|
|
77
81
|
const methods = txClient({
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
})
|
|
82
|
-
|
|
82
|
+
signer: client.signer,
|
|
83
|
+
addr: client.env.rpcURL,
|
|
84
|
+
prefix: client.env.prefix ?? "cosmos",
|
|
85
|
+
});
|
|
86
|
+
|
|
83
87
|
this.tx = methods;
|
|
84
88
|
for (let m in methods) {
|
|
85
|
-
|
|
89
|
+
this.tx[m] = methods[m].bind(this.tx);
|
|
86
90
|
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
const Module = (test: IgniteClient) => {
|
|
91
|
-
return {
|
|
92
|
-
module: {
|
|
93
|
-
IbcApplicationsInterchainAccountsControllerV1: new SDKModule(test)
|
|
94
|
-
},
|
|
95
|
-
registry: msgTypes
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
|
-
|
|
93
|
+
|
|
94
|
+
const Module = (test: IgniteClient) => {
|
|
95
|
+
return {
|
|
96
|
+
module: {
|
|
97
|
+
IbcApplicationsInterchainAccountsControllerV1: new SDKModule(test),
|
|
98
|
+
},
|
|
99
|
+
registry: msgTypes,
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export default Module;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
2
|
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
-
import { Registry } from "@cosmjs/proto-signing";
|
|
4
|
-
import { msgTypes } from
|
|
3
|
+
import { Registry, } from "@cosmjs/proto-signing";
|
|
4
|
+
import { msgTypes } from "./registry";
|
|
5
5
|
import { Api } from "./rest";
|
|
6
6
|
import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
|
|
7
7
|
import { DenomTrace as typeDenomTrace } from "./types";
|
|
@@ -20,11 +20,14 @@ const defaultFee = {
|
|
|
20
20
|
amount: [],
|
|
21
21
|
gas: "200000",
|
|
22
22
|
};
|
|
23
|
-
export const txClient = ({ signer, prefix, addr } = {
|
|
23
|
+
export const txClient = ({ signer, prefix, addr } = {
|
|
24
|
+
addr: "http://localhost:26657",
|
|
25
|
+
prefix: "cosmos",
|
|
26
|
+
}) => {
|
|
24
27
|
return {
|
|
25
|
-
async sendMsgTransfer({ value, fee, memo }) {
|
|
28
|
+
async sendMsgTransfer({ value, fee, memo, }) {
|
|
26
29
|
if (!signer) {
|
|
27
|
-
throw new Error(
|
|
30
|
+
throw new Error("TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.");
|
|
28
31
|
}
|
|
29
32
|
try {
|
|
30
33
|
const { address } = (await signer.getAccounts())[0];
|
|
@@ -33,15 +36,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
33
36
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
34
37
|
}
|
|
35
38
|
catch (e) {
|
|
36
|
-
throw new Error(
|
|
39
|
+
throw new Error("TxClient:sendMsgTransfer: Could not broadcast Tx: " + e.message);
|
|
37
40
|
}
|
|
38
41
|
},
|
|
39
42
|
msgTransfer({ value }) {
|
|
40
43
|
try {
|
|
41
|
-
return {
|
|
44
|
+
return {
|
|
45
|
+
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
|
46
|
+
value: MsgTransfer.fromPartial(value),
|
|
47
|
+
};
|
|
42
48
|
}
|
|
43
49
|
catch (e) {
|
|
44
|
-
throw new Error(
|
|
50
|
+
throw new Error("TxClient:MsgTransfer: Could not create message: " + e.message);
|
|
45
51
|
}
|
|
46
52
|
},
|
|
47
53
|
};
|
|
@@ -58,7 +64,7 @@ class SDKModule {
|
|
|
58
64
|
DenomTrace: getStructure(typeDenomTrace.fromPartial({})),
|
|
59
65
|
Params: getStructure(typeParams.fromPartial({})),
|
|
60
66
|
};
|
|
61
|
-
client.on(
|
|
67
|
+
client.on("signer-changed", (signer) => {
|
|
62
68
|
this.updateTX(client);
|
|
63
69
|
});
|
|
64
70
|
}
|
|
@@ -74,13 +80,12 @@ class SDKModule {
|
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
|
-
;
|
|
78
83
|
const Module = (test) => {
|
|
79
84
|
return {
|
|
80
85
|
module: {
|
|
81
|
-
IbcApplicationsTransferV1: new SDKModule(test)
|
|
86
|
+
IbcApplicationsTransferV1: new SDKModule(test),
|
|
82
87
|
},
|
|
83
|
-
registry: msgTypes
|
|
88
|
+
registry: msgTypes,
|
|
84
89
|
};
|
|
85
90
|
};
|
|
86
91
|
export default Module;
|
|
@@ -2,43 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
import { StdFee } from "@cosmjs/amino";
|
|
4
4
|
import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import {
|
|
6
|
+
EncodeObject,
|
|
7
|
+
GeneratedType,
|
|
8
|
+
OfflineSigner,
|
|
9
|
+
Registry,
|
|
10
|
+
} from "@cosmjs/proto-signing";
|
|
11
|
+
import { msgTypes } from "./registry";
|
|
12
|
+
import { IgniteClient } from "../client";
|
|
13
|
+
import { MissingWalletError } from "../helpers";
|
|
9
14
|
import { Api } from "./rest";
|
|
10
15
|
import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
|
|
11
16
|
|
|
12
|
-
import { DenomTrace as typeDenomTrace} from "./types"
|
|
13
|
-
import { Params as typeParams} from "./types"
|
|
17
|
+
import { DenomTrace as typeDenomTrace } from "./types";
|
|
18
|
+
import { Params as typeParams } from "./types";
|
|
14
19
|
|
|
15
20
|
export { MsgTransfer };
|
|
16
21
|
|
|
17
22
|
type sendMsgTransferParams = {
|
|
18
|
-
value: MsgTransfer
|
|
19
|
-
fee?: StdFee
|
|
20
|
-
memo?: string
|
|
23
|
+
value: MsgTransfer;
|
|
24
|
+
fee?: StdFee;
|
|
25
|
+
memo?: string;
|
|
21
26
|
};
|
|
22
27
|
|
|
23
|
-
|
|
24
28
|
type msgTransferParams = {
|
|
25
|
-
value: MsgTransfer
|
|
29
|
+
value: MsgTransfer;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
|
-
|
|
29
32
|
export const registry = new Registry(msgTypes);
|
|
30
33
|
|
|
31
34
|
type Field = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
+
name: string;
|
|
36
|
+
type: unknown;
|
|
37
|
+
};
|
|
35
38
|
function getStructure(template) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const structure: { fields: Field[] } = { fields: [] };
|
|
40
|
+
for (let [key, value] of Object.entries(template)) {
|
|
41
|
+
let field = { name: key, type: typeof value };
|
|
42
|
+
structure.fields.push(field);
|
|
43
|
+
}
|
|
44
|
+
return structure;
|
|
42
45
|
}
|
|
43
46
|
const defaultFee = {
|
|
44
47
|
amount: [],
|
|
@@ -46,88 +49,111 @@ const defaultFee = {
|
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
interface TxClientOptions {
|
|
49
|
-
addr: string
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
addr: string;
|
|
53
|
+
prefix: string;
|
|
54
|
+
signer?: OfflineSigner;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
export const txClient = (
|
|
55
|
-
|
|
57
|
+
export const txClient = (
|
|
58
|
+
{ signer, prefix, addr }: TxClientOptions = {
|
|
59
|
+
addr: "http://localhost:26657",
|
|
60
|
+
prefix: "cosmos",
|
|
61
|
+
},
|
|
62
|
+
) => {
|
|
56
63
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
64
|
+
async sendMsgTransfer({
|
|
65
|
+
value,
|
|
66
|
+
fee,
|
|
67
|
+
memo,
|
|
68
|
+
}: sendMsgTransferParams): Promise<DeliverTxResponse> {
|
|
69
|
+
if (!signer) {
|
|
70
|
+
throw new Error(
|
|
71
|
+
"TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.",
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
const { address } = (await signer.getAccounts())[0];
|
|
76
|
+
const signingClient = await SigningStargateClient.connectWithSigner(
|
|
77
|
+
addr,
|
|
78
|
+
signer,
|
|
79
|
+
{ registry, prefix },
|
|
80
|
+
);
|
|
81
|
+
let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) });
|
|
82
|
+
return await signingClient.signAndBroadcast(
|
|
83
|
+
address,
|
|
84
|
+
[msg],
|
|
85
|
+
fee ? fee : defaultFee,
|
|
86
|
+
memo,
|
|
87
|
+
);
|
|
88
|
+
} catch (e: any) {
|
|
89
|
+
throw new Error(
|
|
90
|
+
"TxClient:sendMsgTransfer: Could not broadcast Tx: " + e.message,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
msgTransfer({ value }: msgTransferParams): EncodeObject {
|
|
96
|
+
try {
|
|
97
|
+
return {
|
|
98
|
+
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
|
99
|
+
value: MsgTransfer.fromPartial(value),
|
|
100
|
+
};
|
|
101
|
+
} catch (e: any) {
|
|
102
|
+
throw new Error(
|
|
103
|
+
"TxClient:MsgTransfer: Could not create message: " + e.message,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
};
|
|
82
108
|
};
|
|
83
109
|
|
|
84
110
|
interface QueryClientOptions {
|
|
85
|
-
addr: string
|
|
111
|
+
addr: string;
|
|
86
112
|
}
|
|
87
113
|
|
|
88
|
-
export const queryClient = (
|
|
114
|
+
export const queryClient = (
|
|
115
|
+
{ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" },
|
|
116
|
+
) => {
|
|
89
117
|
return new Api({ baseURL: addr });
|
|
90
118
|
};
|
|
91
119
|
|
|
92
120
|
class SDKModule {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
updateTX(client: IgniteClient) {
|
|
121
|
+
public query: ReturnType<typeof queryClient>;
|
|
122
|
+
public tx: ReturnType<typeof txClient>;
|
|
123
|
+
public structure: Record<string, unknown>;
|
|
124
|
+
public registry: Array<[string, GeneratedType]> = [];
|
|
125
|
+
|
|
126
|
+
constructor(client: IgniteClient) {
|
|
127
|
+
this.query = queryClient({ addr: client.env.apiURL });
|
|
128
|
+
this.updateTX(client);
|
|
129
|
+
this.structure = {
|
|
130
|
+
DenomTrace: getStructure(typeDenomTrace.fromPartial({})),
|
|
131
|
+
Params: getStructure(typeParams.fromPartial({})),
|
|
132
|
+
};
|
|
133
|
+
client.on("signer-changed", (signer) => {
|
|
134
|
+
this.updateTX(client);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
updateTX(client: IgniteClient) {
|
|
112
138
|
const methods = txClient({
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
})
|
|
117
|
-
|
|
139
|
+
signer: client.signer,
|
|
140
|
+
addr: client.env.rpcURL,
|
|
141
|
+
prefix: client.env.prefix ?? "cosmos",
|
|
142
|
+
});
|
|
143
|
+
|
|
118
144
|
this.tx = methods;
|
|
119
145
|
for (let m in methods) {
|
|
120
|
-
|
|
146
|
+
this.tx[m] = methods[m].bind(this.tx);
|
|
121
147
|
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
const Module = (test: IgniteClient) => {
|
|
126
|
-
return {
|
|
127
|
-
module: {
|
|
128
|
-
IbcApplicationsTransferV1: new SDKModule(test)
|
|
129
|
-
},
|
|
130
|
-
registry: msgTypes
|
|
131
148
|
}
|
|
132
149
|
}
|
|
133
|
-
|
|
150
|
+
|
|
151
|
+
const Module = (test: IgniteClient) => {
|
|
152
|
+
return {
|
|
153
|
+
module: {
|
|
154
|
+
IbcApplicationsTransferV1: new SDKModule(test),
|
|
155
|
+
},
|
|
156
|
+
registry: msgTypes,
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export default Module;
|
|
@@ -23,10 +23,7 @@ const defaultFee = {
|
|
|
23
23
|
amount: [],
|
|
24
24
|
gas: "200000",
|
|
25
25
|
};
|
|
26
|
-
export const txClient = ({ signer, prefix, addr } = {
|
|
27
|
-
addr: "http://localhost:26657",
|
|
28
|
-
prefix: "cosmos"
|
|
29
|
-
}) => {
|
|
26
|
+
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
30
27
|
return {};
|
|
31
28
|
};
|
|
32
29
|
export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
|