codex-contracts-eth/deployments/taiko_test/Marketplace.json

1687 lines
174 KiB
JSON
Raw Normal View History

2023-06-19 12:11:09 +00:00
{
"address": "0x948CF9291b77Bd7ad84781b9047129Addf1b894F",
2023-06-19 12:11:09 +00:00
"abi": [
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "token_",
"type": "address"
},
{
"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": "struct ProofConfig",
"name": "proofs",
"type": "tuple"
}
],
"internalType": "struct MarketplaceConfig",
"name": "configuration",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "SlotId",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "proof",
"type": "bytes"
}
],
"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,
2023-06-19 12:11:09 +00:00
"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"
2023-06-19 12:11:09 +00:00
}
],
"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"
2023-06-19 12:11:09 +00:00
}
],
"name": "StorageRequested",
"type": "event"
},
{
"inputs": [],
"name": "config",
"outputs": [
{
"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": "struct ProofConfig",
"name": "proofs",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "RequestId",
"name": "requestId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "slotIndex",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "proof",
"type": "bytes"
}
],
"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"
},
{
"components": [
{
"internalType": "uint64",
"name": "totalChunks",
"type": "uint64"
}
],
"internalType": "struct Erasure",
"name": "erasure",
"type": "tuple"
},
{
"components": [
{
"internalType": "bytes",
"name": "u",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "publicKey",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "name",
"type": "bytes"
}
],
"internalType": "struct PoR",
"name": "por",
"type": "tuple"
}
],
"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"
},
{
"components": [
{
"internalType": "uint64",
"name": "totalChunks",
"type": "uint64"
}
],
"internalType": "struct Erasure",
"name": "erasure",
"type": "tuple"
},
{
"components": [
{
"internalType": "bytes",
"name": "u",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "publicKey",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "name",
"type": "bytes"
}
],
"internalType": "struct PoR",
"name": "por",
"type": "tuple"
}
],
"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": "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"
},
{
"components": [
{
"internalType": "uint64",
"name": "totalChunks",
"type": "uint64"
}
],
"internalType": "struct Erasure",
"name": "erasure",
"type": "tuple"
},
{
"components": [
{
"internalType": "bytes",
"name": "u",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "publicKey",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "name",
"type": "bytes"
}
],
"internalType": "struct PoR",
"name": "por",
"type": "tuple"
}
],
"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"
},
{
"internalType": "bytes",
"name": "proof",
"type": "bytes"
}
],
"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": "0x20ae209f295c34cb2a1379c63c5d9a82b29a1730fb76f7d904a37aa3bb2cdbbb",
2023-06-19 12:11:09 +00:00
"receipt": {
"to": null,
"from": "0xD40C3aED27Cb03CC671b66Fd52d81AE9d8702BE4",
"contractAddress": "0x948CF9291b77Bd7ad84781b9047129Addf1b894F",
"transactionIndex": 1,
"gasUsed": "3504339",
2023-06-19 12:11:09 +00:00
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x5e123f5a919bef312d06824a618e0f06446a57f1777e6cd462da37fa7c246dcb",
"transactionHash": "0x20ae209f295c34cb2a1379c63c5d9a82b29a1730fb76f7d904a37aa3bb2cdbbb",
2023-06-19 12:11:09 +00:00
"logs": [],
"blockNumber": 1857256,
"cumulativeGasUsed": "3632196",
2023-06-19 12:11:09 +00:00
"status": 1,
"byzantium": true
},
"args": [
"0x95658FdA29e3b547107c95c11dD5e4a1A034C4AB",
{
"collateral": {
"repairRewardPercentage": 10,
"maxNumberOfSlashes": 5,
"slashCriterion": 3,
"slashPercentage": 10
},
"proofs": {
"period": 10,
"timeout": 5,
"downtime": 64
}
}
],
"numDeployments": 2,
"solcInputHash": "1f43413075cc2b565de996acf5469041",
"metadata": "{\"compiler\":{\"version\":\"0.8.8+commit.dddeac2f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token_\",\"type\":\"address\"},{\"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\":\"struct ProofConfig\",\"name\":\"proofs\",\"type\":\"tuple\"}],\"internalType\":\"struct MarketplaceConfig\",\"name\":\"configuration\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"SlotId\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"}],\"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\":[{\"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\":\"struct ProofConfig\",\"name\":\"proofs\"
"bytecode": "0x60c06040523480156200001157600080fd5b506040516200401d3803806200401d833981016040819052620000349162000373565b602081015180516080526101004311620000955760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420626c6f636b206865696768740000000000000060448201526064015b60405180910390fd5b80516000556020810151600155604001516002805460ff191660ff928316179055606083901b6001600160601b03191660a0528151516064911611156200011f5760405162461bcd60e51b815260206004820152601560248201527f4d757374206265206c657373207468616e20313030000000000000000000000060448201526064016200008c565b606481600001516060015160ff1611156200017d5760405162461bcd60e51b815260206004820152601560248201527f4d757374206265206c657373207468616e20313030000000000000000000000060448201526064016200008c565b8051606081015160209091015160649162000198916200044f565b60ff161115620001eb5760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d20736c617368696e672065786365656473203130302500000060448201526064016200008c565b80518051600a805460208085015160408087015160609097015160ff9081166401000000000260ff60201b1961ffff90991662010000029890981664ffffff0000199382166101000261ffff199096169782169790971794909417919091169490941794909417909155928201518051600b5591820151600c550151600d80549190921660ff19919091161790555062000487565b604080519081016001600160401b0381118282101715620002b157634e487b7160e01b600052604160045260246000fd5b60405290565b604051608081016001600160401b0381118282101715620002b157634e487b7160e01b600052604160045260246000fd5b805160ff81168114620002fa57600080fd5b919050565b6000606082840312156200031257600080fd5b604051606081016001600160401b03811182821017156200034357634e487b7160e01b600052604160045260246000fd5b806040525080915082518152602083015160208201526200036760408401620002e8565b60408201525092915050565b6000808284036101008112156200038957600080fd5b83516001600160a01b0381168114620003a157600080fd5b9250601f190160e0811215620003b657600080fd5b620003c062000280565b6080821215620003cf57600080fd5b620003d9620002b7565b9150620003e960208601620002e8565b8252620003f960408601620002e8565b6020830152606085015161ffff811681146200041457600080fd5b60408301526200042760808601620002e8565b60608301528181526200043e8660a08701620002ff565b602082015280925050509250929050565b600060ff821660ff84168160ff04811182151516156200047f57634e487b7160e01b600052601160045260246000fd5b029392505050565b60805160a05160601c613b51620004cc6000396000818161044201528181611222015281816121a9015261279c01526000818161299e0152612a9f0152613b516000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80636e2b54ee116100d8578063b396dc791161008c578063f752196b11610066578063f752196b146103fd578063fb1e61ca1461041d578063fc0c546a1461043d57600080fd5b8063b396dc79146103b7578063be5cdc48146103d7578063c0cc4add146103ea57600080fd5b80639777b72c116100bd5780639777b72c14610379578063a29c29a414610381578063a3a0807e1461039457600080fd5b80636e2b54ee146102a157806379502c55146102b457600080fd5b80634641dce61161012f5780636368a471116101145780636368a47114610237578063645116d81461024a5780636b00c8cf1461025d57600080fd5b80634641dce6146101fd5780635da738351461022257600080fd5b806308695fcd1161016057806308695fcd146101c25780630eb6c86f146101d7578063458d2bf1146101ea57600080fd5b806302fa8e651461017c57806305b90773146101a2575b600080fd5b61018f61018a366004612d16565b610464565b6040519081526020015b60405180910390f35b6101b56101b0366004612d16565b6104db565b6040516101999190612d66565b6101d56101d0366004612d79565b6105cd565b005b6101d56101e5366004612d9b565b610720565b61018f6101f8366004612d16565b6108da565b61021061020b366004612d16565b6108f3565b60405160ff9091168152602001610199565b61022a610906565b6040516101999190612dd7565b6101d5610245366004612e5d565b61092d565b6101d5610258366004612eb0565b610c0b565b61028961026b366004612d16565b6000908152601060205260409020600401546001600160a01b031690565b6040516001600160a01b039091168152602001610199565b6101d56102af366004612d16565b610d41565b60408051608081018252600a5460ff80821683526101008204811660208085019190915261ffff6201000084041684860152640100000000909204811660608085019190915284519081018552600b548152600c5492810192909252600d5416928101929092526103229182565b60408051835160ff
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101775760003560e01c80636e2b54ee116100d8578063b396dc791161008c578063f752196b11610066578063f752196b146103fd578063fb1e61ca1461041d578063fc0c546a1461043d57600080fd5b8063b396dc79146103b7578063be5cdc48146103d7578063c0cc4add146103ea57600080fd5b80639777b72c116100bd5780639777b72c14610379578063a29c29a414610381578063a3a0807e1461039457600080fd5b80636e2b54ee146102a157806379502c55146102b457600080fd5b80634641dce61161012f5780636368a471116101145780636368a47114610237578063645116d81461024a5780636b00c8cf1461025d57600080fd5b80634641dce6146101fd5780635da738351461022257600080fd5b806308695fcd1161016057806308695fcd146101c25780630eb6c86f146101d7578063458d2bf1146101ea57600080fd5b806302fa8e651461017c57806305b90773146101a2575b600080fd5b61018f61018a366004612d16565b610464565b6040519081526020015b60405180910390f35b6101b56101b0366004612d16565b6104db565b6040516101999190612d66565b6101d56101d0366004612d79565b6105cd565b005b6101d56101e5366004612d9b565b610720565b61018f6101f8366004612d16565b6108da565b61021061020b366004612d16565b6108f3565b60405160ff9091168152602001610199565b61022a610906565b6040516101999190612dd7565b6101d5610245366004612e5d565b61092d565b6101d5610258366004612eb0565b610c0b565b61028961026b366004612d16565b6000908152601060205260409020600401546001600160a01b031690565b6040516001600160a01b039091168152602001610199565b6101d56102af366004612d16565b610d41565b60408051608081018252600a5460ff80821683526101008204811660208085019190915261ffff6201000084041684860152640100000000909204811660608085019190915284519081018552600b548152600c5492810192909252600d5416928101929092526103229182565b60408051835160ff90811682526020808601518216818401528584015161ffff1683850152606095860151821695830195909552835160808301529383015160a082015291015190911660c082015260e001610199565b61022a6112b2565b6101d561038f366004612d16565b6112d1565b6103a76103a2366004612d16565b611480565b6040519015158152602001610199565b6103ca6103c5366004612d16565b6114b5565b6040516101999190613078565b6101b56103e5366004612d16565b611885565b6103a76103f8366004612d16565b611955565b61018f61040b366004612d16565b60009081526005602052604090205490565b61043061042b366004612d16565b611968565b60405161019991906130aa565b6102897f000000000000000000000000000000000000000000000000000000000000000081565b6000818152600f602052604081206003015481610480846104db565b9050600081600481111561049657610496612d2f565b14806104b3575060018160048111156104b1576104b1612d2f565b145b156104bf575092915050565b6104d3826104ce6001426130d3565b611d01565b949350505050565b6000818152600e602052604081205482906001600160a01b03166105385760405162461bcd60e51b815260206004820152600f60248201526e155b9adb9bdddb881c995c5d595cdd608a1b60448201526064015b60405180910390fd5b6000838152600f6020526040812090815460ff16600481111561055d5761055d612d2f565b14801561057a57506000848152600e60205260409020600d015442115b156105895760029250506105c7565b6001815460ff1660048111156105a1576105a1612d2f565b1480156105b15750806003015442115b156105c05760039250506105c7565b5460ff1691505b50919050565b60016105d883611885565b60048111156105e9576105e9612d2f565b146106365760405162461bcd60e51b815260206004820152601960248201527f536c6f74206e6f7420616363657074696e672070726f6f667300000000000000604482015260640161052f565b6106408282611d19565b600082815260106020908152604080832060018101548452600e909252909120600a5461ffff62010000909104166106848560009081526005602052604090205490565b61068e9190613100565b61071a57600a5460068201546000916064916106b591640100000000900460ff1690613114565b6106bf9190613133565b9050808360030160008282546106d591906130d3565b9091555050600a54600086815260056020526040902054610100820460ff169162010000900461ffff169061070a9190613133565b106107185761071885611f46565b505b50505050565b3361072e602083018361315c565b6001600160a01b0316146107845760405162461bcd60e51b815260206004820152601660248201527f496e76616c696420636c69656e74206164647265737300000000000000000000604482015260640161052f565b600061079761079283613412565b6120e5565b6000818152600e60205260409020549091506001600160a01b0316156107ff5760405162461bcd60e51b815260206004820152601660248201527f5265717565737420616c72656164792065786973747300000000000000000000
2023-06-19 12:11:09 +00:00
"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": 3632,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_config",
"offset": 0,
"slot": "0",
"type": "t_struct(ProofConfig)2216_storage"
2023-06-19 12:11:09 +00:00
},
{
"astId": 3660,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_slotStarts",
"offset": 0,
"slot": "3",
"type": "t_mapping(t_userDefinedValueType(SlotId)4186,t_uint256)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 3665,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_probabilities",
"offset": 0,
"slot": "4",
"type": "t_mapping(t_userDefinedValueType(SlotId)4186,t_uint256)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 3670,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_missed",
"offset": 0,
"slot": "5",
"type": "t_mapping(t_userDefinedValueType(SlotId)4186,t_uint256)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 3678,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_received",
"offset": 0,
"slot": "6",
"type": "t_mapping(t_userDefinedValueType(SlotId)4186,t_mapping(t_userDefinedValueType(Period)3491,t_bool))"
2023-06-19 12:11:09 +00:00
},
{
"astId": 3686,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_missing",
"offset": 0,
"slot": "7",
"type": "t_mapping(t_userDefinedValueType(SlotId)4186,t_mapping(t_userDefinedValueType(Period)3491,t_bool))"
2023-06-19 12:11:09 +00:00
},
{
"astId": 4364,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_requestsPerClient",
"offset": 0,
"slot": "8",
"type": "t_mapping(t_address,t_struct(Bytes32Set)1781_storage)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 4369,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_slotsPerHost",
"offset": 0,
"slot": "9",
"type": "t_mapping(t_address,t_struct(Bytes32Set)1781_storage)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2324,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "config",
"offset": 0,
"slot": "10",
"type": "t_struct(MarketplaceConfig)2199_storage"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2330,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_requests",
2023-06-19 12:11:09 +00:00
"offset": 0,
"slot": "14",
"type": "t_mapping(t_userDefinedValueType(RequestId)4184,t_struct(Request)4199_storage)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2336,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_requestContexts",
2023-06-19 12:11:09 +00:00
"offset": 0,
"slot": "15",
"type": "t_mapping(t_userDefinedValueType(RequestId)4184,t_struct(RequestContext)2355_storage)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2342,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_slots",
2023-06-19 12:11:09 +00:00
"offset": 0,
"slot": "16",
"type": "t_mapping(t_userDefinedValueType(SlotId)4186,t_struct(Slot)2369_storage)"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2345,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_marketplaceTotals",
2023-06-19 12:11:09 +00:00
"offset": 0,
"slot": "17",
"type": "t_struct(MarketplaceTotals)3486_storage"
2023-06-19 12:11:09 +00:00
}
],
"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_bytes_storage": {
"encoding": "bytes",
"label": "bytes",
"numberOfBytes": "32"
},
"t_enum(RequestState)4239": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "enum RequestState",
"numberOfBytes": "1"
},
"t_enum(SlotState)4245": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "enum SlotState",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_struct(Bytes32Set)1781_storage)": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_address",
"label": "mapping(address => struct EnumerableSet.Bytes32Set)",
"numberOfBytes": "32",
"value": "t_struct(Bytes32Set)1781_storage"
2023-06-19 12:11:09 +00:00
},
"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)3491,t_bool)": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_userDefinedValueType(Period)3491",
2023-06-19 12:11:09 +00:00
"label": "mapping(Periods.Period => bool)",
"numberOfBytes": "32",
"value": "t_bool"
},
"t_mapping(t_userDefinedValueType(RequestId)4184,t_struct(Request)4199_storage)": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_userDefinedValueType(RequestId)4184",
2023-06-19 12:11:09 +00:00
"label": "mapping(RequestId => struct Request)",
"numberOfBytes": "32",
"value": "t_struct(Request)4199_storage"
2023-06-19 12:11:09 +00:00
},
"t_mapping(t_userDefinedValueType(RequestId)4184,t_struct(RequestContext)2355_storage)": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_userDefinedValueType(RequestId)4184",
2023-06-19 12:11:09 +00:00
"label": "mapping(RequestId => struct Marketplace.RequestContext)",
"numberOfBytes": "32",
"value": "t_struct(RequestContext)2355_storage"
2023-06-19 12:11:09 +00:00
},
"t_mapping(t_userDefinedValueType(SlotId)4186,t_mapping(t_userDefinedValueType(Period)3491,t_bool))": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_userDefinedValueType(SlotId)4186",
2023-06-19 12:11:09 +00:00
"label": "mapping(SlotId => mapping(Periods.Period => bool))",
"numberOfBytes": "32",
"value": "t_mapping(t_userDefinedValueType(Period)3491,t_bool)"
2023-06-19 12:11:09 +00:00
},
"t_mapping(t_userDefinedValueType(SlotId)4186,t_struct(Slot)2369_storage)": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_userDefinedValueType(SlotId)4186",
2023-06-19 12:11:09 +00:00
"label": "mapping(SlotId => struct Marketplace.Slot)",
"numberOfBytes": "32",
"value": "t_struct(Slot)2369_storage"
2023-06-19 12:11:09 +00:00
},
"t_mapping(t_userDefinedValueType(SlotId)4186,t_uint256)": {
2023-06-19 12:11:09 +00:00
"encoding": "mapping",
"key": "t_userDefinedValueType(SlotId)4186",
2023-06-19 12:11:09 +00:00
"label": "mapping(SlotId => uint256)",
"numberOfBytes": "32",
"value": "t_uint256"
},
"t_string_storage": {
"encoding": "bytes",
"label": "string",
"numberOfBytes": "32"
},
"t_struct(Ask)4214_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Ask",
"members": [
{
"astId": 4201,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "slots",
"offset": 0,
"slot": "0",
"type": "t_uint64"
},
{
"astId": 4203,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "slotSize",
"offset": 0,
"slot": "1",
"type": "t_uint256"
},
{
"astId": 4205,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "duration",
"offset": 0,
"slot": "2",
"type": "t_uint256"
},
{
"astId": 4207,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "proofProbability",
"offset": 0,
"slot": "3",
"type": "t_uint256"
},
{
"astId": 4209,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "reward",
"offset": 0,
"slot": "4",
"type": "t_uint256"
},
{
"astId": 4211,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "collateral",
"offset": 0,
"slot": "5",
"type": "t_uint256"
},
{
"astId": 4213,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "maxSlotLoss",
"offset": 0,
"slot": "6",
"type": "t_uint64"
}
],
"numberOfBytes": "224"
},
"t_struct(Bytes32Set)1781_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct EnumerableSet.Bytes32Set",
"members": [
{
"astId": 1780,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_inner",
"offset": 0,
"slot": "0",
"type": "t_struct(Set)1587_storage"
2023-06-19 12:11:09 +00:00
}
],
"numberOfBytes": "64"
},
"t_struct(CollateralConfig)2209_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct CollateralConfig",
"members": [
{
"astId": 2202,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "repairRewardPercentage",
"offset": 0,
"slot": "0",
"type": "t_uint8"
},
{
"astId": 2204,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "maxNumberOfSlashes",
"offset": 1,
"slot": "0",
"type": "t_uint8"
},
{
"astId": 2206,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "slashCriterion",
"offset": 2,
"slot": "0",
"type": "t_uint16"
},
{
"astId": 2208,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "slashPercentage",
"offset": 4,
"slot": "0",
"type": "t_uint8"
}
],
"numberOfBytes": "32"
},
"t_struct(Content)4223_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Content",
"members": [
{
"astId": 4216,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "cid",
"offset": 0,
"slot": "0",
"type": "t_string_storage"
},
{
"astId": 4219,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "erasure",
"offset": 0,
"slot": "1",
"type": "t_struct(Erasure)4226_storage"
2023-06-19 12:11:09 +00:00
},
{
"astId": 4222,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "por",
"offset": 0,
"slot": "2",
"type": "t_struct(PoR)4233_storage"
2023-06-19 12:11:09 +00:00
}
],
"numberOfBytes": "160"
},
"t_struct(Erasure)4226_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Erasure",
"members": [
{
"astId": 4225,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "totalChunks",
"offset": 0,
"slot": "0",
"type": "t_uint64"
}
],
"numberOfBytes": "32"
},
"t_struct(MarketplaceConfig)2199_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct MarketplaceConfig",
"members": [
{
"astId": 2195,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "collateral",
"offset": 0,
"slot": "0",
"type": "t_struct(CollateralConfig)2209_storage"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2198,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "proofs",
"offset": 0,
"slot": "1",
"type": "t_struct(ProofConfig)2216_storage"
2023-06-19 12:11:09 +00:00
}
],
"numberOfBytes": "128"
},
"t_struct(MarketplaceTotals)3486_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Marketplace.MarketplaceTotals",
2023-06-19 12:11:09 +00:00
"members": [
{
"astId": 3483,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "received",
"offset": 0,
"slot": "0",
2023-06-19 12:11:09 +00:00
"type": "t_uint256"
},
{
"astId": 3485,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "sent",
"offset": 0,
"slot": "1",
2023-06-19 12:11:09 +00:00
"type": "t_uint256"
}
],
"numberOfBytes": "64"
2023-06-19 12:11:09 +00:00
},
"t_struct(PoR)4233_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct PoR",
"members": [
{
"astId": 4228,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "u",
"offset": 0,
"slot": "0",
"type": "t_bytes_storage"
},
{
"astId": 4230,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "publicKey",
"offset": 0,
"slot": "1",
"type": "t_bytes_storage"
},
{
"astId": 4232,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "name",
"offset": 0,
"slot": "2",
"type": "t_bytes_storage"
}
],
"numberOfBytes": "96"
},
"t_struct(ProofConfig)2216_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct ProofConfig",
"members": [
{
"astId": 2211,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "period",
"offset": 0,
"slot": "0",
"type": "t_uint256"
},
{
"astId": 2213,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "timeout",
"offset": 0,
"slot": "1",
"type": "t_uint256"
},
{
"astId": 2215,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "downtime",
"offset": 0,
"slot": "2",
"type": "t_uint8"
}
],
"numberOfBytes": "96"
},
"t_struct(Request)4199_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Request",
"members": [
{
"astId": 4188,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "client",
"offset": 0,
"slot": "0",
"type": "t_address"
},
{
"astId": 4191,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "ask",
"offset": 0,
"slot": "1",
"type": "t_struct(Ask)4214_storage"
2023-06-19 12:11:09 +00:00
},
{
"astId": 4194,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "content",
"offset": 0,
"slot": "8",
"type": "t_struct(Content)4223_storage"
2023-06-19 12:11:09 +00:00
},
{
"astId": 4196,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "expiry",
"offset": 0,
"slot": "13",
"type": "t_uint256"
},
{
"astId": 4198,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "nonce",
"offset": 0,
"slot": "14",
"type": "t_bytes32"
}
],
"numberOfBytes": "480"
},
"t_struct(RequestContext)2355_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Marketplace.RequestContext",
"members": [
{
"astId": 2348,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "state",
"offset": 0,
"slot": "0",
"type": "t_enum(RequestState)4239"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2350,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "slotsFilled",
"offset": 0,
"slot": "1",
"type": "t_uint256"
},
{
"astId": 2352,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "startedAt",
"offset": 0,
"slot": "2",
"type": "t_uint256"
},
{
"astId": 2354,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "endsAt",
"offset": 0,
"slot": "3",
"type": "t_uint256"
}
],
"numberOfBytes": "128"
},
"t_struct(Set)1587_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct EnumerableSet.Set",
"members": [
{
"astId": 1582,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_values",
"offset": 0,
"slot": "0",
"type": "t_array(t_bytes32)dyn_storage"
},
{
"astId": 1586,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "_indexes",
"offset": 0,
"slot": "1",
"type": "t_mapping(t_bytes32,t_uint256)"
}
],
"numberOfBytes": "64"
},
"t_struct(Slot)2369_storage": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "struct Marketplace.Slot",
"members": [
{
"astId": 2358,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "state",
"offset": 0,
"slot": "0",
"type": "t_enum(SlotState)4245"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2361,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "requestId",
"offset": 0,
"slot": "1",
"type": "t_userDefinedValueType(RequestId)4184"
2023-06-19 12:11:09 +00:00
},
{
"astId": 2363,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "slotIndex",
"offset": 0,
"slot": "2",
"type": "t_uint256"
},
{
"astId": 2366,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "currentCollateral",
"offset": 0,
"slot": "3",
"type": "t_uint256"
},
{
"astId": 2368,
2023-06-19 12:11:09 +00:00
"contract": "contracts/Marketplace.sol:Marketplace",
"label": "host",
"offset": 0,
"slot": "4",
"type": "t_address"
}
],
"numberOfBytes": "160"
},
"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)3491": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "Periods.Period",
"numberOfBytes": "32"
},
"t_userDefinedValueType(RequestId)4184": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "RequestId",
"numberOfBytes": "32"
},
"t_userDefinedValueType(SlotId)4186": {
2023-06-19 12:11:09 +00:00
"encoding": "inplace",
"label": "SlotId",
"numberOfBytes": "32"
}
}
}
}