@iconlake/client 0.1.10 → 0.1.11
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/dist/index.iife.js +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +757 -746
- package/dist/index.umd.js +3 -3
- package/package.json +4 -4
- package/types/cosmos.authz.v1beta1/module.d.ts +11 -11
- package/types/cosmos.bank.v1beta1/module.d.ts +10 -10
- package/types/cosmos.distribution.v1beta1/module.d.ts +29 -29
- package/types/cosmos.feegrant.v1beta1/module.d.ts +10 -10
- package/types/cosmos.gov.v1/module.d.ts +26 -26
- package/types/cosmos.gov.v1beta1/module.d.ts +10 -10
- package/types/cosmos.group.v1/module.d.ts +74 -74
- package/types/cosmos.staking.v1beta1/module.d.ts +21 -21
- package/types/cosmos.upgrade.v1beta1/module.d.ts +10 -10
- package/types/cosmos.vesting.v1beta1/module.d.ts +11 -11
- package/types/iconlake.drop/module.d.ts +10 -10
- package/types/iconlake.icon/rest.d.ts +5 -4
- package/types/index.d.ts +143 -143
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iconlake/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "iconLake Typescript Client",
|
|
5
5
|
"author": "iconLake",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"packageManager": "pnpm@8.6.
|
|
24
|
+
"packageManager": "pnpm@8.6.12",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"axios": "^0.21.4",
|
|
27
27
|
"buffer": "^6.0.3",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@cosmjs/launchpad": "0.27.1",
|
|
34
|
-
"@cosmjs/proto-signing": "0.31.
|
|
35
|
-
"@cosmjs/stargate": "0.31.
|
|
34
|
+
"@cosmjs/proto-signing": "0.31.1",
|
|
35
|
+
"@cosmjs/stargate": "0.31.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@keplr-wallet/types": "^0.11.3",
|
|
@@ -4,33 +4,33 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr
|
|
|
4
4
|
import { IgniteClient } from "../client";
|
|
5
5
|
import { Api } from "./rest";
|
|
6
6
|
import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx";
|
|
7
|
-
import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
|
|
8
7
|
import { MsgExec } from "./types/cosmos/authz/v1beta1/tx";
|
|
9
|
-
|
|
8
|
+
import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
|
|
9
|
+
export { MsgRevoke, MsgExec, MsgGrant };
|
|
10
10
|
type sendMsgRevokeParams = {
|
|
11
11
|
value: MsgRevoke;
|
|
12
12
|
fee?: StdFee;
|
|
13
13
|
memo?: string;
|
|
14
14
|
};
|
|
15
|
-
type
|
|
16
|
-
value:
|
|
15
|
+
type sendMsgExecParams = {
|
|
16
|
+
value: MsgExec;
|
|
17
17
|
fee?: StdFee;
|
|
18
18
|
memo?: string;
|
|
19
19
|
};
|
|
20
|
-
type
|
|
21
|
-
value:
|
|
20
|
+
type sendMsgGrantParams = {
|
|
21
|
+
value: MsgGrant;
|
|
22
22
|
fee?: StdFee;
|
|
23
23
|
memo?: string;
|
|
24
24
|
};
|
|
25
25
|
type msgRevokeParams = {
|
|
26
26
|
value: MsgRevoke;
|
|
27
27
|
};
|
|
28
|
-
type msgGrantParams = {
|
|
29
|
-
value: MsgGrant;
|
|
30
|
-
};
|
|
31
28
|
type msgExecParams = {
|
|
32
29
|
value: MsgExec;
|
|
33
30
|
};
|
|
31
|
+
type msgGrantParams = {
|
|
32
|
+
value: MsgGrant;
|
|
33
|
+
};
|
|
34
34
|
export declare const registry: Registry;
|
|
35
35
|
interface TxClientOptions {
|
|
36
36
|
addr: string;
|
|
@@ -39,11 +39,11 @@ interface TxClientOptions {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
41
41
|
sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise<DeliverTxResponse>;
|
|
42
|
-
sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise<DeliverTxResponse>;
|
|
43
42
|
sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse>;
|
|
43
|
+
sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise<DeliverTxResponse>;
|
|
44
44
|
msgRevoke({ value }: msgRevokeParams): EncodeObject;
|
|
45
|
-
msgGrant({ value }: msgGrantParams): EncodeObject;
|
|
46
45
|
msgExec({ value }: msgExecParams): 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 { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx";
|
|
7
6
|
import { MsgSend } from "./types/cosmos/bank/v1beta1/tx";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
value: MsgMultiSend;
|
|
11
|
-
fee?: StdFee;
|
|
12
|
-
memo?: string;
|
|
13
|
-
};
|
|
7
|
+
import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx";
|
|
8
|
+
export { MsgSend, MsgMultiSend };
|
|
14
9
|
type sendMsgSendParams = {
|
|
15
10
|
value: MsgSend;
|
|
16
11
|
fee?: StdFee;
|
|
17
12
|
memo?: string;
|
|
18
13
|
};
|
|
19
|
-
type
|
|
14
|
+
type sendMsgMultiSendParams = {
|
|
20
15
|
value: MsgMultiSend;
|
|
16
|
+
fee?: StdFee;
|
|
17
|
+
memo?: string;
|
|
21
18
|
};
|
|
22
19
|
type msgSendParams = {
|
|
23
20
|
value: MsgSend;
|
|
24
21
|
};
|
|
22
|
+
type msgMultiSendParams = {
|
|
23
|
+
value: MsgMultiSend;
|
|
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
|
-
sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise<DeliverTxResponse>;
|
|
33
32
|
sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise<DeliverTxResponse>;
|
|
34
|
-
|
|
33
|
+
sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise<DeliverTxResponse>;
|
|
35
34
|
msgSend({ value }: msgSendParams): EncodeObject;
|
|
35
|
+
msgMultiSend({ value }: msgMultiSendParams): EncodeObject;
|
|
36
36
|
};
|
|
37
37
|
interface QueryClientOptions {
|
|
38
38
|
addr: string;
|
|
@@ -3,20 +3,20 @@ 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 { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
8
|
-
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
9
6
|
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
10
|
-
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
11
7
|
import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
9
|
+
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
10
|
+
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
11
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
12
|
+
export { MsgSetWithdrawAddress, MsgUpdateParams, MsgCommunityPoolSpend, MsgFundCommunityPool, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission };
|
|
13
|
+
type sendMsgSetWithdrawAddressParams = {
|
|
14
|
+
value: MsgSetWithdrawAddress;
|
|
15
15
|
fee?: StdFee;
|
|
16
16
|
memo?: string;
|
|
17
17
|
};
|
|
18
|
-
type
|
|
19
|
-
value:
|
|
18
|
+
type sendMsgUpdateParamsParams = {
|
|
19
|
+
value: MsgUpdateParams;
|
|
20
20
|
fee?: StdFee;
|
|
21
21
|
memo?: string;
|
|
22
22
|
};
|
|
@@ -25,8 +25,8 @@ type sendMsgCommunityPoolSpendParams = {
|
|
|
25
25
|
fee?: StdFee;
|
|
26
26
|
memo?: string;
|
|
27
27
|
};
|
|
28
|
-
type
|
|
29
|
-
value:
|
|
28
|
+
type sendMsgFundCommunityPoolParams = {
|
|
29
|
+
value: MsgFundCommunityPool;
|
|
30
30
|
fee?: StdFee;
|
|
31
31
|
memo?: string;
|
|
32
32
|
};
|
|
@@ -35,28 +35,28 @@ type sendMsgWithdrawDelegatorRewardParams = {
|
|
|
35
35
|
fee?: StdFee;
|
|
36
36
|
memo?: string;
|
|
37
37
|
};
|
|
38
|
-
type
|
|
39
|
-
value:
|
|
38
|
+
type sendMsgWithdrawValidatorCommissionParams = {
|
|
39
|
+
value: MsgWithdrawValidatorCommission;
|
|
40
40
|
fee?: StdFee;
|
|
41
41
|
memo?: string;
|
|
42
42
|
};
|
|
43
|
-
type
|
|
44
|
-
value:
|
|
43
|
+
type msgSetWithdrawAddressParams = {
|
|
44
|
+
value: MsgSetWithdrawAddress;
|
|
45
45
|
};
|
|
46
|
-
type
|
|
47
|
-
value:
|
|
46
|
+
type msgUpdateParamsParams = {
|
|
47
|
+
value: MsgUpdateParams;
|
|
48
48
|
};
|
|
49
49
|
type msgCommunityPoolSpendParams = {
|
|
50
50
|
value: MsgCommunityPoolSpend;
|
|
51
51
|
};
|
|
52
|
-
type
|
|
53
|
-
value:
|
|
52
|
+
type msgFundCommunityPoolParams = {
|
|
53
|
+
value: MsgFundCommunityPool;
|
|
54
54
|
};
|
|
55
55
|
type msgWithdrawDelegatorRewardParams = {
|
|
56
56
|
value: MsgWithdrawDelegatorReward;
|
|
57
57
|
};
|
|
58
|
-
type
|
|
59
|
-
value:
|
|
58
|
+
type msgWithdrawValidatorCommissionParams = {
|
|
59
|
+
value: MsgWithdrawValidatorCommission;
|
|
60
60
|
};
|
|
61
61
|
export declare const registry: Registry;
|
|
62
62
|
interface TxClientOptions {
|
|
@@ -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
|
-
sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse>;
|
|
70
|
-
sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse>;
|
|
71
68
|
sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse>;
|
|
72
|
-
sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise<DeliverTxResponse>;
|
|
73
69
|
sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse>;
|
|
71
|
+
sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse>;
|
|
72
|
+
sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise<DeliverTxResponse>;
|
|
73
|
+
sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse>;
|
|
77
74
|
msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject;
|
|
78
|
-
msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject;
|
|
79
75
|
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
|
|
76
|
+
msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject;
|
|
77
|
+
msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject;
|
|
78
|
+
msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject;
|
|
79
|
+
msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): 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
|
-
|
|
9
|
-
|
|
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
|
|
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
|
-
|
|
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;
|
|
@@ -3,14 +3,14 @@ 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 { MsgDeposit } from "./types/cosmos/gov/v1/tx";
|
|
7
|
-
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
8
|
-
import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
|
|
9
6
|
import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
|
|
7
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
10
8
|
import { MsgVote } from "./types/cosmos/gov/v1/tx";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
|
|
10
|
+
import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
|
|
11
|
+
export { MsgSubmitProposal, MsgVoteWeighted, MsgVote, MsgDeposit, MsgUpdateParams };
|
|
12
|
+
type sendMsgSubmitProposalParams = {
|
|
13
|
+
value: MsgSubmitProposal;
|
|
14
14
|
fee?: StdFee;
|
|
15
15
|
memo?: string;
|
|
16
16
|
};
|
|
@@ -19,36 +19,36 @@ type sendMsgVoteWeightedParams = {
|
|
|
19
19
|
fee?: StdFee;
|
|
20
20
|
memo?: string;
|
|
21
21
|
};
|
|
22
|
-
type
|
|
23
|
-
value:
|
|
22
|
+
type sendMsgVoteParams = {
|
|
23
|
+
value: MsgVote;
|
|
24
24
|
fee?: StdFee;
|
|
25
25
|
memo?: string;
|
|
26
26
|
};
|
|
27
|
-
type
|
|
28
|
-
value:
|
|
27
|
+
type sendMsgDepositParams = {
|
|
28
|
+
value: MsgDeposit;
|
|
29
29
|
fee?: StdFee;
|
|
30
30
|
memo?: string;
|
|
31
31
|
};
|
|
32
|
-
type
|
|
33
|
-
value:
|
|
32
|
+
type sendMsgUpdateParamsParams = {
|
|
33
|
+
value: MsgUpdateParams;
|
|
34
34
|
fee?: StdFee;
|
|
35
35
|
memo?: string;
|
|
36
36
|
};
|
|
37
|
-
type
|
|
38
|
-
value:
|
|
37
|
+
type msgSubmitProposalParams = {
|
|
38
|
+
value: MsgSubmitProposal;
|
|
39
39
|
};
|
|
40
40
|
type msgVoteWeightedParams = {
|
|
41
41
|
value: MsgVoteWeighted;
|
|
42
42
|
};
|
|
43
|
-
type msgUpdateParamsParams = {
|
|
44
|
-
value: MsgUpdateParams;
|
|
45
|
-
};
|
|
46
|
-
type msgSubmitProposalParams = {
|
|
47
|
-
value: MsgSubmitProposal;
|
|
48
|
-
};
|
|
49
43
|
type msgVoteParams = {
|
|
50
44
|
value: MsgVote;
|
|
51
45
|
};
|
|
46
|
+
type msgDepositParams = {
|
|
47
|
+
value: MsgDeposit;
|
|
48
|
+
};
|
|
49
|
+
type msgUpdateParamsParams = {
|
|
50
|
+
value: MsgUpdateParams;
|
|
51
|
+
};
|
|
52
52
|
export declare const registry: Registry;
|
|
53
53
|
interface TxClientOptions {
|
|
54
54
|
addr: string;
|
|
@@ -56,16 +56,16 @@ interface TxClientOptions {
|
|
|
56
56
|
signer?: OfflineSigner;
|
|
57
57
|
}
|
|
58
58
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
59
|
-
sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
|
|
60
|
-
sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
|
|
61
|
-
sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
|
|
62
59
|
sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
|
|
60
|
+
sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
|
|
63
61
|
sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
|
|
62
|
+
sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
|
|
63
|
+
sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
|
|
67
64
|
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
|
|
65
|
+
msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
|
|
68
66
|
msgVote({ value }: msgVoteParams): EncodeObject;
|
|
67
|
+
msgDeposit({ value }: msgDepositParams): EncodeObject;
|
|
68
|
+
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
|
|
69
69
|
};
|
|
70
70
|
interface QueryClientOptions {
|
|
71
71
|
addr: string;
|
|
@@ -3,11 +3,16 @@ 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 { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
6
7
|
import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
|
|
7
8
|
import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
|
|
8
9
|
import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
export { MsgSubmitProposal, MsgVoteWeighted, MsgDeposit, MsgVote };
|
|
11
|
+
type sendMsgSubmitProposalParams = {
|
|
12
|
+
value: MsgSubmitProposal;
|
|
13
|
+
fee?: StdFee;
|
|
14
|
+
memo?: string;
|
|
15
|
+
};
|
|
11
16
|
type sendMsgVoteWeightedParams = {
|
|
12
17
|
value: MsgVoteWeighted;
|
|
13
18
|
fee?: StdFee;
|
|
@@ -23,10 +28,8 @@ type sendMsgVoteParams = {
|
|
|
23
28
|
fee?: StdFee;
|
|
24
29
|
memo?: string;
|
|
25
30
|
};
|
|
26
|
-
type
|
|
31
|
+
type msgSubmitProposalParams = {
|
|
27
32
|
value: MsgSubmitProposal;
|
|
28
|
-
fee?: StdFee;
|
|
29
|
-
memo?: string;
|
|
30
33
|
};
|
|
31
34
|
type msgVoteWeightedParams = {
|
|
32
35
|
value: MsgVoteWeighted;
|
|
@@ -37,9 +40,6 @@ type msgDepositParams = {
|
|
|
37
40
|
type msgVoteParams = {
|
|
38
41
|
value: MsgVote;
|
|
39
42
|
};
|
|
40
|
-
type msgSubmitProposalParams = {
|
|
41
|
-
value: MsgSubmitProposal;
|
|
42
|
-
};
|
|
43
43
|
export declare const registry: Registry;
|
|
44
44
|
interface TxClientOptions {
|
|
45
45
|
addr: string;
|
|
@@ -47,14 +47,14 @@ interface TxClientOptions {
|
|
|
47
47
|
signer?: OfflineSigner;
|
|
48
48
|
}
|
|
49
49
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
50
|
+
sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
|
|
50
51
|
sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
|
|
51
52
|
sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
|
|
52
53
|
sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
|
|
53
|
-
|
|
54
|
+
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
|
|
54
55
|
msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
|
|
55
56
|
msgDeposit({ value }: msgDepositParams): EncodeObject;
|
|
56
57
|
msgVote({ value }: msgVoteParams): EncodeObject;
|
|
57
|
-
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
|
|
58
58
|
};
|
|
59
59
|
interface QueryClientOptions {
|
|
60
60
|
addr: string;
|