cic-staff-client/src/app/_models/token.ts

28 lines
693 B
TypeScript
Raw Normal View History

2021-05-12 08:40:21 +02:00
/** Token object interface */
interface Token {
2021-05-12 09:52:28 +02:00
/** Address of the deployed token contract. */
2021-01-15 05:30:19 +01:00
address: string;
2021-05-12 09:52:28 +02:00
/** Number of decimals to convert to smallest denomination of the token. */
2021-01-15 05:30:19 +01:00
decimals: string;
/** Name of the token. */
name: string;
/** Address of account that deployed token. */
owner?: string;
/** Token reserve to token minting ratio. */
reserveRatio?: string;
2021-05-12 09:52:28 +02:00
/** Token reserve information */
reserves?: {
2021-01-15 05:30:19 +01:00
'0xa686005CE37Dce7738436256982C3903f2E4ea8E'?: {
weight: string;
balance: string;
2021-05-10 18:15:25 +02:00
};
2021-01-15 05:30:19 +01:00
};
/** Total token supply. */
supply: string;
/** The unique token symbol. */
symbol: string;
2021-01-15 05:30:19 +01:00
}
2021-05-12 08:40:21 +02:00
/** @exports */
2021-05-10 18:15:25 +02:00
export { Token };