UNPKG

@muirglacier/jellyfish-transaction-builder

Version:

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

61 lines 2.92 kB
import { Script, TransactionSegWit, ICXCreateOrder, ICXMakeOffer, ICXCloseOrder, ICXCloseOffer, ICXSubmitDFCHTLC, ICXSubmitEXTHTLC, ICXClaimDFCHTLC } from '@muirglacier/jellyfish-transaction'; import { P2WPKHTxnBuilder } from './txn_builder'; export declare class TxnBuilderICXOrderBook extends P2WPKHTxnBuilder { /** * Creates ICXCreateOrder transaction. * * @param {ICXCreateOrder} createOrder Create order txn to create * @param {Script} changeScript to send unspent to after deducting the (converted + fees) * @returns {Promise<TransactionSegWit>} */ createOrder(createOrder: ICXCreateOrder, changeScript: Script): Promise<TransactionSegWit>; /** * Creates ICXMakeOffer transaction. * * @param {ICXMakeOffer} makeOffer txn to create * @param {Script} changeScript to send unspent to after deducting the (converted + fees) * @returns {Promise<TransactionSegWit>} */ makeOffer(makeOffer: ICXMakeOffer, changeScript: Script): Promise<TransactionSegWit>; /** * Creates ICXCloseOrder transaction. * * @param {ICXCloseOrder} closeOrder txn to create * @param {Script} changeScript to send unspent to after deducting the (converted + fees) * @returns {Promise<TransactionSegWit>} */ closeOrder(closeOrder: ICXCloseOrder, changeScript: Script): Promise<TransactionSegWit>; /** * Creates ICXCloseOffer transaction. * * @param {ICXCloseOffer} closeOffer txn to create * @param {Script} changeScript to send unspent to after deducting the (converted + fees) * @returns {Promise<TransactionSegWit>} */ closeOffer(closeOffer: ICXCloseOffer, changeScript: Script): Promise<TransactionSegWit>; /** * Creates submitDFCHTLC transaction. * * @param {ICXSubmitDFCHTLC} icxSubmitDFCHTLC txn to create * @param {Script} changeScript to send unspent to after deducting the (transfer value + fees) * @returns {Promise<TransactionSegWit>} */ submitDFCHTLC(icxSubmitDFCHTLC: ICXSubmitDFCHTLC, changeScript: Script): Promise<TransactionSegWit>; /** * Creates submitEXTHTLC transaction. * * @param {ICXSubmitEXTHTLC} icxSubmitEXTHTLC txn to create * @param {Script} changeScript to send unspent to after deducting the (transfer value + fees) * @returns {Promise<TransactionSegWit>} */ submitEXTHTLC(icxSubmitEXTHTLC: ICXSubmitEXTHTLC, changeScript: Script): Promise<TransactionSegWit>; /** * Creates claimDFCHTLC transaction. * * @param {ICXClaimDFCHTLC} icxClaimDFCHTLC txn to create * @param {Script} changeScript to send unspent to after deducting the (transfer value + fees) * @returns {Promise<TransactionSegWit>} */ claimDFCHTLC(icxClaimDFCHTLC: ICXClaimDFCHTLC, changeScript: Script): Promise<TransactionSegWit>; } //# sourceMappingURL=txn_builder_icxorderbook.d.ts.map