synapsecns/sanguine

View on GitHub
packages/synapse-interface/scripts/abi/IDefaultPool.json

Summary

Maintainability
Test Coverage
[
  {
    "inputs": [
      {
        "internalType": "uint8",
        "name": "tokenIndexFrom",
        "type": "uint8"
      },
      {
        "internalType": "uint8",
        "name": "tokenIndexTo",
        "type": "uint8"
      },
      {
        "internalType": "uint256",
        "name": "dx",
        "type": "uint256"
      }
    ],
    "name": "calculateSwap",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "amountOut",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint8",
        "name": "index",
        "type": "uint8"
      }
    ],
    "name": "getToken",
    "outputs": [
      {
        "internalType": "address",
        "name": "token",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint8",
        "name": "tokenIndexFrom",
        "type": "uint8"
      },
      {
        "internalType": "uint8",
        "name": "tokenIndexTo",
        "type": "uint8"
      },
      {
        "internalType": "uint256",
        "name": "dx",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "minDy",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "deadline",
        "type": "uint256"
      }
    ],
    "name": "swap",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "amountOut",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]