obsidian-desci_Obsidian-Desci/artifacts/ExampleClient2.json

349 lines
63 KiB
JSON
Raw Normal View History

2024-10-28 14:25:46 +00:00
{
"address": "0x1b3A590C6c9be95C83155E73aE1972D1c7e40140",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "dealId",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "dataId",
"type": "string"
}
],
"name": "JobCompleted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "JobCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_jobID",
"type": "uint256"
}
],
"name": "getJobResult",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_jobManagerAddress",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "runCowsay",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_jobManagerAddress",
"type": "address"
}
],
"name": "setJobManagerAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "dealId",
"type": "string"
},
{
"internalType": "string",
"name": "dataId",
"type": "string"
}
],
"name": "submitResults",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"transactionHash": "0xe5a9b186fd6393f406cec7e52c323161d6db3024f8ddf0a499691f81584c5429",
"receipt": {
"to": null,
"from": "0x23f318fAe637F7F7081D71d2ECD62cb62D27ac4f",
"contractAddress": "0xA943d77aA8669975643c98b8cB4c337d3C7eEb6a",
"transactionIndex": 48,
"gasUsed": "1212230",
"logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000004000000000000000000000000020000000000000000000800000000000000000000000000000000400001000000000000000000000000000000001000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000020000000000000",
"blockHash": "0x484ba5643cf9c66df2c230f1b1678a82fe290963b57edbe07a5d61ce50df82f5",
"transactionHash": "0xe5a9b186fd6393f406cec7e52c323161d6db3024f8ddf0a499691f81584c5429",
"logs": [
{
"transactionIndex": 48,
"blockNumber": 4609903,
"transactionHash": "0xe5a9b186fd6393f406cec7e52c323161d6db3024f8ddf0a499691f81584c5429",
"address": "0xA943d77aA8669975643c98b8cB4c337d3C7eEb6a",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000023f318fae637f7f7081d71d2ecd62cb62d27ac4f"
],
"data": "0x",
"logIndex": 26,
"blockHash": "0x484ba5643cf9c66df2c230f1b1678a82fe290963b57edbe07a5d61ce50df82f5"
}
],
"blockNumber": 4609903,
"cumulativeGasUsed": "6363929",
"status": 1,
"byzantium": true
},
"args": [],
"numDeployments": 1,
"solcInputHash": "26a3d6e19028b7f1dccb6c7997bc34c1",
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"dealId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"dataId\",\"type\":\"string\"}],\"name\":\"JobCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"JobCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_jobID\",\"type\":\"uint256\"}],\"name\":\"getJobResult\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_jobManagerAddress\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"runCowsay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_jobManagerAddress\",\"type\":\"address\"}],\"name\":\"setJobManagerAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"dealId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"dataId\",\"type\":\"string\"}],\"name\":\"submitResults\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ExampleClient.sol\":\"ExampleClient\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../util
"bytecode": "0x608060405234801561000f575f80fd5b5061002c61002161003160201b60201c565b61003860201b60201c565b6100f9565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611481806101065f395ff3fe608060405234801561000f575f80fd5b5060043610610086575f3560e01c8063c4d66de811610059578063c4d66de8146100fe578063cabc00d11461011a578063ec67df4c14610136578063f2fde38b1461015257610086565b80633b89dcab1461008a5780636c0f1f58146100ba578063715018a6146100d65780638da5cb5b146100e0575b5f80fd5b6100a4600480360381019061009f919061089c565b61016e565b6040516100b19190610951565b60405180910390f35b6100d460048036038101906100cf9190610a9d565b61020f565b005b6100de61026e565b005b6100e8610281565b6040516100f59190610b64565b60405180910390f35b61011860048036038101906101139190610ba7565b6102a8565b005b610134600480360381019061012f9190610bd2565b6103e7565b005b610150600480360381019061014b9190610ba7565b610554565b005b61016c60048036038101906101679190610ba7565b61066e565b005b606060035f8381526020019081526020015f20805461018c90610c46565b80601f01602080910402602001604051908101604052809291908181526020018280546101b890610c46565b80156102035780601f106101da57610100808354040283529160200191610203565b820191905f5260205f20905b8154815290600101906020018083116101e657829003601f168201915b50505050509050919050565b8060035f8581526020019081526020015f20908161022d9190610e13565b507f3849c58b4b39b379bddc5973e71a10ded174f54140916d81986c7eec092e5c4283838360405161026193929190610ef1565b60405180910390a1505050565b6102766106f0565b61027f5f61076e565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f8060159054906101000a900460ff161590508080156102d9575060015f60149054906101000a900460ff1660ff16105b8061030757506102e83061082f565b158015610306575060015f60149054906101000a900460ff1660ff16145b5b610346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033d90610fa4565b60405180910390fd5b60015f60146101000a81548160ff021916908360ff16021790555080156103825760015f60156101000a81548160ff0219169083151502179055505b61038b82610554565b80156103e3575f8060156101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516103da9190611007565b60405180910390a15b5050565b5f600167ffffffffffffffff81111561040357610402610979565b5b60405190808252806020026020018201604052801561043657816020015b60608152602001906001900390816104215790505b5090508160405160200161044a91906110a4565b604051602081830303815290604052815f8151811061046c5761046b6110c5565b5b60200260200101819052505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c75555fa83336040518363ffffffff1660e01b81526004016104d492919061123f565b6020604051808303815f875af11580156104f0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105149190611294565b90507fb63f0fdfb200b05c8b95fb4dcf8f8abd30f0b6884d532792e705afab4f37380a81846040516105479291906112bf565b60405180910390a1505050565b61055c6106f0565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c190611337565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6106766106f0565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036106e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106db906113c5565b60405180910390fd5b6106ed8161076e565b50565b
"deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610086575f3560e01c8063c4d66de811610059578063c4d66de8146100fe578063cabc00d11461011a578063ec67df4c14610136578063f2fde38b1461015257610086565b80633b89dcab1461008a5780636c0f1f58146100ba578063715018a6146100d65780638da5cb5b146100e0575b5f80fd5b6100a4600480360381019061009f919061089c565b61016e565b6040516100b19190610951565b60405180910390f35b6100d460048036038101906100cf9190610a9d565b61020f565b005b6100de61026e565b005b6100e8610281565b6040516100f59190610b64565b60405180910390f35b61011860048036038101906101139190610ba7565b6102a8565b005b610134600480360381019061012f9190610bd2565b6103e7565b005b610150600480360381019061014b9190610ba7565b610554565b005b61016c60048036038101906101679190610ba7565b61066e565b005b606060035f8381526020019081526020015f20805461018c90610c46565b80601f01602080910402602001604051908101604052809291908181526020018280546101b890610c46565b80156102035780601f106101da57610100808354040283529160200191610203565b820191905f5260205f20905b8154815290600101906020018083116101e657829003601f168201915b50505050509050919050565b8060035f8581526020019081526020015f20908161022d9190610e13565b507f3849c58b4b39b379bddc5973e71a10ded174f54140916d81986c7eec092e5c4283838360405161026193929190610ef1565b60405180910390a1505050565b6102766106f0565b61027f5f61076e565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f8060159054906101000a900460ff161590508080156102d9575060015f60149054906101000a900460ff1660ff16105b8061030757506102e83061082f565b158015610306575060015f60149054906101000a900460ff1660ff16145b5b610346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033d90610fa4565b60405180910390fd5b60015f60146101000a81548160ff021916908360ff16021790555080156103825760015f60156101000a81548160ff0219169083151502179055505b61038b82610554565b80156103e3575f8060156101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516103da9190611007565b60405180910390a15b5050565b5f600167ffffffffffffffff81111561040357610402610979565b5b60405190808252806020026020018201604052801561043657816020015b60608152602001906001900390816104215790505b5090508160405160200161044a91906110a4565b604051602081830303815290604052815f8151811061046c5761046b6110c5565b5b60200260200101819052505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c75555fa83336040518363ffffffff1660e01b81526004016104d492919061123f565b6020604051808303815f875af11580156104f0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105149190611294565b90507fb63f0fdfb200b05c8b95fb4dcf8f8abd30f0b6884d532792e705afab4f37380a81846040516105479291906112bf565b60405180910390a1505050565b61055c6106f0565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c190611337565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6106766106f0565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036106e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106db906113c5565b60405180910390fd5b6106ed8161076e565b50565b6106f8610851565b73ffffffffffffffffffffffffffffffffffffffff16610716610281565b73ffffffffffffffffffffffffffffffffffffffff161461076c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107639061142d565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffff
"devdoc": {
"events": {
"Initialized(uint8)": {
"details": "Triggered when the contract has been initialized or reinitialized."
}
},
"kind": "dev",
"methods": {
"owner()": {
"details": "Returns the address of the current owner."
},
"renounceOwnership()": {
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 506,
"contract": "contracts/ExampleClient.sol:ExampleClient",
"label": "_owner",
"offset": 0,
"slot": "0",
"type": "t_address"
},
{
"astId": 6,
"contract": "contracts/ExampleClient.sol:ExampleClient",
"label": "_initialized",
"offset": 20,
"slot": "0",
"type": "t_uint8"
},
{
"astId": 9,
"contract": "contracts/ExampleClient.sol:ExampleClient",
"label": "_initializing",
"offset": 21,
"slot": "0",
"type": "t_bool"
},
{
"astId": 1571,
"contract": "contracts/ExampleClient.sol:ExampleClient",
"label": "jobManagerAddress",
"offset": 0,
"slot": "1",
"type": "t_address"
},
{
"astId": 1574,
"contract": "contracts/ExampleClient.sol:ExampleClient",
"label": "jobManagerContract",
"offset": 0,
"slot": "2",
"type": "t_contract(ILilypadJobManager)1816"
},
{
"astId": 1578,
"contract": "contracts/ExampleClient.sol:ExampleClient",
"label": "jobResults",
"offset": 0,
"slot": "3",
"type": "t_mapping(t_uint256,t_string_storage)"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_bool": {
"encoding": "inplace",
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(ILilypadJobManager)1816": {
"encoding": "inplace",
"label": "contract ILilypadJobManager",
"numberOfBytes": "20"
},
"t_mapping(t_uint256,t_string_storage)": {
"encoding": "mapping",
"key": "t_uint256",
"label": "mapping(uint256 => string)",
"numberOfBytes": "32",
"value": "t_string_storage"
},
"t_string_storage": {
"encoding": "bytes",
"label": "string",
"numberOfBytes": "32"
},
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"encoding": "inplace",
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}