UNPKG

@xlink-network/xlink-sdk

Version:
36 lines (33 loc) 1.17 kB
import { BigNumber } from '../../utils/BigNumber.mjs'; import { KnownChainId, KnownTokenId } from '../../utils/types/knownIds.mjs'; import { S as SDKGlobalContext } from '../../types.internal-8d3OI2Qm.mjs'; import 'big.js'; import '../../utils/typeHelpers.mjs'; import '../../xlinkSdkUtils/types.mjs'; import 'viem'; import '../../evmUtils/evmContractAddresses.mjs'; declare function createBitcoinPegInRecipients(sdkContext: Pick<SDKGlobalContext, "backendAPI">, info: { fromChain: KnownChainId.BitcoinChain; toChain: KnownChainId.StacksChain | KnownChainId.EVMChain; fromToken: KnownTokenId.BitcoinToken; toToken: KnownTokenId.StacksToken | KnownTokenId.EVMToken; fromAddress: { address: string; scriptPubKey: Uint8Array; }; toAddress: string; fromAmount: BigNumber; feeRate: bigint; orderData: Uint8Array; }): Promise<{ address: string; scriptPubKey: Uint8Array; satsAmount: bigint; }>; interface BitcoinPegInRecipient { type: "commitOrder"; address: string; scriptPubKeyHex: string; tapScriptHex: `0x${string}`; } export { type BitcoinPegInRecipient, createBitcoinPegInRecipients };