@swapkit/chainflip
Plugin implementing Chainflip support for broker and swap execution
Getting started
Installation
Integration
Implementation with @swapkit/core
Methods
swap(params: GenericSwapParams): Promise<string>
Swaps assets over cross-chain Chainflip network. Used in combination of deposit address generated from ChainflipBroker
ChainflipBroker
Usage
Used with ChainflipToolbox. Returns all necessary methods to implement your own chainflip broker that deliveres requests like deposit addresses
registerAsBroker(address: string): Promise<string>
requestSwapDepositAddress(params: GenericSwapParams & { brokerCommissionBPS: number }): Promise<SwapDepositResponse>
fundStateChainAccount(chainAccount: string, amount: AssetValue, evmToolbox: EVMToolbox)): Promise<string>
withdrawFee(params: { feeAsset: AssetValue; recipient: string }): Promise<WithdrawFeeResponse>
Types
SwapDepositResponse
WithdrawFeeResponse
Last updated