decentralcardgame-cardchain-client-ts 0.0.35 → 0.0.37
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 +2 -2
- 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 +68 -68
- package/index.js +19 -19
- package/package.json +2 -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
|
@@ -5,8 +5,8 @@ import { QuerySpendableBalancesRequest } from "../types/cosmos/bank/v1beta1/quer
|
|
|
5
5
|
import { QuerySpendableBalanceByDenomRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
6
6
|
import { QueryTotalSupplyRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
7
7
|
import { QuerySupplyOfRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
8
|
-
import { QueryDenomMetadataByQueryStringRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
9
8
|
import { QueryDenomsMetadataRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
9
|
+
import { QueryDenomMetadataByQueryStringRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
10
10
|
import { QueryDenomOwnersRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
11
11
|
import { QueryDenomOwnersByQueryRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
12
12
|
import { QuerySendEnabledRequest } from "../types/cosmos/bank/v1beta1/query";
|
|
@@ -195,14 +195,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
195
195
|
};
|
|
196
196
|
}, any>>;
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* QueryDenomsMetadata
|
|
199
199
|
*
|
|
200
200
|
* @tags Query
|
|
201
|
-
* @name
|
|
202
|
-
* @request GET:/cosmos/bank/v1beta1/denoms_metadata
|
|
201
|
+
* @name queryDenomsMetadata
|
|
202
|
+
* @request GET:/cosmos/bank/v1beta1/denoms_metadata
|
|
203
203
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
queryDenomsMetadata: (query?: Omit<FlattenObject<SnakeCasedPropertiesDeep<ChangeProtoToJSPrimitives<QueryDenomsMetadataRequest>>>, "">, params?: RequestParams) => Promise<AxiosResponse<{
|
|
205
|
+
metadatas: {
|
|
206
206
|
description: string;
|
|
207
207
|
denom_units: {
|
|
208
208
|
denom: string;
|
|
@@ -215,16 +215,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
215
215
|
symbol: string;
|
|
216
216
|
uri: string;
|
|
217
217
|
uri_hash: string;
|
|
218
|
+
}[];
|
|
219
|
+
pagination: {
|
|
220
|
+
next_key: string;
|
|
221
|
+
total: number;
|
|
218
222
|
};
|
|
219
223
|
}, any>>;
|
|
220
224
|
/**
|
|
221
|
-
*
|
|
225
|
+
* QueryDenomMetadata
|
|
222
226
|
*
|
|
223
227
|
* @tags Query
|
|
224
|
-
* @name
|
|
225
|
-
* @request GET:/cosmos/bank/v1beta1/
|
|
228
|
+
* @name queryDenomMetadata
|
|
229
|
+
* @request GET:/cosmos/bank/v1beta1/denoms_metadata/{denom=**}
|
|
226
230
|
*/
|
|
227
|
-
|
|
231
|
+
queryDenomMetadata: (denom: string, query?: Record<string, any>, params?: RequestParams) => Promise<AxiosResponse<{
|
|
228
232
|
metadata: {
|
|
229
233
|
description: string;
|
|
230
234
|
denom_units: {
|
|
@@ -241,14 +245,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
241
245
|
};
|
|
242
246
|
}, any>>;
|
|
243
247
|
/**
|
|
244
|
-
*
|
|
248
|
+
* QueryDenomMetadataByQueryString
|
|
245
249
|
*
|
|
246
250
|
* @tags Query
|
|
247
|
-
* @name
|
|
248
|
-
* @request GET:/cosmos/bank/v1beta1/
|
|
251
|
+
* @name queryDenomMetadataByQueryString
|
|
252
|
+
* @request GET:/cosmos/bank/v1beta1/denoms_metadata_by_query_string
|
|
249
253
|
*/
|
|
250
|
-
|
|
251
|
-
|
|
254
|
+
queryDenomMetadataByQueryString: (query?: Omit<FlattenObject<SnakeCasedPropertiesDeep<ChangeProtoToJSPrimitives<QueryDenomMetadataByQueryStringRequest>>>, "">, params?: RequestParams) => Promise<AxiosResponse<{
|
|
255
|
+
metadata: {
|
|
252
256
|
description: string;
|
|
253
257
|
denom_units: {
|
|
254
258
|
denom: string;
|
|
@@ -261,10 +265,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
261
265
|
symbol: string;
|
|
262
266
|
uri: string;
|
|
263
267
|
uri_hash: string;
|
|
264
|
-
}[];
|
|
265
|
-
pagination: {
|
|
266
|
-
next_key: string;
|
|
267
|
-
total: number;
|
|
268
268
|
};
|
|
269
269
|
}, any>>;
|
|
270
270
|
/**
|
|
@@ -272,7 +272,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
272
272
|
*
|
|
273
273
|
* @tags Query
|
|
274
274
|
* @name queryDenomOwners
|
|
275
|
-
* @request GET:/cosmos/bank/v1beta1/denom_owners/{denom}
|
|
275
|
+
* @request GET:/cosmos/bank/v1beta1/denom_owners/{denom=**}
|
|
276
276
|
*/
|
|
277
277
|
queryDenomOwners: (denom: string, query?: Omit<FlattenObject<SnakeCasedPropertiesDeep<ChangeProtoToJSPrimitives<QueryDenomOwnersRequest>>>, "denom">, params?: RequestParams) => Promise<AxiosResponse<{
|
|
278
278
|
denom_owners: {
|
|
@@ -170,42 +170,42 @@ export class Api extends HttpClient {
|
|
|
170
170
|
...params,
|
|
171
171
|
});
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* QueryDenomsMetadata
|
|
174
174
|
*
|
|
175
175
|
* @tags Query
|
|
176
|
-
* @name
|
|
177
|
-
* @request GET:/cosmos/bank/v1beta1/denoms_metadata
|
|
176
|
+
* @name queryDenomsMetadata
|
|
177
|
+
* @request GET:/cosmos/bank/v1beta1/denoms_metadata
|
|
178
178
|
*/
|
|
179
|
-
this.
|
|
180
|
-
path: `/cosmos/bank/v1beta1/denoms_metadata
|
|
179
|
+
this.queryDenomsMetadata = (query, params = {}) => this.request({
|
|
180
|
+
path: `/cosmos/bank/v1beta1/denoms_metadata`,
|
|
181
181
|
method: "GET",
|
|
182
182
|
query: query,
|
|
183
183
|
format: "json",
|
|
184
184
|
...params,
|
|
185
185
|
});
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
187
|
+
* QueryDenomMetadata
|
|
188
188
|
*
|
|
189
189
|
* @tags Query
|
|
190
|
-
* @name
|
|
191
|
-
* @request GET:/cosmos/bank/v1beta1/
|
|
190
|
+
* @name queryDenomMetadata
|
|
191
|
+
* @request GET:/cosmos/bank/v1beta1/denoms_metadata/{denom=**}
|
|
192
192
|
*/
|
|
193
|
-
this.
|
|
194
|
-
path: `/cosmos/bank/v1beta1/
|
|
193
|
+
this.queryDenomMetadata = (denom, query, params = {}) => this.request({
|
|
194
|
+
path: `/cosmos/bank/v1beta1/denoms_metadata/${denom}`,
|
|
195
195
|
method: "GET",
|
|
196
196
|
query: query,
|
|
197
197
|
format: "json",
|
|
198
198
|
...params,
|
|
199
199
|
});
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
201
|
+
* QueryDenomMetadataByQueryString
|
|
202
202
|
*
|
|
203
203
|
* @tags Query
|
|
204
|
-
* @name
|
|
205
|
-
* @request GET:/cosmos/bank/v1beta1/
|
|
204
|
+
* @name queryDenomMetadataByQueryString
|
|
205
|
+
* @request GET:/cosmos/bank/v1beta1/denoms_metadata_by_query_string
|
|
206
206
|
*/
|
|
207
|
-
this.
|
|
208
|
-
path: `/cosmos/bank/v1beta1/
|
|
207
|
+
this.queryDenomMetadataByQueryString = (query, params = {}) => this.request({
|
|
208
|
+
path: `/cosmos/bank/v1beta1/denoms_metadata_by_query_string`,
|
|
209
209
|
method: "GET",
|
|
210
210
|
query: query,
|
|
211
211
|
format: "json",
|
|
@@ -216,7 +216,7 @@ export class Api extends HttpClient {
|
|
|
216
216
|
*
|
|
217
217
|
* @tags Query
|
|
218
218
|
* @name queryDenomOwners
|
|
219
|
-
* @request GET:/cosmos/bank/v1beta1/denom_owners/{denom}
|
|
219
|
+
* @request GET:/cosmos/bank/v1beta1/denom_owners/{denom=**}
|
|
220
220
|
*/
|
|
221
221
|
this.queryDenomOwners = (denom, query, params = {}) => this.request({
|
|
222
222
|
path: `/cosmos/bank/v1beta1/denom_owners/${denom}`,
|
|
@@ -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.msgAuthorizeCircuitBreaker({ value: MsgAuthorizeCircuitBreaker.fromPartial(value) });
|
|
35
36
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
36
37
|
}
|
|
@@ -44,7 +45,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
44
45
|
}
|
|
45
46
|
try {
|
|
46
47
|
const { address } = (await signer.getAccounts())[0];
|
|
47
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
48
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
48
49
|
let msg = this.msgTripCircuitBreaker({ value: MsgTripCircuitBreaker.fromPartial(value) });
|
|
49
50
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
50
51
|
}
|
|
@@ -58,7 +59,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
58
59
|
}
|
|
59
60
|
try {
|
|
60
61
|
const { address } = (await signer.getAccounts())[0];
|
|
61
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
62
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
62
63
|
let msg = this.msgResetCircuitBreaker({ value: MsgResetCircuitBreaker.fromPartial(value) });
|
|
63
64
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
64
65
|
}
|
|
@@ -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';
|
|
@@ -26,7 +27,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
26
27
|
}
|
|
27
28
|
try {
|
|
28
29
|
const { address } = (await signer.getAccounts())[0];
|
|
29
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
30
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
30
31
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
31
32
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
32
33
|
}
|
|
@@ -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';
|
|
@@ -27,7 +28,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
27
28
|
}
|
|
28
29
|
try {
|
|
29
30
|
const { address } = (await signer.getAccounts())[0];
|
|
30
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
31
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
31
32
|
let msg = this.msgVerifyInvariant({ value: MsgVerifyInvariant.fromPartial(value) });
|
|
32
33
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
33
34
|
}
|
|
@@ -41,7 +42,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
41
42
|
}
|
|
42
43
|
try {
|
|
43
44
|
const { address } = (await signer.getAccounts())[0];
|
|
44
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
45
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
45
46
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
46
47
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
47
48
|
}
|
|
@@ -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';
|
|
@@ -51,7 +52,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
51
52
|
}
|
|
52
53
|
try {
|
|
53
54
|
const { address } = (await signer.getAccounts())[0];
|
|
54
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
55
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
55
56
|
let msg = this.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) });
|
|
56
57
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
57
58
|
}
|
|
@@ -65,7 +66,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
65
66
|
}
|
|
66
67
|
try {
|
|
67
68
|
const { address } = (await signer.getAccounts())[0];
|
|
68
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
69
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
69
70
|
let msg = this.msgWithdrawDelegatorReward({ value: MsgWithdrawDelegatorReward.fromPartial(value) });
|
|
70
71
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
71
72
|
}
|
|
@@ -79,7 +80,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
79
80
|
}
|
|
80
81
|
try {
|
|
81
82
|
const { address } = (await signer.getAccounts())[0];
|
|
82
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
83
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
83
84
|
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) });
|
|
84
85
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
85
86
|
}
|
|
@@ -93,7 +94,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
93
94
|
}
|
|
94
95
|
try {
|
|
95
96
|
const { address } = (await signer.getAccounts())[0];
|
|
96
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
97
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
97
98
|
let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) });
|
|
98
99
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
99
100
|
}
|
|
@@ -107,7 +108,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
107
108
|
}
|
|
108
109
|
try {
|
|
109
110
|
const { address } = (await signer.getAccounts())[0];
|
|
110
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
111
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
111
112
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
112
113
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
113
114
|
}
|
|
@@ -121,7 +122,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
121
122
|
}
|
|
122
123
|
try {
|
|
123
124
|
const { address } = (await signer.getAccounts())[0];
|
|
124
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
125
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
125
126
|
let msg = this.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) });
|
|
126
127
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
127
128
|
}
|
|
@@ -135,7 +136,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
135
136
|
}
|
|
136
137
|
try {
|
|
137
138
|
const { address } = (await signer.getAccounts())[0];
|
|
138
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
139
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
139
140
|
let msg = this.msgDepositValidatorRewardsPool({ value: MsgDepositValidatorRewardsPool.fromPartial(value) });
|
|
140
141
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
141
142
|
}
|
|
@@ -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';
|
|
@@ -27,7 +28,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
27
28
|
}
|
|
28
29
|
try {
|
|
29
30
|
const { address } = (await signer.getAccounts())[0];
|
|
30
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
31
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
31
32
|
let msg = this.msgSubmitEvidence({ value: MsgSubmitEvidence.fromPartial(value) });
|
|
32
33
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
33
34
|
}
|
|
@@ -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';
|
|
@@ -32,7 +33,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
32
33
|
}
|
|
33
34
|
try {
|
|
34
35
|
const { address } = (await signer.getAccounts())[0];
|
|
35
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
36
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
36
37
|
let msg = this.msgGrantAllowance({ value: MsgGrantAllowance.fromPartial(value) });
|
|
37
38
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
38
39
|
}
|
|
@@ -46,7 +47,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
46
47
|
}
|
|
47
48
|
try {
|
|
48
49
|
const { address } = (await signer.getAccounts())[0];
|
|
49
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
50
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
50
51
|
let msg = this.msgRevokeAllowance({ value: MsgRevokeAllowance.fromPartial(value) });
|
|
51
52
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
52
53
|
}
|
|
@@ -60,7 +61,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
60
61
|
}
|
|
61
62
|
try {
|
|
62
63
|
const { address } = (await signer.getAccounts())[0];
|
|
63
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
64
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
64
65
|
let msg = this.msgPruneAllowances({ value: MsgPruneAllowances.fromPartial(value) });
|
|
65
66
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
66
67
|
}
|
package/cosmos.gov.v1/module.js
CHANGED
|
@@ -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';
|
|
@@ -41,7 +42,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
41
42
|
}
|
|
42
43
|
try {
|
|
43
44
|
const { address } = (await signer.getAccounts())[0];
|
|
44
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
45
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
45
46
|
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
46
47
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
47
48
|
}
|
|
@@ -55,7 +56,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
55
56
|
}
|
|
56
57
|
try {
|
|
57
58
|
const { address } = (await signer.getAccounts())[0];
|
|
58
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
59
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
59
60
|
let msg = this.msgExecLegacyContent({ value: MsgExecLegacyContent.fromPartial(value) });
|
|
60
61
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
61
62
|
}
|
|
@@ -69,7 +70,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
69
70
|
}
|
|
70
71
|
try {
|
|
71
72
|
const { address } = (await signer.getAccounts())[0];
|
|
72
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
73
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
73
74
|
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
74
75
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
75
76
|
}
|
|
@@ -83,7 +84,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
83
84
|
}
|
|
84
85
|
try {
|
|
85
86
|
const { address } = (await signer.getAccounts())[0];
|
|
86
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
87
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
87
88
|
let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
|
|
88
89
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
89
90
|
}
|
|
@@ -97,7 +98,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
97
98
|
}
|
|
98
99
|
try {
|
|
99
100
|
const { address } = (await signer.getAccounts())[0];
|
|
100
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
101
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
101
102
|
let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
|
|
102
103
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
103
104
|
}
|
|
@@ -111,7 +112,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
111
112
|
}
|
|
112
113
|
try {
|
|
113
114
|
const { address } = (await signer.getAccounts())[0];
|
|
114
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
115
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
115
116
|
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
116
117
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
117
118
|
}
|
|
@@ -125,7 +126,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
125
126
|
}
|
|
126
127
|
try {
|
|
127
128
|
const { address } = (await signer.getAccounts())[0];
|
|
128
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
129
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
129
130
|
let msg = this.msgCancelProposal({ value: MsgCancelProposal.fromPartial(value) });
|
|
130
131
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
131
132
|
}
|
|
@@ -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';
|
|
@@ -38,7 +39,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
38
39
|
}
|
|
39
40
|
try {
|
|
40
41
|
const { address } = (await signer.getAccounts())[0];
|
|
41
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
42
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
42
43
|
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
43
44
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
44
45
|
}
|
|
@@ -52,7 +53,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
52
53
|
}
|
|
53
54
|
try {
|
|
54
55
|
const { address } = (await signer.getAccounts())[0];
|
|
55
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
56
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
56
57
|
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
57
58
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
58
59
|
}
|
|
@@ -66,7 +67,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
66
67
|
}
|
|
67
68
|
try {
|
|
68
69
|
const { address } = (await signer.getAccounts())[0];
|
|
69
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
70
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
70
71
|
let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
|
|
71
72
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
72
73
|
}
|
|
@@ -80,7 +81,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
80
81
|
}
|
|
81
82
|
try {
|
|
82
83
|
const { address } = (await signer.getAccounts())[0];
|
|
83
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
84
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
84
85
|
let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
|
|
85
86
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
86
87
|
}
|
|
@@ -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';
|
|
@@ -27,6 +28,7 @@ import { EventVote as typeEventVote } from "./types";
|
|
|
27
28
|
import { EventExec as typeEventExec } from "./types";
|
|
28
29
|
import { EventLeaveGroup as typeEventLeaveGroup } from "./types";
|
|
29
30
|
import { EventProposalPruned as typeEventProposalPruned } from "./types";
|
|
31
|
+
import { EventTallyError as typeEventTallyError } from "./types";
|
|
30
32
|
import { Member as typeMember } from "./types";
|
|
31
33
|
import { MemberRequest as typeMemberRequest } from "./types";
|
|
32
34
|
import { ThresholdDecisionPolicy as typeThresholdDecisionPolicy } from "./types";
|
|
@@ -60,7 +62,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
60
62
|
}
|
|
61
63
|
try {
|
|
62
64
|
const { address } = (await signer.getAccounts())[0];
|
|
63
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
65
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
64
66
|
let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
|
|
65
67
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
66
68
|
}
|
|
@@ -74,7 +76,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
74
76
|
}
|
|
75
77
|
try {
|
|
76
78
|
const { address } = (await signer.getAccounts())[0];
|
|
77
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
79
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
78
80
|
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
|
|
79
81
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
80
82
|
}
|
|
@@ -88,7 +90,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
88
90
|
}
|
|
89
91
|
try {
|
|
90
92
|
const { address } = (await signer.getAccounts())[0];
|
|
91
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
93
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
92
94
|
let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
|
|
93
95
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
94
96
|
}
|
|
@@ -102,7 +104,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
102
104
|
}
|
|
103
105
|
try {
|
|
104
106
|
const { address } = (await signer.getAccounts())[0];
|
|
105
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
107
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
106
108
|
let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) });
|
|
107
109
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
108
110
|
}
|
|
@@ -116,7 +118,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
116
118
|
}
|
|
117
119
|
try {
|
|
118
120
|
const { address } = (await signer.getAccounts())[0];
|
|
119
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
121
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
120
122
|
let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
|
|
121
123
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
122
124
|
}
|
|
@@ -130,7 +132,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
130
132
|
}
|
|
131
133
|
try {
|
|
132
134
|
const { address } = (await signer.getAccounts())[0];
|
|
133
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
135
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
134
136
|
let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) });
|
|
135
137
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
136
138
|
}
|
|
@@ -144,7 +146,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
144
146
|
}
|
|
145
147
|
try {
|
|
146
148
|
const { address } = (await signer.getAccounts())[0];
|
|
147
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
149
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
148
150
|
let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) });
|
|
149
151
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
150
152
|
}
|
|
@@ -158,7 +160,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
158
160
|
}
|
|
159
161
|
try {
|
|
160
162
|
const { address } = (await signer.getAccounts())[0];
|
|
161
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
163
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
162
164
|
let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
|
|
163
165
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
164
166
|
}
|
|
@@ -172,7 +174,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
172
174
|
}
|
|
173
175
|
try {
|
|
174
176
|
const { address } = (await signer.getAccounts())[0];
|
|
175
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
177
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
176
178
|
let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
|
|
177
179
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
178
180
|
}
|
|
@@ -186,7 +188,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
186
188
|
}
|
|
187
189
|
try {
|
|
188
190
|
const { address } = (await signer.getAccounts())[0];
|
|
189
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
191
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
190
192
|
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
191
193
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
192
194
|
}
|
|
@@ -200,7 +202,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
200
202
|
}
|
|
201
203
|
try {
|
|
202
204
|
const { address } = (await signer.getAccounts())[0];
|
|
203
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
205
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
204
206
|
let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
|
|
205
207
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
206
208
|
}
|
|
@@ -214,7 +216,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
214
216
|
}
|
|
215
217
|
try {
|
|
216
218
|
const { address } = (await signer.getAccounts())[0];
|
|
217
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
219
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
218
220
|
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
219
221
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
220
222
|
}
|
|
@@ -228,7 +230,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
228
230
|
}
|
|
229
231
|
try {
|
|
230
232
|
const { address } = (await signer.getAccounts())[0];
|
|
231
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
233
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
232
234
|
let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
|
|
233
235
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
234
236
|
}
|
|
@@ -242,7 +244,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
242
244
|
}
|
|
243
245
|
try {
|
|
244
246
|
const { address } = (await signer.getAccounts())[0];
|
|
245
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
|
|
247
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
|
|
246
248
|
let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) });
|
|
247
249
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
248
250
|
}
|
|
@@ -383,6 +385,7 @@ class SDKModule {
|
|
|
383
385
|
EventExec: getStructure(typeEventExec.fromPartial({})),
|
|
384
386
|
EventLeaveGroup: getStructure(typeEventLeaveGroup.fromPartial({})),
|
|
385
387
|
EventProposalPruned: getStructure(typeEventProposalPruned.fromPartial({})),
|
|
388
|
+
EventTallyError: getStructure(typeEventTallyError.fromPartial({})),
|
|
386
389
|
Member: getStructure(typeMember.fromPartial({})),
|
|
387
390
|
MemberRequest: getStructure(typeMemberRequest.fromPartial({})),
|
|
388
391
|
ThresholdDecisionPolicy: getStructure(typeThresholdDecisionPolicy.fromPartial({})),
|
|
@@ -8,6 +8,7 @@ import { EventVote } from "../types/cosmos/group/v1/events";
|
|
|
8
8
|
import { EventExec } from "../types/cosmos/group/v1/events";
|
|
9
9
|
import { EventLeaveGroup } from "../types/cosmos/group/v1/events";
|
|
10
10
|
import { EventProposalPruned } from "../types/cosmos/group/v1/events";
|
|
11
|
+
import { EventTallyError } from "../types/cosmos/group/v1/events";
|
|
11
12
|
import { Member } from "../types/cosmos/group/v1/types";
|
|
12
13
|
import { MemberRequest } from "../types/cosmos/group/v1/types";
|
|
13
14
|
import { ThresholdDecisionPolicy } from "../types/cosmos/group/v1/types";
|
|
@@ -19,4 +20,4 @@ import { GroupPolicyInfo } from "../types/cosmos/group/v1/types";
|
|
|
19
20
|
import { Proposal } from "../types/cosmos/group/v1/types";
|
|
20
21
|
import { TallyResult } from "../types/cosmos/group/v1/types";
|
|
21
22
|
import { Vote } from "../types/cosmos/group/v1/types";
|
|
22
|
-
export { EventCreateGroup, EventUpdateGroup, EventCreateGroupPolicy, EventUpdateGroupPolicy, EventSubmitProposal, EventWithdrawProposal, EventVote, EventExec, EventLeaveGroup, EventProposalPruned, Member, MemberRequest, ThresholdDecisionPolicy, PercentageDecisionPolicy, DecisionPolicyWindows, GroupInfo, GroupMember, GroupPolicyInfo, Proposal, TallyResult, Vote, };
|
|
23
|
+
export { EventCreateGroup, EventUpdateGroup, EventCreateGroupPolicy, EventUpdateGroupPolicy, EventSubmitProposal, EventWithdrawProposal, EventVote, EventExec, EventLeaveGroup, EventProposalPruned, EventTallyError, Member, MemberRequest, ThresholdDecisionPolicy, PercentageDecisionPolicy, DecisionPolicyWindows, GroupInfo, GroupMember, GroupPolicyInfo, Proposal, TallyResult, Vote, };
|