mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-20 15:05:19 +00:00
1036 lines
84 KiB
JSON
1036 lines
84 KiB
JSON
|
{
|
||
|
"_format": "hh-sol-artifact-1",
|
||
|
"contractName": "FixedPriceFlow",
|
||
|
"sourceName": "contracts/dataFlow/FixedPriceFlow.sol",
|
||
|
"abi": [
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "blocksPerEpoch_",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "deployDelay_",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "constructor"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "InvalidSubmission",
|
||
|
"type": "error"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "price",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "amount",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "paid",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "NotEnoughFee",
|
||
|
"type": "error"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "sender",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "uint256",
|
||
|
"name": "index",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "startMerkleRoot",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "submissionIndex",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "flowLength",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "context",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"name": "NewEpoch",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "Paused",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "previousAdminRole",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "newAdminRole",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"name": "RoleAdminChanged",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "sender",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "RoleGranted",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "sender",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "RoleRevoked",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "sender",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "bytes32",
|
||
|
"name": "identity",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "submissionIndex",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "startPos",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "length",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "length",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "tags",
|
||
|
"type": "bytes"
|
||
|
},
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "root",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "height",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct SubmissionNode[]",
|
||
|
"name": "nodes",
|
||
|
"type": "tuple[]"
|
||
|
}
|
||
|
],
|
||
|
"indexed": false,
|
||
|
"internalType": "struct Submission",
|
||
|
"name": "submission",
|
||
|
"type": "tuple"
|
||
|
}
|
||
|
],
|
||
|
"name": "Submit",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "Unpaused",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "DEFAULT_ADMIN_ROLE",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "PAUSER_ROLE",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "length",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "tags",
|
||
|
"type": "bytes"
|
||
|
},
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "root",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "height",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct SubmissionNode[]",
|
||
|
"name": "nodes",
|
||
|
"type": "tuple[]"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct Submission[]",
|
||
|
"name": "submissions",
|
||
|
"type": "tuple[]"
|
||
|
}
|
||
|
],
|
||
|
"name": "batchSubmit",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256[]",
|
||
|
"name": "indexes",
|
||
|
"type": "uint256[]"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32[]",
|
||
|
"name": "digests",
|
||
|
"type": "bytes32[]"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256[]",
|
||
|
"name": "startIndexes",
|
||
|
"type": "uint256[]"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256[]",
|
||
|
"name": "lengths",
|
||
|
"type": "uint256[]"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "payable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "blocksPerEpoch",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "commitRoot",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "currentLength",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "epoch",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "epochStartPosition",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "firstBlock",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "getContext",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "epoch",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "mineStart",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "flowRoot",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "flowLength",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "blockDigest",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "digest",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct MineContext",
|
||
|
"name": "",
|
||
|
"type": "tuple"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "digest",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"name": "getEpochRange",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint128",
|
||
|
"name": "start",
|
||
|
"type": "uint128"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint128",
|
||
|
"name": "end",
|
||
|
"type": "uint128"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct EpochRange",
|
||
|
"name": "",
|
||
|
"type": "tuple"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"name": "getRoleAdmin",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "index",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "getRoleMember",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"name": "getRoleMemberCount",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "grantRole",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "hasRole",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "identifier",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"name": "initialize",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "market_",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "initialize",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "initialized",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "makeContext",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "cnt",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "makeContextFixedTimes",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "makeContextWithResult",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "epoch",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "mineStart",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "flowRoot",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "flowLength",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "blockDigest",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "digest",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct MineContext",
|
||
|
"name": "",
|
||
|
"type": "tuple"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "market",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "address payable",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_length",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "alignExp",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "nextAlign",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "pure",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_length",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "nextPow2",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "pure",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "numSubmissions",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "pause",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "paused",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint128",
|
||
|
"name": "targetPosition",
|
||
|
"type": "uint128"
|
||
|
}
|
||
|
],
|
||
|
"name": "queryContextAtPosition",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint128",
|
||
|
"name": "start",
|
||
|
"type": "uint128"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint128",
|
||
|
"name": "end",
|
||
|
"type": "uint128"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "digest",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct EpochRangeWithContextDigest",
|
||
|
"name": "range",
|
||
|
"type": "tuple"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "renounceRole",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "role",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "account",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "revokeRole",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "root",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "rootHistory",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "contract IDigestHistory",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "submissionIndex",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "length",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "tags",
|
||
|
"type": "bytes"
|
||
|
},
|
||
|
{
|
||
|
"components": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "root",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "height",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct SubmissionNode[]",
|
||
|
"name": "nodes",
|
||
|
"type": "tuple[]"
|
||
|
}
|
||
|
],
|
||
|
"internalType": "struct Submission",
|
||
|
"name": "submission",
|
||
|
"type": "tuple"
|
||
|
}
|
||
|
],
|
||
|
"name": "submit",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "payable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "bytes4",
|
||
|
"name": "interfaceId",
|
||
|
"type": "bytes4"
|
||
|
}
|
||
|
],
|
||
|
"name": "supportsInterface",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "unpause",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "unstagedHeight",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "height",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "zeros",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "",
|
||
|
"type": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "pure",
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"bytecode": "0x60e06040523480156200001157600080fd5b506040516200418b3803806200418b8339810160408190526200003491620000b0565b6000805460ff1916905560a0829052604051829082906014906200005890620000a2565b908152602001604051809103906000f0801580156200007b573d6000803e3d6000fd5b506001600160a01b0316608052620000948143620000d5565b60c05250620000fd92505050565b6106708062003b1b83390190565b60008060408385031215620000c457600080fd5b505080516020909101519092909150565b80820180821115620000f757634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c0516139af6200016c600039600081816103190152818161089b01528181610b5b01528181610cf801528181610f5501528181611d7d01528181611f1101526123cf0152600081816107dd0152611ee90152600081816106ca0152611f7801526139af6000f3fe6080604052600436106102305760003560e01c8063900cf0cf1161012e578063c4d66de8116100ab578063e63ab1e91161006f578063e63ab1e914610741578063e829558814610763578063ebf0c71714610783578063ef3e12dc14610798578063f0682054146107cb57600080fd5b8063c4d66de814610698578063c7dd5221146106b8578063ca15c873146106ec578063d34353c91461070c578063d547741f1461072157600080fd5b80639e62a38e116100f25780639e62a38e1461061f578063a217fddf14610642578063a3d35f3614610657578063b464b53e1461066d578063b8a409ac1461068257600080fd5b8063900cf0cf146105935780639010d07c146105a957806391d14854146105c957806393e405a0146105e95780639498bd71146105ff57600080fd5b806336568abe116101bc5780635c975abb116101805780635c975abb1461048a57806377e19824146104a25780637d590708146104b757806380f55605146105465780638456cb591461057e57600080fd5b806336568abe1461040057806338d45e10146104205780633d75d9c2146104355780633f4ba83a14610455578063555430a11461046a57600080fd5b8063231b026811610203578063231b026814610307578063248a9ca3146103495780632f2ff15d1461037a57806331bae1741461039a578063364800ec146103ea57600080fd5b806301ffc9a714610235578063127f0f071461026a578063158ef93e146102cb57806318a641ef146102e5575b600080fd5b34801561024157600080fd5b5061025561025036600461318e565b6107ff565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f61082a565b6040516102619190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b3480156102d757600080fd5b506003546102559060ff1681565b3480156102f157600080fd5b506103056103003660046131b8565b610899565b005b34801561031357600080fd5b5061033b7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610261565b34801561035557600080fd5b5061033b6103643660046131b8565b6000908152600160208190526040909120015490565b34801561038657600080fd5b506103056103953660046131e8565b610911565b3480156103a657600080fd5b506103ba6103b5366004613214565b61093c565b6040805182516001600160801b039081168252602080850151909116908201529181015190820152606001610261565b3480156103f657600080fd5b5061033b60385481565b34801561040c57600080fd5b5061030561041b3660046131e8565b610adf565b34801561042c57600080fd5b50610305610b59565b34801561044157600080fd5b5061033b6104503660046131b8565b610ba8565b34801561046157600080fd5b50610305610bf4565b34801561047657600080fd5b5061033b61048536600461323d565b610c14565b34801561049657600080fd5b5060005460ff16610255565b3480156104ae57600080fd5b50606c5461033b565b3480156104c357600080fd5b5061051f6104d23660046131b8565b6040805180820190915260008082526020820152506000908152607560209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b039081168252602093840151169281019290925201610261565b34801561055257600080fd5b50606b54610566906001600160a01b031681565b6040516001600160a01b039091168152602001610261565b34801561058a57600080fd5b50610305610c4c565b34801561059f57600080fd5b5061033b606d5481565b3480156105b557600080fd5b506105666105c436600461323d565b610c6c565b3480156105d557600080fd5b506102556105e43660046131e8565b610c84565b3480156105f557600080fd5b5061033b606e5481565b34801561060b57600080fd5b5061030561061a3660046131b8565b610caf565b61063261062d366004613472565b610ce8565b604051610261949392919061355e565b34801561064e57600080fd5b5061033b600081565b34801561066357600080fd5b5061033b60365481565b34801561067957600080fd5b5061027f610f21565b34801561068e5760
|
||
|
"deployedBytecode": "0x6080604052600436106102305760003560e01c8063900cf0cf1161012e578063c4d66de8116100ab578063e63ab1e91161006f578063e63ab1e914610741578063e829558814610763578063ebf0c71714610783578063ef3e12dc14610798578063f0682054146107cb57600080fd5b8063c4d66de814610698578063c7dd5221146106b8578063ca15c873146106ec578063d34353c91461070c578063d547741f1461072157600080fd5b80639e62a38e116100f25780639e62a38e1461061f578063a217fddf14610642578063a3d35f3614610657578063b464b53e1461066d578063b8a409ac1461068257600080fd5b8063900cf0cf146105935780639010d07c146105a957806391d14854146105c957806393e405a0146105e95780639498bd71146105ff57600080fd5b806336568abe116101bc5780635c975abb116101805780635c975abb1461048a57806377e19824146104a25780637d590708146104b757806380f55605146105465780638456cb591461057e57600080fd5b806336568abe1461040057806338d45e10146104205780633d75d9c2146104355780633f4ba83a14610455578063555430a11461046a57600080fd5b8063231b026811610203578063231b026814610307578063248a9ca3146103495780632f2ff15d1461037a57806331bae1741461039a578063364800ec146103ea57600080fd5b806301ffc9a714610235578063127f0f071461026a578063158ef93e146102cb57806318a641ef146102e5575b600080fd5b34801561024157600080fd5b5061025561025036600461318e565b6107ff565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f61082a565b6040516102619190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b3480156102d757600080fd5b506003546102559060ff1681565b3480156102f157600080fd5b506103056103003660046131b8565b610899565b005b34801561031357600080fd5b5061033b7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610261565b34801561035557600080fd5b5061033b6103643660046131b8565b6000908152600160208190526040909120015490565b34801561038657600080fd5b506103056103953660046131e8565b610911565b3480156103a657600080fd5b506103ba6103b5366004613214565b61093c565b6040805182516001600160801b039081168252602080850151909116908201529181015190820152606001610261565b3480156103f657600080fd5b5061033b60385481565b34801561040c57600080fd5b5061030561041b3660046131e8565b610adf565b34801561042c57600080fd5b50610305610b59565b34801561044157600080fd5b5061033b6104503660046131b8565b610ba8565b34801561046157600080fd5b50610305610bf4565b34801561047657600080fd5b5061033b61048536600461323d565b610c14565b34801561049657600080fd5b5060005460ff16610255565b3480156104ae57600080fd5b50606c5461033b565b3480156104c357600080fd5b5061051f6104d23660046131b8565b6040805180820190915260008082526020820152506000908152607560209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b039081168252602093840151169281019290925201610261565b34801561055257600080fd5b50606b54610566906001600160a01b031681565b6040516001600160a01b039091168152602001610261565b34801561058a57600080fd5b50610305610c4c565b34801561059f57600080fd5b5061033b606d5481565b3480156105b557600080fd5b506105666105c436600461323d565b610c6c565b3480156105d557600080fd5b506102556105e43660046131e8565b610c84565b3480156105f557600080fd5b5061033b606e5481565b34801561060b57600080fd5b5061030561061a3660046131b8565b610caf565b61063261062d366004613472565b610ce8565b604051610261949392919061355e565b34801561064e57600080fd5b5061033b600081565b34801561066357600080fd5b5061033b60365481565b34801561067957600080fd5b5061027f610f21565b34801561068e57600080fd5b5061033b606c5481565b3480156106a457600080fd5b506103056106b33660046135dd565b610fa8565b3480156106c457600080fd5b506105667f000000000000000000000000000000000000000000000000000000000000000081565b3480156106f857600080fd5b5061033b6107073660046131b8565b610fe1565b34801561071857600080fd5b50610305610ff8565b34801561072d57600080fd5b5061030561073c3660046131e8565b61110f565b34801561074d57600080fd5b5061033b60008051602061395a83398151915281565b34801561076f57600080fd5b5061033b61077e3660046131b8565b611135565b34801561078f57600080fd5b5061033b611d39565b6107ab6107a63660046135f8565b611d6d565b604080519485526020850193909352918301526060820152608001610261565b3480156107d757600080fd5b5061033b7f00000000000000000000000000000000000000000000
|
||
|
"linkReferences": {},
|
||
|
"deployedLinkReferences": {}
|
||
|
}
|