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": "blocksPerEpoch_",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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-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"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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-10-14 04:38:13 +00:00
|
|
|
"bytecode": "0x60e06040523480156200001157600080fd5b506040516200415b3803806200415b8339810160408190526200003491620000ab565b6000805460ff1916905560a08290526040516103e89062000055906200009d565b908152602001604051809103906000f08015801562000078573d6000803e3d6000fd5b506001600160a01b0316608052620000918143620000d0565b60c05250620000f89050565b6106708062003aeb83390190565b60008060408385031215620000bf57600080fd5b505080516020909101519092909150565b80820180821115620000f257634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c0516139846200016760003960008181610305015281816107fc01528181610ad701528181610bbe01528181610e1701528181610f27015281816110dc01526116d501526000818161071201526110b4015260008181610649015261114701526139846000f3fe6080604052600436106101f95760003560e01c80638456cb591161010d578063b8a409ac116100a0578063d547741f1161006f578063d547741f1461068b578063e63ab1e9146106ab578063ef3e12dc146106cd578063f068205414610700578063fd54b2281461073457600080fd5b8063b8a409ac14610601578063c4d66de814610617578063c7dd522114610637578063ca15c8731461066b57600080fd5b806393e405a0116100dc57806393e405a01461059e5780639e62a38e146105b4578063a217fddf146105d7578063b464b53e146105ec57600080fd5b80638456cb5914610533578063900cf0cf146105485780639010d07c1461055e57806391d148541461057e57600080fd5b806331bae174116101905780635c975abb1161015f5780635c975abb146104125780636d7ad0fc1461042a57806377e19824146104575780637d5907081461046c57806380f55605146104fb57600080fd5b806331bae1741461037857806336568abe146103c857806338d45e10146103e85780633f4ba83a146103fd57600080fd5b80631deb0fca116101cc5780631deb0fca146102d0578063231b0268146102f3578063248a9ca3146103275780632f2ff15d1461035857600080fd5b806301ffc9a7146101fe578063127f0f0714610233578063158ef93e1461029457806318a641ef146102ae575b600080fd5b34801561020a57600080fd5b5061021e610219366004613193565b610764565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061024861078f565b60405161022a9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b3480156102a057600080fd5b5060035461021e9060ff1681565b3480156102ba57600080fd5b506102ce6102c93660046131bd565b6107fa565b005b3480156102dc57600080fd5b506102e5610872565b60405190815260200161022a565b3480156102ff57600080fd5b506102e57f000000000000000000000000000000000000000000000000000000000000000081565b34801561033357600080fd5b506102e56103423660046131bd565b6000908152600160208190526040909120015490565b34801561036457600080fd5b506102ce6103733660046131ed565b61088d565b34801561038457600080fd5b50610398610393366004613219565b6108b8565b6040805182516001600160801b03908116825260208085015190911690820152918101519082015260600161022a565b3480156103d457600080fd5b506102ce6103e33660046131ed565b610a5b565b3480156103f457600080fd5b506102ce610ad5565b34801561040957600080fd5b506102ce610b24565b34801561041e57600080fd5b5060005460ff1661021e565b34801561043657600080fd5b506102e56104453660046131bd565b60009081526045602052604090205490565b34801561046357600080fd5b50603a546102e5565b34801561047857600080fd5b506104d46104873660046131bd565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b03908116825260209384015116928101929092520161022a565b34801561050757600080fd5b5060365461051b906001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b34801561053f57600080fd5b506102ce610b44565b34801561055457600080fd5b506102e5603b5481565b34801561056a57600080fd5b5061051b610579366004613242565b610b64565b34801561058a57600080fd5b5061021e6105993660046131ed565b610b83565b3480156105aa57600080fd5b506102e5603c5481565b6105c76105c2366004613472565b610bae565b60405161022a949392919061355d565b3480156105e357600080fd5b506102e5600081565b3480156105f857600080fd5b50610248610de3565b34801561060d57600080fd5b506102e5603a5481565b34801561062357600080fd5b506102ce6106323660046135dc565b610e65565b34801561064357600080fd5b5061051b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561067757600080fd5b506102e56106863660046131bd565b610eda565b34801561
|
|
|
|
"deployedBytecode": "0x6080604052600436106101f95760003560e01c80638456cb591161010d578063b8a409ac116100a0578063d547741f1161006f578063d547741f1461068b578063e63ab1e9146106ab578063ef3e12dc146106cd578063f068205414610700578063fd54b2281461073457600080fd5b8063b8a409ac14610601578063c4d66de814610617578063c7dd522114610637578063ca15c8731461066b57600080fd5b806393e405a0116100dc57806393e405a01461059e5780639e62a38e146105b4578063a217fddf146105d7578063b464b53e146105ec57600080fd5b80638456cb5914610533578063900cf0cf146105485780639010d07c1461055e57806391d148541461057e57600080fd5b806331bae174116101905780635c975abb1161015f5780635c975abb146104125780636d7ad0fc1461042a57806377e19824146104575780637d5907081461046c57806380f55605146104fb57600080fd5b806331bae1741461037857806336568abe146103c857806338d45e10146103e85780633f4ba83a146103fd57600080fd5b80631deb0fca116101cc5780631deb0fca146102d0578063231b0268146102f3578063248a9ca3146103275780632f2ff15d1461035857600080fd5b806301ffc9a7146101fe578063127f0f0714610233578063158ef93e1461029457806318a641ef146102ae575b600080fd5b34801561020a57600080fd5b5061021e610219366004613193565b610764565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061024861078f565b60405161022a9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b3480156102a057600080fd5b5060035461021e9060ff1681565b3480156102ba57600080fd5b506102ce6102c93660046131bd565b6107fa565b005b3480156102dc57600080fd5b506102e5610872565b60405190815260200161022a565b3480156102ff57600080fd5b506102e57f000000000000000000000000000000000000000000000000000000000000000081565b34801561033357600080fd5b506102e56103423660046131bd565b6000908152600160208190526040909120015490565b34801561036457600080fd5b506102ce6103733660046131ed565b61088d565b34801561038457600080fd5b50610398610393366004613219565b6108b8565b6040805182516001600160801b03908116825260208085015190911690820152918101519082015260600161022a565b3480156103d457600080fd5b506102ce6103e33660046131ed565b610a5b565b3480156103f457600080fd5b506102ce610ad5565b34801561040957600080fd5b506102ce610b24565b34801561041e57600080fd5b5060005460ff1661021e565b34801561043657600080fd5b506102e56104453660046131bd565b60009081526045602052604090205490565b34801561046357600080fd5b50603a546102e5565b34801561047857600080fd5b506104d46104873660046131bd565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b03908116825260209384015116928101929092520161022a565b34801561050757600080fd5b5060365461051b906001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b34801561053f57600080fd5b506102ce610b44565b34801561055457600080fd5b506102e5603b5481565b34801561056a57600080fd5b5061051b610579366004613242565b610b64565b34801561058a57600080fd5b5061021e6105993660046131ed565b610b83565b3480156105aa57600080fd5b506102e5603c5481565b6105c76105c2366004613472565b610bae565b60405161022a949392919061355d565b3480156105e357600080fd5b506102e5600081565b3480156105f857600080fd5b50610248610de3565b34801561060d57600080fd5b506102e5603a5481565b34801561062357600080fd5b506102ce6106323660046135dc565b610e65565b34801561064357600080fd5b5061051b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561067757600080fd5b506102e56106863660046131bd565b610eda565b34801561069757600080fd5b506102ce6106a63660046131ed565b610ef1565b3480156106b757600080fd5b506102e560008051602061392f83398151915281565b6106e06106db3660046135f7565b610f17565b60408051948552602085019390935291830152606082015260800161022a565b34801561070c57600080fd5b506102e57f000000000000000000000000000000000000000000000000000000000000000081565b34801561074057600080fd5b5060375460385461074f919082565b6040805192835260208301919091520161022a565b60006001600160e01b03198216635a05180f60e01b148061078957506107898261107a565b92915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c081018252603d548152603e546020820152603f5481830152905460608201526041546080820152604254
|
2024-07-22 09:32:51 +00:00
|
|
|
"linkReferences": {},
|
|
|
|
"deployedLinkReferences": {}
|
|
|
|
}
|