Skip to content

Commit e81f6a5

Browse files
authored
Merge pull request #516 from Oyl-Wallet/hude/unwrap_single
Hude/unwrap single
2 parents 8aa2de3 + 8a41eaa commit e81f6a5

File tree

4 files changed

+352
-124
lines changed

4 files changed

+352
-124
lines changed

lib/alkanes/alkanes.d.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ export declare const actualUnwrapBtcFee: ({ utxos, account, provider, feeRate, u
7171
fee: number;
7272
vsize: number;
7373
}>;
74+
export declare const unwrapBtcNoSigning: ({ utxos, account, provider, feeRate, unwrapAmount, alkaneUtxos, }: {
75+
utxos: FormattedUtxo[];
76+
account: Account;
77+
provider: Provider;
78+
feeRate?: number;
79+
unwrapAmount: bigint;
80+
alkaneUtxos: FormattedUtxo[];
81+
}) => Promise<{
82+
psbt: string;
83+
psbtHex: string;
84+
}>;
7485
export declare const unwrapBtc: ({ utxos, account, provider, feeRate, signer, unwrapAmount, alkaneUtxos, }: {
7586
utxos: FormattedUtxo[];
7687
account: Account;
@@ -204,7 +215,7 @@ export declare const executePsbt: ({ alkanesUtxos, utxos, account, protostone, p
204215
psbt: string;
205216
fee: number;
206217
}>;
207-
export declare const executeFallbackToWitnessProxy: ({ alkanesUtxos, utxos, account, calldata, provider, feeRate, signer, frontendFee, feeAddress, witnessProxy, frbtcWrapAmount, addDieselMint, }: {
218+
export declare const executeFallbackToWitnessProxy: ({ alkanesUtxos, utxos, account, calldata, provider, feeRate, signer, frontendFee, feeAddress, witnessProxy, frbtcWrapAmount, frbtcUnwrapAmount, addDieselMint, }: {
208219
alkanesUtxos?: FormattedUtxo[];
209220
utxos: FormattedUtxo[];
210221
account: Account;
@@ -216,16 +227,10 @@ export declare const executeFallbackToWitnessProxy: ({ alkanesUtxos, utxos, acco
216227
feeAddress?: string;
217228
witnessProxy?: AlkaneId;
218229
frbtcWrapAmount?: number;
230+
frbtcUnwrapAmount?: number;
219231
addDieselMint?: boolean;
220-
}) => Promise<{
221-
txId: string;
222-
rawTx: string;
223-
size: any;
224-
weight: any;
225-
fee: number;
226-
satsPerVByte: string;
227-
}>;
228-
export declare const execute: ({ alkanesUtxos, utxos, account, protostone, provider, feeRate, signer, frontendFee, feeAddress, frbtcWrapPsbt, }: {
232+
}) => Promise<any>;
233+
export declare const execute: ({ alkanesUtxos, utxos, account, protostone, provider, feeRate, signer, frontendFee, feeAddress, frbtcWrapPsbt, frbtcUnwrapAmount, }: {
229234
alkanesUtxos?: FormattedUtxo[];
230235
utxos: FormattedUtxo[];
231236
account: Account;
@@ -236,14 +241,8 @@ export declare const execute: ({ alkanesUtxos, utxos, account, protostone, provi
236241
frontendFee?: bigint;
237242
feeAddress?: string;
238243
frbtcWrapPsbt?: bitcoin.Psbt;
239-
}) => Promise<{
240-
txId: string;
241-
rawTx: string;
242-
size: any;
243-
weight: any;
244-
fee: number;
245-
satsPerVByte: string;
246-
}>;
244+
frbtcUnwrapAmount?: number;
245+
}) => Promise<any>;
247246
export declare const actualWrapBtcFee: ({ alkanesUtxos, utxos, account, protostone, provider, feeRate, wrapAmount, }: {
248247
alkanesUtxos?: FormattedUtxo[];
249248
utxos: FormattedUtxo[];

lib/alkanes/alkanes.js

Lines changed: 141 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/alkanes/alkanes.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)