decentralcardgame-cardchain-client-ts 0.0.36 → 0.0.38
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/amino_adapter.d.ts +9 -0
- package/amino_adapter.js +22 -0
- package/cardchain.cardchain/module.js +53 -52
- package/cardchain.featureflag/module.js +3 -2
- package/client.js +1 -1
- package/cosmos.auth.v1beta1/module.js +2 -1
- package/cosmos.authz.v1beta1/module.js +4 -3
- package/cosmos.bank.v1beta1/module.js +5 -4
- package/cosmos.bank.v1beta1/rest.d.ts +20 -20
- package/cosmos.bank.v1beta1/rest.js +16 -16
- package/cosmos.circuit.v1/module.js +4 -3
- package/cosmos.consensus.v1/module.js +2 -1
- package/cosmos.crisis.v1beta1/module.js +3 -2
- package/cosmos.distribution.v1beta1/module.js +8 -7
- package/cosmos.evidence.v1beta1/module.js +2 -1
- package/cosmos.feegrant.v1beta1/module.js +4 -3
- package/cosmos.gov.v1/module.js +8 -7
- package/cosmos.gov.v1beta1/module.js +5 -4
- package/cosmos.group.v1/module.js +17 -14
- package/cosmos.group.v1/types.d.ts +2 -1
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.mint.v1beta1/module.js +2 -1
- package/cosmos.nft.v1beta1/module.js +2 -1
- package/cosmos.slashing.v1beta1/module.js +3 -2
- package/cosmos.staking.v1beta1/module.js +8 -7
- package/cosmos.tx.v1beta1/rest.d.ts +8 -0
- package/cosmos.upgrade.v1beta1/module.js +3 -2
- package/cosmos.vesting.v1beta1/module.js +4 -3
- package/ibc.applications.fee.v1/module.js +5 -4
- package/ibc.applications.interchain_accounts.controller.v1/module.js +4 -3
- package/ibc.applications.interchain_accounts.host.v1/module.js +3 -2
- package/ibc.applications.transfer.v1/module.js +3 -2
- package/ibc.core.channel.v1/module.js +20 -19
- package/ibc.core.client.v1/module.js +8 -7
- package/ibc.core.connection.v1/module.js +6 -5
- package/index.d.ts +20 -20
- package/index.js +9 -9
- package/package.json +1 -1
- package/types/cosmos/app/runtime/v1alpha1/module.d.ts +13 -1
- package/types/cosmos/app/runtime/v1alpha1/module.js +36 -0
- package/types/cosmos/app/v1alpha1/query.d.ts +6 -2
- package/types/cosmos/auth/module/v1/module.d.ts +6 -0
- package/types/cosmos/auth/module/v1/module.js +18 -1
- package/types/cosmos/auth/v1beta1/query.d.ts +21 -107
- package/types/cosmos/auth/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/authz/v1beta1/authz.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/event.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/genesis.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/query.d.ts +2 -11
- package/types/cosmos/authz/v1beta1/tx.d.ts +0 -1
- package/types/cosmos/autocli/v1/options.d.ts +21 -1
- package/types/cosmos/autocli/v1/options.js +65 -2
- package/types/cosmos/bank/v1beta1/authz.d.ts +0 -4
- package/types/cosmos/bank/v1beta1/bank.d.ts +2 -14
- package/types/cosmos/bank/v1beta1/genesis.d.ts +1 -5
- package/types/cosmos/bank/v1beta1/query.d.ts +12 -62
- package/types/cosmos/bank/v1beta1/query.js +6 -6
- package/types/cosmos/bank/v1beta1/tx.d.ts +2 -18
- package/types/cosmos/base/abci/v1beta1/abci.d.ts +2 -12
- package/types/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
- package/types/cosmos/base/tendermint/v1beta1/query.d.ts +0 -5
- package/types/cosmos/benchmark/module/v1/module.d.ts +52 -0
- package/types/cosmos/benchmark/module/v1/module.js +289 -0
- package/types/cosmos/benchmark/v1/benchmark.d.ts +32 -0
- package/types/cosmos/benchmark/v1/benchmark.js +164 -0
- package/types/cosmos/benchmark/v1/tx.d.ts +51 -0
- package/types/cosmos/benchmark/v1/tx.js +196 -0
- package/types/cosmos/consensus/v1/query.d.ts +0 -1
- package/types/cosmos/consensus/v1/tx.d.ts +0 -4
- package/types/cosmos/{orm/module/v1alpha1 → counter/module/v1}/module.d.ts +4 -6
- package/types/cosmos/counter/module/v1/module.js +62 -0
- package/types/cosmos/counter/v1/query.d.ts +47 -0
- package/types/cosmos/counter/v1/query.js +122 -0
- package/types/cosmos/counter/v1/tx.d.ts +52 -0
- package/types/cosmos/counter/v1/tx.js +153 -0
- package/types/cosmos/crisis/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/crypto/hd/v1/hd.d.ts +0 -1
- package/types/cosmos/crypto/keyring/v1/record.d.ts +0 -1
- package/types/cosmos/crypto/secp256r1/keys.d.ts +0 -1
- package/types/cosmos/distribution/v1beta1/query.d.ts +5 -1
- package/types/cosmos/distribution/v1beta1/tx.d.ts +4 -22
- package/types/cosmos/epochs/module/v1/module.d.ts +25 -0
- package/types/cosmos/{orm/module/v1alpha1 → epochs/module/v1}/module.js +2 -2
- package/types/cosmos/epochs/v1beta1/events.d.ts +32 -0
- package/types/cosmos/epochs/v1beta1/events.js +140 -0
- package/types/cosmos/epochs/v1beta1/genesis.d.ts +86 -0
- package/types/cosmos/epochs/v1beta1/genesis.js +256 -0
- package/types/cosmos/epochs/v1beta1/query.d.ts +73 -0
- package/types/cosmos/epochs/v1beta1/query.js +233 -0
- package/types/cosmos/evidence/v1beta1/query.d.ts +1 -5
- package/types/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -1
- package/types/cosmos/feegrant/v1beta1/genesis.d.ts +0 -1
- package/types/cosmos/feegrant/v1beta1/query.d.ts +3 -16
- package/types/cosmos/feegrant/v1beta1/tx.d.ts +3 -16
- package/types/cosmos/gov/v1/genesis.d.ts +1 -8
- package/types/cosmos/gov/v1/gov.d.ts +9 -50
- package/types/cosmos/gov/v1/gov.js +0 -1
- package/types/cosmos/gov/v1/query.d.ts +1 -6
- package/types/cosmos/gov/v1/tx.d.ts +6 -37
- package/types/cosmos/gov/v1beta1/gov.d.ts +2 -10
- package/types/cosmos/gov/v1beta1/tx.d.ts +3 -15
- package/types/cosmos/group/v1/events.d.ts +8 -1
- package/types/cosmos/group/v1/events.js +68 -0
- package/types/cosmos/group/v1/genesis.d.ts +0 -1
- package/types/cosmos/group/v1/query.d.ts +3 -16
- package/types/cosmos/group/v1/tx.d.ts +2 -11
- package/types/cosmos/group/v1/tx.js +0 -1
- package/types/cosmos/group/v1/types.d.ts +2 -11
- package/types/cosmos/group/v1/types.js +0 -1
- package/types/cosmos/mint/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/params/v1beta1/query.d.ts +1 -11
- package/types/cosmos/protocolpool/module/v1/module.d.ts +27 -0
- package/types/cosmos/protocolpool/module/v1/module.js +62 -0
- package/types/cosmos/protocolpool/v1/genesis.d.ts +33 -0
- package/types/cosmos/protocolpool/v1/genesis.js +84 -0
- package/types/cosmos/protocolpool/v1/query.d.ts +108 -0
- package/types/cosmos/protocolpool/v1/query.js +420 -0
- package/types/cosmos/protocolpool/v1/tx.d.ts +159 -0
- package/types/cosmos/protocolpool/v1/tx.js +700 -0
- package/types/cosmos/protocolpool/v1/types.d.ts +45 -0
- package/types/cosmos/protocolpool/v1/types.js +196 -0
- package/types/cosmos/slashing/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/staking/v1beta1/authz.d.ts +2 -10
- package/types/cosmos/staking/v1beta1/authz.js +1 -5
- package/types/cosmos/staking/v1beta1/staking.d.ts +1 -5
- package/types/cosmos/staking/v1beta1/tx.d.ts +4 -25
- package/types/cosmos/store/snapshots/v1/snapshot.d.ts +5 -25
- package/types/cosmos/store/v1beta1/listening.d.ts +0 -2
- package/types/cosmos/tx/v1beta1/service.d.ts +6 -52
- package/types/cosmos/tx/v1beta1/tx.d.ts +37 -17
- package/types/cosmos/tx/v1beta1/tx.js +61 -1
- package/types/cosmos/upgrade/v1beta1/query.d.ts +4 -25
- package/types/cosmos/upgrade/v1beta1/tx.d.ts +5 -28
- package/types/cosmos/vesting/v1beta1/tx.d.ts +1 -15
- package/types/cosmos/vesting/v1beta1/vesting.d.ts +0 -2
- package/types/cosmos/orm/query/v1alpha1/query.d.ts +0 -148
- package/types/cosmos/orm/query/v1alpha1/query.js +0 -705
- package/types/cosmos/orm/v1/orm.d.ts +0 -115
- package/types/cosmos/orm/v1/orm.js +0 -300
- package/types/cosmos/orm/v1alpha1/schema.d.ts +0 -77
- package/types/cosmos/orm/v1alpha1/schema.js +0 -243
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
|
2
|
+
import { EncodeObject, Registry } from "@cosmjs/proto-signing";
|
|
3
|
+
import { AminoTypes } from "@cosmjs/stargate";
|
|
4
|
+
export declare class AminoAdapter extends AminoTypes {
|
|
5
|
+
private readonly registry;
|
|
6
|
+
constructor(registry: Registry);
|
|
7
|
+
toAmino({ typeUrl, value }: EncodeObject): AminoMsg;
|
|
8
|
+
fromAmino({ type, value }: AminoMsg): EncodeObject;
|
|
9
|
+
}
|
package/amino_adapter.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AminoTypes } from "@cosmjs/stargate";
|
|
2
|
+
export class AminoAdapter extends AminoTypes {
|
|
3
|
+
constructor(registry) {
|
|
4
|
+
super({});
|
|
5
|
+
this.registry = registry;
|
|
6
|
+
}
|
|
7
|
+
toAmino({ typeUrl, value }) {
|
|
8
|
+
console.log(value);
|
|
9
|
+
const genType = this.registry.lookupType(typeUrl);
|
|
10
|
+
return {
|
|
11
|
+
type: typeUrl,
|
|
12
|
+
value: JSON.parse(JSON.stringify(genType.toJSON(value), (_, value) => typeof value === "number" ? value.toString() : value)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
fromAmino({ type, value }) {
|
|
16
|
+
const genType = this.registry.lookupType(type);
|
|
17
|
+
return {
|
|
18
|
+
typeUrl: type,
|
|
19
|
+
value: genType.fromJSON(value),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
|
+
import { AminoAdapter } from "../amino_adapter";
|
|
2
3
|
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
4
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
5
|
import { msgTypes } from './registry';
|
|
@@ -106,7 +107,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
106
107
|
}
|
|
107
108
|
try {
|
|
108
109
|
const { address } = (await signer.getAccounts())[0];
|
|
109
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
110
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
110
111
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
111
112
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
112
113
|
}
|
|
@@ -120,7 +121,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
120
121
|
}
|
|
121
122
|
try {
|
|
122
123
|
const { address } = (await signer.getAccounts())[0];
|
|
123
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
124
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
124
125
|
let msg = this.msgUserCreate({ value: MsgUserCreate.fromPartial(value) });
|
|
125
126
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
126
127
|
}
|
|
@@ -134,7 +135,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
134
135
|
}
|
|
135
136
|
try {
|
|
136
137
|
const { address } = (await signer.getAccounts())[0];
|
|
137
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
138
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
138
139
|
let msg = this.msgCardSchemeBuy({ value: MsgCardSchemeBuy.fromPartial(value) });
|
|
139
140
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
140
141
|
}
|
|
@@ -148,7 +149,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
148
149
|
}
|
|
149
150
|
try {
|
|
150
151
|
const { address } = (await signer.getAccounts())[0];
|
|
151
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
152
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
152
153
|
let msg = this.msgCardSaveContent({ value: MsgCardSaveContent.fromPartial(value) });
|
|
153
154
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
154
155
|
}
|
|
@@ -162,7 +163,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
162
163
|
}
|
|
163
164
|
try {
|
|
164
165
|
const { address } = (await signer.getAccounts())[0];
|
|
165
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
166
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
166
167
|
let msg = this.msgCardVote({ value: MsgCardVote.fromPartial(value) });
|
|
167
168
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
168
169
|
}
|
|
@@ -176,7 +177,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
176
177
|
}
|
|
177
178
|
try {
|
|
178
179
|
const { address } = (await signer.getAccounts())[0];
|
|
179
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
180
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
180
181
|
let msg = this.msgCardTransfer({ value: MsgCardTransfer.fromPartial(value) });
|
|
181
182
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
182
183
|
}
|
|
@@ -190,7 +191,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
190
191
|
}
|
|
191
192
|
try {
|
|
192
193
|
const { address } = (await signer.getAccounts())[0];
|
|
193
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
194
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
194
195
|
let msg = this.msgCardDonate({ value: MsgCardDonate.fromPartial(value) });
|
|
195
196
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
196
197
|
}
|
|
@@ -204,7 +205,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
204
205
|
}
|
|
205
206
|
try {
|
|
206
207
|
const { address } = (await signer.getAccounts())[0];
|
|
207
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
208
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
208
209
|
let msg = this.msgCardArtworkAdd({ value: MsgCardArtworkAdd.fromPartial(value) });
|
|
209
210
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
210
211
|
}
|
|
@@ -218,7 +219,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
218
219
|
}
|
|
219
220
|
try {
|
|
220
221
|
const { address } = (await signer.getAccounts())[0];
|
|
221
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
222
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
222
223
|
let msg = this.msgCardArtistChange({ value: MsgCardArtistChange.fromPartial(value) });
|
|
223
224
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
224
225
|
}
|
|
@@ -232,7 +233,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
232
233
|
}
|
|
233
234
|
try {
|
|
234
235
|
const { address } = (await signer.getAccounts())[0];
|
|
235
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
236
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
236
237
|
let msg = this.msgCouncilRegister({ value: MsgCouncilRegister.fromPartial(value) });
|
|
237
238
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
238
239
|
}
|
|
@@ -246,7 +247,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
246
247
|
}
|
|
247
248
|
try {
|
|
248
249
|
const { address } = (await signer.getAccounts())[0];
|
|
249
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
250
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
250
251
|
let msg = this.msgCouncilDeregister({ value: MsgCouncilDeregister.fromPartial(value) });
|
|
251
252
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
252
253
|
}
|
|
@@ -260,7 +261,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
260
261
|
}
|
|
261
262
|
try {
|
|
262
263
|
const { address } = (await signer.getAccounts())[0];
|
|
263
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
264
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
264
265
|
let msg = this.msgMatchReport({ value: MsgMatchReport.fromPartial(value) });
|
|
265
266
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
266
267
|
}
|
|
@@ -274,7 +275,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
274
275
|
}
|
|
275
276
|
try {
|
|
276
277
|
const { address } = (await signer.getAccounts())[0];
|
|
277
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
278
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
278
279
|
let msg = this.msgCouncilCreate({ value: MsgCouncilCreate.fromPartial(value) });
|
|
279
280
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
280
281
|
}
|
|
@@ -288,7 +289,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
288
289
|
}
|
|
289
290
|
try {
|
|
290
291
|
const { address } = (await signer.getAccounts())[0];
|
|
291
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
292
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
292
293
|
let msg = this.msgMatchReporterAppoint({ value: MsgMatchReporterAppoint.fromPartial(value) });
|
|
293
294
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
294
295
|
}
|
|
@@ -302,7 +303,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
302
303
|
}
|
|
303
304
|
try {
|
|
304
305
|
const { address } = (await signer.getAccounts())[0];
|
|
305
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
306
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
306
307
|
let msg = this.msgSetCreate({ value: MsgSetCreate.fromPartial(value) });
|
|
307
308
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
308
309
|
}
|
|
@@ -316,7 +317,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
316
317
|
}
|
|
317
318
|
try {
|
|
318
319
|
const { address } = (await signer.getAccounts())[0];
|
|
319
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
320
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
320
321
|
let msg = this.msgSetCardAdd({ value: MsgSetCardAdd.fromPartial(value) });
|
|
321
322
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
322
323
|
}
|
|
@@ -330,7 +331,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
330
331
|
}
|
|
331
332
|
try {
|
|
332
333
|
const { address } = (await signer.getAccounts())[0];
|
|
333
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
334
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
334
335
|
let msg = this.msgSetCardRemove({ value: MsgSetCardRemove.fromPartial(value) });
|
|
335
336
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
336
337
|
}
|
|
@@ -344,7 +345,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
344
345
|
}
|
|
345
346
|
try {
|
|
346
347
|
const { address } = (await signer.getAccounts())[0];
|
|
347
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
348
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
348
349
|
let msg = this.msgSetContributorAdd({ value: MsgSetContributorAdd.fromPartial(value) });
|
|
349
350
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
350
351
|
}
|
|
@@ -358,7 +359,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
358
359
|
}
|
|
359
360
|
try {
|
|
360
361
|
const { address } = (await signer.getAccounts())[0];
|
|
361
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
362
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
362
363
|
let msg = this.msgSetContributorRemove({ value: MsgSetContributorRemove.fromPartial(value) });
|
|
363
364
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
364
365
|
}
|
|
@@ -372,7 +373,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
372
373
|
}
|
|
373
374
|
try {
|
|
374
375
|
const { address } = (await signer.getAccounts())[0];
|
|
375
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
376
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
376
377
|
let msg = this.msgSetFinalize({ value: MsgSetFinalize.fromPartial(value) });
|
|
377
378
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
378
379
|
}
|
|
@@ -386,7 +387,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
386
387
|
}
|
|
387
388
|
try {
|
|
388
389
|
const { address } = (await signer.getAccounts())[0];
|
|
389
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
390
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
390
391
|
let msg = this.msgSetArtworkAdd({ value: MsgSetArtworkAdd.fromPartial(value) });
|
|
391
392
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
392
393
|
}
|
|
@@ -400,7 +401,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
400
401
|
}
|
|
401
402
|
try {
|
|
402
403
|
const { address } = (await signer.getAccounts())[0];
|
|
403
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
404
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
404
405
|
let msg = this.msgSetStoryAdd({ value: MsgSetStoryAdd.fromPartial(value) });
|
|
405
406
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
406
407
|
}
|
|
@@ -414,7 +415,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
414
415
|
}
|
|
415
416
|
try {
|
|
416
417
|
const { address } = (await signer.getAccounts())[0];
|
|
417
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
418
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
418
419
|
let msg = this.msgBoosterPackBuy({ value: MsgBoosterPackBuy.fromPartial(value) });
|
|
419
420
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
420
421
|
}
|
|
@@ -428,7 +429,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
428
429
|
}
|
|
429
430
|
try {
|
|
430
431
|
const { address } = (await signer.getAccounts())[0];
|
|
431
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
432
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
432
433
|
let msg = this.msgSellOfferCreate({ value: MsgSellOfferCreate.fromPartial(value) });
|
|
433
434
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
434
435
|
}
|
|
@@ -442,7 +443,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
442
443
|
}
|
|
443
444
|
try {
|
|
444
445
|
const { address } = (await signer.getAccounts())[0];
|
|
445
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
446
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
446
447
|
let msg = this.msgSellOfferBuy({ value: MsgSellOfferBuy.fromPartial(value) });
|
|
447
448
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
448
449
|
}
|
|
@@ -456,7 +457,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
456
457
|
}
|
|
457
458
|
try {
|
|
458
459
|
const { address } = (await signer.getAccounts())[0];
|
|
459
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
460
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
460
461
|
let msg = this.msgSellOfferRemove({ value: MsgSellOfferRemove.fromPartial(value) });
|
|
461
462
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
462
463
|
}
|
|
@@ -470,7 +471,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
470
471
|
}
|
|
471
472
|
try {
|
|
472
473
|
const { address } = (await signer.getAccounts())[0];
|
|
473
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
474
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
474
475
|
let msg = this.msgCardRaritySet({ value: MsgCardRaritySet.fromPartial(value) });
|
|
475
476
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
476
477
|
}
|
|
@@ -484,7 +485,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
484
485
|
}
|
|
485
486
|
try {
|
|
486
487
|
const { address } = (await signer.getAccounts())[0];
|
|
487
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
488
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
488
489
|
let msg = this.msgCouncilResponseCommit({ value: MsgCouncilResponseCommit.fromPartial(value) });
|
|
489
490
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
490
491
|
}
|
|
@@ -498,7 +499,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
498
499
|
}
|
|
499
500
|
try {
|
|
500
501
|
const { address } = (await signer.getAccounts())[0];
|
|
501
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
502
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
502
503
|
let msg = this.msgCouncilResponseReveal({ value: MsgCouncilResponseReveal.fromPartial(value) });
|
|
503
504
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
504
505
|
}
|
|
@@ -512,7 +513,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
512
513
|
}
|
|
513
514
|
try {
|
|
514
515
|
const { address } = (await signer.getAccounts())[0];
|
|
515
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
516
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
516
517
|
let msg = this.msgCouncilRestart({ value: MsgCouncilRestart.fromPartial(value) });
|
|
517
518
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
518
519
|
}
|
|
@@ -526,7 +527,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
526
527
|
}
|
|
527
528
|
try {
|
|
528
529
|
const { address } = (await signer.getAccounts())[0];
|
|
529
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
530
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
530
531
|
let msg = this.msgMatchConfirm({ value: MsgMatchConfirm.fromPartial(value) });
|
|
531
532
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
532
533
|
}
|
|
@@ -540,7 +541,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
540
541
|
}
|
|
541
542
|
try {
|
|
542
543
|
const { address } = (await signer.getAccounts())[0];
|
|
543
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
544
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
544
545
|
let msg = this.msgProfileCardSet({ value: MsgProfileCardSet.fromPartial(value) });
|
|
545
546
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
546
547
|
}
|
|
@@ -554,7 +555,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
554
555
|
}
|
|
555
556
|
try {
|
|
556
557
|
const { address } = (await signer.getAccounts())[0];
|
|
557
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
558
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
558
559
|
let msg = this.msgProfileWebsiteSet({ value: MsgProfileWebsiteSet.fromPartial(value) });
|
|
559
560
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
560
561
|
}
|
|
@@ -568,7 +569,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
568
569
|
}
|
|
569
570
|
try {
|
|
570
571
|
const { address } = (await signer.getAccounts())[0];
|
|
571
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
572
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
572
573
|
let msg = this.msgProfileBioSet({ value: MsgProfileBioSet.fromPartial(value) });
|
|
573
574
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
574
575
|
}
|
|
@@ -582,7 +583,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
582
583
|
}
|
|
583
584
|
try {
|
|
584
585
|
const { address } = (await signer.getAccounts())[0];
|
|
585
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
586
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
586
587
|
let msg = this.msgBoosterPackOpen({ value: MsgBoosterPackOpen.fromPartial(value) });
|
|
587
588
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
588
589
|
}
|
|
@@ -596,7 +597,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
596
597
|
}
|
|
597
598
|
try {
|
|
598
599
|
const { address } = (await signer.getAccounts())[0];
|
|
599
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
600
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
600
601
|
let msg = this.msgBoosterPackTransfer({ value: MsgBoosterPackTransfer.fromPartial(value) });
|
|
601
602
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
602
603
|
}
|
|
@@ -610,7 +611,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
610
611
|
}
|
|
611
612
|
try {
|
|
612
613
|
const { address } = (await signer.getAccounts())[0];
|
|
613
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
614
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
614
615
|
let msg = this.msgSetStoryWriterSet({ value: MsgSetStoryWriterSet.fromPartial(value) });
|
|
615
616
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
616
617
|
}
|
|
@@ -624,7 +625,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
624
625
|
}
|
|
625
626
|
try {
|
|
626
627
|
const { address } = (await signer.getAccounts())[0];
|
|
627
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
628
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
628
629
|
let msg = this.msgSetArtistSet({ value: MsgSetArtistSet.fromPartial(value) });
|
|
629
630
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
630
631
|
}
|
|
@@ -638,7 +639,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
638
639
|
}
|
|
639
640
|
try {
|
|
640
641
|
const { address } = (await signer.getAccounts())[0];
|
|
641
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
642
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
642
643
|
let msg = this.msgCardVoteMulti({ value: MsgCardVoteMulti.fromPartial(value) });
|
|
643
644
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
644
645
|
}
|
|
@@ -652,7 +653,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
652
653
|
}
|
|
653
654
|
try {
|
|
654
655
|
const { address } = (await signer.getAccounts())[0];
|
|
655
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
656
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
656
657
|
let msg = this.msgMatchOpen({ value: MsgMatchOpen.fromPartial(value) });
|
|
657
658
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
658
659
|
}
|
|
@@ -666,7 +667,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
666
667
|
}
|
|
667
668
|
try {
|
|
668
669
|
const { address } = (await signer.getAccounts())[0];
|
|
669
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
670
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
670
671
|
let msg = this.msgSetNameSet({ value: MsgSetNameSet.fromPartial(value) });
|
|
671
672
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
672
673
|
}
|
|
@@ -680,7 +681,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
680
681
|
}
|
|
681
682
|
try {
|
|
682
683
|
const { address } = (await signer.getAccounts())[0];
|
|
683
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
684
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
684
685
|
let msg = this.msgProfileAliasSet({ value: MsgProfileAliasSet.fromPartial(value) });
|
|
685
686
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
686
687
|
}
|
|
@@ -694,7 +695,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
694
695
|
}
|
|
695
696
|
try {
|
|
696
697
|
const { address } = (await signer.getAccounts())[0];
|
|
697
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
698
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
698
699
|
let msg = this.msgEarlyAccessInvite({ value: MsgEarlyAccessInvite.fromPartial(value) });
|
|
699
700
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
700
701
|
}
|
|
@@ -708,7 +709,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
708
709
|
}
|
|
709
710
|
try {
|
|
710
711
|
const { address } = (await signer.getAccounts())[0];
|
|
711
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
712
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
712
713
|
let msg = this.msgZealyConnect({ value: MsgZealyConnect.fromPartial(value) });
|
|
713
714
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
714
715
|
}
|
|
@@ -722,7 +723,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
722
723
|
}
|
|
723
724
|
try {
|
|
724
725
|
const { address } = (await signer.getAccounts())[0];
|
|
725
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
726
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
726
727
|
let msg = this.msgEncounterCreate({ value: MsgEncounterCreate.fromPartial(value) });
|
|
727
728
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
728
729
|
}
|
|
@@ -736,7 +737,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
736
737
|
}
|
|
737
738
|
try {
|
|
738
739
|
const { address } = (await signer.getAccounts())[0];
|
|
739
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
740
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
740
741
|
let msg = this.msgEncounterDo({ value: MsgEncounterDo.fromPartial(value) });
|
|
741
742
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
742
743
|
}
|
|
@@ -750,7 +751,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
750
751
|
}
|
|
751
752
|
try {
|
|
752
753
|
const { address } = (await signer.getAccounts())[0];
|
|
753
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
754
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
754
755
|
let msg = this.msgEncounterClose({ value: MsgEncounterClose.fromPartial(value) });
|
|
755
756
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
756
757
|
}
|
|
@@ -764,7 +765,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
764
765
|
}
|
|
765
766
|
try {
|
|
766
767
|
const { address } = (await signer.getAccounts())[0];
|
|
767
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
768
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
768
769
|
let msg = this.msgEarlyAccessDisinvite({ value: MsgEarlyAccessDisinvite.fromPartial(value) });
|
|
769
770
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
770
771
|
}
|
|
@@ -778,7 +779,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
778
779
|
}
|
|
779
780
|
try {
|
|
780
781
|
const { address } = (await signer.getAccounts())[0];
|
|
781
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
782
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
782
783
|
let msg = this.msgCardBan({ value: MsgCardBan.fromPartial(value) });
|
|
783
784
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
784
785
|
}
|
|
@@ -792,7 +793,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
792
793
|
}
|
|
793
794
|
try {
|
|
794
795
|
const { address } = (await signer.getAccounts())[0];
|
|
795
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
796
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
796
797
|
let msg = this.msgEarlyAccessGrant({ value: MsgEarlyAccessGrant.fromPartial(value) });
|
|
797
798
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
798
799
|
}
|
|
@@ -806,7 +807,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
806
807
|
}
|
|
807
808
|
try {
|
|
808
809
|
const { address } = (await signer.getAccounts())[0];
|
|
809
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
810
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
810
811
|
let msg = this.msgSetActivate({ value: MsgSetActivate.fromPartial(value) });
|
|
811
812
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
812
813
|
}
|
|
@@ -820,7 +821,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
820
821
|
}
|
|
821
822
|
try {
|
|
822
823
|
const { address } = (await signer.getAccounts())[0];
|
|
823
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
824
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
824
825
|
let msg = this.msgCardCopyrightClaim({ value: MsgCardCopyrightClaim.fromPartial(value) });
|
|
825
826
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
826
827
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
|
+
import { AminoAdapter } from "../amino_adapter";
|
|
2
3
|
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
4
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
5
|
import { msgTypes } from './registry';
|
|
@@ -29,7 +30,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
29
30
|
}
|
|
30
31
|
try {
|
|
31
32
|
const { address } = (await signer.getAccounts())[0];
|
|
32
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
33
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
33
34
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
34
35
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
35
36
|
}
|
|
@@ -43,7 +44,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
43
44
|
}
|
|
44
45
|
try {
|
|
45
46
|
const { address } = (await signer.getAccounts())[0];
|
|
46
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
47
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
47
48
|
let msg = this.msgSet({ value: MsgSet.fromPartial(value) });
|
|
48
49
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
49
50
|
}
|
package/client.js
CHANGED
|
@@ -122,7 +122,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
await window.keplr.enable(chainId);
|
|
125
|
-
this.signer = window.keplr.
|
|
125
|
+
this.signer = await window.keplr.getOfflineSignerAuto(chainId);
|
|
126
126
|
this.emit("signer-changed", this.signer);
|
|
127
127
|
}
|
|
128
128
|
catch (e) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
|
+
import { AminoAdapter } from "../amino_adapter";
|
|
2
3
|
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
4
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
5
|
import { msgTypes } from './registry';
|
|
@@ -30,7 +31,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
30
31
|
}
|
|
31
32
|
try {
|
|
32
33
|
const { address } = (await signer.getAccounts())[0];
|
|
33
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
34
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
34
35
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
35
36
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
36
37
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
|
+
import { AminoAdapter } from "../amino_adapter";
|
|
2
3
|
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
4
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
5
|
import { msgTypes } from './registry';
|
|
@@ -34,7 +35,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
34
35
|
}
|
|
35
36
|
try {
|
|
36
37
|
const { address } = (await signer.getAccounts())[0];
|
|
37
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
38
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
38
39
|
let msg = this.msgGrant({ value: MsgGrant.fromPartial(value) });
|
|
39
40
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
40
41
|
}
|
|
@@ -48,7 +49,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
48
49
|
}
|
|
49
50
|
try {
|
|
50
51
|
const { address } = (await signer.getAccounts())[0];
|
|
51
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
52
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
52
53
|
let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
|
|
53
54
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
54
55
|
}
|
|
@@ -62,7 +63,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
62
63
|
}
|
|
63
64
|
try {
|
|
64
65
|
const { address } = (await signer.getAccounts())[0];
|
|
65
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
66
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
66
67
|
let msg = this.msgRevoke({ value: MsgRevoke.fromPartial(value) });
|
|
67
68
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
68
69
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
|
+
import { AminoAdapter } from "../amino_adapter";
|
|
2
3
|
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
4
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
5
|
import { msgTypes } from './registry';
|
|
@@ -39,7 +40,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
39
40
|
}
|
|
40
41
|
try {
|
|
41
42
|
const { address } = (await signer.getAccounts())[0];
|
|
42
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
43
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
43
44
|
let msg = this.msgSend({ value: MsgSend.fromPartial(value) });
|
|
44
45
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
45
46
|
}
|
|
@@ -53,7 +54,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
53
54
|
}
|
|
54
55
|
try {
|
|
55
56
|
const { address } = (await signer.getAccounts())[0];
|
|
56
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
57
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
57
58
|
let msg = this.msgMultiSend({ value: MsgMultiSend.fromPartial(value) });
|
|
58
59
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
59
60
|
}
|
|
@@ -67,7 +68,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
67
68
|
}
|
|
68
69
|
try {
|
|
69
70
|
const { address } = (await signer.getAccounts())[0];
|
|
70
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
71
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
71
72
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
72
73
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
73
74
|
}
|
|
@@ -81,7 +82,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
81
82
|
}
|
|
82
83
|
try {
|
|
83
84
|
const { address } = (await signer.getAccounts())[0];
|
|
84
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
85
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
85
86
|
let msg = this.msgSetSendEnabled({ value: MsgSetSendEnabled.fromPartial(value) });
|
|
86
87
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
87
88
|
}
|