From c353f90eb4165e2759e0297941f19759383fb898 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Thu, 13 Feb 2025 16:42:32 +0300 Subject: [PATCH] Fix interface --- docs/ChainflipFacet.md | 8 +++++--- src/Interfaces/IChainflip.sol | 4 ---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/ChainflipFacet.md b/docs/ChainflipFacet.md index 2d109a806..2cfed7dcd 100644 --- a/docs/ChainflipFacet.md +++ b/docs/ChainflipFacet.md @@ -23,9 +23,9 @@ The methods listed above take a variable labeled `_chainflipData`. This data is ```solidity struct ChainflipData { - uint32 dstToken; // Token identifier on the destination chain - bytes32 nonEvmAddress; // Destination address for non-EVM chains (Solana, Bitcoin) - bytes cfParameters; // Additional parameters for future features + uint32 dstToken; // Token identifier on the destination chain + bytes32 nonEvmAddress; // Destination address for non-EVM chains (Solana, Bitcoin) + bytes cfParameters; // Additional parameters for future features } ``` @@ -40,6 +40,8 @@ The facet supports the following chains with their respective IDs: - Solana (1151111081099710) - Bitcoin (20000000000001) +[Reference](https://docs.chainflip.io/swapping/integrations/advanced/vault-swaps#supported-chains) + ## Swap Data Some methods accept a `SwapData _swapData` parameter. diff --git a/src/Interfaces/IChainflip.sol b/src/Interfaces/IChainflip.sol index 34fcd9d6b..568a42261 100644 --- a/src/Interfaces/IChainflip.sol +++ b/src/Interfaces/IChainflip.sol @@ -3,12 +3,8 @@ pragma solidity ^0.8.17; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.17; - /// @custom:version 1.0.0 interface IChainflipVault { - function xSwapNative( function xSwapNative( uint32 dstChain, bytes calldata dstAddress,