-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.ts
58 lines (53 loc) · 1.07 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
export type Nullable<T> = { [P in keyof T]: T[P] | null };
export interface IStorageState {
abi: any;
wast: Buffer;
network: INetworkModel;
networkEndpoint: string;
identity: IScatterIdentity;
}
export interface IAbiStructField {
name: string;
type: string;
}
export interface IAbiStruct {
name: string;
base: string;
fields: IAbiStructField[];
}
export interface IAbiAction {
name: string;
type: string;
ricardian_contract: string;
}
export interface IAbiResponse {
version: string; //"eosio::abi/1.0",
types: any[];
structs: IAbiStruct[];
actions: IAbiAction[];
tables: any[];
ricardian_clauses: any[];
error_messages: any[];
abi_extensions: any[];
}
export interface INetworkModel {
id: string;
name: string;
host: string;
port: number;
blockchain: string;
protocol: string;
chainId: string;
}
export interface IScatterAccount {
authority: string;
blockchain: string;
name: string;
}
export interface IScatterIdentity {
accounts: IScatterAccount[];
hash: string;
kyc?: boolean;
name: string;
publicKey: string;
}