1 | import type { Bytes, Compact, Struct, bool, u32, u64, u8 } from '@polkadot/types-codec';
|
2 | import type { AccountId, BalanceOf } from '@polkadot/types/interfaces/runtime';
|
3 |
|
4 | export interface AssetApproval extends Struct {
|
5 | readonly amount: TAssetBalance;
|
6 | readonly deposit: TAssetDepositBalance;
|
7 | }
|
8 |
|
9 | export interface AssetApprovalKey extends Struct {
|
10 | readonly owner: AccountId;
|
11 | readonly delegate: AccountId;
|
12 | }
|
13 |
|
14 | export interface AssetBalance extends Struct {
|
15 | readonly balance: TAssetBalance;
|
16 | readonly isFrozen: bool;
|
17 | readonly isSufficient: bool;
|
18 | }
|
19 |
|
20 | export interface AssetDestroyWitness extends Struct {
|
21 | readonly accounts: Compact<u32>;
|
22 | readonly sufficients: Compact<u32>;
|
23 | readonly approvals: Compact<u32>;
|
24 | }
|
25 |
|
26 | export interface AssetDetails extends Struct {
|
27 | readonly owner: AccountId;
|
28 | readonly issuer: AccountId;
|
29 | readonly admin: AccountId;
|
30 | readonly freezer: AccountId;
|
31 | readonly supply: TAssetBalance;
|
32 | readonly deposit: TAssetDepositBalance;
|
33 | readonly minBalance: TAssetBalance;
|
34 | readonly isSufficient: bool;
|
35 | readonly accounts: u32;
|
36 | readonly sufficients: u32;
|
37 | readonly approvals: u32;
|
38 | readonly isFrozen: bool;
|
39 | }
|
40 |
|
41 | export interface AssetMetadata extends Struct {
|
42 | readonly deposit: TAssetDepositBalance;
|
43 | readonly name: Bytes;
|
44 | readonly symbol: Bytes;
|
45 | readonly decimals: u8;
|
46 | readonly isFrozen: bool;
|
47 | }
|
48 |
|
49 | export interface TAssetBalance extends u64 {
|
50 | }
|
51 |
|
52 | export interface TAssetDepositBalance extends BalanceOf {
|
53 | }
|
54 | export type PHANTOM_ASSETS = 'assets';
|