123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- [
- {
- "inputs": [
- { "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[]" },
- { "internalType": "contract IERC20", "name": "wBase", "type": "address" }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": false, "internalType": "contract IERC20", "name": "connector", "type": "address" }
- ],
- "name": "ConnectorAdded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": false, "internalType": "contract IERC20", "name": "connector", "type": "address" }
- ],
- "name": "ConnectorRemoved",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": false, "internalType": "contract MultiWrapper", "name": "multiWrapper", "type": "address" }
- ],
- "name": "MultiWrapperUpdated",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": false, "internalType": "contract IOracle", "name": "oracle", "type": "address" },
- {
- "indexed": false,
- "internalType": "enum OffchainOracle.OracleType",
- "name": "oracleType",
- "type": "uint8"
- }
- ],
- "name": "OracleAdded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": false, "internalType": "contract IOracle", "name": "oracle", "type": "address" },
- {
- "indexed": false,
- "internalType": "enum OffchainOracle.OracleType",
- "name": "oracleType",
- "type": "uint8"
- }
- ],
- "name": "OracleRemoved",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
- { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [{ "internalType": "contract IERC20", "name": "connector", "type": "address" }],
- "name": "addConnector",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "contract IOracle", "name": "oracle", "type": "address" },
- { "internalType": "enum OffchainOracle.OracleType", "name": "oracleKind", "type": "uint8" }
- ],
- "name": "addOracle",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "connectors",
- "outputs": [{ "internalType": "contract IERC20[]", "name": "allConnectors", "type": "address[]" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "contract IERC20", "name": "srcToken", "type": "address" },
- { "internalType": "contract IERC20", "name": "dstToken", "type": "address" },
- { "internalType": "bool", "name": "useWrappers", "type": "bool" }
- ],
- "name": "getRate",
- "outputs": [{ "internalType": "uint256", "name": "weightedRate", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "contract IERC20", "name": "srcToken", "type": "address" },
- { "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": [
- { "internalType": "contract IOracle[]", "name": "allOracles", "type": "address[]" },
- { "internalType": "enum OffchainOracle.OracleType[]", "name": "oracleTypes", "type": "uint8[]" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "contract IERC20", "name": "connector", "type": "address" }],
- "name": "removeConnector",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "contract IOracle", "name": "oracle", "type": "address" },
- { "internalType": "enum OffchainOracle.OracleType", "name": "oracleKind", "type": "uint8" }
- ],
- "name": "removeOracle",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "contract MultiWrapper", "name": "_multiWrapper", "type": "address" }],
- "name": "setMultiWrapper",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ]
|