2024-07-22 09:32:51 +00:00
|
|
|
{
|
|
|
|
"_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": "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-12 08:50:31 +00:00
|
|
|
"bytecode": "0x60e06040523480156200001157600080fd5b506040516200421a3803806200421a8339810160408190526200003491620000b1565b6000805460ff1916905560a0829052604051829082906103e8906200005990620000a3565b908152602001604051809103906000f0801580156200007c573d6000803e3d6000fd5b506001600160a01b0316608052620000958143620000d6565b60c05250620000fe92505050565b6106708062003baa83390190565b60008060408385031215620000c557600080fd5b505080516020909101519092909150565b80820180821115620000f857634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c051613a3d6200016d600039600081816102d7015281816107dc01528181610a9c01528181610b8301528181610ddc01528181610ef1015281816110af01526115410152600081816106f20152611087015260008181610629015261111a0152613a3d6000f3fe6080604052600436106101ee5760003560e01c80638456cb591161010d578063b8a409ac116100a0578063d547741f1161006f578063d547741f1461066b578063e63ab1e91461068b578063ef3e12dc146106ad578063f0682054146106e0578063fd54b2281461071457600080fd5b8063b8a409ac146105e1578063c4d66de8146105f7578063c7dd522114610617578063ca15c8731461064b57600080fd5b806393e405a0116100dc57806393e405a01461057e5780639e62a38e14610594578063a217fddf146105b7578063b464b53e146105cc57600080fd5b80638456cb5914610513578063900cf0cf146105285780639010d07c1461053e57806391d148541461055e57600080fd5b806336568abe116101855780636d7ad0fc116101545780636d7ad0fc1461040a57806377e19824146104375780637d5907081461044c57806380f55605146104db57600080fd5b806336568abe146103a857806338d45e10146103c85780633f4ba83a146103dd5780635c975abb146103f257600080fd5b8063231b0268116101c1578063231b0268146102c5578063248a9ca3146103075780632f2ff15d1461033857806331bae1741461035857600080fd5b806301ffc9a7146101f3578063127f0f0714610228578063158ef93e1461028957806318a641ef146102a3575b600080fd5b3480156101ff57600080fd5b5061021361020e36600461324c565b610744565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61076f565b60405161021f9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561029557600080fd5b506003546102139060ff1681565b3480156102af57600080fd5b506102c36102be366004613276565b6107da565b005b3480156102d157600080fd5b506102f97f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161021f565b34801561031357600080fd5b506102f9610322366004613276565b6000908152600160208190526040909120015490565b34801561034457600080fd5b506102c36103533660046132a6565b610852565b34801561036457600080fd5b506103786103733660046132d2565b61087d565b6040805182516001600160801b03908116825260208085015190911690820152918101519082015260600161021f565b3480156103b457600080fd5b506102c36103c33660046132a6565b610a20565b3480156103d457600080fd5b506102c3610a9a565b3480156103e957600080fd5b506102c3610ae9565b3480156103fe57600080fd5b5060005460ff16610213565b34801561041657600080fd5b506102f9610425366004613276565b60009081526045602052604090205490565b34801561044357600080fd5b50603a546102f9565b34801561045857600080fd5b506104b4610467366004613276565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b03908116825260209384015116928101929092520161021f565b3480156104e757600080fd5b506036546104fb906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b34801561051f57600080fd5b506102c3610b09565b34801561053457600080fd5b506102f9603b5481565b34801561054a57600080fd5b506104fb6105593660046132fb565b610b29565b34801561056a57600080fd5b506102136105793660046132a6565b610b48565b34801561058a57600080fd5b506102f9603c5481565b6105a76105a236600461352b565b610b73565b60405161021f9493929190613616565b3480156105c357600080fd5b506102f9600081565b3480156105d857600080fd5b5061023d610da8565b3480156105ed57600080fd5b506102f9603a5481565b34801561060357600080fd5b506102c3610612366004613695565b610e2f565b34801561062357600080fd5b506104fb7f000000000000000000000000000000000000000000000000000000000000000081565b34801561065757600080fd5b506102f9610666366004613276565b610ea4565b34801561067757600080fd5b506102c36106863660046132a6565b610ebb
|
|
|
|
"deployedBytecode": "0x6080604052600436106101ee5760003560e01c80638456cb591161010d578063b8a409ac116100a0578063d547741f1161006f578063d547741f1461066b578063e63ab1e91461068b578063ef3e12dc146106ad578063f0682054146106e0578063fd54b2281461071457600080fd5b8063b8a409ac146105e1578063c4d66de8146105f7578063c7dd522114610617578063ca15c8731461064b57600080fd5b806393e405a0116100dc57806393e405a01461057e5780639e62a38e14610594578063a217fddf146105b7578063b464b53e146105cc57600080fd5b80638456cb5914610513578063900cf0cf146105285780639010d07c1461053e57806391d148541461055e57600080fd5b806336568abe116101855780636d7ad0fc116101545780636d7ad0fc1461040a57806377e19824146104375780637d5907081461044c57806380f55605146104db57600080fd5b806336568abe146103a857806338d45e10146103c85780633f4ba83a146103dd5780635c975abb146103f257600080fd5b8063231b0268116101c1578063231b0268146102c5578063248a9ca3146103075780632f2ff15d1461033857806331bae1741461035857600080fd5b806301ffc9a7146101f3578063127f0f0714610228578063158ef93e1461028957806318a641ef146102a3575b600080fd5b3480156101ff57600080fd5b5061021361020e36600461324c565b610744565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61076f565b60405161021f9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561029557600080fd5b506003546102139060ff1681565b3480156102af57600080fd5b506102c36102be366004613276565b6107da565b005b3480156102d157600080fd5b506102f97f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161021f565b34801561031357600080fd5b506102f9610322366004613276565b6000908152600160208190526040909120015490565b34801561034457600080fd5b506102c36103533660046132a6565b610852565b34801561036457600080fd5b506103786103733660046132d2565b61087d565b6040805182516001600160801b03908116825260208085015190911690820152918101519082015260600161021f565b3480156103b457600080fd5b506102c36103c33660046132a6565b610a20565b3480156103d457600080fd5b506102c3610a9a565b3480156103e957600080fd5b506102c3610ae9565b3480156103fe57600080fd5b5060005460ff16610213565b34801561041657600080fd5b506102f9610425366004613276565b60009081526045602052604090205490565b34801561044357600080fd5b50603a546102f9565b34801561045857600080fd5b506104b4610467366004613276565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b03908116825260209384015116928101929092520161021f565b3480156104e757600080fd5b506036546104fb906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b34801561051f57600080fd5b506102c3610b09565b34801561053457600080fd5b506102f9603b5481565b34801561054a57600080fd5b506104fb6105593660046132fb565b610b29565b34801561056a57600080fd5b506102136105793660046132a6565b610b48565b34801561058a57600080fd5b506102f9603c5481565b6105a76105a236600461352b565b610b73565b60405161021f9493929190613616565b3480156105c357600080fd5b506102f9600081565b3480156105d857600080fd5b5061023d610da8565b3480156105ed57600080fd5b506102f9603a5481565b34801561060357600080fd5b506102c3610612366004613695565b610e2f565b34801561062357600080fd5b506104fb7f000000000000000000000000000000000000000000000000000000000000000081565b34801561065757600080fd5b506102f9610666366004613276565b610ea4565b34801561067757600080fd5b506102c36106863660046132a6565b610ebb565b34801561069757600080fd5b506102f96000805160206139e883398151915281565b6106c06106bb3660046136b0565b610ee1565b60408051948552602085019390935291830152606082015260800161021f565b3480156106ec57600080fd5b506102f97f000000000000000000000000000000000000000000000000000000000000000081565b34801561072057600080fd5b5060375460385461072f919082565b6040805192835260208301919091520161021f565b60006001600160e01b03198216635a05180f60e01b148061076957506107698261104d565b92915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c081018252603d548152603e546020820152603f548183015290546060820152604154608082015260425460a082015290565b7f0000000000000000000000000000000000000000000000
|
2024-07-22 09:32:51 +00:00
|
|
|
"linkReferences": {},
|
|
|
|
"deployedLinkReferences": {}
|
|
|
|
}
|