-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathblockchainInterface.ts
More file actions
41 lines (30 loc) · 972 Bytes
/
blockchainInterface.ts
File metadata and controls
41 lines (30 loc) · 972 Bytes
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 {
BlockchainAssetsModel,
BlockchainCreateModel,
BlockchainCreateResultModel,
BlockchainDeleteModel,
BlockchainGetModel,
BlockchainGetResultModel,
BlockchainInitModel,
BlockchainListModel,
BlockchainListResultModel,
BlockchainPayModel,
BlockchainSignModel,
} from ".";
export enum blockchainType {
algorand = "algorand",
stellar = "stellar",
tfchain = "tfchain",
}
interface blockchainInterface {
create(options: BlockchainCreateModel): Promise<BlockchainCreateResultModel>;
init(options: BlockchainInitModel);
delete(options: BlockchainDeleteModel);
list(options: BlockchainListModel): Promise<BlockchainListResultModel[]>;
select?(options: BlockchainGetModel);
get(options: BlockchainGetModel): Promise<BlockchainGetResultModel>;
assets(options: BlockchainGetModel): Promise<BlockchainAssetsModel>;
sign(options: BlockchainSignModel);
pay(options: BlockchainPayModel);
}
export default blockchainInterface;