UNPKG

@thirdweb-dev/contracts-js

Version:
152 lines • 2.77 kB
[ { "type": "function", "name": "encryptDecrypt", "inputs": [ { "name": "data", "type": "bytes", "internalType": "bytes" }, { "name": "key", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "result", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "pure" }, { "type": "function", "name": "encryptedData", "inputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getRevealURI", "inputs": [ { "name": "_batchId", "type": "uint256", "internalType": "uint256" }, { "name": "_key", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "revealedURI", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "isEncryptedBatch", "inputs": [ { "name": "_batchId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "reveal", "inputs": [ { "name": "identifier", "type": "uint256", "internalType": "uint256" }, { "name": "key", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "revealedURI", "type": "string", "internalType": "string" } ], "stateMutability": "nonpayable" }, { "type": "event", "name": "TokenURIRevealed", "inputs": [ { "name": "index", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "revealedURI", "type": "string", "indexed": false, "internalType": "string" } ], "anonymous": false }, { "type": "error", "name": "DelayedRevealIncorrectResultHash", "inputs": [ { "name": "expected", "type": "bytes32", "internalType": "bytes32" }, { "name": "actual", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "DelayedRevealNothingToReveal", "inputs": [] } ]