UNPKG

@openzeppelin/confidential-contracts

Version:

Smart Contract library for use with confidential coprocessors

711 lines (710 loc) 15.1 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ERC7984ObserverAccess", "sourceName": "contracts/token/ERC7984/extensions/ERC7984ObserverAccess.sol", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "requestId", "type": "uint256" } ], "name": "ERC7984InvalidGatewayRequest", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC7984InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC7984InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" } ], "name": "ERC7984UnauthorizedCaller", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "ERC7984UnauthorizedSpender", "type": "error" }, { "inputs": [ { "internalType": "euint64", "name": "amount", "type": "bytes32" }, { "internalType": "address", "name": "user", "type": "address" } ], "name": "ERC7984UnauthorizedUseOfEncryptedAmount", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "holder", "type": "address" } ], "name": "ERC7984ZeroBalance", "type": "error" }, { "inputs": [], "name": "InvalidKMSSignatures", "type": "error" }, { "inputs": [], "name": "Unauthorized", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "euint64", "name": "encryptedAmount", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "requester", "type": "address" } ], "name": "AmountDiscloseRequested", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "euint64", "name": "encryptedAmount", "type": "bytes32" }, { "indexed": false, "internalType": "uint64", "name": "amount", "type": "uint64" } ], "name": "AmountDisclosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "euint64", "name": "amount", "type": "bytes32" } ], "name": "ConfidentialTransfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "address", "name": "oldObserver", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newObserver", "type": "address" } ], "name": "ERC7984ObserverAccessObserverSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "holder", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "uint48", "name": "until", "type": "uint48" } ], "name": "OperatorSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32[]", "name": "handlesList", "type": "bytes32[]" }, { "indexed": false, "internalType": "bytes", "name": "abiEncodedCleartexts", "type": "bytes" } ], "name": "PublicDecryptionVerified", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "confidentialBalanceOf", "outputs": [ { "internalType": "euint64", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "confidentialTotalSupply", "outputs": [ { "internalType": "euint64", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "externalEuint64", "name": "encryptedAmount", "type": "bytes32" }, { "internalType": "bytes", "name": "inputProof", "type": "bytes" } ], "name": "confidentialTransfer", "outputs": [ { "internalType": "euint64", "name": "", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "euint64", "name": "amount", "type": "bytes32" } ], "name": "confidentialTransfer", "outputs": [ { "internalType": "euint64", "name": "", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "euint64", "name": "amount", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "confidentialTransferAndCall", "outputs": [ { "internalType": "euint64", "name": "transferred", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "externalEuint64", "name": "encryptedAmount", "type": "bytes32" }, { "internalType": "bytes", "name": "inputProof", "type": "bytes" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "confidentialTransferAndCall", "outputs": [ { "internalType": "euint64", "name": "transferred", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "externalEuint64", "name": "encryptedAmount", "type": "bytes32" }, { "internalType": "bytes", "name": "inputProof", "type": "bytes" } ], "name": "confidentialTransferFrom", "outputs": [ { "internalType": "euint64", "name": "transferred", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "euint64", "name": "amount", "type": "bytes32" } ], "name": "confidentialTransferFrom", "outputs": [ { "internalType": "euint64", "name": "transferred", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "externalEuint64", "name": "encryptedAmount", "type": "bytes32" }, { "internalType": "bytes", "name": "inputProof", "type": "bytes" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "confidentialTransferFromAndCall", "outputs": [ { "internalType": "euint64", "name": "transferred", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "euint64", "name": "amount", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "confidentialTransferFromAndCall", "outputs": [ { "internalType": "euint64", "name": "transferred", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "contractURI", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "euint64", "name": "encryptedAmount", "type": "bytes32" }, { "internalType": "uint64", "name": "cleartextAmount", "type": "uint64" }, { "internalType": "bytes", "name": "decryptionProof", "type": "bytes" } ], "name": "discloseEncryptedAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "isOperator", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "observer", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "euint64", "name": "encryptedAmount", "type": "bytes32" } ], "name": "requestDiscloseEncryptedAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "address", "name": "newObserver", "type": "address" } ], "name": "setObserver", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "uint48", "name": "until", "type": "uint48" } ], "name": "setOperator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }