UNPKG

@muirglacier/jellyfish-transaction-builder

Version:

A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance for Bitcoin

19 lines 929 B
import { Script, TransactionSegWit, PoolSwap, CompositeSwap } from '@muirglacier/jellyfish-transaction'; import { P2WPKHTxnBuilder } from './txn_builder'; export declare class TxnBuilderDex extends P2WPKHTxnBuilder { /** * Requires at least 0.01 DFI to create transaction, actual fees are much lower. * * @param {PoolSwap} poolSwap txn to create * @param {Script} changeScript to send unspent to after deducting the fees */ poolSwap(poolSwap: PoolSwap, changeScript: Script): Promise<TransactionSegWit>; /** * Requires at least 0.01 DFI to create transaction, actual fees are much lower. * * @param {CompositeSwap} compositeSwap txn to create * @param {Script} changeScript to send unspent to after deducting the fees */ compositeSwap(compositeSwap: CompositeSwap, changeScript: Script): Promise<TransactionSegWit>; } //# sourceMappingURL=txn_builder_dex.d.ts.map