generated from PolymeshAssociation/typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
/
types.ts
41 lines (36 loc) · 1.01 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
import BigNumber from 'bignumber.js';
import { Account, FungibleAsset, Nft } from '~/internal';
import { SettlementResultEnum as SettlementResult } from '~/middleware/types';
import { SettlementDirectionEnum as SettlementDirection } from '~/middleware/typesV1';
import { Balance, Leg, NftCollection } from '~/types';
export interface PortfolioBalance extends Balance {
asset: FungibleAsset;
}
export interface PortfolioCollection {
collection: NftCollection;
/**
* NFTs available for transferring
*/
free: Nft[];
/**
* NFTs that are locked, such as being involved in a pending instruction
*/
locked: Nft[];
/**
* Total number of NFTs held for a collection
*/
total: BigNumber;
}
export type SettlementLeg = Leg & {
direction: SettlementDirection;
};
export interface HistoricSettlement {
blockNumber: BigNumber;
blockHash: string;
status: SettlementResult;
/**
* Array of Accounts that participated by affirming the settlement
*/
accounts: Account[];
legs: SettlementLeg[];
}