Skip to content

Commit c01af4f

Browse files
committed
feat: import onchain withdraw from public types
TICKET: BTC-2438
1 parent 6bd0aec commit c01af4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

modules/abstract-lightning/src/codecs/api/withdraw.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import * as t from 'io-ts';
2-
import { LightningOnchainRecipient, LightningOnchainRequest, optionalString } from '@bitgo/public-types';
2+
import { LightningOnchainRequest, optionalString } from '@bitgo/public-types';
33
import { PendingApprovalData, TxRequestState } from '@bitgo/sdk-core';
4-
import { BigIntFromString } from 'io-ts-types';
54

65
export const WithdrawStatusDelivered = 'delivered';
76
export const WithdrawStatusFailed = 'failed';
87

98
export const WithdrawStatus = t.union([t.literal(WithdrawStatusDelivered), t.literal(WithdrawStatusFailed)]);
109

11-
// todo: import LightningOnchainRequest from public-types after it is published
1210
export const LightningOnchainWithdrawParams = t.intersection([
13-
// LightningOnchainRequest,
11+
LightningOnchainRequest,
1412
t.type({
15-
recipients: t.array(LightningOnchainRecipient),
16-
satsPerVbyte: BigIntFromString,
1713
passphrase: t.string,
1814
}),
1915
t.partial({

0 commit comments

Comments
 (0)