2021-02-26 10:52:15 +01:00
|
|
|
[
|
2021-06-19 22:03:18 +02:00
|
|
|
{
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"internalType": "contract MultiWrapper",
|
|
|
|
"name": "_multiWrapper",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "contract IOracle[]",
|
|
|
|
"name": "existingOracles",
|
|
|
|
"type": "address[]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "enum OffchainOracle.OracleType[]",
|
|
|
|
"name": "oracleTypes",
|
|
|
|
"type": "uint8[]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "contract IERC20[]",
|
|
|
|
"name": "existingConnectors",
|
|
|
|
"type": "address[]"
|
|
|
|
},
|
2021-06-19 22:03:18 +02:00
|
|
|
{ "internalType": "contract IERC20", "name": "wBase", "type": "address" }
|
|
|
|
],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "connector",
|
|
|
|
"type": "address"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"name": "ConnectorAdded",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "connector",
|
|
|
|
"type": "address"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"name": "ConnectorRemoved",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "contract MultiWrapper",
|
|
|
|
"name": "multiWrapper",
|
|
|
|
"type": "address"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"name": "MultiWrapperUpdated",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "contract IOracle",
|
|
|
|
"name": "oracle",
|
|
|
|
"type": "address"
|
|
|
|
},
|
2021-06-19 22:03:18 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "enum OffchainOracle.OracleType",
|
|
|
|
"name": "oracleType",
|
|
|
|
"type": "uint8"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "OracleAdded",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "contract IOracle",
|
|
|
|
"name": "oracle",
|
|
|
|
"type": "address"
|
|
|
|
},
|
2021-06-19 22:03:18 +02:00
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "enum OffchainOracle.OracleType",
|
|
|
|
"name": "oracleType",
|
|
|
|
"type": "uint8"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "OracleRemoved",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"indexed": true,
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "previousOwner",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"indexed": true,
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "newOwner",
|
|
|
|
"type": "address"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"name": "OwnershipTransferred",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
2022-06-29 12:03:25 +02:00
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "connector",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
2021-06-19 22:03:18 +02:00
|
|
|
"name": "addConnector",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"internalType": "contract IOracle",
|
|
|
|
"name": "oracle",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "enum OffchainOracle.OracleType",
|
|
|
|
"name": "oracleKind",
|
|
|
|
"type": "uint8"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"name": "addOracle",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "connectors",
|
2022-06-29 12:03:25 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "contract IERC20[]",
|
|
|
|
"name": "allConnectors",
|
|
|
|
"type": "address[]"
|
|
|
|
}
|
|
|
|
],
|
2021-06-19 22:03:18 +02:00
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2021-02-26 10:52:15 +01:00
|
|
|
{
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "srcToken",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "dstToken",
|
|
|
|
"type": "address"
|
|
|
|
},
|
2021-06-19 22:03:18 +02:00
|
|
|
{ "internalType": "bool", "name": "useWrappers", "type": "bool" }
|
2021-02-26 10:52:15 +01:00
|
|
|
],
|
|
|
|
"name": "getRate",
|
|
|
|
"outputs": [{ "internalType": "uint256", "name": "weightedRate", "type": "uint256" }],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
2021-06-19 22:03:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "srcToken",
|
|
|
|
"type": "address"
|
|
|
|
},
|
2021-06-19 22:03:18 +02:00
|
|
|
{ "internalType": "bool", "name": "useSrcWrappers", "type": "bool" }
|
|
|
|
],
|
|
|
|
"name": "getRateToEth",
|
|
|
|
"outputs": [{ "internalType": "uint256", "name": "weightedRate", "type": "uint256" }],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "multiWrapper",
|
|
|
|
"outputs": [{ "internalType": "contract MultiWrapper", "name": "", "type": "address" }],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "oracles",
|
|
|
|
"outputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"internalType": "contract IOracle[]",
|
|
|
|
"name": "allOracles",
|
|
|
|
"type": "address[]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "enum OffchainOracle.OracleType[]",
|
|
|
|
"name": "oracleTypes",
|
|
|
|
"type": "uint8[]"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "owner",
|
|
|
|
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
2022-06-29 12:03:25 +02:00
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "contract IERC20",
|
|
|
|
"name": "connector",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
2021-06-19 22:03:18 +02:00
|
|
|
"name": "removeConnector",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
2022-06-29 12:03:25 +02:00
|
|
|
{
|
|
|
|
"internalType": "contract IOracle",
|
|
|
|
"name": "oracle",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "enum OffchainOracle.OracleType",
|
|
|
|
"name": "oracleKind",
|
|
|
|
"type": "uint8"
|
|
|
|
}
|
2021-06-19 22:03:18 +02:00
|
|
|
],
|
|
|
|
"name": "removeOracle",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "renounceOwnership",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
2022-06-29 12:03:25 +02:00
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "contract MultiWrapper",
|
|
|
|
"name": "_multiWrapper",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
2021-06-19 22:03:18 +02:00
|
|
|
"name": "setMultiWrapper",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
|
|
|
|
"name": "transferOwnership",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
2021-02-26 10:52:15 +01:00
|
|
|
}
|
|
|
|
]
|