Socket 1inch validator implements BridgeValidator to allow same-chain transaction data generated by the Socket v1 API to be verified for validity on-chain. It ensures that submitted transaction data has the intended bridging outcome and was not corrupted in generation or in the process of transmitting through the Superform API.

Core Concepts

Same chain swap requests can be decoded through Socket's 1Inch Implementation.

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4;

/// @title ISocketOneInchImpl
/// @notice Interface for Socket's One Inch Impl
/// @notice used for swaps without bridge
/// @notice taken from
interface ISocketOneInchImpl {
    struct SwapInput {
        address fromToken;
        address toToken;
        address receiver;
        uint256 amount;
        bytes swapExtraData;

    function performDirectAction(
        address fromToken,
        address toToken,
        address receiver,
        uint256 amount,
        bytes memory swapExtraData

Last updated