|
1 |
| -export { |
2 |
| - deposit, |
3 |
| - type DepositParameters, |
4 |
| - type DepositReturnType, |
5 |
| -} from '../actions/byok/deposit.js' |
| 1 | +import { createBYOKConfig as core_createBYOKConfig } from '../utils/createBYOKConfig.js' |
| 2 | +import * as RustUtils from '../../renegade-utils/index.js' |
| 3 | + |
| 4 | +//////////////////////////////////////////////////////////////////////////////// |
| 5 | +// Config |
| 6 | +//////////////////////////////////////////////////////////////////////////////// |
| 7 | + |
| 8 | +function createBYOKConfig( |
| 9 | + ...args: Parameters<typeof core_createBYOKConfig> |
| 10 | +): ReturnType<typeof core_createBYOKConfig> { |
| 11 | + const config = core_createBYOKConfig({ |
| 12 | + ...args[0], |
| 13 | + utils: RustUtils, |
| 14 | + }) |
| 15 | + return config |
| 16 | +} |
| 17 | + |
| 18 | +export { createBYOKConfig } |
| 19 | + |
| 20 | +//////////////////////////////////////////////////////////////////////////////// |
| 21 | +// Actions (Bring Your Own Key) |
| 22 | +//////////////////////////////////////////////////////////////////////////////// |
| 23 | + |
6 | 24 | export {
|
7 | 25 | createWallet,
|
8 | 26 | type CreateWalletParameters,
|
9 | 27 | type CreateWalletReturnType,
|
10 | 28 | } from '../actions/byok/createWallet.js'
|
| 29 | + |
11 | 30 | export {
|
12 | 31 | generateWalletSecrets,
|
13 | 32 | type GeneratedSecrets,
|
14 | 33 | } from '../actions/byok/generateWalletSecrets.js'
|
| 34 | + |
15 | 35 | export {
|
16 | 36 | getPkRootScalars,
|
17 | 37 | type GetPkRootParameters,
|
18 | 38 | type GetPkRootScalarsReturnType,
|
19 | 39 | } from '../actions/byok/getPkRoot.js'
|
| 40 | + |
20 | 41 | export {
|
21 | 42 | getBackOfQueueWallet,
|
22 | 43 | type GetBackOfQueueWalletParameters,
|
23 | 44 | type GetBackOfQueueWalletReturnType,
|
24 | 45 | } from '../actions/byok/getBackOfQueueWallet.js'
|
| 46 | + |
| 47 | +export { |
| 48 | + lookupWallet, |
| 49 | + type LookupWalletParameters, |
| 50 | + type LookupWalletReturnType, |
| 51 | +} from '../actions/byok/lookupWallet.js' |
| 52 | + |
| 53 | +export { |
| 54 | + deposit, |
| 55 | + type DepositParameters, |
| 56 | + type DepositReturnType, |
| 57 | +} from '../actions/byok/deposit.js' |
| 58 | + |
25 | 59 | export {
|
26 | 60 | withdraw,
|
27 | 61 | type WithdrawParameters,
|
28 | 62 | type WithdrawReturnType,
|
29 | 63 | } from '../actions/byok/withdraw.js'
|
| 64 | + |
| 65 | +export { |
| 66 | + payFees, |
| 67 | + type PayFeesReturnType, |
| 68 | +} from '../actions/byok/payFees.js' |
| 69 | + |
30 | 70 | export {
|
31 | 71 | createOrder,
|
32 | 72 | type CreateOrderParameters,
|
33 | 73 | type CreateOrderReturnType,
|
34 | 74 | } from '../actions/byok/createOrder.js'
|
| 75 | + |
35 | 76 | export {
|
36 | 77 | cancelOrder,
|
37 | 78 | type CancelOrderParameters,
|
38 | 79 | type CancelOrderReturnType,
|
39 | 80 | } from '../actions/byok/cancelOrder.js'
|
40 |
| -export { |
41 |
| - lookupWallet, |
42 |
| - type LookupWalletParameters, |
43 |
| - type LookupWalletReturnType, |
44 |
| -} from '../actions/byok/lookupWallet.js' |
45 |
| -export { |
46 |
| - payFees, |
47 |
| - type PayFeesReturnType, |
48 |
| -} from '../actions/byok/payFees.js' |
| 81 | + |
49 | 82 | export {
|
50 | 83 | getOrderHistory,
|
51 | 84 | type GetOrderHistoryParameters,
|
|
0 commit comments