wrapped-wit-contracts
Version:
Wrapped/WIT Solidity contracts
413 lines (412 loc) • 8.95 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IWrappedWIT",
"sourceName": "contracts/IWrappedWIT.sol",
"abi": [
{
"inputs": [],
"name": "Unauthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "evmPrevCurator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "evmNewCurator",
"type": "address"
}
],
"name": "CuratorshipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "witUnwrapper",
"type": "string"
}
],
"name": "NewUnwrapper",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"indexed": false,
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"indexed": false,
"internalType": "Witnet.TransactionHash",
"name": "witDrtHash",
"type": "bytes32"
}
],
"name": "ReserveUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "evmSender",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "witRecipient",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
}
],
"name": "Unwrapped",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "witSender",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "evmRecipient",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"indexed": false,
"internalType": "Witnet.TransactionHash",
"name": "witVttHash",
"type": "bytes32"
}
],
"name": "Wrapped",
"type": "event"
},
{
"inputs": [],
"name": "evmCurator",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "Witnet.TransactionHash",
"name": "",
"type": "bytes32"
}
],
"name": "getWrapTransactionLastQueryId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "Witnet.TransactionHash",
"name": "",
"type": "bytes32"
}
],
"name": "getWrapTransactionStatus",
"outputs": [
{
"internalType": "enum IWrappedWIT.WrappingStatus",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "baseFeeOverhead100",
"type": "uint16"
},
{
"internalType": "uint64",
"name": "unitaryRewardNanowits",
"type": "uint64"
}
],
"internalType": "struct IWrappedWIT.WitOracleSettings",
"name": "",
"type": "tuple"
}
],
"name": "settleWitOracleSettings",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"name": "settleWitRpcProviders",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "settleWitUnwrapper",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalReserve",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalUnwraps",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "transferCuratorship",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
},
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "unwrap",
"outputs": [
{
"internalType": "uint256",
"name": "evmUnwrapId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "witCustodian",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "witOracleEstimateWrappingFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracleProofOfReserveRadonBytecode",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracleQuerySettings",
"outputs": [
{
"components": [
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "baseFeeOverhead100",
"type": "uint16"
},
{
"internalType": "uint64",
"name": "unitaryRewardNanowits",
"type": "uint64"
}
],
"internalType": "struct IWrappedWIT.WitOracleSettings",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witUnwrapper",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "Witnet.TransactionHash",
"name": "witTxHash",
"type": "bytes32"
}
],
"name": "wrap",
"outputs": [
{
"internalType": "uint256",
"name": "witOracleQueryId",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}