2023-09-04 19:24:13 +00:00
|
|
|
{
|
2023-09-09 06:07:21 +00:00
|
|
|
"address": "0xBDe8cf4f0bA12068e21AEFcba4EE0Ee99ef22665",
|
|
|
|
|
"_format": "hh-sol-artifact-1",
|
|
|
|
|
"contractName": "ExampleClient",
|
|
|
|
|
"sourceName": "contracts/ExampleClient.sol",
|
2023-09-04 19:24:13 +00:00
|
|
|
"abi": [
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "address",
|
|
|
|
|
"name": "contractAddress",
|
|
|
|
|
"type": "address"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
|
"type": "constructor"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"anonymous": false,
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"indexed": false,
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "jobID",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"indexed": false,
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "cid",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "ReceivedJobResults",
|
|
|
|
|
"type": "event"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [],
|
|
|
|
|
"name": "_contractAddress",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "address",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "address"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "view",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [],
|
|
|
|
|
"name": "fetchAllResults",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"components": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "jobID",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "cid",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "httpString",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"internalType": "struct ExampleClient.Result[]",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "tuple[]"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "view",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
2023-09-09 06:07:21 +00:00
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "getModuleCost",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "view",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
2023-09-04 19:24:13 +00:00
|
|
|
{
|
|
|
|
|
"inputs": [],
|
|
|
|
|
"name": "lilypadFee",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "view",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "_jobID",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "_cid",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "receiveJobResults",
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "results",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "jobID",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "cid",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "httpString",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "view",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "sayWhat",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "runCowsay",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "payable",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "params",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "runModule",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "payable",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "prompt",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "runSDXL",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "payable",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "string",
|
|
|
|
|
"name": "prompt",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "runStablediffusion",
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"stateMutability": "payable",
|
|
|
|
|
"type": "function"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"internalType": "uint256",
|
|
|
|
|
"name": "_fee",
|
|
|
|
|
"type": "uint256"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"name": "setLilypadFee",
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
|
"type": "function"
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-09-09 06:07:21 +00:00
|
|
|
"bytecode": "0x6080604052600280553480156200001557600080fd5b50604051620019e7380380620019e783398181016040528101906200003b91906200019f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a49062000258565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200027a565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000167826200013a565b9050919050565b62000179816200015a565b81146200018557600080fd5b50565b60008151905062000199816200016e565b92915050565b600060208284031215620001b857620001b762000135565b5b6000620001c88482850162000188565b91505092915050565b600082825260208201905092915050565b7f4e616976654578616d706c6573436c69656e743a20636f6e747261637420636160008201527f6e6e6f74206265207a65726f2061646472657373000000000000000000000000602082015250565b600062000240603483620001d1565b91506200024d82620001e2565b604082019050919050565b60006020820190508181036000830152620002738162000231565b9050919050565b61175d806200028a6000396000f3fe60806040526004361061009c5760003560e01c8063bd37d3a511610064578063bd37d3a514610194578063cabc00d1146101bd578063d863e416146101ed578063e1dc7a201461022a578063e7ec0c4a14610255578063ef2e0911146102855761009c565b80631b0c27da146100a157806337988767146100e0578063479062291461010b5780634c8f44681461013b5780637a4943621461016b575b600080fd5b3480156100ad57600080fd5b506100c860048036038101906100c39190610b39565b6102b0565b6040516100d793929190610c05565b60405180910390f35b3480156100ec57600080fd5b506100f56103fa565b6040516101029190610c8b565b60405180910390f35b61012560048036038101906101209190610ddb565b61041e565b6040516101329190610e53565b60405180910390f35b61015560048036038101906101509190610e6e565b610541565b6040516101629190610e53565b60405180910390f35b34801561017757600080fd5b50610192600480360381019061018d9190610f17565b610601565b005b3480156101a057600080fd5b506101bb60048036038101906101b69190610b39565b61072a565b005b6101d760048036038101906101d29190610e6e565b610734565b6040516101e49190610e53565b60405180910390f35b3480156101f957600080fd5b50610214600480360381019061020f9190610f77565b6107f4565b6040516102219190610e53565b60405180910390f35b34801561023657600080fd5b5061023f61089c565b60405161024c9190610e53565b60405180910390f35b61026f600480360381019061026a9190610e6e565b6108a2565b60405161027c9190610e53565b60405180910390f35b34801561029157600080fd5b5061029a610962565b6040516102a79190611136565b60405180910390f35b600381815481106102c057600080fd5b90600052602060002090600302016000915090508060000154908060010180546102e990611187565b80601f016020809104026020016040519081016040528092919081815260200182805461031590611187565b80156103625780601f1061033757610100808354040283529160200191610362565b820191906000526020600020905b81548152906001019060200180831161034557829003601f168201915b50505050509080600201805461037790611187565b80601f01602080910402602001604051908101604052809291908181526020018280546103a390611187565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b5050505050905083565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000670de0b6b3a764000060025461043691906111e7565b341460405160200161044790611280565b60405160208183030381529060405290610497576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048e9190611295565b60405180910390fd5b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ce7b1793485856040518463ffffffff1660e01b81526004016104f69291906112b7565b60206040518083038185885af1158015610514573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105399190611303565b905092915050565b6000671bc16d674ec8000060025461055991906111e7565b341460405160200161056a9061137c565b6040
|
|
|
|
|
"deployedBytecode": "0x60806040526004361061009c5760003560e01c8063bd37d3a511610064578063bd37d3a514610194578063cabc00d1146101bd578063d863e416146101ed578063e1dc7a201461022a578063e7ec0c4a14610255578063ef2e0911146102855761009c565b80631b0c27da146100a157806337988767146100e0578063479062291461010b5780634c8f44681461013b5780637a4943621461016b575b600080fd5b3480156100ad57600080fd5b506100c860048036038101906100c39190610b39565b6102b0565b6040516100d793929190610c05565b60405180910390f35b3480156100ec57600080fd5b506100f56103fa565b6040516101029190610c8b565b60405180910390f35b61012560048036038101906101209190610ddb565b61041e565b6040516101329190610e53565b60405180910390f35b61015560048036038101906101509190610e6e565b610541565b6040516101629190610e53565b60405180910390f35b34801561017757600080fd5b50610192600480360381019061018d9190610f17565b610601565b005b3480156101a057600080fd5b506101bb60048036038101906101b69190610b39565b61072a565b005b6101d760048036038101906101d29190610e6e565b610734565b6040516101e49190610e53565b60405180910390f35b3480156101f957600080fd5b50610214600480360381019061020f9190610f77565b6107f4565b6040516102219190610e53565b60405180910390f35b34801561023657600080fd5b5061023f61089c565b60405161024c9190610e53565b60405180910390f35b61026f600480360381019061026a9190610e6e565b6108a2565b60405161027c9190610e53565b60405180910390f35b34801561029157600080fd5b5061029a610962565b6040516102a79190611136565b60405180910390f35b600381815481106102c057600080fd5b90600052602060002090600302016000915090508060000154908060010180546102e990611187565b80601f016020809104026020016040519081016040528092919081815260200182805461031590611187565b80156103625780601f1061033757610100808354040283529160200191610362565b820191906000526020600020905b81548152906001019060200180831161034557829003601f168201915b50505050509080600201805461037790611187565b80601f01602080910402602001604051908101604052809291908181526020018280546103a390611187565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b5050505050905083565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000670de0b6b3a764000060025461043691906111e7565b341460405160200161044790611280565b60405160208183030381529060405290610497576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048e9190611295565b60405180910390fd5b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ce7b1793485856040518463ffffffff1660e01b81526004016104f69291906112b7565b60206040518083038185885af1158015610514573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105399190611303565b905092915050565b6000671bc16d674ec8000060025461055991906111e7565b341460405160200161056a9061137c565b604051602081830303815290604052906105ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b19190611295565b60405180910390fd5b506105fa6040518060400160405280601281526020017f7364786c3a76302e392d6c696c797061643100000000000000000000000000008152508361041e565b9050919050565b6000604051806060016040528085815260200184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018484604051602001610671929190611402565b604051602081830303815290604052815250905060038190806001815401808255809150506001900390600052602060002090600302016000909190919091506000820151816000015560208201518160010190816106d091906115d2565b5060408201518160020190816106e691906115d2565b5050507f22a1da116916c27b56df667a04ad3d734585a27bad5e29cc1e4aeef61f6f1ed384848460405161071c939291906116d1565b60405180910390a150505050565b8060028190555050565b6000670de0b6b3a764000060025461074c91906111e7565b341460405160200161075d90611280565b604051602081830303815290604052906107ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a49190611295565b60405180910390fd5b506107ed6040518060400160405280600d81526020017f636f777361793a76302e302e31000000000000000000000000000000000000008152508361041e565b9050919050
|
2023-09-04 19:24:13 +00:00
|
|
|
"linkReferences": {},
|
|
|
|
|
"deployedLinkReferences": {}
|
|
|
|
|
}
|