@startbahn/startrail
Version:
Startrail smart contracts
260 lines (259 loc) • 5.11 kB
JSON
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "srrApproveHash",
"type": "bytes32"
}
],
"name": "ApproveSRRByCommitmentWithProof",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "BatchPrepared",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "merkleProof",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "srrApproveHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "commitment",
"type": "bytes32"
},
{
"internalType": "string",
"name": "historyMetadataHash",
"type": "string"
},
{
"internalType": "uint256",
"name": "customHistoryId",
"type": "uint256"
}
],
"name": "approveSRRByCommitmentWithProof",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "batches",
"outputs": [
{
"internalType": "bool",
"name": "prepared",
"type": "bool"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint8",
"name": "processedCount",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTrustedForwarder",
"outputs": [
{
"internalType": "address",
"name": "trustedForwarder",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_nameRegistry",
"type": "address"
},
{
"internalType": "address",
"name": "_trustedForwarder",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "forwarder",
"type": "address"
}
],
"name": "isTrustedForwarder",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "nameRegistryAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
}
],
"name": "prepareBatchFromLicensedUser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "forwarder",
"type": "address"
}
],
"name": "setTrustedForwarder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "srrApproveHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "commitment",
"type": "bytes32"
},
{
"internalType": "string",
"name": "historyMetadataHash",
"type": "string"
},
{
"internalType": "uint256",
"name": "customHistoryId",
"type": "uint256"
}
],
"name": "verifyApproveSRRByCommitmentHash",
"outputs": [
{
"internalType": "bool",
"name": "hashMatches",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
}
]