2024-07-22 09:32:51 +00:00
|
|
|
{
|
|
|
|
"_format": "hh-sol-artifact-1",
|
|
|
|
"contractName": "Flow",
|
|
|
|
"sourceName": "contracts/dataFlow/Flow.sol",
|
|
|
|
"abi": [
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "deployDelay_",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "InvalidSubmission",
|
|
|
|
"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"
|
|
|
|
},
|
2024-10-14 04:38:13 +00:00
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "computeFlowRoot",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "bytes32",
|
|
|
|
"name": "",
|
|
|
|
"type": "bytes32"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-12-24 10:43:44 +00:00
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "deployDelay",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-07-22 09:32:51 +00:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
2024-10-12 08:50:31 +00:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "txSeq",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "getFlowRootByTxSeq",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "bytes32",
|
|
|
|
"name": "",
|
|
|
|
"type": "bytes32"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-07-22 09:32:51 +00:00
|
|
|
{
|
|
|
|
"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": "address",
|
|
|
|
"name": "market_",
|
|
|
|
"type": "address"
|
2024-12-24 10:43:44 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "blocksPerEpoch_",
|
|
|
|
"type": "uint256"
|
2024-07-22 09:32:51 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"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": [],
|
|
|
|
"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": "rootHistory",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "contract IDigestHistory",
|
|
|
|
"name": "",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-12-24 10:43:44 +00:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "blocksPerEpoch_",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "firstBlock_",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "rootHistory_",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "setParams",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-07-22 09:32:51 +00:00
|
|
|
{
|
|
|
|
"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": [],
|
2024-07-24 05:01:30 +00:00
|
|
|
"name": "tree",
|
2024-07-22 09:32:51 +00:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-07-24 05:01:30 +00:00
|
|
|
"name": "currentLength",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "unstagedHeight",
|
2024-07-22 09:32:51 +00:00
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
2024-07-24 05:01:30 +00:00
|
|
|
"inputs": [],
|
|
|
|
"name": "unpause",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
2024-07-22 09:32:51 +00:00
|
|
|
"type": "function"
|
|
|
|
}
|
|
|
|
],
|
2024-12-24 10:43:44 +00:00
|
|
|
"bytecode": "0x60a06040523480156200001157600080fd5b506040516200446438038062004464833981016040819052620000349162000047565b6000805460ff1916905560805262000061565b6000602082840312156200005a57600080fd5b5051919050565b6080516143e0620000846000396000818161063d0152610fc201526143e06000f3fe6080604052600436106200023b5760003560e01c8063900cf0cf116200012f578063c7dd522111620000ad578063e63ab1e91162000078578063e63ab1e91462000760578063ebdec6d31462000785578063ef3e12dc14620007aa578063f068205414620007e2578063fd54b22814620007fa57600080fd5b8063c7dd522114620006cf578063ca15c87314620006f1578063cd6dc6871462000716578063d547741f146200073b57600080fd5b80639bbbfdbb11620000fa5780639bbbfdbb14620006295780639e62a38e146200065f578063a217fddf1462000688578063b464b53e146200069f578063b8a409ac14620006b757600080fd5b8063900cf0cf14620005af5780639010d07c14620005c757806391d1485414620005ec57806393e405a0146200061157600080fd5b806336568abe11620001bd5780636d7ad0fc11620001885780636d7ad0fc146200048057806377e1982414620004b15780637d59070814620004c857806380f55605146200055c5780638456cb59146200059757600080fd5b806336568abe146200041157806338d45e1014620004365780633f4ba83a146200044e5780635c975abb146200046657600080fd5b80631deb0fca116200020a5780631deb0fca1462000322578063231b02681462000349578063248a9ca314620003615780632f2ff15d146200039657806331bae17414620003bb57600080fd5b806301ffc9a71462000240578063127f0f07146200027a578063158ef93e14620002df57806318a641ef14620002fb575b600080fd5b3480156200024d57600080fd5b50620002656200025f366004620034d5565b6200082d565b60405190151581526020015b60405180910390f35b3480156200028757600080fd5b50620002926200085b565b604051620002719190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b348015620002ec57600080fd5b50600354620002659060ff1681565b3480156200030857600080fd5b50620003206200031a36600462003501565b620008c6565b005b3480156200032f57600080fd5b506200033a6200092a565b60405190815260200162000271565b3480156200035657600080fd5b506200033a60465481565b3480156200036e57600080fd5b506200033a6200038036600462003501565b6000908152600160208190526040909120015490565b348015620003a357600080fd5b5062000320620003b536600462003533565b62000949565b348015620003c857600080fd5b50620003e0620003da36600462003562565b62000978565b6040805182516001600160801b03908116825260208085015190911690820152918101519082015260600162000271565b3480156200041e57600080fd5b50620003206200043036600462003533565b62000b2e565b3480156200044357600080fd5b506200032062000bac565b3480156200045b57600080fd5b506200032062000be3565b3480156200047357600080fd5b5060005460ff1662000265565b3480156200048d57600080fd5b506200033a6200049f36600462003501565b60009081526045602052604090205490565b348015620004be57600080fd5b50603a546200033a565b348015620004d557600080fd5b5062000534620004e736600462003501565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b03908116825260209384015116928101929092520162000271565b3480156200056957600080fd5b506036546200057e906001600160a01b031681565b6040516001600160a01b03909116815260200162000271565b348015620005a457600080fd5b506200032062000c08565b348015620005bc57600080fd5b506200033a603b5481565b348015620005d457600080fd5b506200057e620005e63660046200358d565b62000c2d565b348015620005f957600080fd5b50620002656200060b36600462003533565b62000c4e565b3480156200061e57600080fd5b506200033a603c5481565b3480156200063657600080fd5b506200033a7f000000000000000000000000000000000000000000000000000000000000000081565b6200067662000670366004620037e3565b62000c79565b604051620002719493929190620038dc565b3480156200069557600080fd5b506200033a600081565b348015620006ac57600080fd5b506200029262000eba565b348015620006c457600080fd5b506200033a603a5481565b348015620006dc57600080fd5b506047546200057e906001600160a01b031681565b348015620006fe57600080fd5b506200033a6200071036600462003501565b62000f25565b3480156200072357600080fd5b50620003206200073536600462003963565b62000f3e565b3480156200074857600080fd5b50620003206200075a36600462003533565b62001023565b3480156200076d57600080fd5b506200033a
|
|
|
|
"deployedBytecode": "0x6080604052600436106200023b5760003560e01c8063900cf0cf116200012f578063c7dd522111620000ad578063e63ab1e91162000078578063e63ab1e91462000760578063ebdec6d31462000785578063ef3e12dc14620007aa578063f068205414620007e2578063fd54b22814620007fa57600080fd5b8063c7dd522114620006cf578063ca15c87314620006f1578063cd6dc6871462000716578063d547741f146200073b57600080fd5b80639bbbfdbb11620000fa5780639bbbfdbb14620006295780639e62a38e146200065f578063a217fddf1462000688578063b464b53e146200069f578063b8a409ac14620006b757600080fd5b8063900cf0cf14620005af5780639010d07c14620005c757806391d1485414620005ec57806393e405a0146200061157600080fd5b806336568abe11620001bd5780636d7ad0fc11620001885780636d7ad0fc146200048057806377e1982414620004b15780637d59070814620004c857806380f55605146200055c5780638456cb59146200059757600080fd5b806336568abe146200041157806338d45e1014620004365780633f4ba83a146200044e5780635c975abb146200046657600080fd5b80631deb0fca116200020a5780631deb0fca1462000322578063231b02681462000349578063248a9ca314620003615780632f2ff15d146200039657806331bae17414620003bb57600080fd5b806301ffc9a71462000240578063127f0f07146200027a578063158ef93e14620002df57806318a641ef14620002fb575b600080fd5b3480156200024d57600080fd5b50620002656200025f366004620034d5565b6200082d565b60405190151581526020015b60405180910390f35b3480156200028757600080fd5b50620002926200085b565b604051620002719190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b348015620002ec57600080fd5b50600354620002659060ff1681565b3480156200030857600080fd5b50620003206200031a36600462003501565b620008c6565b005b3480156200032f57600080fd5b506200033a6200092a565b60405190815260200162000271565b3480156200035657600080fd5b506200033a60465481565b3480156200036e57600080fd5b506200033a6200038036600462003501565b6000908152600160208190526040909120015490565b348015620003a357600080fd5b5062000320620003b536600462003533565b62000949565b348015620003c857600080fd5b50620003e0620003da36600462003562565b62000978565b6040805182516001600160801b03908116825260208085015190911690820152918101519082015260600162000271565b3480156200041e57600080fd5b50620003206200043036600462003533565b62000b2e565b3480156200044357600080fd5b506200032062000bac565b3480156200045b57600080fd5b506200032062000be3565b3480156200047357600080fd5b5060005460ff1662000265565b3480156200048d57600080fd5b506200033a6200049f36600462003501565b60009081526045602052604090205490565b348015620004be57600080fd5b50603a546200033a565b348015620004d557600080fd5b5062000534620004e736600462003501565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b03908116825260209384015116928101929092520162000271565b3480156200056957600080fd5b506036546200057e906001600160a01b031681565b6040516001600160a01b03909116815260200162000271565b348015620005a457600080fd5b506200032062000c08565b348015620005bc57600080fd5b506200033a603b5481565b348015620005d457600080fd5b506200057e620005e63660046200358d565b62000c2d565b348015620005f957600080fd5b50620002656200060b36600462003533565b62000c4e565b3480156200061e57600080fd5b506200033a603c5481565b3480156200063657600080fd5b506200033a7f000000000000000000000000000000000000000000000000000000000000000081565b6200067662000670366004620037e3565b62000c79565b604051620002719493929190620038dc565b3480156200069557600080fd5b506200033a600081565b348015620006ac57600080fd5b506200029262000eba565b348015620006c457600080fd5b506200033a603a5481565b348015620006dc57600080fd5b506047546200057e906001600160a01b031681565b348015620006fe57600080fd5b506200033a6200071036600462003501565b62000f25565b3480156200072357600080fd5b50620003206200073536600462003963565b62000f3e565b3480156200074857600080fd5b50620003206200075a36600462003533565b62001023565b3480156200076d57600080fd5b506200033a6000805160206200438b83398151915281565b3480156200079257600080fd5b5062000320620007a436600462003990565b6200104d565b620007c1620007bb366004620039c8565b6200105a565b60408051948552602085019390935291830152606082015260800162000271565b348015620007ef57600080fd5b506200
|
2024-07-22 09:32:51 +00:00
|
|
|
"linkReferences": {},
|
|
|
|
"deployedLinkReferences": {}
|
|
|
|
}
|