@witnet/wrapped-wit
Version:
Wrapped/WIT Solidity contracts and CLI tools
494 lines (493 loc) • 10.8 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": "witCustodianUnwrapper",
"type": "string"
}
],
"name": "NewCustodianUnwrapper",
"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": [
{
"internalType": "Witnet.TransactionHash[]",
"name": "",
"type": "bytes32[]"
}
],
"name": "getWrapTransactionStatuses",
"outputs": [
{
"internalType": "enum IWrappedWIT.WrappingStatus[]",
"name": "",
"type": "uint8[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "settleWitCustodianUnwrapper",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"name": "settleWitOracleCrossChainRpcProviders",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "baseFeeOverhead100",
"type": "uint16"
},
{
"internalType": "uint64",
"name": "unitaryRewardNanowits",
"type": "uint64"
},
{
"internalType": "uint24",
"name": "responseCallbackGasLimit",
"type": "uint24"
}
],
"internalType": "struct IWrappedWIT.WitOracleSettings",
"name": "",
"type": "tuple"
}
],
"name": "settleWitOracleSettings",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalReserveSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalUnwraps",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalWraps",
"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": "witCustodianUnwrapper",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witCustodianWrapper",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracleCrossChainRpcProviders",
"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": "witOracleProofOfReserveLastUpdate",
"outputs": [
{
"internalType": "Witnet.Timestamp",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracleProofOfReserveRadonBytecode",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracleProofOfReserveRadonHash",
"outputs": [
{
"internalType": "Witnet.RadonHash",
"name": "",
"type": "bytes32"
}
],
"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": "uint24",
"name": "responseCallbackGasLimit",
"type": "uint24"
}
],
"internalType": "struct IWrappedWIT.WitOracleSettings",
"name": "",
"type": "tuple"
}
],
"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": {}
}