UNPKG

1.16 kBTypeScriptView Raw
1import type { Enum, Option, Struct, u32 } from '@polkadot/types-codec';
2import type { LeasePeriod } from '@polkadot/types/interfaces/parachains';
3import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime';
4/** @name FundIndex */
5export interface FundIndex extends u32 {
6}
7/** @name FundInfo */
8export 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/** @name LastContribution */
21export 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/** @name TrieIndex */
30export interface TrieIndex extends u32 {
31}
32export declare type PHANTOM_CROWDLOAN = 'crowdloan';