tornado-relayer/abis/Aggregator.abi.json

335 lines
6.5 KiB
JSON
Raw Normal View History

2020-11-04 20:23:14 +01:00
[
{
"inputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "contract MultiWrapper",
"name": "_multiWrapper",
"type": "address"
},
{
"internalType": "contract IOracle[]",
"name": "existingOracles",
"type": "address[]"
},
{
"internalType": "enum OffchainOracle.OracleType[]",
"name": "oracleTypes",
"type": "uint8[]"
},
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IERC20[]",
"name": "existingConnectors",
2020-11-04 20:23:14 +01:00
"type": "address[]"
2022-05-10 10:52:07 +02:00
},
{
"internalType": "contract IERC20",
"name": "wBase",
"type": "address"
2020-11-04 20:23:14 +01:00
}
],
"stateMutability": "nonpayable",
2022-05-10 10:52:07 +02:00
"type": "constructor"
2020-11-04 20:23:14 +01:00
},
{
2022-05-10 10:52:07 +02:00
"anonymous": false,
2020-11-04 20:23:14 +01:00
"inputs": [
{
2022-05-10 10:52:07 +02:00
"indexed": false,
"internalType": "contract IERC20",
"name": "connector",
2020-11-04 20:23:14 +01:00
"type": "address"
}
],
2022-05-10 10:52:07 +02:00
"name": "ConnectorAdded",
"type": "event"
2020-11-04 20:23:14 +01:00
},
{
2022-05-10 10:52:07 +02:00
"anonymous": false,
2020-11-04 20:23:14 +01:00
"inputs": [
{
2022-05-10 10:52:07 +02:00
"indexed": false,
"internalType": "contract IERC20",
"name": "connector",
2020-11-04 20:23:14 +01:00
"type": "address"
}
],
2022-05-10 10:52:07 +02:00
"name": "ConnectorRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"indexed": false,
"internalType": "contract MultiWrapper",
"name": "multiWrapper",
"type": "address"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "MultiWrapperUpdated",
"type": "event"
2020-11-04 20:23:14 +01:00
},
{
2022-05-10 10:52:07 +02:00
"anonymous": false,
2020-11-04 20:23:14 +01:00
"inputs": [
{
2022-05-10 10:52:07 +02:00
"indexed": false,
"internalType": "contract IOracle",
"name": "oracle",
"type": "address"
2020-11-04 20:23:14 +01:00
},
{
2022-05-10 10:52:07 +02:00
"indexed": false,
"internalType": "enum OffchainOracle.OracleType",
"name": "oracleType",
"type": "uint8"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "OracleAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "contract IOracle",
"name": "oracle",
"type": "address"
},
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"indexed": false,
"internalType": "enum OffchainOracle.OracleType",
"name": "oracleType",
"type": "uint8"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "OracleRemoved",
"type": "event"
2020-11-04 20:23:14 +01:00
},
{
2022-05-10 10:52:07 +02:00
"anonymous": false,
2020-11-04 20:23:14 +01:00
"inputs": [
{
2022-05-10 10:52:07 +02:00
"indexed": true,
"internalType": "address",
"name": "previousOwner",
2020-11-04 20:23:14 +01:00
"type": "address"
},
{
2022-05-10 10:52:07 +02:00
"indexed": true,
2020-11-04 20:23:14 +01:00
"internalType": "address",
2022-05-10 10:52:07 +02:00
"name": "newOwner",
2020-11-04 20:23:14 +01:00
"type": "address"
}
],
2022-05-10 10:52:07 +02:00
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IERC20",
"name": "connector",
2020-11-04 20:23:14 +01:00
"type": "address"
}
],
2022-05-10 10:52:07 +02:00
"name": "addConnector",
"outputs": [],
"stateMutability": "nonpayable",
2020-11-04 20:23:14 +01:00
"type": "function"
},
{
"inputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IOracle",
"name": "oracle",
2020-11-04 20:23:14 +01:00
"type": "address"
},
{
2022-05-10 10:52:07 +02:00
"internalType": "enum OffchainOracle.OracleType",
"name": "oracleKind",
"type": "uint8"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "addOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "connectors",
2020-11-04 20:23:14 +01:00
"outputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IERC20[]",
"name": "allConnectors",
"type": "address[]"
2020-11-04 20:23:14 +01:00
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IERC20",
"name": "srcToken",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "dstToken",
"type": "address"
},
{
"internalType": "bool",
"name": "useWrappers",
"type": "bool"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "getRate",
2020-11-04 20:23:14 +01:00
"outputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "uint256",
"name": "weightedRate",
"type": "uint256"
2020-11-04 20:23:14 +01:00
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IERC20",
"name": "srcToken",
2020-11-04 20:23:14 +01:00
"type": "address"
2022-05-10 10:52:07 +02:00
},
{
"internalType": "bool",
"name": "useSrcWrappers",
"type": "bool"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "getRateToEth",
2020-11-04 20:23:14 +01:00
"outputs": [
{
"internalType": "uint256",
2022-05-10 10:52:07 +02:00
"name": "weightedRate",
2020-11-04 20:23:14 +01:00
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
2022-05-10 10:52:07 +02:00
"inputs": [],
"name": "multiWrapper",
"outputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "contract MultiWrapper",
"name": "",
2020-11-04 20:23:14 +01:00
"type": "address"
2022-05-10 10:52:07 +02:00
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "oracles",
"outputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IOracle[]",
"name": "allOracles",
2020-11-04 20:23:14 +01:00
"type": "address[]"
},
{
2022-05-10 10:52:07 +02:00
"internalType": "enum OffchainOracle.OracleType[]",
"name": "oracleTypes",
"type": "uint8[]"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
2020-11-04 20:23:14 +01:00
"outputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "address",
"name": "",
"type": "address"
2020-11-04 20:23:14 +01:00
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IERC20",
"name": "connector",
"type": "address"
}
],
"name": "removeConnector",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "contract IOracle",
"name": "oracle",
"type": "address"
2020-11-04 20:23:14 +01:00
},
{
2022-05-10 10:52:07 +02:00
"internalType": "enum OffchainOracle.OracleType",
"name": "oracleKind",
"type": "uint8"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "removeOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "contract MultiWrapper",
"name": "_multiWrapper",
"type": "address"
}
],
"name": "setMultiWrapper",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
2020-11-04 20:23:14 +01:00
{
2022-05-10 10:52:07 +02:00
"internalType": "address",
"name": "newOwner",
"type": "address"
2020-11-04 20:23:14 +01:00
}
],
2022-05-10 10:52:07 +02:00
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
2020-11-04 20:23:14 +01:00
"type": "function"
}
]