synapsecns/sanguine

View on GitHub
packages/contracts-rfq/deployments/arbitrum/TokenZapV1.json

Summary

Maintainability
Test Coverage
{
  "address": "0x6327797F149a75D506aFda46D5fCE6E74fC409D5",
  "constructorArgs": "0x",
  "receipt": {
    "hash": "0x961a29a85c10275a0d1921ef606f3ed45a79e9106e379b5efd7ae14faa30b1fe",
    "blockNumber": 282619267
  },
  "abi": [
    {
      "type": "receive",
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "NATIVE_GAS_TOKEN",
      "inputs": [],
      "outputs": [
        {
          "name": "",
          "type": "address",
          "internalType": "address"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "decodeZapData",
      "inputs": [
        {
          "name": "zapData",
          "type": "bytes",
          "internalType": "bytes"
        },
        {
          "name": "amount",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "target",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "payload",
          "type": "bytes",
          "internalType": "bytes"
        }
      ],
      "stateMutability": "pure"
    },
    {
      "type": "function",
      "name": "encodeZapData",
      "inputs": [
        {
          "name": "target",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "payload",
          "type": "bytes",
          "internalType": "bytes"
        },
        {
          "name": "amountPosition",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "finalToken",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "forwardTo",
          "type": "address",
          "internalType": "address"
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "bytes",
          "internalType": "bytes"
        }
      ],
      "stateMutability": "pure"
    },
    {
      "type": "function",
      "name": "zap",
      "inputs": [
        {
          "name": "token",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "amount",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "zapData",
          "type": "bytes",
          "internalType": "bytes"
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "bytes4",
          "internalType": "bytes4"
        }
      ],
      "stateMutability": "payable"
    },
    {
      "type": "error",
      "name": "AddressEmptyCode",
      "inputs": [
        {
          "name": "target",
          "type": "address",
          "internalType": "address"
        }
      ]
    },
    {
      "type": "error",
      "name": "AddressInsufficientBalance",
      "inputs": [
        {
          "name": "account",
          "type": "address",
          "internalType": "address"
        }
      ]
    },
    {
      "type": "error",
      "name": "FailedInnerCall",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SafeERC20FailedOperation",
      "inputs": [
        {
          "name": "token",
          "type": "address",
          "internalType": "address"
        }
      ]
    },
    {
      "type": "error",
      "name": "TokenZapV1__FinalTokenBalanceZero",
      "inputs": []
    },
    {
      "type": "error",
      "name": "TokenZapV1__PayloadLengthAboveMax",
      "inputs": []
    },
    {
      "type": "error",
      "name": "TokenZapV1__TargetZeroAddress",
      "inputs": []
    },
    {
      "type": "error",
      "name": "TokenZapV1__TokenZeroAddress",
      "inputs": []
    },
    {
      "type": "error",
      "name": "ZapDataV1__InvalidEncoding",
      "inputs": []
    },
    {
      "type": "error",
      "name": "ZapDataV1__TargetZeroAddress",
      "inputs": []
    },
    {
      "type": "error",
      "name": "ZapDataV1__UnsupportedVersion",
      "inputs": [
        {
          "name": "version",
          "type": "uint16",
          "internalType": "uint16"
        }
      ]
    }
  ]
}