-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
70 lines (66 loc) · 1.97 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import {FinalExecutionOutcome} from 'near-api-js/lib/providers';
/**
* Spin
*/
import {CoreParams} from '../../../types/selector';
/**
* Contract
*/
import type {CancelOrderRequest, CancelOrderConfig} from '../../contract/cancelOrder';
import type {CancelOrdersRequest, CancelOrdersConfig} from '../../contract/cancelOrders';
import type {DepositRequest, DepositConfig} from '../../contract/deposit';
import type {PlaceAskRequest, PlaceAskConfig} from '../../contract/placeAsk';
import type {PlaceBidRequest, PlaceBidConfig} from '../../contract/placeBid';
import type {WithdrawRequest, WithdrawConfig} from '../../contract/withdraw';
/**
* Native
*/
import {TransferFtRequest, TransferFtConfig} from '../../../native/transferFt';
import {DepositStorageRequest, DepositStorageConfig} from '../../../native/depositStorage';
export type PerpBundlerUnit = () => Promise<CoreParams | undefined>;
export type CustomCreator = () => PerpBundlerUnit;
export interface PerpBundler {
/**
* TODO
*/
call: () => Promise<FinalExecutionOutcome[] | void>;
custom: (creator: CustomCreator) => PerpBundler;
/**
* Contract
*/
/**
* TODO
*/
cancelOrder: (request: CancelOrderRequest, config?: CancelOrderConfig) => PerpBundler;
/**
* TODO
*/
cancelOrders: (request: CancelOrdersRequest, config?: CancelOrdersConfig) => PerpBundler;
/**
* TODO
*/
deposit: (request: DepositRequest, config?: DepositConfig) => PerpBundler;
/**
* TODO
*/
placeAsk: (request: PlaceAskRequest, config?: PlaceAskConfig) => PerpBundler;
/**
* TODO
*/
placeBid: (request: PlaceBidRequest, config?: PlaceBidConfig) => PerpBundler;
/**
* TODO
*/
withdraw: (request: WithdrawRequest, config?: WithdrawConfig) => PerpBundler;
/**
* Native
*/
/**
* TODO
*/
transferFt: (request: TransferFtRequest, config?: TransferFtConfig) => PerpBundler;
/**
* TODO
*/
depositStorage: (request: DepositStorageRequest, config?: DepositStorageConfig) => PerpBundler;
}