1 | import type { Enum, Option, Struct, u32 } from '@polkadot/types-codec';
|
2 | import type { LeasePeriod } from '@polkadot/types/interfaces/parachains';
|
3 | import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime';
|
4 |
|
5 | export interface FundIndex extends u32 {
|
6 | }
|
7 |
|
8 | export interface FundInfo extends Struct {
|
9 | readonly depositor: AccountId;
|
10 | readonly verifier: Option<MultiSigner>;
|
11 | readonly deposit: Balance;
|
12 | readonly raised: Balance;
|
13 | readonly end: BlockNumber;
|
14 | readonly cap: Balance;
|
15 | readonly lastContribution: LastContribution;
|
16 | readonly firstPeriod: LeasePeriod;
|
17 | readonly lastPeriod: LeasePeriod;
|
18 | readonly trieIndex: TrieIndex;
|
19 | }
|
20 |
|
21 | export interface LastContribution extends Enum {
|
22 | readonly isNever: boolean;
|
23 | readonly isPreEnding: boolean;
|
24 | readonly asPreEnding: u32;
|
25 | readonly isEnding: boolean;
|
26 | readonly asEnding: BlockNumber;
|
27 | readonly type: 'Never' | 'PreEnding' | 'Ending';
|
28 | }
|
29 |
|
30 | export interface TrieIndex extends u32 {
|
31 | }
|
32 | export declare type PHANTOM_CROWDLOAN = 'crowdloan';
|