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

912 lines
79 KiB
JSON
Raw 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": "0x60e06040523480156200001157600080fd5b5060405162003ef638038062003ef68339810160408190526200003491620000ab565b6000805460ff1916905560a08290526040516103e89062000055906200009d565b908152602001604051809103906000f08015801562000078573d6000803e3d6000fd5b506001600160a01b0316608052620000918143620000d0565b60c05250620000f89050565b610670806200388683390190565b60008060408385031215620000bf57600080fd5b505080516020909101519092909150565b80820180821115620000f257634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05161371f62000167600039600081816102cc015281816107a901528181610a6901528181610b5001528181610dad01528181610ec20152818161104d01526114e40152600081816106bf01526110250152600081816105f601526110b8015261371f6000f3fe6080604052600436106101e35760003560e01c8063900cf0cf11610102578063c4d66de811610095578063e63ab1e911610064578063e63ab1e914610658578063ef3e12dc1461067a578063f0682054146106ad578063fd54b228146106e157600080fd5b8063c4d66de8146105c4578063c7dd5221146105e4578063ca15c87314610618578063d547741f1461063857600080fd5b80639e62a38e116100d15780639e62a38e14610561578063a217fddf14610584578063b464b53e14610599578063b8a409ac146105ae57600080fd5b8063900cf0cf146104f55780639010d07c1461050b57806391d148541461052b57806393e405a01461054b57600080fd5b806336568abe1161017a57806377e198241161014957806377e19824146103ff5780637d5907081461041457806380f55605146104a35780638456cb59146104e057600080fd5b806336568abe1461039d57806338d45e10146103bd5780633f4ba83a146103d25780635c975abb146103e757600080fd5b8063231b0268116101b6578063231b0268146102ba578063248a9ca3146102fc5780632f2ff15d1461032d57806331bae1741461034d57600080fd5b806301ffc9a7146101e8578063127f0f071461021d578063158ef93e1461027e57806318a641ef14610298575b600080fd5b3480156101f457600080fd5b50610208610203366004612f40565b610711565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261073c565b6040516102149190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561028a57600080fd5b506003546102089060ff1681565b3480156102a457600080fd5b506102b86102b3366004612f6a565b6107a7565b005b3480156102c657600080fd5b506102ee7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610214565b34801561030857600080fd5b506102ee610317366004612f6a565b6000908152600160208190526040909120015490565b34801561033957600080fd5b506102b8610348366004612f9a565b61081f565b34801561035957600080fd5b5061036d610368366004612fc6565b61084a565b6040805182516001600160801b039081168252602080850151909116908201529181015190820152606001610214565b3480156103a957600080fd5b506102b86103b8366004612f9a565b6109ed565b3480156103c957600080fd5b506102b8610a67565b3480156103de57600080fd5b506102b8610ab6565b3480156103f357600080fd5b5060005460ff16610208565b34801561040b57600080fd5b506039546102ee565b34801561042057600080fd5b5061047c61042f366004612f6a565b6040805180820190915260008082526020820152506000908152604260209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b039081168252602093840151169281019290925201610214565b3480156104af57600080fd5b506003546104c89061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610214565b3480156104ec57600080fd5b506102b8610ad6565b34801561050157600080fd5b506102ee603a5481565b34801561051757600080fd5b506104c8610526366004612fef565b610af6565b34801561053757600080fd5b50610208610546366004612f9a565b610b15565b34801561055757600080fd5b506102ee603b5481565b61057461056f366004613224565b610b40565b6040516102149493929190613310565b34801561059057600080fd5b506102ee600081565b3480156105a557600080fd5b50610232610d79565b3480156105ba57600080fd5b506102ee60395481565b3480156105d057600080fd5b506102b86105df36600461338f565b610e00565b3480156105f057600080fd5b506104c87f000000000000000000000000000000000000000000000000000000000000000081565b34801561062457600080fd5b506102ee610633366004612f6a565b610e75565b34801561064457600080fd5b506102b8610653366004612f9a565b610e8c565b34801561066457600080fd5b506102ee6000805160206136ca83398151915281565b61068d6106883660046133aa565b610eb2565b6040
"deployedBytecode": "0x6080604052600436106101e35760003560e01c8063900cf0cf11610102578063c4d66de811610095578063e63ab1e911610064578063e63ab1e914610658578063ef3e12dc1461067a578063f0682054146106ad578063fd54b228146106e157600080fd5b8063c4d66de8146105c4578063c7dd5221146105e4578063ca15c87314610618578063d547741f1461063857600080fd5b80639e62a38e116100d15780639e62a38e14610561578063a217fddf14610584578063b464b53e14610599578063b8a409ac146105ae57600080fd5b8063900cf0cf146104f55780639010d07c1461050b57806391d148541461052b57806393e405a01461054b57600080fd5b806336568abe1161017a57806377e198241161014957806377e19824146103ff5780637d5907081461041457806380f55605146104a35780638456cb59146104e057600080fd5b806336568abe1461039d57806338d45e10146103bd5780633f4ba83a146103d25780635c975abb146103e757600080fd5b8063231b0268116101b6578063231b0268146102ba578063248a9ca3146102fc5780632f2ff15d1461032d57806331bae1741461034d57600080fd5b806301ffc9a7146101e8578063127f0f071461021d578063158ef93e1461027e57806318a641ef14610298575b600080fd5b3480156101f457600080fd5b50610208610203366004612f40565b610711565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261073c565b6040516102149190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561028a57600080fd5b506003546102089060ff1681565b3480156102a457600080fd5b506102b86102b3366004612f6a565b6107a7565b005b3480156102c657600080fd5b506102ee7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610214565b34801561030857600080fd5b506102ee610317366004612f6a565b6000908152600160208190526040909120015490565b34801561033957600080fd5b506102b8610348366004612f9a565b61081f565b34801561035957600080fd5b5061036d610368366004612fc6565b61084a565b6040805182516001600160801b039081168252602080850151909116908201529181015190820152606001610214565b3480156103a957600080fd5b506102b86103b8366004612f9a565b6109ed565b3480156103c957600080fd5b506102b8610a67565b3480156103de57600080fd5b506102b8610ab6565b3480156103f357600080fd5b5060005460ff16610208565b34801561040b57600080fd5b506039546102ee565b34801561042057600080fd5b5061047c61042f366004612f6a565b6040805180820190915260008082526020820152506000908152604260209081526040918290208251808401909352546001600160801b038082168452600160801b909104169082015290565b6040805182516001600160801b039081168252602093840151169281019290925201610214565b3480156104af57600080fd5b506003546104c89061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610214565b3480156104ec57600080fd5b506102b8610ad6565b34801561050157600080fd5b506102ee603a5481565b34801561051757600080fd5b506104c8610526366004612fef565b610af6565b34801561053757600080fd5b50610208610546366004612f9a565b610b15565b34801561055757600080fd5b506102ee603b5481565b61057461056f366004613224565b610b40565b6040516102149493929190613310565b34801561059057600080fd5b506102ee600081565b3480156105a557600080fd5b50610232610d79565b3480156105ba57600080fd5b506102ee60395481565b3480156105d057600080fd5b506102b86105df36600461338f565b610e00565b3480156105f057600080fd5b506104c87f000000000000000000000000000000000000000000000000000000000000000081565b34801561062457600080fd5b506102ee610633366004612f6a565b610e75565b34801561064457600080fd5b506102b8610653366004612f9a565b610e8c565b34801561066457600080fd5b506102ee6000805160206136ca83398151915281565b61068d6106883660046133aa565b610eb2565b604080519485526020850193909352918301526060820152608001610214565b3480156106b957600080fd5b506102ee7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106ed57600080fd5b506004546005546106fc919082565b60408051928352602083019190915201610214565b60006001600160e01b03198216635a05180f60e01b1480610736575061073682610feb565b92915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c081018252603c548152603d546020820152603e5481830152603f5460608201529054608082015260415460a082015290565b7f00000000000000000000000000000000000000000000000000000000000000004310156107f05760405162461bcd60e51b81526004016107e7906133e7565b60405180910390fd5b6000
2024-07-22 09:32:51 +00:00
"linkReferences": {},
"deployedLinkReferences": {}
}