/
types.ts
95 lines (79 loc) · 2.58 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import type { ApiInterfaceRx } from 'https://deno.land/x/polkadot@0.2.40/api-base/types/index.ts';
import type { u32 } from 'https://deno.land/x/polkadot@0.2.40/types/mod.ts';
import type { Balance, BlockNumber, BountyIndex, Hash, Proposal, ProposalIndex, SetIndex, Votes } from 'https://deno.land/x/polkadot@0.2.40/types/interfaces/index.ts';
import type { PalletBountiesBounty, PalletTreasuryProposal } from 'https://deno.land/x/polkadot@0.2.40/types/lookup.ts';
import type { BN } from 'https://deno.land/x/polkadot@0.2.40/util/mod.ts';
import type { ExactDerive } from './derive.ts';
export * from './accounts/types.ts';
export * from './bagsList/types.ts';
export * from './balances/types.ts';
export * from './council/types.ts';
export * from './crowdloan/types.ts';
export * from './democracy/types.ts';
export * from './elections/types.ts';
export * from './parachains/types.ts';
export * from './session/types.ts';
export * from './society/types.ts';
export * from './staking/types.ts';
export * from './type/types.ts';
export interface DeriveApi extends ApiInterfaceRx {
derive: ExactDerive;
}
export interface DeriveContractFees {
callBaseFee: BN;
contractFee: BN;
creationFee: BN;
rentByteFee: BN;
rentDepositOffset: BN;
surchargeReward: BN;
tombstoneDeposit: BN;
transactionBaseFee: BN;
transactionByteFee: BN;
transferFee: BN;
}
export interface DeriveCollectiveProposal {
hash: Hash;
proposal: Proposal | null;
votes: Votes | null;
}
export interface DeriveFees {
creationFee: Balance;
existentialDeposit: Balance;
transactionBaseFee: Balance;
transactionByteFee: Balance;
transferFee: Balance;
}
export interface DeriveHeartbeatAuthor {
blockCount: u32;
hasMessage: boolean;
isOnline: boolean;
}
export type DeriveHeartbeats = Record<string, DeriveHeartbeatAuthor>;
export interface RecentlyOffline {
blockNumber: BlockNumber;
count: BN;
}
export type DeriveRecentlyOffline = Record<string, RecentlyOffline[]>;
export interface DeriveTreasuryProposal {
council: DeriveCollectiveProposal[];
id: ProposalIndex;
proposal: PalletTreasuryProposal;
}
export interface DeriveTreasuryProposals {
approvals: DeriveTreasuryProposal[];
proposalCount: ProposalIndex;
proposals: DeriveTreasuryProposal[];
}
export interface VoterPosition {
globalIndex: BN;
index: BN;
setIndex: SetIndex;
}
export type DeriveVoterPositions = Record<string, VoterPosition>;
export interface DeriveBounty {
bounty: PalletBountiesBounty;
description: string;
index: BountyIndex;
proposals: DeriveCollectiveProposal[];
}
export type DeriveBounties = DeriveBounty[];