mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-03 22:03:08 +00:00
1777 lines
179 KiB
JSON
1777 lines
179 KiB
JSON
|
|
{
|
||
|
|
"address": "0xB119d28d3A1bFD281b23A0890B4c1B626EE8F6F0",
|
||
|
|
"abi": [
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "repairRewardPercentage",
|
||
|
|
"type": "uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "maxNumberOfSlashes",
|
||
|
|
"type": "uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint16",
|
||
|
|
"name": "slashCriterion",
|
||
|
|
"type": "uint16"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "slashPercentage",
|
||
|
|
"type": "uint8"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct CollateralConfig",
|
||
|
|
"name": "collateral",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "period",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "timeout",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "downtime",
|
||
|
|
"type": "uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "string",
|
||
|
|
"name": "zkeyHash",
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct ProofConfig",
|
||
|
|
"name": "proofs",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct MarketplaceConfig",
|
||
|
|
"name": "configuration",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "contract IERC20",
|
||
|
|
"name": "token_",
|
||
|
|
"type": "address"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "contract IGroth16Verifier",
|
||
|
|
"name": "verifier",
|
||
|
|
"type": "address"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "constructor"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": false,
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "id",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "ProofSubmitted",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": true,
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "RequestCancelled",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": true,
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "RequestFailed",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": true,
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "RequestFulfilled",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": true,
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"indexed": false,
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotIndex",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "SlotFilled",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": true,
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"indexed": false,
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotIndex",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "SlotFreed",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"anonymous": false,
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"indexed": false,
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "slots",
|
||
|
|
"type": "uint64"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotSize",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "duration",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "proofProbability",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "reward",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "collateral",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "maxSlotLoss",
|
||
|
|
"type": "uint64"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"indexed": false,
|
||
|
|
"internalType": "struct Ask",
|
||
|
|
"name": "ask",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"indexed": false,
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "expiry",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "StorageRequested",
|
||
|
|
"type": "event"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [],
|
||
|
|
"name": "config",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "repairRewardPercentage",
|
||
|
|
"type": "uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "maxNumberOfSlashes",
|
||
|
|
"type": "uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint16",
|
||
|
|
"name": "slashCriterion",
|
||
|
|
"type": "uint16"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "slashPercentage",
|
||
|
|
"type": "uint8"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct CollateralConfig",
|
||
|
|
"name": "collateral",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "period",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "timeout",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "downtime",
|
||
|
|
"type": "uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "string",
|
||
|
|
"name": "zkeyHash",
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct ProofConfig",
|
||
|
|
"name": "proofs",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct MarketplaceConfig",
|
||
|
|
"name": "",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotIndex",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "x",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "y",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct G1Point",
|
||
|
|
"name": "a",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "real",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "imag",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Fp2Element",
|
||
|
|
"name": "x",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "real",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "imag",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Fp2Element",
|
||
|
|
"name": "y",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct G2Point",
|
||
|
|
"name": "b",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "x",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "y",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct G1Point",
|
||
|
|
"name": "c",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Groth16Proof",
|
||
|
|
"name": "proof",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "fillSlot",
|
||
|
|
"outputs": [],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "slotId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "freeSlot",
|
||
|
|
"outputs": [],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "slotId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "getActiveSlot",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "address",
|
||
|
|
"name": "client",
|
||
|
|
"type": "address"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "slots",
|
||
|
|
"type": "uint64"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotSize",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "duration",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "proofProbability",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "reward",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "collateral",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "maxSlotLoss",
|
||
|
|
"type": "uint64"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Ask",
|
||
|
|
"name": "ask",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "string",
|
||
|
|
"name": "cid",
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "merkleRoot",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Content",
|
||
|
|
"name": "content",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "expiry",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "nonce",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Request",
|
||
|
|
"name": "request",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotIndex",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Marketplace.ActiveSlot",
|
||
|
|
"name": "",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "id",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "getChallenge",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "slotId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "getHost",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "address",
|
||
|
|
"name": "",
|
||
|
|
"type": "address"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "id",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "getPointer",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "uint8",
|
||
|
|
"name": "",
|
||
|
|
"type": "uint8"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "getRequest",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "address",
|
||
|
|
"name": "client",
|
||
|
|
"type": "address"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "slots",
|
||
|
|
"type": "uint64"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotSize",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "duration",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "proofProbability",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "reward",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "collateral",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "maxSlotLoss",
|
||
|
|
"type": "uint64"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Ask",
|
||
|
|
"name": "ask",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "string",
|
||
|
|
"name": "cid",
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "merkleRoot",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Content",
|
||
|
|
"name": "content",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "expiry",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "nonce",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Request",
|
||
|
|
"name": "",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "id",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "isProofRequired",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "bool",
|
||
|
|
"name": "",
|
||
|
|
"type": "bool"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "slotId",
|
||
|
|
"type": "bytes32"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "Periods.Period",
|
||
|
|
"name": "period",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "markProofAsMissing",
|
||
|
|
"outputs": [],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "slotId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "missingProofs",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [],
|
||
|
|
"name": "myRequests",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId[]",
|
||
|
|
"name": "",
|
||
|
|
"type": "bytes32[]"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [],
|
||
|
|
"name": "mySlots",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId[]",
|
||
|
|
"name": "",
|
||
|
|
"type": "bytes32[]"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "requestEnd",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "requestExpiry",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "requestState",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "enum RequestState",
|
||
|
|
"name": "",
|
||
|
|
"type": "uint8"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "address",
|
||
|
|
"name": "client",
|
||
|
|
"type": "address"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "slots",
|
||
|
|
"type": "uint64"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "slotSize",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "duration",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "proofProbability",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "reward",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "collateral",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint64",
|
||
|
|
"name": "maxSlotLoss",
|
||
|
|
"type": "uint64"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Ask",
|
||
|
|
"name": "ask",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "string",
|
||
|
|
"name": "cid",
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "merkleRoot",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Content",
|
||
|
|
"name": "content",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "expiry",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "bytes32",
|
||
|
|
"name": "nonce",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Request",
|
||
|
|
"name": "request",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "requestStorage",
|
||
|
|
"outputs": [],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "slotId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "slotState",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "enum SlotState",
|
||
|
|
"name": "",
|
||
|
|
"type": "uint8"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "id",
|
||
|
|
"type": "bytes32"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "x",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "y",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct G1Point",
|
||
|
|
"name": "a",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "real",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "imag",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Fp2Element",
|
||
|
|
"name": "x",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "real",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "imag",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Fp2Element",
|
||
|
|
"name": "y",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct G2Point",
|
||
|
|
"name": "b",
|
||
|
|
"type": "tuple"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"components": [
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "x",
|
||
|
|
"type": "uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"internalType": "uint256",
|
||
|
|
"name": "y",
|
||
|
|
"type": "uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct G1Point",
|
||
|
|
"name": "c",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"internalType": "struct Groth16Proof",
|
||
|
|
"name": "proof",
|
||
|
|
"type": "tuple"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "submitProof",
|
||
|
|
"outputs": [],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [],
|
||
|
|
"name": "token",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "contract IERC20",
|
||
|
|
"name": "",
|
||
|
|
"type": "address"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "SlotId",
|
||
|
|
"name": "id",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "willProofBeRequired",
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"internalType": "bool",
|
||
|
|
"name": "",
|
||
|
|
"type": "bool"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"stateMutability": "view",
|
||
|
|
"type": "function"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"internalType": "RequestId",
|
||
|
|
"name": "requestId",
|
||
|
|
"type": "bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "withdrawFunds",
|
||
|
|
"outputs": [],
|
||
|
|
"stateMutability": "nonpayable",
|
||
|
|
"type": "function"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"transactionHash": "0x20876cd2058a4a27a3af01f3540b58c4499d8dab4ec01be122de44f70d8dc91d",
|
||
|
|
"receipt": {
|
||
|
|
"to": null,
|
||
|
|
"from": "0x3A39904B71595608524274BFD8c20FCfd9e77236",
|
||
|
|
"contractAddress": "0xB119d28d3A1bFD281b23A0890B4c1B626EE8F6F0",
|
||
|
|
"transactionIndex": 0,
|
||
|
|
"gasUsed": "3365554",
|
||
|
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
|
"blockHash": "0x805ad335e660524be6792c098dec616db578156cd41793d5a4dce26f9abff406",
|
||
|
|
"transactionHash": "0x20876cd2058a4a27a3af01f3540b58c4499d8dab4ec01be122de44f70d8dc91d",
|
||
|
|
"logs": [],
|
||
|
|
"blockNumber": 1269341,
|
||
|
|
"cumulativeGasUsed": "3365554",
|
||
|
|
"status": 1,
|
||
|
|
"byzantium": true
|
||
|
|
},
|
||
|
|
"args": [
|
||
|
|
{
|
||
|
|
"collateral": {
|
||
|
|
"repairRewardPercentage": 10,
|
||
|
|
"maxNumberOfSlashes": 2,
|
||
|
|
"slashCriterion": 2,
|
||
|
|
"slashPercentage": 20
|
||
|
|
},
|
||
|
|
"proofs": {
|
||
|
|
"period": 60,
|
||
|
|
"timeout": 30,
|
||
|
|
"downtime": 64,
|
||
|
|
"zkeyHash": "fc739a6f5962e7ac8b064b9396a400de4dd024de25c403331fa7143a9bc8f75d"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"0x34a22f3911De437307c6f4485931779670f78764",
|
||
|
|
"0x006BDB9609B919146555f42d9d617FD709dfe5D2"
|
||
|
|
],
|
||
|
|
"numDeployments": 1,
|
||
|
|
"solcInputHash": "c09963445d55f04ec1cd7dd500a29a55",
|
||
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.23+commit.f704f362\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"repairRewardPercentage\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"maxNumberOfSlashes\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"slashCriterion\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"slashPercentage\",\"type\":\"uint8\"}],\"internalType\":\"struct CollateralConfig\",\"name\":\"collateral\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timeout\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"downtime\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"zkeyHash\",\"type\":\"string\"}],\"internalType\":\"struct ProofConfig\",\"name\":\"proofs\",\"type\":\"tuple\"}],\"internalType\":\"struct MarketplaceConfig\",\"name\":\"configuration\",\"type\":\"tuple\"},{\"internalType\":\"contract IERC20\",\"name\":\"token_\",\"type\":\"address\"},{\"internalType\":\"contract IGroth16Verifier\",\"name\":\"verifier\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"SlotId\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"ProofSubmitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"RequestId\",\"name\":\"requestId\",\"type\":\"bytes32\"}],\"name\":\"RequestCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"RequestId\",\"name\":\"requestId\",\"type\":\"bytes32\"}],\"name\":\"RequestFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"RequestId\",\"name\":\"requestId\",\"type\":\"bytes32\"}],\"name\":\"RequestFulfilled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"RequestId\",\"name\":\"requestId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"slotIndex\",\"type\":\"uint256\"}],\"name\":\"SlotFilled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"RequestId\",\"name\":\"requestId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"slotIndex\",\"type\":\"uint256\"}],\"name\":\"SlotFreed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"RequestId\",\"name\":\"requestId\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"slots\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"slotSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"proofProbability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"maxSlotLoss\",\"type\":\"uint64\"}],\"indexed\":false,\"internalType\":\"struct Ask\",\"name\":\"ask\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"}],\"name\":\"StorageRequested\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"config\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"repairRewardPercentage\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"maxNumberOfSlashes\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"slashCriterion\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"slashPercentage\",\"type\":\"uint8\"}],\"internalType\":\"struct CollateralConfig\",\"name\":\"collateral\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timeout\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"nam
|
||
|
|
"bytecode": "0x60c06040523480156200001157600080fd5b5060405162003d3b38038062003d3b833981016040819052620000349162000487565b60208301518051608052816101004311620000965760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420626c6f636b206865696768740000000000000060448201526064015b60405180910390fd5b81516000908155602083015160015560408301516002805460ff191660ff9092169190911790556060830151839190600390620000d4908262000627565b5050600480546001600160a01b0319166001600160a01b0393841617905550831660a05250825151606460ff9091161115620001535760405162461bcd60e51b815260206004820152601560248201527f4d757374206265206c657373207468616e20313030000000000000000000000060448201526064016200008d565b606483600001516060015160ff161115620001b15760405162461bcd60e51b815260206004820152601560248201527f4d757374206265206c657373207468616e20313030000000000000000000000060448201526064016200008d565b82516060810151602090910151606491620001cc91620006f3565b60ff1611156200021f5760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d20736c617368696e672065786365656473203130302500000060448201526064016200008d565b82518051600c805460208085015160408087015160609788015160ff9081166401000000000260ff60201b1961ffff90931662010000029290921664ffffff0000199482166101000261ffff1990971698821698909817959095179290921695909517178355808801518051600d90815591810151600e5593840151600f80549190931660ff19919091161790915592820151869391929190601090620002c7908262000627565b50505090505050505062000725565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715620003115762000311620002d6565b60405290565b604080519081016001600160401b0381118282101715620003115762000311620002d6565b604051601f8201601f191681016001600160401b0381118282101715620003675762000367620002d6565b604052919050565b805160ff811681146200038157600080fd5b919050565b6000608082840312156200039957600080fd5b620003a3620002ec565b90508151815260208083015181830152620003c1604084016200036f565b604083015260608301516001600160401b0380821115620003e157600080fd5b818501915085601f830112620003f657600080fd5b8151818111156200040b576200040b620002d6565b6200041f601f8201601f191685016200033c565b915080825286848285010111156200043657600080fd5b60005b818110156200045657838101850151838201860152840162000439565b5060008482840101525080606085015250505092915050565b80516001600160a01b03811681146200038157600080fd5b6000806000606084860312156200049d57600080fd5b83516001600160401b0380821115620004b557600080fd5b9085019081870360a0811215620004cb57600080fd5b620004d562000317565b6080821215620004e457600080fd5b620004ee620002ec565b9150620004fb846200036f565b82526200050b602085016200036f565b6020830152604084015161ffff811681146200052657600080fd5b604083015262000539606085016200036f565b6060830152908152608083015190828211156200055557600080fd5b620005638983860162000386565b6020820152809650505050506200057d602085016200046f565b91506200058d604085016200046f565b90509250925092565b600181811c90821680620005ab57607f821691505b602082108103620005cc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000622576000816000526020600020601f850160051c81016020861015620005fd5750805b601f850160051c820191505b818110156200061e5782815560010162000609565b5050505b505050565b81516001600160401b03811115620006435762000643620002d6565b6200065b8162000654845462000596565b84620005d2565b602080601f8311600181146200069357600084156200067a5750858301515b600019600386901b1c1916600185901b1785556200061e565b600085815260208120601f198616915b82811015620006c457888601518255948401946001909101908401620006a3565b5085821015620006e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60ff81811683821602908116908181146200071e57634e487b7160e01b600052601160045260246000fd5b5092915050565b60805160a0516135cd6200076e600039600081816103ca01528181610bc001528181611ddc0152818161216101526122cd0152600081816126ea015261288901526135cd6000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80639777b72c116100d8578063be5cdc481161008c578063f752196b11610066578063f752196b14610388578063fb1e61ca146103a8578063fc0c546a146103c857600080fd5b8063be5cdc4814610342578063c0cc4add14610362578063e8aa0a07146103755760
|
||
|
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101825760003560e01c80639777b72c116100d8578063be5cdc481161008c578063f752196b11610066578063f752196b14610388578063fb1e61ca146103a8578063fc0c546a146103c857600080fd5b8063be5cdc4814610342578063c0cc4add14610362578063e8aa0a071461037557600080fd5b8063a3a0807e116100bd578063a3a0807e146102ec578063a6af384b1461030f578063b396dc791461032257600080fd5b80639777b72c146102d1578063a29c29a4146102d957600080fd5b80634641dce61161013a5780636b00c8cf116101145780636b00c8cf146102655780636e2b54ee146102a957806379502c55146102bc57600080fd5b80634641dce61461021857806359cc89ed1461023d5780635da738351461025057600080fd5b806308695fcd1161016b57806308695fcd146101cd578063329b5a0b146101e2578063458d2bf11461020557600080fd5b806302fa8e651461018757806305b90773146101ad575b600080fd5b61019a610195366004612abf565b6103ee565b6040519081526020015b60405180910390f35b6101c06101bb366004612abf565b610465565b6040516101a49190612aee565b6101e06101db366004612b08565b610557565b005b61019a6101f0366004612abf565b60009081526012602052604090206005015490565b61019a610213366004612abf565b6106ad565b61022b610226366004612abf565b6106c6565b60405160ff90911681526020016101a4565b6101e061024b366004612b3d565b6106d9565b6102586109dd565b6040516101a49190612b74565b610291610273366004612abf565b6000908152601360205260409020600501546001600160a01b031690565b6040516001600160a01b0390911681526020016101a4565b6101e06102b7366004612abf565b610a04565b6102c4610c41565b6040516101a49190612bfe565b610258610db2565b6101e06102e7366004612abf565b610dd1565b6102ff6102fa366004612abf565b610fa2565b60405190151581526020016101a4565b6101e061031d366004612c80565b610fd7565b610335610330366004612abf565b6112c3565b6040516101a49190612d89565b610355610350366004612abf565b6114ac565b6040516101a49190612dbb565b6102ff610370366004612abf565b61157a565b6101e0610383366004612dcf565b61158d565b61019a610396366004612abf565b60009081526007602052604090205490565b6103bb6103b6366004612abf565b6116ca565b6040516101a49190612dfd565b7f0000000000000000000000000000000000000000000000000000000000000000610291565b6000818152601260205260408120600401548161040a84610465565b9050600081600481111561042057610420612ad8565b148061043d5750600181600481111561043b5761043b612ad8565b145b15610449575092915050565b61045d82610458600142612e26565b611881565b949350505050565b60008181526011602052604081205482906001600160a01b03166104c25760405162461bcd60e51b815260206004820152600f60248201526e155b9adb9bdddb881c995c5d595cdd608a1b60448201526064015b60405180910390fd5b600083815260126020526040812090815460ff1660048111156104e7576104e7612ad8565b148015610504575060008481526012602052604090206005015442115b15610513576002925050610551565b6001815460ff16600481111561052b5761052b612ad8565b14801561053b5750806004015442115b1561054a576003925050610551565b5460ff1691505b50919050565b6001610562836114ac565b600581111561057357610573612ad8565b146105c05760405162461bcd60e51b815260206004820152601960248201527f536c6f74206e6f7420616363657074696e672070726f6f66730000000000000060448201526064016104b9565b6105ca8282611899565b6000828152601360209081526040808320600181015484526011909252909120600c5461ffff620100009091041661060e8560009081526007602052604090205490565b6106189190612e4f565b6000036106a757600c54600682015460009160649161064291640100000000900460ff1690612e63565b61064c9190612e7a565b9050808360040160008282546106629190612e26565b9091555050600c54600086815260076020526040902054610100820460ff169162010000900461ffff16906106979190612e7a565b106106a5576106a585611ac6565b505b50505050565b60006106c0826106bb611c6c565b611c77565b92915050565b60006106c0826106d4611c6c565b611c8b565b60008381526011602052604090205483906001600160a01b03166107315760405162461bcd60e51b815260206004820152600f60248201526e155b9adb9bdddb881c995c5d595cdd608a1b60448201526064016104b9565b6000848152601160205260409020600181015467ffffffffffffffff16841061079c5760405162461bcd60e51b815260206004820152600c60248201527f496e76616c696420736c6f74000000000000000000000000000000000000000060448201526064016104b9565b60408051602080820188905281830187905282518083038401815260609092019092528051910120600090600081815260136020526040812060018101899055600381018890559192506107ef836114ac565b600581
|
||
|
|
"devdoc": {
|
||
|
|
"kind": "dev",
|
||
|
|
"methods": {
|
||
|
|
"withdrawFunds(bytes32)": {
|
||
|
|
"details": "Request must be expired, must be in RequestState.New, and the transaction must originate from the depositer address.",
|
||
|
|
"params": {
|
||
|
|
"requestId": "the id of the request"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"version": 1
|
||
|
|
},
|
||
|
|
"userdoc": {
|
||
|
|
"kind": "user",
|
||
|
|
"methods": {
|
||
|
|
"withdrawFunds(bytes32)": {
|
||
|
|
"notice": "Withdraws storage request funds back to the client that deposited them."
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"version": 1
|
||
|
|
},
|
||
|
|
"storageLayout": {
|
||
|
|
"storage": [
|
||
|
|
{
|
||
|
|
"astId": 4669,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_config",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_struct(ProofConfig)2218_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4672,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_verifier",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "4",
|
||
|
|
"type": "t_contract(IGroth16Verifier)2400"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4707,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_slotStarts",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "5",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(SlotId)5238,t_uint256)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4712,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_probabilities",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "6",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(SlotId)5238,t_uint256)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4717,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_missed",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "7",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(SlotId)5238,t_uint256)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4725,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_received",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "8",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(SlotId)5238,t_mapping(t_userDefinedValueType(Period)4527,t_bool))"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4733,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_missing",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "9",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(SlotId)5238,t_mapping(t_userDefinedValueType(Period)4527,t_bool))"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5403,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_requestsPerClient",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "10",
|
||
|
|
"type": "t_mapping(t_address,t_struct(Bytes32Set)1781_storage)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5408,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_slotsPerHost",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "11",
|
||
|
|
"type": "t_mapping(t_address,t_struct(Bytes32Set)1781_storage)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3020,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_config",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "12",
|
||
|
|
"type": "t_struct(MarketplaceConfig)2199_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3026,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_requests",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "17",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(RequestId)5236,t_struct(Request)5251_storage)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3032,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_requestContexts",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "18",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(RequestId)5236,t_struct(RequestContext)3056_storage)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3038,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_slots",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "19",
|
||
|
|
"type": "t_mapping(t_userDefinedValueType(SlotId)5238,t_struct(Slot)3073_storage)"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3041,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_marketplaceTotals",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "20",
|
||
|
|
"type": "t_struct(MarketplaceTotals)4522_storage"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"types": {
|
||
|
|
"t_address": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "address",
|
||
|
|
"numberOfBytes": "20"
|
||
|
|
},
|
||
|
|
"t_array(t_bytes32)dyn_storage": {
|
||
|
|
"base": "t_bytes32",
|
||
|
|
"encoding": "dynamic_array",
|
||
|
|
"label": "bytes32[]",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_bool": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "bool",
|
||
|
|
"numberOfBytes": "1"
|
||
|
|
},
|
||
|
|
"t_bytes32": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "bytes32",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_contract(IGroth16Verifier)2400": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "contract IGroth16Verifier",
|
||
|
|
"numberOfBytes": "20"
|
||
|
|
},
|
||
|
|
"t_enum(RequestState)5277": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "enum RequestState",
|
||
|
|
"numberOfBytes": "1"
|
||
|
|
},
|
||
|
|
"t_enum(SlotState)5284": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "enum SlotState",
|
||
|
|
"numberOfBytes": "1"
|
||
|
|
},
|
||
|
|
"t_mapping(t_address,t_struct(Bytes32Set)1781_storage)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_address",
|
||
|
|
"label": "mapping(address => struct EnumerableSet.Bytes32Set)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_struct(Bytes32Set)1781_storage"
|
||
|
|
},
|
||
|
|
"t_mapping(t_bytes32,t_uint256)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_bytes32",
|
||
|
|
"label": "mapping(bytes32 => uint256)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_uint256"
|
||
|
|
},
|
||
|
|
"t_mapping(t_userDefinedValueType(Period)4527,t_bool)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_userDefinedValueType(Period)4527",
|
||
|
|
"label": "mapping(Periods.Period => bool)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_bool"
|
||
|
|
},
|
||
|
|
"t_mapping(t_userDefinedValueType(RequestId)5236,t_struct(Request)5251_storage)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_userDefinedValueType(RequestId)5236",
|
||
|
|
"label": "mapping(RequestId => struct Request)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_struct(Request)5251_storage"
|
||
|
|
},
|
||
|
|
"t_mapping(t_userDefinedValueType(RequestId)5236,t_struct(RequestContext)3056_storage)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_userDefinedValueType(RequestId)5236",
|
||
|
|
"label": "mapping(RequestId => struct Marketplace.RequestContext)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_struct(RequestContext)3056_storage"
|
||
|
|
},
|
||
|
|
"t_mapping(t_userDefinedValueType(SlotId)5238,t_mapping(t_userDefinedValueType(Period)4527,t_bool))": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_userDefinedValueType(SlotId)5238",
|
||
|
|
"label": "mapping(SlotId => mapping(Periods.Period => bool))",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_mapping(t_userDefinedValueType(Period)4527,t_bool)"
|
||
|
|
},
|
||
|
|
"t_mapping(t_userDefinedValueType(SlotId)5238,t_struct(Slot)3073_storage)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_userDefinedValueType(SlotId)5238",
|
||
|
|
"label": "mapping(SlotId => struct Marketplace.Slot)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_struct(Slot)3073_storage"
|
||
|
|
},
|
||
|
|
"t_mapping(t_userDefinedValueType(SlotId)5238,t_uint256)": {
|
||
|
|
"encoding": "mapping",
|
||
|
|
"key": "t_userDefinedValueType(SlotId)5238",
|
||
|
|
"label": "mapping(SlotId => uint256)",
|
||
|
|
"numberOfBytes": "32",
|
||
|
|
"value": "t_uint256"
|
||
|
|
},
|
||
|
|
"t_string_storage": {
|
||
|
|
"encoding": "bytes",
|
||
|
|
"label": "string",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_struct(Ask)5266_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct Ask",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 5253,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "slots",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint64"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5255,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "slotSize",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5257,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "duration",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "2",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5259,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "proofProbability",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "3",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5261,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "reward",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "4",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5263,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "collateral",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "5",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5265,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "maxSlotLoss",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "6",
|
||
|
|
"type": "t_uint64"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "224"
|
||
|
|
},
|
||
|
|
"t_struct(Bytes32Set)1781_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct EnumerableSet.Bytes32Set",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 1780,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_inner",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_struct(Set)1587_storage"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "64"
|
||
|
|
},
|
||
|
|
"t_struct(CollateralConfig)2209_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct CollateralConfig",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 2202,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "repairRewardPercentage",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2204,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "maxNumberOfSlashes",
|
||
|
|
"offset": 1,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2206,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "slashCriterion",
|
||
|
|
"offset": 2,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint16"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2208,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "slashPercentage",
|
||
|
|
"offset": 4,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint8"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_struct(Content)5271_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct Content",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 5268,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "cid",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_string_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5270,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "merkleRoot",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "64"
|
||
|
|
},
|
||
|
|
"t_struct(MarketplaceConfig)2199_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct MarketplaceConfig",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 2195,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "collateral",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_struct(CollateralConfig)2209_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2198,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "proofs",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_struct(ProofConfig)2218_storage"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "160"
|
||
|
|
},
|
||
|
|
"t_struct(MarketplaceTotals)4522_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct Marketplace.MarketplaceTotals",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 4519,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "received",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 4521,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "sent",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "64"
|
||
|
|
},
|
||
|
|
"t_struct(ProofConfig)2218_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct ProofConfig",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 2211,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "period",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2213,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "timeout",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2215,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "downtime",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "2",
|
||
|
|
"type": "t_uint8"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 2217,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "zkeyHash",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "3",
|
||
|
|
"type": "t_string_storage"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "128"
|
||
|
|
},
|
||
|
|
"t_struct(Request)5251_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct Request",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 5240,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "client",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_address"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5243,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "ask",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_struct(Ask)5266_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5246,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "content",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "8",
|
||
|
|
"type": "t_struct(Content)5271_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5248,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "expiry",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "10",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 5250,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "nonce",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "11",
|
||
|
|
"type": "t_bytes32"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "384"
|
||
|
|
},
|
||
|
|
"t_struct(RequestContext)3056_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct Marketplace.RequestContext",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 3044,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "state",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_enum(RequestState)5277"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3046,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "slotsFilled",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3049,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "expiryFundsWithdraw",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "2",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3051,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "startedAt",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "3",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3053,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "endsAt",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "4",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3055,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "expiresAt",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "5",
|
||
|
|
"type": "t_uint256"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "192"
|
||
|
|
},
|
||
|
|
"t_struct(Set)1587_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct EnumerableSet.Set",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 1582,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_values",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_array(t_bytes32)dyn_storage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 1586,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "_indexes",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_mapping(t_bytes32,t_uint256)"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "64"
|
||
|
|
},
|
||
|
|
"t_struct(Slot)3073_storage": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "struct Marketplace.Slot",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"astId": 3059,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "state",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "0",
|
||
|
|
"type": "t_enum(SlotState)5284"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3062,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "requestId",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "1",
|
||
|
|
"type": "t_userDefinedValueType(RequestId)5236"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3065,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "filledAt",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "2",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3067,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "slotIndex",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "3",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3070,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "currentCollateral",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "4",
|
||
|
|
"type": "t_uint256"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"astId": 3072,
|
||
|
|
"contract": "contracts/Marketplace.sol:Marketplace",
|
||
|
|
"label": "host",
|
||
|
|
"offset": 0,
|
||
|
|
"slot": "5",
|
||
|
|
"type": "t_address"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"numberOfBytes": "192"
|
||
|
|
},
|
||
|
|
"t_uint16": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "uint16",
|
||
|
|
"numberOfBytes": "2"
|
||
|
|
},
|
||
|
|
"t_uint256": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "uint256",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_uint64": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "uint64",
|
||
|
|
"numberOfBytes": "8"
|
||
|
|
},
|
||
|
|
"t_uint8": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "uint8",
|
||
|
|
"numberOfBytes": "1"
|
||
|
|
},
|
||
|
|
"t_userDefinedValueType(Period)4527": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "Periods.Period",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_userDefinedValueType(RequestId)5236": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "RequestId",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
},
|
||
|
|
"t_userDefinedValueType(SlotId)5238": {
|
||
|
|
"encoding": "inplace",
|
||
|
|
"label": "SlotId",
|
||
|
|
"numberOfBytes": "32"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|