@iconlake/client 0.3.0 → 0.4.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.
- package/dist/index.iife.js +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2062 -1961
- package/dist/index.umd.js +2 -2
- package/package.json +9 -13
- 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 +26 -26
- package/types/cosmos.feegrant.v1beta1/module.d.ts +10 -10
- package/types/cosmos.gov.v1/module.d.ts +22 -22
- package/types/cosmos.gov.v1beta1/module.d.ts +12 -12
- package/types/cosmos.group.v1/module.d.ts +65 -65
- package/types/cosmos.staking.v1beta1/module.d.ts +24 -24
- package/types/cosmos.vesting.v1beta1/module.d.ts +15 -15
- package/types/iconlake.drop/module.d.ts +10 -10
- package/types/iconlake.drop/rest.d.ts +8 -1
- package/types/iconlake.drop/types/iconlake/drop/genesis.d.ts +14 -2
- package/types/iconlake.drop/types/iconlake/drop/params.d.ts +15 -4
- package/types/iconlake.drop/types/iconlake/drop/query.d.ts +14 -2
- package/types/iconlake.icon/module.d.ts +12 -1
- package/types/iconlake.icon/rest.d.ts +1 -0
- package/types/iconlake.icon/types/iconlake/icon/tx.d.ts +31 -0
- package/types/index.d.ts +138 -130
- package/types.d.ts +0 -0
|
@@ -3,28 +3,28 @@ 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 {
|
|
7
|
-
import {
|
|
6
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
7
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
8
8
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
9
9
|
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
10
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
11
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
13
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
10
15
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
11
16
|
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
12
17
|
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
14
18
|
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
15
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
16
19
|
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export { MsgUpdateGroupAdmin, MsgCreateGroupPolicy, MsgSubmitProposal, MsgLeaveGroup, MsgUpdateGroupMembers, MsgExec, MsgCreateGroup, MsgVote, MsgUpdateGroupMetadata, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyMetadata, MsgWithdrawProposal, MsgCreateGroupWithPolicy };
|
|
21
|
-
type sendMsgUpdateGroupAdminParams = {
|
|
22
|
-
value: MsgUpdateGroupAdmin;
|
|
20
|
+
export { MsgUpdateGroupPolicyMetadata, MsgWithdrawProposal, MsgSubmitProposal, MsgLeaveGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgCreateGroupWithPolicy, MsgCreateGroupPolicy, MsgVote, MsgUpdateGroupMembers, MsgExec, MsgCreateGroup, MsgUpdateGroupMetadata, MsgUpdateGroupPolicyAdmin };
|
|
21
|
+
type sendMsgUpdateGroupPolicyMetadataParams = {
|
|
22
|
+
value: MsgUpdateGroupPolicyMetadata;
|
|
23
23
|
fee?: StdFee;
|
|
24
24
|
memo?: string;
|
|
25
25
|
};
|
|
26
|
-
type
|
|
27
|
-
value:
|
|
26
|
+
type sendMsgWithdrawProposalParams = {
|
|
27
|
+
value: MsgWithdrawProposal;
|
|
28
28
|
fee?: StdFee;
|
|
29
29
|
memo?: string;
|
|
30
30
|
};
|
|
@@ -38,61 +38,61 @@ type sendMsgLeaveGroupParams = {
|
|
|
38
38
|
fee?: StdFee;
|
|
39
39
|
memo?: string;
|
|
40
40
|
};
|
|
41
|
-
type
|
|
42
|
-
value:
|
|
41
|
+
type sendMsgUpdateGroupAdminParams = {
|
|
42
|
+
value: MsgUpdateGroupAdmin;
|
|
43
43
|
fee?: StdFee;
|
|
44
44
|
memo?: string;
|
|
45
45
|
};
|
|
46
|
-
type
|
|
47
|
-
value:
|
|
46
|
+
type sendMsgUpdateGroupPolicyDecisionPolicyParams = {
|
|
47
|
+
value: MsgUpdateGroupPolicyDecisionPolicy;
|
|
48
48
|
fee?: StdFee;
|
|
49
49
|
memo?: string;
|
|
50
50
|
};
|
|
51
|
-
type
|
|
52
|
-
value:
|
|
51
|
+
type sendMsgCreateGroupWithPolicyParams = {
|
|
52
|
+
value: MsgCreateGroupWithPolicy;
|
|
53
53
|
fee?: StdFee;
|
|
54
54
|
memo?: string;
|
|
55
55
|
};
|
|
56
|
-
type
|
|
57
|
-
value:
|
|
56
|
+
type sendMsgCreateGroupPolicyParams = {
|
|
57
|
+
value: MsgCreateGroupPolicy;
|
|
58
58
|
fee?: StdFee;
|
|
59
59
|
memo?: string;
|
|
60
60
|
};
|
|
61
|
-
type
|
|
62
|
-
value:
|
|
61
|
+
type sendMsgVoteParams = {
|
|
62
|
+
value: MsgVote;
|
|
63
63
|
fee?: StdFee;
|
|
64
64
|
memo?: string;
|
|
65
65
|
};
|
|
66
|
-
type
|
|
67
|
-
value:
|
|
66
|
+
type sendMsgUpdateGroupMembersParams = {
|
|
67
|
+
value: MsgUpdateGroupMembers;
|
|
68
68
|
fee?: StdFee;
|
|
69
69
|
memo?: string;
|
|
70
70
|
};
|
|
71
|
-
type
|
|
72
|
-
value:
|
|
71
|
+
type sendMsgExecParams = {
|
|
72
|
+
value: MsgExec;
|
|
73
73
|
fee?: StdFee;
|
|
74
74
|
memo?: string;
|
|
75
75
|
};
|
|
76
|
-
type
|
|
77
|
-
value:
|
|
76
|
+
type sendMsgCreateGroupParams = {
|
|
77
|
+
value: MsgCreateGroup;
|
|
78
78
|
fee?: StdFee;
|
|
79
79
|
memo?: string;
|
|
80
80
|
};
|
|
81
|
-
type
|
|
82
|
-
value:
|
|
81
|
+
type sendMsgUpdateGroupMetadataParams = {
|
|
82
|
+
value: MsgUpdateGroupMetadata;
|
|
83
83
|
fee?: StdFee;
|
|
84
84
|
memo?: string;
|
|
85
85
|
};
|
|
86
|
-
type
|
|
87
|
-
value:
|
|
86
|
+
type sendMsgUpdateGroupPolicyAdminParams = {
|
|
87
|
+
value: MsgUpdateGroupPolicyAdmin;
|
|
88
88
|
fee?: StdFee;
|
|
89
89
|
memo?: string;
|
|
90
90
|
};
|
|
91
|
-
type
|
|
92
|
-
value:
|
|
91
|
+
type msgUpdateGroupPolicyMetadataParams = {
|
|
92
|
+
value: MsgUpdateGroupPolicyMetadata;
|
|
93
93
|
};
|
|
94
|
-
type
|
|
95
|
-
value:
|
|
94
|
+
type msgWithdrawProposalParams = {
|
|
95
|
+
value: MsgWithdrawProposal;
|
|
96
96
|
};
|
|
97
97
|
type msgSubmitProposalParams = {
|
|
98
98
|
value: MsgSubmitProposal;
|
|
@@ -100,6 +100,21 @@ type msgSubmitProposalParams = {
|
|
|
100
100
|
type msgLeaveGroupParams = {
|
|
101
101
|
value: MsgLeaveGroup;
|
|
102
102
|
};
|
|
103
|
+
type msgUpdateGroupAdminParams = {
|
|
104
|
+
value: MsgUpdateGroupAdmin;
|
|
105
|
+
};
|
|
106
|
+
type msgUpdateGroupPolicyDecisionPolicyParams = {
|
|
107
|
+
value: MsgUpdateGroupPolicyDecisionPolicy;
|
|
108
|
+
};
|
|
109
|
+
type msgCreateGroupWithPolicyParams = {
|
|
110
|
+
value: MsgCreateGroupWithPolicy;
|
|
111
|
+
};
|
|
112
|
+
type msgCreateGroupPolicyParams = {
|
|
113
|
+
value: MsgCreateGroupPolicy;
|
|
114
|
+
};
|
|
115
|
+
type msgVoteParams = {
|
|
116
|
+
value: MsgVote;
|
|
117
|
+
};
|
|
103
118
|
type msgUpdateGroupMembersParams = {
|
|
104
119
|
value: MsgUpdateGroupMembers;
|
|
105
120
|
};
|
|
@@ -109,27 +124,12 @@ type msgExecParams = {
|
|
|
109
124
|
type msgCreateGroupParams = {
|
|
110
125
|
value: MsgCreateGroup;
|
|
111
126
|
};
|
|
112
|
-
type msgVoteParams = {
|
|
113
|
-
value: MsgVote;
|
|
114
|
-
};
|
|
115
127
|
type msgUpdateGroupMetadataParams = {
|
|
116
128
|
value: MsgUpdateGroupMetadata;
|
|
117
129
|
};
|
|
118
|
-
type msgUpdateGroupPolicyDecisionPolicyParams = {
|
|
119
|
-
value: MsgUpdateGroupPolicyDecisionPolicy;
|
|
120
|
-
};
|
|
121
130
|
type msgUpdateGroupPolicyAdminParams = {
|
|
122
131
|
value: MsgUpdateGroupPolicyAdmin;
|
|
123
132
|
};
|
|
124
|
-
type msgUpdateGroupPolicyMetadataParams = {
|
|
125
|
-
value: MsgUpdateGroupPolicyMetadata;
|
|
126
|
-
};
|
|
127
|
-
type msgWithdrawProposalParams = {
|
|
128
|
-
value: MsgWithdrawProposal;
|
|
129
|
-
};
|
|
130
|
-
type msgCreateGroupWithPolicyParams = {
|
|
131
|
-
value: MsgCreateGroupWithPolicy;
|
|
132
|
-
};
|
|
133
133
|
export declare const registry: Registry;
|
|
134
134
|
interface TxClientOptions {
|
|
135
135
|
addr: string;
|
|
@@ -137,34 +137,34 @@ interface TxClientOptions {
|
|
|
137
137
|
signer?: OfflineSigner;
|
|
138
138
|
}
|
|
139
139
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise<DeliverTxResponse>;
|
|
141
|
+
sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise<DeliverTxResponse>;
|
|
142
142
|
sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
|
|
143
143
|
sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise<DeliverTxResponse>;
|
|
144
|
+
sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise<DeliverTxResponse>;
|
|
145
|
+
sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise<DeliverTxResponse>;
|
|
146
|
+
sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise<DeliverTxResponse>;
|
|
147
|
+
sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise<DeliverTxResponse>;
|
|
148
|
+
sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
|
|
144
149
|
sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise<DeliverTxResponse>;
|
|
145
150
|
sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse>;
|
|
146
151
|
sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise<DeliverTxResponse>;
|
|
147
|
-
sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
|
|
148
152
|
sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise<DeliverTxResponse>;
|
|
149
|
-
sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise<DeliverTxResponse>;
|
|
150
153
|
sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise<DeliverTxResponse>;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise<DeliverTxResponse>;
|
|
154
|
-
msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject;
|
|
155
|
-
msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject;
|
|
154
|
+
msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject;
|
|
155
|
+
msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject;
|
|
156
156
|
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
|
|
157
157
|
msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject;
|
|
158
|
+
msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject;
|
|
159
|
+
msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject;
|
|
160
|
+
msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject;
|
|
161
|
+
msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject;
|
|
162
|
+
msgVote({ value }: msgVoteParams): EncodeObject;
|
|
158
163
|
msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject;
|
|
159
164
|
msgExec({ value }: msgExecParams): EncodeObject;
|
|
160
165
|
msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject;
|
|
161
|
-
msgVote({ value }: msgVoteParams): EncodeObject;
|
|
162
166
|
msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject;
|
|
163
|
-
msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject;
|
|
164
167
|
msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject;
|
|
165
|
-
msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject;
|
|
166
|
-
msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject;
|
|
167
|
-
msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject;
|
|
168
168
|
};
|
|
169
169
|
interface QueryClientOptions {
|
|
170
170
|
addr: string;
|
|
@@ -3,15 +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 {
|
|
6
|
+
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
|
+
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
8
|
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
8
9
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
9
10
|
import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
12
|
+
export { MsgCreateValidator, MsgBeginRedelegate, MsgDelegate, MsgEditValidator, MsgUndelegate, MsgCancelUnbondingDelegation };
|
|
13
|
+
type sendMsgCreateValidatorParams = {
|
|
14
|
+
value: MsgCreateValidator;
|
|
15
|
+
fee?: StdFee;
|
|
16
|
+
memo?: string;
|
|
17
|
+
};
|
|
18
|
+
type sendMsgBeginRedelegateParams = {
|
|
19
|
+
value: MsgBeginRedelegate;
|
|
15
20
|
fee?: StdFee;
|
|
16
21
|
memo?: string;
|
|
17
22
|
};
|
|
@@ -30,18 +35,16 @@ type sendMsgUndelegateParams = {
|
|
|
30
35
|
fee?: StdFee;
|
|
31
36
|
memo?: string;
|
|
32
37
|
};
|
|
33
|
-
type
|
|
34
|
-
value:
|
|
38
|
+
type sendMsgCancelUnbondingDelegationParams = {
|
|
39
|
+
value: MsgCancelUnbondingDelegation;
|
|
35
40
|
fee?: StdFee;
|
|
36
41
|
memo?: string;
|
|
37
42
|
};
|
|
38
|
-
type
|
|
43
|
+
type msgCreateValidatorParams = {
|
|
39
44
|
value: MsgCreateValidator;
|
|
40
|
-
fee?: StdFee;
|
|
41
|
-
memo?: string;
|
|
42
45
|
};
|
|
43
|
-
type
|
|
44
|
-
value:
|
|
46
|
+
type msgBeginRedelegateParams = {
|
|
47
|
+
value: MsgBeginRedelegate;
|
|
45
48
|
};
|
|
46
49
|
type msgDelegateParams = {
|
|
47
50
|
value: MsgDelegate;
|
|
@@ -52,11 +55,8 @@ type msgEditValidatorParams = {
|
|
|
52
55
|
type msgUndelegateParams = {
|
|
53
56
|
value: MsgUndelegate;
|
|
54
57
|
};
|
|
55
|
-
type
|
|
56
|
-
value:
|
|
57
|
-
};
|
|
58
|
-
type msgCreateValidatorParams = {
|
|
59
|
-
value: MsgCreateValidator;
|
|
58
|
+
type msgCancelUnbondingDelegationParams = {
|
|
59
|
+
value: MsgCancelUnbondingDelegation;
|
|
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
|
-
|
|
68
|
+
sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse>;
|
|
69
|
+
sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse>;
|
|
69
70
|
sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise<DeliverTxResponse>;
|
|
70
71
|
sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse>;
|
|
71
72
|
sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse>;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse>;
|
|
74
|
+
msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject;
|
|
75
|
+
msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject;
|
|
75
76
|
msgDelegate({ value }: msgDelegateParams): EncodeObject;
|
|
76
77
|
msgEditValidator({ value }: msgEditValidatorParams): EncodeObject;
|
|
77
78
|
msgUndelegate({ value }: msgUndelegateParams): EncodeObject;
|
|
78
|
-
|
|
79
|
-
msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject;
|
|
79
|
+
msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject;
|
|
80
80
|
};
|
|
81
81
|
interface QueryClientOptions {
|
|
82
82
|
addr: string;
|
|
@@ -3,12 +3,12 @@ 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 { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
7
|
-
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
8
6
|
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
8
|
+
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
9
|
+
export { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount };
|
|
10
|
+
type sendMsgCreateVestingAccountParams = {
|
|
11
|
+
value: MsgCreateVestingAccount;
|
|
12
12
|
fee?: StdFee;
|
|
13
13
|
memo?: string;
|
|
14
14
|
};
|
|
@@ -17,19 +17,19 @@ type sendMsgCreatePermanentLockedAccountParams = {
|
|
|
17
17
|
fee?: StdFee;
|
|
18
18
|
memo?: string;
|
|
19
19
|
};
|
|
20
|
-
type
|
|
21
|
-
value:
|
|
20
|
+
type sendMsgCreatePeriodicVestingAccountParams = {
|
|
21
|
+
value: MsgCreatePeriodicVestingAccount;
|
|
22
22
|
fee?: StdFee;
|
|
23
23
|
memo?: string;
|
|
24
24
|
};
|
|
25
|
-
type
|
|
26
|
-
value:
|
|
25
|
+
type msgCreateVestingAccountParams = {
|
|
26
|
+
value: MsgCreateVestingAccount;
|
|
27
27
|
};
|
|
28
28
|
type msgCreatePermanentLockedAccountParams = {
|
|
29
29
|
value: MsgCreatePermanentLockedAccount;
|
|
30
30
|
};
|
|
31
|
-
type
|
|
32
|
-
value:
|
|
31
|
+
type msgCreatePeriodicVestingAccountParams = {
|
|
32
|
+
value: MsgCreatePeriodicVestingAccount;
|
|
33
33
|
};
|
|
34
34
|
export declare const registry: Registry;
|
|
35
35
|
interface TxClientOptions {
|
|
@@ -38,12 +38,12 @@ interface TxClientOptions {
|
|
|
38
38
|
signer?: OfflineSigner;
|
|
39
39
|
}
|
|
40
40
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
41
|
-
sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise<DeliverTxResponse>;
|
|
42
|
-
sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise<DeliverTxResponse>;
|
|
43
41
|
sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise<DeliverTxResponse>;
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise<DeliverTxResponse>;
|
|
43
|
+
sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise<DeliverTxResponse>;
|
|
46
44
|
msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject;
|
|
45
|
+
msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject;
|
|
46
|
+
msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): 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 { MsgMint } from "./types/iconlake/drop/tx";
|
|
7
6
|
import { MsgInit } from "./types/iconlake/drop/tx";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
value: MsgMint;
|
|
11
|
-
fee?: StdFee;
|
|
12
|
-
memo?: string;
|
|
13
|
-
};
|
|
7
|
+
import { MsgMint } from "./types/iconlake/drop/tx";
|
|
8
|
+
export { MsgInit, MsgMint };
|
|
14
9
|
type sendMsgInitParams = {
|
|
15
10
|
value: MsgInit;
|
|
16
11
|
fee?: StdFee;
|
|
17
12
|
memo?: string;
|
|
18
13
|
};
|
|
19
|
-
type
|
|
14
|
+
type sendMsgMintParams = {
|
|
20
15
|
value: MsgMint;
|
|
16
|
+
fee?: StdFee;
|
|
17
|
+
memo?: string;
|
|
21
18
|
};
|
|
22
19
|
type msgInitParams = {
|
|
23
20
|
value: MsgInit;
|
|
24
21
|
};
|
|
22
|
+
type msgMintParams = {
|
|
23
|
+
value: MsgMint;
|
|
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
|
-
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
33
32
|
sendMsgInit({ value, fee, memo }: sendMsgInitParams): Promise<DeliverTxResponse>;
|
|
34
|
-
|
|
33
|
+
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
35
34
|
msgInit({ value }: msgInitParams): EncodeObject;
|
|
35
|
+
msgMint({ value }: msgMintParams): EncodeObject;
|
|
36
36
|
};
|
|
37
37
|
interface QueryClientOptions {
|
|
38
38
|
addr: string;
|
|
@@ -17,7 +17,14 @@ export interface DropMsgMintResponse {
|
|
|
17
17
|
/**
|
|
18
18
|
* Params defines the parameters for the module.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export interface DropParams {
|
|
21
|
+
/** @format int64 */
|
|
22
|
+
init_amount?: string;
|
|
23
|
+
/** @format int64 */
|
|
24
|
+
min_amount_per_mint?: string;
|
|
25
|
+
/** @format int64 */
|
|
26
|
+
max_amount_per_mint?: string;
|
|
27
|
+
}
|
|
21
28
|
export interface DropQueryAllInfoResponse {
|
|
22
29
|
info?: DropInfo[];
|
|
23
30
|
/**
|
|
@@ -13,13 +13,25 @@ export declare const GenesisState: {
|
|
|
13
13
|
fromJSON(object: any): GenesisState;
|
|
14
14
|
toJSON(message: GenesisState): unknown;
|
|
15
15
|
fromPartial<I extends {
|
|
16
|
-
params?: {
|
|
16
|
+
params?: {
|
|
17
|
+
initAmount?: number;
|
|
18
|
+
minAmountPerMint?: number;
|
|
19
|
+
maxAmountPerMint?: number;
|
|
20
|
+
};
|
|
17
21
|
infoList?: {
|
|
18
22
|
address?: string;
|
|
19
23
|
lastMintTime?: number;
|
|
20
24
|
}[];
|
|
21
25
|
} & {
|
|
22
|
-
params?: {
|
|
26
|
+
params?: {
|
|
27
|
+
initAmount?: number;
|
|
28
|
+
minAmountPerMint?: number;
|
|
29
|
+
maxAmountPerMint?: number;
|
|
30
|
+
} & {
|
|
31
|
+
initAmount?: number;
|
|
32
|
+
minAmountPerMint?: number;
|
|
33
|
+
maxAmountPerMint?: number;
|
|
34
|
+
} & { [K in Exclude<keyof I["params"], keyof Params>]: never; };
|
|
23
35
|
infoList?: {
|
|
24
36
|
address?: string;
|
|
25
37
|
lastMintTime?: number;
|
|
@@ -2,13 +2,24 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "iconlake.drop";
|
|
3
3
|
/** Params defines the parameters for the module. */
|
|
4
4
|
export interface Params {
|
|
5
|
+
initAmount: number;
|
|
6
|
+
minAmountPerMint: number;
|
|
7
|
+
maxAmountPerMint: number;
|
|
5
8
|
}
|
|
6
9
|
export declare const Params: {
|
|
7
|
-
encode(
|
|
10
|
+
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
8
11
|
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
9
|
-
fromJSON(
|
|
10
|
-
toJSON(
|
|
11
|
-
fromPartial<I extends {
|
|
12
|
+
fromJSON(object: any): Params;
|
|
13
|
+
toJSON(message: Params): unknown;
|
|
14
|
+
fromPartial<I extends {
|
|
15
|
+
initAmount?: number;
|
|
16
|
+
minAmountPerMint?: number;
|
|
17
|
+
maxAmountPerMint?: number;
|
|
18
|
+
} & {
|
|
19
|
+
initAmount?: number;
|
|
20
|
+
minAmountPerMint?: number;
|
|
21
|
+
maxAmountPerMint?: number;
|
|
22
|
+
} & { [K in Exclude<keyof I, keyof Params>]: never; }>(object: I): Params;
|
|
12
23
|
};
|
|
13
24
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
14
25
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -37,9 +37,21 @@ export declare const QueryParamsResponse: {
|
|
|
37
37
|
fromJSON(object: any): QueryParamsResponse;
|
|
38
38
|
toJSON(message: QueryParamsResponse): unknown;
|
|
39
39
|
fromPartial<I extends {
|
|
40
|
-
params?: {
|
|
40
|
+
params?: {
|
|
41
|
+
initAmount?: number;
|
|
42
|
+
minAmountPerMint?: number;
|
|
43
|
+
maxAmountPerMint?: number;
|
|
44
|
+
};
|
|
41
45
|
} & {
|
|
42
|
-
params?: {
|
|
46
|
+
params?: {
|
|
47
|
+
initAmount?: number;
|
|
48
|
+
minAmountPerMint?: number;
|
|
49
|
+
maxAmountPerMint?: number;
|
|
50
|
+
} & {
|
|
51
|
+
initAmount?: number;
|
|
52
|
+
minAmountPerMint?: number;
|
|
53
|
+
maxAmountPerMint?: number;
|
|
54
|
+
} & { [K in Exclude<keyof I["params"], keyof Params>]: never; };
|
|
43
55
|
} & { [K_1 in Exclude<keyof I, "params">]: never; }>(object: I): QueryParamsResponse;
|
|
44
56
|
};
|
|
45
57
|
export declare const QueryGetInfoRequest: {
|
|
@@ -3,9 +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 { MsgBurn } from "./types/iconlake/icon/tx";
|
|
6
7
|
import { MsgUpdateClass } from "./types/iconlake/icon/tx";
|
|
7
8
|
import { MsgMint } from "./types/iconlake/icon/tx";
|
|
8
|
-
export { MsgUpdateClass, MsgMint };
|
|
9
|
+
export { MsgBurn, MsgUpdateClass, MsgMint };
|
|
10
|
+
type sendMsgBurnParams = {
|
|
11
|
+
value: MsgBurn;
|
|
12
|
+
fee?: StdFee;
|
|
13
|
+
memo?: string;
|
|
14
|
+
};
|
|
9
15
|
type sendMsgUpdateClassParams = {
|
|
10
16
|
value: MsgUpdateClass;
|
|
11
17
|
fee?: StdFee;
|
|
@@ -16,6 +22,9 @@ type sendMsgMintParams = {
|
|
|
16
22
|
fee?: StdFee;
|
|
17
23
|
memo?: string;
|
|
18
24
|
};
|
|
25
|
+
type msgBurnParams = {
|
|
26
|
+
value: MsgBurn;
|
|
27
|
+
};
|
|
19
28
|
type msgUpdateClassParams = {
|
|
20
29
|
value: MsgUpdateClass;
|
|
21
30
|
};
|
|
@@ -29,8 +38,10 @@ interface TxClientOptions {
|
|
|
29
38
|
signer?: OfflineSigner;
|
|
30
39
|
}
|
|
31
40
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
41
|
+
sendMsgBurn({ value, fee, memo }: sendMsgBurnParams): Promise<DeliverTxResponse>;
|
|
32
42
|
sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
|
|
33
43
|
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
44
|
+
msgBurn({ value }: msgBurnParams): EncodeObject;
|
|
34
45
|
msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
|
|
35
46
|
msgMint({ value }: msgMintParams): EncodeObject;
|
|
36
47
|
};
|
|
@@ -23,6 +23,13 @@ export interface MsgUpdateClass {
|
|
|
23
23
|
}
|
|
24
24
|
export interface MsgUpdateClassResponse {
|
|
25
25
|
}
|
|
26
|
+
export interface MsgBurn {
|
|
27
|
+
creator: string;
|
|
28
|
+
classId: string;
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
export interface MsgBurnResponse {
|
|
32
|
+
}
|
|
26
33
|
export declare const MsgMint: {
|
|
27
34
|
encode(message: MsgMint, writer?: _m0.Writer): _m0.Writer;
|
|
28
35
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMint;
|
|
@@ -85,16 +92,40 @@ export declare const MsgUpdateClassResponse: {
|
|
|
85
92
|
toJSON(_: MsgUpdateClassResponse): unknown;
|
|
86
93
|
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgUpdateClassResponse;
|
|
87
94
|
};
|
|
95
|
+
export declare const MsgBurn: {
|
|
96
|
+
encode(message: MsgBurn, writer?: _m0.Writer): _m0.Writer;
|
|
97
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgBurn;
|
|
98
|
+
fromJSON(object: any): MsgBurn;
|
|
99
|
+
toJSON(message: MsgBurn): unknown;
|
|
100
|
+
fromPartial<I extends {
|
|
101
|
+
creator?: string;
|
|
102
|
+
classId?: string;
|
|
103
|
+
id?: string;
|
|
104
|
+
} & {
|
|
105
|
+
creator?: string;
|
|
106
|
+
classId?: string;
|
|
107
|
+
id?: string;
|
|
108
|
+
} & { [K in Exclude<keyof I, keyof MsgBurn>]: never; }>(object: I): MsgBurn;
|
|
109
|
+
};
|
|
110
|
+
export declare const MsgBurnResponse: {
|
|
111
|
+
encode(_: MsgBurnResponse, writer?: _m0.Writer): _m0.Writer;
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgBurnResponse;
|
|
113
|
+
fromJSON(_: any): MsgBurnResponse;
|
|
114
|
+
toJSON(_: MsgBurnResponse): unknown;
|
|
115
|
+
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgBurnResponse;
|
|
116
|
+
};
|
|
88
117
|
/** Msg defines the Msg service. */
|
|
89
118
|
export interface Msg {
|
|
90
119
|
Mint(request: MsgMint): Promise<MsgMintResponse>;
|
|
91
120
|
UpdateClass(request: MsgUpdateClass): Promise<MsgUpdateClassResponse>;
|
|
121
|
+
Burn(request: MsgBurn): Promise<MsgBurnResponse>;
|
|
92
122
|
}
|
|
93
123
|
export declare class MsgClientImpl implements Msg {
|
|
94
124
|
private readonly rpc;
|
|
95
125
|
constructor(rpc: Rpc);
|
|
96
126
|
Mint(request: MsgMint): Promise<MsgMintResponse>;
|
|
97
127
|
UpdateClass(request: MsgUpdateClass): Promise<MsgUpdateClassResponse>;
|
|
128
|
+
Burn(request: MsgBurn): Promise<MsgBurnResponse>;
|
|
98
129
|
}
|
|
99
130
|
interface Rpc {
|
|
100
131
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|