coreum-js 2.5.9 → 2.5.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/main/cosmos/auth/v1beta1/auth.d.ts +229 -0
- package/dist/main/cosmos/auth/v1beta1/auth.js +438 -0
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +638 -0
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +888 -0
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +1259 -0
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +785 -0
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +128 -0
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +228 -0
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +995 -0
- package/dist/main/cosmos/distribution/v1beta1/query.js +1336 -0
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +593 -0
- package/dist/main/cosmos/distribution/v1beta1/tx.js +825 -0
- package/dist/main/cosmos/index.d.ts +249 -0
- package/dist/main/cosmos/index.js +72 -2
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +350 -0
- package/dist/main/cosmos/vesting/v1beta1/tx.js +455 -0
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +1305 -0
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +499 -0
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +229 -0
- package/dist/module/cosmos/auth/v1beta1/auth.js +428 -0
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +638 -0
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +870 -0
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +1259 -0
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +771 -0
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +128 -0
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +220 -0
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +995 -0
- package/dist/module/cosmos/distribution/v1beta1/query.js +1316 -0
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +593 -0
- package/dist/module/cosmos/distribution/v1beta1/tx.js +811 -0
- package/dist/module/cosmos/index.d.ts +249 -0
- package/dist/module/cosmos/index.js +71 -1
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +350 -0
- package/dist/module/cosmos/vesting/v1beta1/tx.js +447 -0
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +1305 -0
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +489 -0
- package/package.json +1 -1
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
+
import { Period } from "./vesting";
|
|
4
|
+
export declare const protobufPackage = "cosmos.vesting.v1beta1";
|
|
5
|
+
/**
|
|
6
|
+
* MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
7
|
+
* account.
|
|
8
|
+
*/
|
|
9
|
+
export interface MsgCreateVestingAccount {
|
|
10
|
+
fromAddress: string;
|
|
11
|
+
toAddress: string;
|
|
12
|
+
amount: Coin[];
|
|
13
|
+
/** end of vesting as unix time (in seconds). */
|
|
14
|
+
endTime: number;
|
|
15
|
+
delayed: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */
|
|
18
|
+
export interface MsgCreateVestingAccountResponse {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* MsgCreatePermanentLockedAccount defines a message that enables creating a permanent
|
|
22
|
+
* locked account.
|
|
23
|
+
*
|
|
24
|
+
* Since: cosmos-sdk 0.46
|
|
25
|
+
*/
|
|
26
|
+
export interface MsgCreatePermanentLockedAccount {
|
|
27
|
+
fromAddress: string;
|
|
28
|
+
toAddress: string;
|
|
29
|
+
amount: Coin[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.
|
|
33
|
+
*
|
|
34
|
+
* Since: cosmos-sdk 0.46
|
|
35
|
+
*/
|
|
36
|
+
export interface MsgCreatePermanentLockedAccountResponse {
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
40
|
+
* account.
|
|
41
|
+
*
|
|
42
|
+
* Since: cosmos-sdk 0.46
|
|
43
|
+
*/
|
|
44
|
+
export interface MsgCreatePeriodicVestingAccount {
|
|
45
|
+
fromAddress: string;
|
|
46
|
+
toAddress: string;
|
|
47
|
+
/** start of vesting as unix time (in seconds). */
|
|
48
|
+
startTime: number;
|
|
49
|
+
vestingPeriods: Period[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount
|
|
53
|
+
* response type.
|
|
54
|
+
*
|
|
55
|
+
* Since: cosmos-sdk 0.46
|
|
56
|
+
*/
|
|
57
|
+
export interface MsgCreatePeriodicVestingAccountResponse {
|
|
58
|
+
}
|
|
59
|
+
export declare const MsgCreateVestingAccount: {
|
|
60
|
+
encode(message: MsgCreateVestingAccount, writer?: _m0.Writer): _m0.Writer;
|
|
61
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccount;
|
|
62
|
+
fromJSON(object: any): MsgCreateVestingAccount;
|
|
63
|
+
toJSON(message: MsgCreateVestingAccount): unknown;
|
|
64
|
+
create<I extends {
|
|
65
|
+
fromAddress?: string;
|
|
66
|
+
toAddress?: string;
|
|
67
|
+
amount?: {
|
|
68
|
+
denom?: string;
|
|
69
|
+
amount?: string;
|
|
70
|
+
}[];
|
|
71
|
+
endTime?: number;
|
|
72
|
+
delayed?: boolean;
|
|
73
|
+
} & {
|
|
74
|
+
fromAddress?: string;
|
|
75
|
+
toAddress?: string;
|
|
76
|
+
amount?: {
|
|
77
|
+
denom?: string;
|
|
78
|
+
amount?: string;
|
|
79
|
+
}[] & ({
|
|
80
|
+
denom?: string;
|
|
81
|
+
amount?: string;
|
|
82
|
+
} & {
|
|
83
|
+
denom?: string;
|
|
84
|
+
amount?: string;
|
|
85
|
+
} & { [K in Exclude<keyof I["amount"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["amount"], keyof {
|
|
86
|
+
denom?: string;
|
|
87
|
+
amount?: string;
|
|
88
|
+
}[]>]: never; };
|
|
89
|
+
endTime?: number;
|
|
90
|
+
delayed?: boolean;
|
|
91
|
+
} & { [K_2 in Exclude<keyof I, keyof MsgCreateVestingAccount>]: never; }>(base?: I): MsgCreateVestingAccount;
|
|
92
|
+
fromPartial<I_1 extends {
|
|
93
|
+
fromAddress?: string;
|
|
94
|
+
toAddress?: string;
|
|
95
|
+
amount?: {
|
|
96
|
+
denom?: string;
|
|
97
|
+
amount?: string;
|
|
98
|
+
}[];
|
|
99
|
+
endTime?: number;
|
|
100
|
+
delayed?: boolean;
|
|
101
|
+
} & {
|
|
102
|
+
fromAddress?: string;
|
|
103
|
+
toAddress?: string;
|
|
104
|
+
amount?: {
|
|
105
|
+
denom?: string;
|
|
106
|
+
amount?: string;
|
|
107
|
+
}[] & ({
|
|
108
|
+
denom?: string;
|
|
109
|
+
amount?: string;
|
|
110
|
+
} & {
|
|
111
|
+
denom?: string;
|
|
112
|
+
amount?: string;
|
|
113
|
+
} & { [K_3 in Exclude<keyof I_1["amount"][number], keyof Coin>]: never; })[] & { [K_4 in Exclude<keyof I_1["amount"], keyof {
|
|
114
|
+
denom?: string;
|
|
115
|
+
amount?: string;
|
|
116
|
+
}[]>]: never; };
|
|
117
|
+
endTime?: number;
|
|
118
|
+
delayed?: boolean;
|
|
119
|
+
} & { [K_5 in Exclude<keyof I_1, keyof MsgCreateVestingAccount>]: never; }>(object: I_1): MsgCreateVestingAccount;
|
|
120
|
+
};
|
|
121
|
+
export declare const MsgCreateVestingAccountResponse: {
|
|
122
|
+
encode(_: MsgCreateVestingAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
123
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccountResponse;
|
|
124
|
+
fromJSON(_: any): MsgCreateVestingAccountResponse;
|
|
125
|
+
toJSON(_: MsgCreateVestingAccountResponse): unknown;
|
|
126
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgCreateVestingAccountResponse;
|
|
127
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgCreateVestingAccountResponse;
|
|
128
|
+
};
|
|
129
|
+
export declare const MsgCreatePermanentLockedAccount: {
|
|
130
|
+
encode(message: MsgCreatePermanentLockedAccount, writer?: _m0.Writer): _m0.Writer;
|
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount;
|
|
132
|
+
fromJSON(object: any): MsgCreatePermanentLockedAccount;
|
|
133
|
+
toJSON(message: MsgCreatePermanentLockedAccount): unknown;
|
|
134
|
+
create<I extends {
|
|
135
|
+
fromAddress?: string;
|
|
136
|
+
toAddress?: string;
|
|
137
|
+
amount?: {
|
|
138
|
+
denom?: string;
|
|
139
|
+
amount?: string;
|
|
140
|
+
}[];
|
|
141
|
+
} & {
|
|
142
|
+
fromAddress?: string;
|
|
143
|
+
toAddress?: string;
|
|
144
|
+
amount?: {
|
|
145
|
+
denom?: string;
|
|
146
|
+
amount?: string;
|
|
147
|
+
}[] & ({
|
|
148
|
+
denom?: string;
|
|
149
|
+
amount?: string;
|
|
150
|
+
} & {
|
|
151
|
+
denom?: string;
|
|
152
|
+
amount?: string;
|
|
153
|
+
} & { [K in Exclude<keyof I["amount"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["amount"], keyof {
|
|
154
|
+
denom?: string;
|
|
155
|
+
amount?: string;
|
|
156
|
+
}[]>]: never; };
|
|
157
|
+
} & { [K_2 in Exclude<keyof I, keyof MsgCreatePermanentLockedAccount>]: never; }>(base?: I): MsgCreatePermanentLockedAccount;
|
|
158
|
+
fromPartial<I_1 extends {
|
|
159
|
+
fromAddress?: string;
|
|
160
|
+
toAddress?: string;
|
|
161
|
+
amount?: {
|
|
162
|
+
denom?: string;
|
|
163
|
+
amount?: string;
|
|
164
|
+
}[];
|
|
165
|
+
} & {
|
|
166
|
+
fromAddress?: string;
|
|
167
|
+
toAddress?: string;
|
|
168
|
+
amount?: {
|
|
169
|
+
denom?: string;
|
|
170
|
+
amount?: string;
|
|
171
|
+
}[] & ({
|
|
172
|
+
denom?: string;
|
|
173
|
+
amount?: string;
|
|
174
|
+
} & {
|
|
175
|
+
denom?: string;
|
|
176
|
+
amount?: string;
|
|
177
|
+
} & { [K_3 in Exclude<keyof I_1["amount"][number], keyof Coin>]: never; })[] & { [K_4 in Exclude<keyof I_1["amount"], keyof {
|
|
178
|
+
denom?: string;
|
|
179
|
+
amount?: string;
|
|
180
|
+
}[]>]: never; };
|
|
181
|
+
} & { [K_5 in Exclude<keyof I_1, keyof MsgCreatePermanentLockedAccount>]: never; }>(object: I_1): MsgCreatePermanentLockedAccount;
|
|
182
|
+
};
|
|
183
|
+
export declare const MsgCreatePermanentLockedAccountResponse: {
|
|
184
|
+
encode(_: MsgCreatePermanentLockedAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse;
|
|
186
|
+
fromJSON(_: any): MsgCreatePermanentLockedAccountResponse;
|
|
187
|
+
toJSON(_: MsgCreatePermanentLockedAccountResponse): unknown;
|
|
188
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgCreatePermanentLockedAccountResponse;
|
|
189
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgCreatePermanentLockedAccountResponse;
|
|
190
|
+
};
|
|
191
|
+
export declare const MsgCreatePeriodicVestingAccount: {
|
|
192
|
+
encode(message: MsgCreatePeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer;
|
|
193
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount;
|
|
194
|
+
fromJSON(object: any): MsgCreatePeriodicVestingAccount;
|
|
195
|
+
toJSON(message: MsgCreatePeriodicVestingAccount): unknown;
|
|
196
|
+
create<I extends {
|
|
197
|
+
fromAddress?: string;
|
|
198
|
+
toAddress?: string;
|
|
199
|
+
startTime?: number;
|
|
200
|
+
vestingPeriods?: {
|
|
201
|
+
length?: number;
|
|
202
|
+
amount?: {
|
|
203
|
+
denom?: string;
|
|
204
|
+
amount?: string;
|
|
205
|
+
}[];
|
|
206
|
+
}[];
|
|
207
|
+
} & {
|
|
208
|
+
fromAddress?: string;
|
|
209
|
+
toAddress?: string;
|
|
210
|
+
startTime?: number;
|
|
211
|
+
vestingPeriods?: {
|
|
212
|
+
length?: number;
|
|
213
|
+
amount?: {
|
|
214
|
+
denom?: string;
|
|
215
|
+
amount?: string;
|
|
216
|
+
}[];
|
|
217
|
+
}[] & ({
|
|
218
|
+
length?: number;
|
|
219
|
+
amount?: {
|
|
220
|
+
denom?: string;
|
|
221
|
+
amount?: string;
|
|
222
|
+
}[];
|
|
223
|
+
} & {
|
|
224
|
+
length?: number;
|
|
225
|
+
amount?: {
|
|
226
|
+
denom?: string;
|
|
227
|
+
amount?: string;
|
|
228
|
+
}[] & ({
|
|
229
|
+
denom?: string;
|
|
230
|
+
amount?: string;
|
|
231
|
+
} & {
|
|
232
|
+
denom?: string;
|
|
233
|
+
amount?: string;
|
|
234
|
+
} & { [K in Exclude<keyof I["vestingPeriods"][number]["amount"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["vestingPeriods"][number]["amount"], keyof {
|
|
235
|
+
denom?: string;
|
|
236
|
+
amount?: string;
|
|
237
|
+
}[]>]: never; };
|
|
238
|
+
} & { [K_2 in Exclude<keyof I["vestingPeriods"][number], keyof Period>]: never; })[] & { [K_3 in Exclude<keyof I["vestingPeriods"], keyof {
|
|
239
|
+
length?: number;
|
|
240
|
+
amount?: {
|
|
241
|
+
denom?: string;
|
|
242
|
+
amount?: string;
|
|
243
|
+
}[];
|
|
244
|
+
}[]>]: never; };
|
|
245
|
+
} & { [K_4 in Exclude<keyof I, keyof MsgCreatePeriodicVestingAccount>]: never; }>(base?: I): MsgCreatePeriodicVestingAccount;
|
|
246
|
+
fromPartial<I_1 extends {
|
|
247
|
+
fromAddress?: string;
|
|
248
|
+
toAddress?: string;
|
|
249
|
+
startTime?: number;
|
|
250
|
+
vestingPeriods?: {
|
|
251
|
+
length?: number;
|
|
252
|
+
amount?: {
|
|
253
|
+
denom?: string;
|
|
254
|
+
amount?: string;
|
|
255
|
+
}[];
|
|
256
|
+
}[];
|
|
257
|
+
} & {
|
|
258
|
+
fromAddress?: string;
|
|
259
|
+
toAddress?: string;
|
|
260
|
+
startTime?: number;
|
|
261
|
+
vestingPeriods?: {
|
|
262
|
+
length?: number;
|
|
263
|
+
amount?: {
|
|
264
|
+
denom?: string;
|
|
265
|
+
amount?: string;
|
|
266
|
+
}[];
|
|
267
|
+
}[] & ({
|
|
268
|
+
length?: number;
|
|
269
|
+
amount?: {
|
|
270
|
+
denom?: string;
|
|
271
|
+
amount?: string;
|
|
272
|
+
}[];
|
|
273
|
+
} & {
|
|
274
|
+
length?: number;
|
|
275
|
+
amount?: {
|
|
276
|
+
denom?: string;
|
|
277
|
+
amount?: string;
|
|
278
|
+
}[] & ({
|
|
279
|
+
denom?: string;
|
|
280
|
+
amount?: string;
|
|
281
|
+
} & {
|
|
282
|
+
denom?: string;
|
|
283
|
+
amount?: string;
|
|
284
|
+
} & { [K_5 in Exclude<keyof I_1["vestingPeriods"][number]["amount"][number], keyof Coin>]: never; })[] & { [K_6 in Exclude<keyof I_1["vestingPeriods"][number]["amount"], keyof {
|
|
285
|
+
denom?: string;
|
|
286
|
+
amount?: string;
|
|
287
|
+
}[]>]: never; };
|
|
288
|
+
} & { [K_7 in Exclude<keyof I_1["vestingPeriods"][number], keyof Period>]: never; })[] & { [K_8 in Exclude<keyof I_1["vestingPeriods"], keyof {
|
|
289
|
+
length?: number;
|
|
290
|
+
amount?: {
|
|
291
|
+
denom?: string;
|
|
292
|
+
amount?: string;
|
|
293
|
+
}[];
|
|
294
|
+
}[]>]: never; };
|
|
295
|
+
} & { [K_9 in Exclude<keyof I_1, keyof MsgCreatePeriodicVestingAccount>]: never; }>(object: I_1): MsgCreatePeriodicVestingAccount;
|
|
296
|
+
};
|
|
297
|
+
export declare const MsgCreatePeriodicVestingAccountResponse: {
|
|
298
|
+
encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
299
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse;
|
|
300
|
+
fromJSON(_: any): MsgCreatePeriodicVestingAccountResponse;
|
|
301
|
+
toJSON(_: MsgCreatePeriodicVestingAccountResponse): unknown;
|
|
302
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgCreatePeriodicVestingAccountResponse;
|
|
303
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgCreatePeriodicVestingAccountResponse;
|
|
304
|
+
};
|
|
305
|
+
/** Msg defines the bank Msg service. */
|
|
306
|
+
export interface Msg {
|
|
307
|
+
/**
|
|
308
|
+
* CreateVestingAccount defines a method that enables creating a vesting
|
|
309
|
+
* account.
|
|
310
|
+
*/
|
|
311
|
+
CreateVestingAccount(request: MsgCreateVestingAccount): Promise<MsgCreateVestingAccountResponse>;
|
|
312
|
+
/**
|
|
313
|
+
* CreatePermanentLockedAccount defines a method that enables creating a permanent
|
|
314
|
+
* locked account.
|
|
315
|
+
*
|
|
316
|
+
* Since: cosmos-sdk 0.46
|
|
317
|
+
*/
|
|
318
|
+
CreatePermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise<MsgCreatePermanentLockedAccountResponse>;
|
|
319
|
+
/**
|
|
320
|
+
* CreatePeriodicVestingAccount defines a method that enables creating a
|
|
321
|
+
* periodic vesting account.
|
|
322
|
+
*
|
|
323
|
+
* Since: cosmos-sdk 0.46
|
|
324
|
+
*/
|
|
325
|
+
CreatePeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise<MsgCreatePeriodicVestingAccountResponse>;
|
|
326
|
+
}
|
|
327
|
+
export declare class MsgClientImpl implements Msg {
|
|
328
|
+
private readonly rpc;
|
|
329
|
+
private readonly service;
|
|
330
|
+
constructor(rpc: Rpc, opts?: {
|
|
331
|
+
service?: string;
|
|
332
|
+
});
|
|
333
|
+
CreateVestingAccount(request: MsgCreateVestingAccount): Promise<MsgCreateVestingAccountResponse>;
|
|
334
|
+
CreatePermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise<MsgCreatePermanentLockedAccountResponse>;
|
|
335
|
+
CreatePeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise<MsgCreatePeriodicVestingAccountResponse>;
|
|
336
|
+
}
|
|
337
|
+
interface Rpc {
|
|
338
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
339
|
+
}
|
|
340
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
341
|
+
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 {} ? {
|
|
342
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
343
|
+
} : Partial<T>;
|
|
344
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
345
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
346
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
347
|
+
} & {
|
|
348
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
349
|
+
};
|
|
350
|
+
export {};
|