@iconlake/client 0.6.0 → 1.1.0

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.
Files changed (38) hide show
  1. package/dist/index.iife.js +4 -4
  2. package/dist/index.js +4 -4
  3. package/dist/index.mjs +5228 -5144
  4. package/dist/index.umd.js +4 -4
  5. package/package.json +2 -2
  6. package/types/amino.d.ts +32 -0
  7. package/types/client.d.ts +2 -0
  8. package/types/cosmos.authz.v1beta1/module.d.ts +10 -10
  9. package/types/cosmos.bank.v1beta1/module.d.ts +10 -10
  10. package/types/cosmos.distribution.v1beta1/module.d.ts +26 -26
  11. package/types/cosmos.feegrant.v1beta1/module.d.ts +10 -10
  12. package/types/cosmos.gov.v1/module.d.ts +21 -21
  13. package/types/cosmos.gov.v1beta1/module.d.ts +15 -15
  14. package/types/cosmos.group.v1/module.d.ts +78 -78
  15. package/types/cosmos.staking.v1beta1/module.d.ts +33 -33
  16. package/types/cosmos.vesting.v1beta1/module.d.ts +10 -10
  17. package/types/iconlake.drop/module.d.ts +10 -10
  18. package/types/iconlake.drop/types/iconlake/drop/tx.d.ts +17 -0
  19. package/types/iconlake.icon/types/iconlake/icon/tx.d.ts +20 -3
  20. package/types/index.d.ts +200 -200
  21. package/types/iconlake.iconlake/index.d.ts +0 -5
  22. package/types/iconlake.iconlake/module.d.ts +0 -44
  23. package/types/iconlake.iconlake/registry.d.ts +0 -3
  24. package/types/iconlake.iconlake/rest.d.ts +0 -196
  25. package/types/iconlake.iconlake/types/amino/amino.d.ts +0 -1
  26. package/types/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.d.ts +0 -108
  27. package/types/iconlake.iconlake/types/cosmos/base/v1beta1/coin.d.ts +0 -89
  28. package/types/iconlake.iconlake/types/cosmos_proto/cosmos.d.ts +0 -98
  29. package/types/iconlake.iconlake/types/gogoproto/gogo.d.ts +0 -1
  30. package/types/iconlake.iconlake/types/google/api/annotations.d.ts +0 -1
  31. package/types/iconlake.iconlake/types/google/api/http.d.ts +0 -1634
  32. package/types/iconlake.iconlake/types/google/protobuf/descriptor.d.ts +0 -50957
  33. package/types/iconlake.iconlake/types/iconlake/iconlake/account.d.ts +0 -30
  34. package/types/iconlake.iconlake/types/iconlake/iconlake/genesis.d.ts +0 -48
  35. package/types/iconlake.iconlake/types/iconlake/iconlake/params.d.ts +0 -23
  36. package/types/iconlake.iconlake/types/iconlake/iconlake/query.d.ts +0 -170
  37. package/types/iconlake.iconlake/types/iconlake/iconlake/tx.d.ts +0 -66
  38. package/types/iconlake.iconlake/types.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iconlake/client",
3
- "version": "0.6.0",
3
+ "version": "1.1.0",
4
4
  "description": "iconLake Typescript Client",
5
5
  "author": "iconLake",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
22
22
  "build-js": "vite build",
23
23
  "build": "pnpm run build-ts && pnpm run build-js"
24
24
  },
25
- "packageManager": "pnpm@8.15.4",
25
+ "packageManager": "pnpm@9.5.0",
26
26
  "dependencies": {
27
27
  "axios": "^0.21.4",
28
28
  "buffer": "^6.0.3",
@@ -0,0 +1,32 @@
1
+ export declare function createIconlakeAminoConverters(): {
2
+ "/iconlake.drop.MsgMint": {
3
+ aminoType: string;
4
+ toAmino: ({ creator, amount }: import("./iconlake.drop/types/iconlake/drop/tx").MsgMint) => unknown;
5
+ fromAmino: ({ creator, amount }: any) => import("./iconlake.drop/types/iconlake/drop/tx").MsgMint;
6
+ };
7
+ "/iconlake.drop.MsgInit": {
8
+ aminoType: string;
9
+ toAmino: ({ creator, address }: import("./iconlake.drop/types/iconlake/drop/tx").MsgInit) => unknown;
10
+ fromAmino: ({ creator, address }: any) => import("./iconlake.drop/types/iconlake/drop/tx").MsgInit;
11
+ };
12
+ "/iconlake.drop.MsgUpdateParams": {
13
+ aminoType: string;
14
+ toAmino: ({ authority, params }: import("./iconlake.drop/types/iconlake/drop/tx").MsgUpdateParams) => unknown;
15
+ fromAmino: ({ authority, params }: any) => import("./iconlake.drop/types/iconlake/drop/tx").MsgUpdateParams;
16
+ };
17
+ '/iconlake.icon.MsgMint': {
18
+ aminoType: string;
19
+ fromAmino(object: any): import("./iconlake.icon/types/iconlake/icon/tx").MsgMint;
20
+ toAmino(message: import("./iconlake.icon/types/iconlake/icon/tx").MsgMint): unknown;
21
+ };
22
+ '/iconlake.icon.MsgBurn': {
23
+ aminoType: string;
24
+ fromAmino(object: any): import("./iconlake.icon/types/iconlake/icon/tx").MsgBurn;
25
+ toAmino(message: import("./iconlake.icon/types/iconlake/icon/tx").MsgBurn): unknown;
26
+ };
27
+ '/iconlake.icon.MsgUpdateClass': {
28
+ aminoType: string;
29
+ fromAmino(object: any): import("./iconlake.icon/types/iconlake/icon/tx").MsgUpdateClass;
30
+ toAmino(message: import("./iconlake.icon/types/iconlake/icon/tx").MsgUpdateClass): unknown;
31
+ };
32
+ };
package/types/client.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../types.d.ts" />
2
2
  import { GeneratedType, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing";
3
3
  import { StdFee } from "@cosmjs/launchpad";
4
+ import { AminoTypes } from "@cosmjs/stargate";
4
5
  import { Env } from "./env";
5
6
  import { UnionToIntersection, Return, Constructor } from "./helpers";
6
7
  import { Module } from "./modules";
@@ -11,6 +12,7 @@ export declare class IgniteClient extends EventEmitter {
11
12
  env: Env;
12
13
  signer?: OfflineSigner;
13
14
  registry: Array<[string, GeneratedType]>;
15
+ aminoTypes: AminoTypes;
14
16
  static plugin<T extends Module | Module[]>(plugin: T): (typeof IgniteClient & Constructor<UnionToIntersection<Return<T>["module"]>>) | (typeof IgniteClient & Constructor<Return<T>["module"]>);
15
17
  signAndBroadcast(msgs: EncodeObject[], fee: StdFee, memo: string): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
16
18
  constructor(env: Env, signer?: OfflineSigner);
@@ -3,15 +3,10 @@ import { DeliverTxResponse } from "@cosmjs/stargate";
3
3
  import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
- import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
7
6
  import { MsgExec } from "./types/cosmos/authz/v1beta1/tx";
8
7
  import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx";
9
- export { MsgGrant, MsgExec, MsgRevoke };
10
- type sendMsgGrantParams = {
11
- value: MsgGrant;
12
- fee?: StdFee;
13
- memo?: string;
14
- };
8
+ import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
9
+ export { MsgExec, MsgRevoke, MsgGrant };
15
10
  type sendMsgExecParams = {
16
11
  value: MsgExec;
17
12
  fee?: StdFee;
@@ -22,8 +17,10 @@ type sendMsgRevokeParams = {
22
17
  fee?: StdFee;
23
18
  memo?: string;
24
19
  };
25
- type msgGrantParams = {
20
+ type sendMsgGrantParams = {
26
21
  value: MsgGrant;
22
+ fee?: StdFee;
23
+ memo?: string;
27
24
  };
28
25
  type msgExecParams = {
29
26
  value: MsgExec;
@@ -31,6 +28,9 @@ type msgExecParams = {
31
28
  type msgRevokeParams = {
32
29
  value: MsgRevoke;
33
30
  };
31
+ type msgGrantParams = {
32
+ value: MsgGrant;
33
+ };
34
34
  export declare const registry: Registry;
35
35
  interface TxClientOptions {
36
36
  addr: string;
@@ -38,12 +38,12 @@ interface TxClientOptions {
38
38
  signer?: OfflineSigner;
39
39
  }
40
40
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
41
- sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise<DeliverTxResponse>;
42
41
  sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse>;
43
42
  sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise<DeliverTxResponse>;
44
- msgGrant({ value }: msgGrantParams): EncodeObject;
43
+ sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise<DeliverTxResponse>;
45
44
  msgExec({ value }: msgExecParams): EncodeObject;
46
45
  msgRevoke({ value }: msgRevokeParams): EncodeObject;
46
+ msgGrant({ value }: msgGrantParams): EncodeObject;
47
47
  };
48
48
  interface QueryClientOptions {
49
49
  addr: string;
@@ -3,25 +3,25 @@ import { DeliverTxResponse } from "@cosmjs/stargate";
3
3
  import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
- import { MsgSend } from "./types/cosmos/bank/v1beta1/tx";
7
6
  import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx";
8
- export { MsgSend, MsgMultiSend };
9
- type sendMsgSendParams = {
10
- value: MsgSend;
11
- fee?: StdFee;
12
- memo?: string;
13
- };
7
+ import { MsgSend } from "./types/cosmos/bank/v1beta1/tx";
8
+ export { MsgMultiSend, MsgSend };
14
9
  type sendMsgMultiSendParams = {
15
10
  value: MsgMultiSend;
16
11
  fee?: StdFee;
17
12
  memo?: string;
18
13
  };
19
- type msgSendParams = {
14
+ type sendMsgSendParams = {
20
15
  value: MsgSend;
16
+ fee?: StdFee;
17
+ memo?: string;
21
18
  };
22
19
  type msgMultiSendParams = {
23
20
  value: MsgMultiSend;
24
21
  };
22
+ type msgSendParams = {
23
+ value: MsgSend;
24
+ };
25
25
  export declare const registry: Registry;
26
26
  interface TxClientOptions {
27
27
  addr: string;
@@ -29,10 +29,10 @@ interface TxClientOptions {
29
29
  signer?: OfflineSigner;
30
30
  }
31
31
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
32
- sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise<DeliverTxResponse>;
33
32
  sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise<DeliverTxResponse>;
34
- msgSend({ value }: msgSendParams): EncodeObject;
33
+ sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise<DeliverTxResponse>;
35
34
  msgMultiSend({ value }: msgMultiSendParams): EncodeObject;
35
+ msgSend({ value }: msgSendParams): EncodeObject;
36
36
  };
37
37
  interface QueryClientOptions {
38
38
  addr: string;
@@ -3,15 +3,15 @@ import { DeliverTxResponse } from "@cosmjs/stargate";
3
3
  import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
- import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
7
- import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
8
6
  import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
7
+ import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
8
+ import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
9
+ import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
9
10
  import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
10
11
  import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
11
- import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
12
- export { MsgFundCommunityPool, MsgCommunityPoolSpend, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgUpdateParams, MsgSetWithdrawAddress };
13
- type sendMsgFundCommunityPoolParams = {
14
- value: MsgFundCommunityPool;
12
+ export { MsgWithdrawDelegatorReward, MsgCommunityPoolSpend, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgWithdrawValidatorCommission, MsgUpdateParams };
13
+ type sendMsgWithdrawDelegatorRewardParams = {
14
+ value: MsgWithdrawDelegatorReward;
15
15
  fee?: StdFee;
16
16
  memo?: string;
17
17
  };
@@ -20,8 +20,13 @@ type sendMsgCommunityPoolSpendParams = {
20
20
  fee?: StdFee;
21
21
  memo?: string;
22
22
  };
23
- type sendMsgWithdrawDelegatorRewardParams = {
24
- value: MsgWithdrawDelegatorReward;
23
+ type sendMsgFundCommunityPoolParams = {
24
+ value: MsgFundCommunityPool;
25
+ fee?: StdFee;
26
+ memo?: string;
27
+ };
28
+ type sendMsgSetWithdrawAddressParams = {
29
+ value: MsgSetWithdrawAddress;
25
30
  fee?: StdFee;
26
31
  memo?: string;
27
32
  };
@@ -35,19 +40,17 @@ type sendMsgUpdateParamsParams = {
35
40
  fee?: StdFee;
36
41
  memo?: string;
37
42
  };
38
- type sendMsgSetWithdrawAddressParams = {
39
- value: MsgSetWithdrawAddress;
40
- fee?: StdFee;
41
- memo?: string;
42
- };
43
- type msgFundCommunityPoolParams = {
44
- value: MsgFundCommunityPool;
43
+ type msgWithdrawDelegatorRewardParams = {
44
+ value: MsgWithdrawDelegatorReward;
45
45
  };
46
46
  type msgCommunityPoolSpendParams = {
47
47
  value: MsgCommunityPoolSpend;
48
48
  };
49
- type msgWithdrawDelegatorRewardParams = {
50
- value: MsgWithdrawDelegatorReward;
49
+ type msgFundCommunityPoolParams = {
50
+ value: MsgFundCommunityPool;
51
+ };
52
+ type msgSetWithdrawAddressParams = {
53
+ value: MsgSetWithdrawAddress;
51
54
  };
52
55
  type msgWithdrawValidatorCommissionParams = {
53
56
  value: MsgWithdrawValidatorCommission;
@@ -55,9 +58,6 @@ type msgWithdrawValidatorCommissionParams = {
55
58
  type msgUpdateParamsParams = {
56
59
  value: MsgUpdateParams;
57
60
  };
58
- type msgSetWithdrawAddressParams = {
59
- value: MsgSetWithdrawAddress;
60
- };
61
61
  export declare const registry: Registry;
62
62
  interface TxClientOptions {
63
63
  addr: string;
@@ -65,18 +65,18 @@ interface TxClientOptions {
65
65
  signer?: OfflineSigner;
66
66
  }
67
67
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
68
- sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse>;
69
- sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse>;
70
68
  sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise<DeliverTxResponse>;
69
+ sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse>;
70
+ sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse>;
71
+ sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse>;
71
72
  sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse>;
72
73
  sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
73
- sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse>;
74
- msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject;
75
- msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject;
76
74
  msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject;
75
+ msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject;
76
+ msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject;
77
+ msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject;
77
78
  msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject;
78
79
  msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
79
- msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject;
80
80
  };
81
81
  interface QueryClientOptions {
82
82
  addr: string;
@@ -3,25 +3,25 @@ import { DeliverTxResponse } from "@cosmjs/stargate";
3
3
  import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
- import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx";
7
6
  import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx";
8
- export { MsgRevokeAllowance, MsgGrantAllowance };
9
- type sendMsgRevokeAllowanceParams = {
10
- value: MsgRevokeAllowance;
11
- fee?: StdFee;
12
- memo?: string;
13
- };
7
+ import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx";
8
+ export { MsgGrantAllowance, MsgRevokeAllowance };
14
9
  type sendMsgGrantAllowanceParams = {
15
10
  value: MsgGrantAllowance;
16
11
  fee?: StdFee;
17
12
  memo?: string;
18
13
  };
19
- type msgRevokeAllowanceParams = {
14
+ type sendMsgRevokeAllowanceParams = {
20
15
  value: MsgRevokeAllowance;
16
+ fee?: StdFee;
17
+ memo?: string;
21
18
  };
22
19
  type msgGrantAllowanceParams = {
23
20
  value: MsgGrantAllowance;
24
21
  };
22
+ type msgRevokeAllowanceParams = {
23
+ value: MsgRevokeAllowance;
24
+ };
25
25
  export declare const registry: Registry;
26
26
  interface TxClientOptions {
27
27
  addr: string;
@@ -29,10 +29,10 @@ interface TxClientOptions {
29
29
  signer?: OfflineSigner;
30
30
  }
31
31
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
32
- sendMsgRevokeAllowance({ value, fee, memo }: sendMsgRevokeAllowanceParams): Promise<DeliverTxResponse>;
33
32
  sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise<DeliverTxResponse>;
34
- msgRevokeAllowance({ value }: msgRevokeAllowanceParams): EncodeObject;
33
+ sendMsgRevokeAllowance({ value, fee, memo }: sendMsgRevokeAllowanceParams): Promise<DeliverTxResponse>;
35
34
  msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject;
35
+ msgRevokeAllowance({ value }: msgRevokeAllowanceParams): EncodeObject;
36
36
  };
37
37
  interface QueryClientOptions {
38
38
  addr: string;
@@ -4,51 +4,51 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
6
  import { MsgVote } from "./types/cosmos/gov/v1/tx";
7
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
8
- import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
9
7
  import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
10
8
  import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
11
- export { MsgVote, MsgVoteWeighted, MsgSubmitProposal, MsgUpdateParams, MsgDeposit };
9
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
10
+ import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
11
+ export { MsgVote, MsgUpdateParams, MsgDeposit, MsgVoteWeighted, MsgSubmitProposal };
12
12
  type sendMsgVoteParams = {
13
13
  value: MsgVote;
14
14
  fee?: StdFee;
15
15
  memo?: string;
16
16
  };
17
- type sendMsgVoteWeightedParams = {
18
- value: MsgVoteWeighted;
17
+ type sendMsgUpdateParamsParams = {
18
+ value: MsgUpdateParams;
19
19
  fee?: StdFee;
20
20
  memo?: string;
21
21
  };
22
- type sendMsgSubmitProposalParams = {
23
- value: MsgSubmitProposal;
22
+ type sendMsgDepositParams = {
23
+ value: MsgDeposit;
24
24
  fee?: StdFee;
25
25
  memo?: string;
26
26
  };
27
- type sendMsgUpdateParamsParams = {
28
- value: MsgUpdateParams;
27
+ type sendMsgVoteWeightedParams = {
28
+ value: MsgVoteWeighted;
29
29
  fee?: StdFee;
30
30
  memo?: string;
31
31
  };
32
- type sendMsgDepositParams = {
33
- value: MsgDeposit;
32
+ type sendMsgSubmitProposalParams = {
33
+ value: MsgSubmitProposal;
34
34
  fee?: StdFee;
35
35
  memo?: string;
36
36
  };
37
37
  type msgVoteParams = {
38
38
  value: MsgVote;
39
39
  };
40
- type msgVoteWeightedParams = {
41
- value: MsgVoteWeighted;
42
- };
43
- type msgSubmitProposalParams = {
44
- value: MsgSubmitProposal;
45
- };
46
40
  type msgUpdateParamsParams = {
47
41
  value: MsgUpdateParams;
48
42
  };
49
43
  type msgDepositParams = {
50
44
  value: MsgDeposit;
51
45
  };
46
+ type msgVoteWeightedParams = {
47
+ value: MsgVoteWeighted;
48
+ };
49
+ type msgSubmitProposalParams = {
50
+ value: MsgSubmitProposal;
51
+ };
52
52
  export declare const registry: Registry;
53
53
  interface TxClientOptions {
54
54
  addr: string;
@@ -57,15 +57,15 @@ interface TxClientOptions {
57
57
  }
58
58
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
59
59
  sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
60
- sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
61
- sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
62
60
  sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
63
61
  sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
62
+ sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
63
+ sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
64
64
  msgVote({ value }: msgVoteParams): EncodeObject;
65
- msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
66
- msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
67
65
  msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
68
66
  msgDeposit({ value }: msgDepositParams): EncodeObject;
67
+ msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
68
+ msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
69
69
  };
70
70
  interface QueryClientOptions {
71
71
  addr: string;
@@ -4,17 +4,17 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
6
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
7
- import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
8
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
9
7
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
10
- export { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit };
8
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
9
+ import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
10
+ export { MsgSubmitProposal, MsgDeposit, MsgVoteWeighted, MsgVote };
11
11
  type sendMsgSubmitProposalParams = {
12
12
  value: MsgSubmitProposal;
13
13
  fee?: StdFee;
14
14
  memo?: string;
15
15
  };
16
- type sendMsgVoteParams = {
17
- value: MsgVote;
16
+ type sendMsgDepositParams = {
17
+ value: MsgDeposit;
18
18
  fee?: StdFee;
19
19
  memo?: string;
20
20
  };
@@ -23,22 +23,22 @@ type sendMsgVoteWeightedParams = {
23
23
  fee?: StdFee;
24
24
  memo?: string;
25
25
  };
26
- type sendMsgDepositParams = {
27
- value: MsgDeposit;
26
+ type sendMsgVoteParams = {
27
+ value: MsgVote;
28
28
  fee?: StdFee;
29
29
  memo?: string;
30
30
  };
31
31
  type msgSubmitProposalParams = {
32
32
  value: MsgSubmitProposal;
33
33
  };
34
- type msgVoteParams = {
35
- value: MsgVote;
34
+ type msgDepositParams = {
35
+ value: MsgDeposit;
36
36
  };
37
37
  type msgVoteWeightedParams = {
38
38
  value: MsgVoteWeighted;
39
39
  };
40
- type msgDepositParams = {
41
- value: MsgDeposit;
40
+ type msgVoteParams = {
41
+ value: MsgVote;
42
42
  };
43
43
  export declare const registry: Registry;
44
44
  interface TxClientOptions {
@@ -48,13 +48,13 @@ interface TxClientOptions {
48
48
  }
49
49
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
50
50
  sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
51
- sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
52
- sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
53
51
  sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
52
+ sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
53
+ sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
54
54
  msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
55
- msgVote({ value }: msgVoteParams): EncodeObject;
56
- msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
57
55
  msgDeposit({ value }: msgDepositParams): EncodeObject;
56
+ msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
57
+ msgVote({ value }: msgVoteParams): EncodeObject;
58
58
  };
59
59
  interface QueryClientOptions {
60
60
  addr: string;