0g-storage-node/storage-contracts-abis/Flow.json

912 lines
79 KiB
JSON
Raw Permalink Normal View History

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"
},
{
"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": "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": [],
"name": "tree",
2024-07-22 09:32:51 +00:00
"outputs": [
{
"internalType": "uint256",
"name": "currentLength",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "unstagedHeight",
2024-07-22 09:32:51 +00:00
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
2024-07-22 09:32:51 +00:00
"type": "function"
}
],
"bytecode": "0x60e06040523480156200001157600080fd5b5060405162003ee738038062003ee78339810160408190526200003491620000ab565b6000805460ff1916905560a08290526040516103e89062000055906200009d565b908152602001604051809103906000f08015801562000078573d6000803e3d6000fd5b506001600160a01b0316608052620000918143620000d0565b60c05250620000f89050565b610670806200387783390190565b60008060408385031215620000bf57600080fd5b505080516020909101519092909150565b80820180821115620000f257634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05161371062000167600039600081816102cc015281816107a401528181610a6401528181610b4b01528181610da801528181610ebd0152818161104801526114da0152600081816106ba01526110200152600081816105f101526110b301526137106000f3fe6080604052600436106101e35760003560e01c8063900cf0cf11610102578063c4d66de811610095578063e63ab1e911610064578063e63ab1e914610653578063ef3e12dc14610675578063f0682054146106a8578063fd54b228146106dc57600080fd5b8063c4d66de8146105bf578063c7dd5221146105df578063ca15c87314610613578063d547741f1461063357600080fd5b80639e62a38e116100d15780639e62a38e1461055c578063a217fddf1461057f578063b464b53e14610594578063b8a409ac146105a957600080fd5b8063900cf0cf146104f05780639010d07c1461050657806391d148541461052657806393e405a01461054657600080fd5b806336568abe1161017a57806377e198241161014957806377e19824146103ff5780637d5907081461041457806380f55605146104a35780638456cb59146104db57600080fd5b806336568abe1461039d57806338d45e10146103bd5780633f4ba83a146103d25780635c975abb146103e757600080fd5b8063231b0268116101b6578063231b0268146102ba578063248a9ca3146102fc5780632f2ff15d1461032d57806331bae1741461034d57600080fd5b806301ffc9a7146101e8578063127f0f071461021d578063158ef93e1461027e57806318a641ef14610298575b600080fd5b3480156101f457600080fd5b50610208610203366004612f31565b61070c565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610737565b6040516102149190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561028a57600080fd5b506003546102089060ff1681565b3480156102a457600080fd5b506102b86102b3366004612f5b565b6107a2565b005b3480156102c657600080fd5b506102ee7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610214565b34801561030857600080fd5b506102ee610317366004612f5b565b6000908152600160208190526040909120015490565b34801561033957600080fd5b506102b8610348366004612f8b565b61081a565b34801561035957600080fd5b5061036d610368366004612fb7565b610845565b6040805182516001600160801b039081168252602080850151909116908201529181015190820152606001610214565b3480156103a957600080fd5b506102b86103b8366004612f8b565b6109e8565b3480156103c957600080fd5b506102b8610a62565b3480156103de57600080fd5b506102b8610ab1565b3480156103f357600080fd5b5060005460ff16610208565b34801561040b57600080fd5b50603a546102ee565b34801561042057600080fd5b5061047c61042f366004612f5b565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b039081168252602093840151169281019290925201610214565b3480156104af57600080fd5b506036546104c3906001600160a01b031681565b6040516001600160a01b039091168152602001610214565b3480156104e757600080fd5b506102b8610ad1565b3480156104fc57600080fd5b506102ee603b5481565b34801561051257600080fd5b506104c3610521366004612fe0565b610af1565b34801561053257600080fd5b50610208610541366004612f8b565b610b10565b34801561055257600080fd5b506102ee603c5481565b61056f61056a366004613215565b610b3b565b6040516102149493929190613301565b34801561058b57600080fd5b506102ee600081565b3480156105a057600080fd5b50610232610d74565b3480156105b557600080fd5b506102ee603a5481565b3480156105cb57600080fd5b506102b86105da366004613380565b610dfb565b3480156105eb57600080fd5b506104c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561061f57600080fd5b506102ee61062e366004612f5b565b610e70565b34801561063f57600080fd5b506102b861064e366004612f8b565b610e87565b34801561065f57600080fd5b506102ee6000805160206136bb83398151915281565b61068861068336600461339b565b610ead565b60408051948552
"deployedBytecode": "0x6080604052600436106101e35760003560e01c8063900cf0cf11610102578063c4d66de811610095578063e63ab1e911610064578063e63ab1e914610653578063ef3e12dc14610675578063f0682054146106a8578063fd54b228146106dc57600080fd5b8063c4d66de8146105bf578063c7dd5221146105df578063ca15c87314610613578063d547741f1461063357600080fd5b80639e62a38e116100d15780639e62a38e1461055c578063a217fddf1461057f578063b464b53e14610594578063b8a409ac146105a957600080fd5b8063900cf0cf146104f05780639010d07c1461050657806391d148541461052657806393e405a01461054657600080fd5b806336568abe1161017a57806377e198241161014957806377e19824146103ff5780637d5907081461041457806380f55605146104a35780638456cb59146104db57600080fd5b806336568abe1461039d57806338d45e10146103bd5780633f4ba83a146103d25780635c975abb146103e757600080fd5b8063231b0268116101b6578063231b0268146102ba578063248a9ca3146102fc5780632f2ff15d1461032d57806331bae1741461034d57600080fd5b806301ffc9a7146101e8578063127f0f071461021d578063158ef93e1461027e57806318a641ef14610298575b600080fd5b3480156101f457600080fd5b50610208610203366004612f31565b61070c565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610737565b6040516102149190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561028a57600080fd5b506003546102089060ff1681565b3480156102a457600080fd5b506102b86102b3366004612f5b565b6107a2565b005b3480156102c657600080fd5b506102ee7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610214565b34801561030857600080fd5b506102ee610317366004612f5b565b6000908152600160208190526040909120015490565b34801561033957600080fd5b506102b8610348366004612f8b565b61081a565b34801561035957600080fd5b5061036d610368366004612fb7565b610845565b6040805182516001600160801b039081168252602080850151909116908201529181015190820152606001610214565b3480156103a957600080fd5b506102b86103b8366004612f8b565b6109e8565b3480156103c957600080fd5b506102b8610a62565b3480156103de57600080fd5b506102b8610ab1565b3480156103f357600080fd5b5060005460ff16610208565b34801561040b57600080fd5b50603a546102ee565b34801561042057600080fd5b5061047c61042f366004612f5b565b6040805180820190915260008082526020820152506000908152604360209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b039081168252602093840151169281019290925201610214565b3480156104af57600080fd5b506036546104c3906001600160a01b031681565b6040516001600160a01b039091168152602001610214565b3480156104e757600080fd5b506102b8610ad1565b3480156104fc57600080fd5b506102ee603b5481565b34801561051257600080fd5b506104c3610521366004612fe0565b610af1565b34801561053257600080fd5b50610208610541366004612f8b565b610b10565b34801561055257600080fd5b506102ee603c5481565b61056f61056a366004613215565b610b3b565b6040516102149493929190613301565b34801561058b57600080fd5b506102ee600081565b3480156105a057600080fd5b50610232610d74565b3480156105b557600080fd5b506102ee603a5481565b3480156105cb57600080fd5b506102b86105da366004613380565b610dfb565b3480156105eb57600080fd5b506104c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561061f57600080fd5b506102ee61062e366004612f5b565b610e70565b34801561063f57600080fd5b506102b861064e366004612f8b565b610e87565b34801561065f57600080fd5b506102ee6000805160206136bb83398151915281565b61068861068336600461339b565b610ead565b604080519485526020850193909352918301526060820152608001610214565b3480156106b457600080fd5b506102ee7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e857600080fd5b506037546038546106f7919082565b60408051928352602083019190915201610214565b60006001600160e01b03198216635a05180f60e01b1480610731575061073182610fe6565b92915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c081018252603d548152603e546020820152603f548183015290546060820152604154608082015260425460a082015290565b7f00000000000000000000000000000000000000000000000000000000000000004310156107eb5760405162461bcd60e51b81526004016107e2906133d8565b60405180910390fd5b60005b81811161
2024-07-22 09:32:51 +00:00
"linkReferences": {},
"deployedLinkReferences": {}
}