synapsecns/sanguine

View on GitHub
packages/contracts-rfq/deployments/optimism/SynapseIntentRouter.json

Summary

Maintainability
Test Coverage
{
  "address": "0x57203c65DeA2ded4EE4E303a9494bee04df030BF",
  "constructorArgs": "0x",
  "receipt": {
    "hash": "0xf68cf0c65d39291cf7b293228ae1664ca8fb0b2afb32e6ed1ecbac80a38f4771",
    "blockNumber": 128859363
  },
  "abi": [
    {
      "type": "function",
      "name": "NATIVE_GAS_TOKEN",
      "inputs": [],
      "outputs": [
        {
          "name": "",
          "type": "address",
          "internalType": "address"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "completeIntent",
      "inputs": [
        {
          "name": "zapRecipient",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "amountIn",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "minLastStepAmountIn",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "deadline",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "steps",
          "type": "tuple[]",
          "internalType": "struct ISynapseIntentRouter.StepParams[]",
          "components": [
            {
              "name": "token",
              "type": "address",
              "internalType": "address"
            },
            {
              "name": "amount",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "msgValue",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "zapData",
              "type": "bytes",
              "internalType": "bytes"
            }
          ]
        }
      ],
      "outputs": [],
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "completeIntentWithBalanceChecks",
      "inputs": [
        {
          "name": "zapRecipient",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "amountIn",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "minLastStepAmountIn",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "deadline",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "steps",
          "type": "tuple[]",
          "internalType": "struct ISynapseIntentRouter.StepParams[]",
          "components": [
            {
              "name": "token",
              "type": "address",
              "internalType": "address"
            },
            {
              "name": "amount",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "msgValue",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "zapData",
              "type": "bytes",
              "internalType": "bytes"
            }
          ]
        }
      ],
      "outputs": [],
      "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": "SIR__AmountInsufficient",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__DeadlineExceeded",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__MsgValueIncorrect",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__StepsNotProvided",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__TokenNotContract",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__UnspentFunds",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__ZapIncorrectReturnValue",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SIR__ZapNoReturnValue",
      "inputs": []
    },
    {
      "type": "error",
      "name": "SafeERC20FailedOperation",
      "inputs": [
        {
          "name": "token",
          "type": "address",
          "internalType": "address"
        }
      ]
    }
  ]
}