Contract: srcDeposit
Peti bridge contract interaction reference
- 1.
- 2.Find the corresponding contract address here
ABI (optional if you use the binding like Typechain)
rfq.json
25KB
Code
Lock the assets to source rfq contract. if the bridge token is a native token, use the srcDepositNative.
// typechain method example
srcDeposit(
_quote: RFQ.QuoteStruct,
_submissionDeadline: BigNumberish,
overrides?: PayableOverrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Name | Type | Description |
---|---|---|
_quote | RFQ.QuoteStruct | |
_submissionDeadline | Number | |
value(msg.value) | String | ERC20 bridge: msgFee, Native token bridge: msgFee + source token amount |
Name | Type | Description |
---|---|---|
srcChainId | Number | source chain id |
srcToken | String | source token address |
srcAmount | String | Input amount with source token decimal |
srcReleaseAmount | | NOT REQUIRED |
dstChainId | Number | destination chain id |
dstToken | String | Destination token address |
dstAmount | String | |
deadline | Number(Second) | |
nonce | Number | |
sender | String | rfq contract sender address |
receiver | String | receive address |
refundTo | String | refund address, Usually the user wallet address. |
liquidityProvider | String |
Once the transaction submitting, same as other EVM bridge, user history can be found in TransferHistory API, and the transaction process status can be found in GetTransferStatus API.
Last modified 7mo ago