forked from UsingBlockchain/swapable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
44 lines (38 loc) · 1.71 KB
/
index.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
/**
* This file is part of Swapable shared under LGPL-3.0-only.
* Copyright (C) 2021 Using Blockchain Ltd, Reg No.: 12658136, United Kingdom
*
* @package Swapable
* @author Grégory Saive for Using Blockchain Ltd <[email protected]>
* @license LGPL-3.0-only
*/
// errors
export { FailureCommandExecution } from './src/errors/FailureCommandExecution'
export { FailureEmptyContract } from './src/errors/FailureEmptyContract'
export { FailureInvalidCommand } from './src/errors/FailureInvalidCommand'
export { FailureMissingArgument } from './src/errors/FailureMissingArgument'
export { FailureOperationForbidden } from './src/errors/FailureOperationForbidden'
// models
export { AllowanceResult } from './src/models/AllowanceResult'
export { AssetAmount } from './src/models/AssetAmount'
export { AssetSource } from './src/models/AssetSource'
export { AssetIdentifier } from './src/models/AssetIdentifier'
export { CommandOption } from './src/models/CommandOption'
export { TransactionParameters } from './src/models/TransactionParameters'
export { PoolInfo } from './src/services/PoolService'
// contracts
export { Context } from './src/contracts/Context'
export { Command } from './src/contracts/Command'
export { Service } from './src/contracts/Service'
export { BaseCommand } from './src/contracts/BaseCommand'
export { Market } from './src/contracts/Market'
export { Reader } from './src/contracts/Reader'
// adapters: exports one class `Reader` per blockchain network,
// Adapter for Symbol
import * as Symbol from './src/adapters/Symbol';
export { Symbol }
// Adapter for dHealth
export const dHealth = Symbol
// export open standard namespace `Swapable`
import * as Swapable from './src/Swapable'
export { Swapable }