diff --git a/packages/foundry/broadcast/Deploy.s.sol/480/run-1731765267.json b/packages/foundry/broadcast/Deploy.s.sol/480/run-1731765267.json new file mode 100644 index 0000000..b09dbf3 --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/480/run-1731765267.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": "0x15aa800da03362f2575a4aca313005cda70fe20f84d3fdf92cec12e780cc05bb", + "transactionType": "CREATE", + "contractName": "MockHumanOracle", + "contractAddress": "0x5b48d6c49c2be6a0290bfc1756c700891861d3be", + "function": null, + "arguments": null, + "transaction": { + "from": "0x4639b9f663c14bad89ddcc16966e85bc81dccd40", + "gas": "0xd67e2", + "value": "0x0", + "input": "0x6080604052348015600f57600080fd5b50610b438061001f6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063aa607a941161005b578063aa607a94146100e8578063b7420702146100fd578063e6b7c0e514610110578063efef28bb1461012357600080fd5b80630bfb705914610082578063163f7522146100a25780639c1f8198146100c5575b600080fd5b61008a610136565b60405161009993929190610818565b60405180910390f35b6100b56100b036600461085b565b6102eb565b6040519015158152602001610099565b6100d86100d336600461088b565b61030b565b60405161009994939291906108a4565b6100fb6100f63660046108ee565b610637565b005b6100fb61010b36600461088b565b610676565b6100fb61011e36600461092d565b6106b1565b6100fb6101313660046109a5565b6106f3565b6040805160028082526060808301845292839283929182906020830190803683370190505093508067ffffffffffffffff81111561017657610176610a57565b6040519080825280602002602001820160405280156101a957816020015b60608152602001906001900390816101945790505b5092508067ffffffffffffffff8111156101c5576101c5610a57565b6040519080825280602002602001820160405280156101ee578160200160208202803683370190505b50915060018460008151811061020657610206610a6d565b602002602001018181525050604051806060016040528060218152602001610ac4602191398360008151811061023e5761023e610a6d565b60200260200101819052506103e88260008151811061025f5761025f610a6d565b60200260200101818152505060028460018151811061028057610280610a6d565b602002602001018181525050604051806060016040528060298152602001610ae560299139836001815181106102b8576102b8610a6d565b60200260200101819052506101f4826001815181106102d9576102d9610a6d565b60200260200101818152505050909192565b60006001600160a01b03821661030357506000919050565b506001919050565b60608060006060846001036104bc57604051806060016040528060218152602001610ac46021913960408051600380825260808201909252919550816020015b606081526020019060019003908161034b57905050925060405180604001604052806008815260200167457468657265756d60c01b8152508360008151811061039657610396610a6d565b6020026020010181905250604051806040016040528060138152602001722134b730b731b29029b6b0b93a1021b430b4b760691b815250836001815181106103e0576103e0610a6d565b602002602001018190525060405180604001604052806008815260200167141bdb1ad8591bdd60c21b8152508360028151811061041f5761041f610a6d565b6020908102919091010152604080516003808252608082019092526103e89350908160200160208202803683370190505090506102588160008151811061046857610468610a6d565b60200260200101818152505061012c8160018151811061048a5761048a610a6d565b6020026020010181815250506064816002815181106104ab576104ab610a6d565b602002602001018181525050610630565b846002036105e457604051806060016040528060298152602001610ae56029913960408051600280825260608201909252919550816020015b60608152602001906001900390816104f5579050509250604051806040016040528060078152602001660556e69737761760cc1b8152508360008151811061053f5761053f610a6d565b6020026020010181905250604051806040016040528060048152602001634161766560e01b8152508360018151811061057a5761057a610a6d565b6020908102919091010152604080516002808252606082019092526101f493509081602001602082028036833701905050905061015e816000815181106105c3576105c3610a6d565b6020026020010181815250506096816001815181106104ab576104ab610a6d565b60408051600080825260208201818152828401909352909550610617565b60608152602001906001900390816106025790505b5060408051600080825260208201909252919450925090505b9193509193565b6040805183815243602082015233917f47c8e83729a89f8b0c23b722e4c21f48295ddfcd683910c564e11e6b6037d01c910160405180910390a2505050565b604051600a8152819033907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439060200160405180910390a350565b6040805183815260208101839052849133917f65658daa50ece7e5d9b3c4700c400745f04137171d9d6896eed2f10437013ee7910160405180910390a3505050565b60007f6912e5abe531ca5f3b6f973f97278ab6731cdec0178a7b3c2c7a5822a3f1732b8787858560405161072a9493929190610a83565b60405180910390a2505050505050565b600081518084526020840193506020830160005b8281101561076c57815186526020958601959091019060010161074e565b5093949350505050565b6000815180845260005b8181101561079c57602081850181015186830182015201610780565b506000602082860101526020601f19601f83011685010191505092915050565b600082825180855260208501945060208160051b8301016020850160005b8381101561080c57601f198584030188526107f6838351610776565b60209889019890935091909101906001016107da565b50909695505050505050565b60608152600061082b606083018661073a565b828103602084015261083d81866107bc565b90508281036040840152610851818561073a565b9695505050505050565b60006020828403121561086d57600080fd5b81356001600160a01b038116811461088457600080fd5b9392505050565b60006020828403121561089d57600080fd5b5035919050565b6080815260006108b76080830187610776565b82810360208401526108c981876107bc565b905084604084015282810360608401526108e3818561073a565b979650505050505050565b6000806000610140848603121561090457600080fd5b8335925060208401359150610140840185101561092057600080fd5b6040840190509250925092565b60008060006060848603121561094257600080fd5b505081359360208301359350604090920135919050565b60008083601f84011261096b57600080fd5b50813567ffffffffffffffff81111561098357600080fd5b6020830191508360208260051b850101111561099e57600080fd5b9250929050565b600080600080600080608087890312156109be57600080fd5b863567ffffffffffffffff8111156109d557600080fd5b8701601f810189136109e657600080fd5b803567ffffffffffffffff8111156109fd57600080fd5b896020828401011115610a0f57600080fd5b60209182019750955087013567ffffffffffffffff811115610a3057600080fd5b610a3c89828a01610959565b979a9699509760408101359660609091013595509350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b606081528360608201528385608083013760006080858301015260006080601f19601f87011683010190508360208301528260408301529594505050505056fe5768617420697320796f7572206661766f7269746520626c6f636b636861696e3f576869636820446546692070726f6a65637420646f20796f7520747275737420746865206d6f73743fa2646970667358221220da6c5dadcbb74b6a17cf240a5009d54bd3816c9af4033f271d6f62c11cfe839264736f6c634300081c0033", + "nonce": "0x5", + "chainId": "0x1e0" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0xafc10", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x15aa800da03362f2575a4aca313005cda70fe20f84d3fdf92cec12e780cc05bb", + "transactionIndex": "0x1", + "blockHash": "0x32018719d1f6955f917042dcdc27775d39a5801bd61e2582bd2c86db4ed54775", + "blockNumber": "0x5ed49d", + "gasUsed": "0xa50a1", + "effectiveGasPrice": "0xf433a", + "blobGasUsed": "0x0", + "from": "0x4639b9f663c14bad89ddcc16966e85bc81dccd40", + "to": null, + "contractAddress": "0x5b48d6c49c2be6a0290bfc1756c700891861d3be", + "l1BaseFeeScalar": "0x21f9", + "l1BlobBaseFee": "0x99f01431", + "l1BlobBaseFeeScalar": "0xc5f4f", + "l1Fee": "0x61a4b786f05", + "l1GasPrice": "0x2e63bda1e", + "l1GasUsed": "0x6d96" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1731765267, + "chain": 480, + "commit": "03e1b4e" +} \ No newline at end of file diff --git a/packages/foundry/broadcast/Deploy.s.sol/480/run-latest.json b/packages/foundry/broadcast/Deploy.s.sol/480/run-latest.json index c0d1f87..b09dbf3 100644 --- a/packages/foundry/broadcast/Deploy.s.sol/480/run-latest.json +++ b/packages/foundry/broadcast/Deploy.s.sol/480/run-latest.json @@ -1,23 +1,18 @@ { "transactions": [ { - "hash": "0xff5ab162f5556a856bc185e39dcb2c8d710b72c9f747521324500764c03a9635", + "hash": "0x15aa800da03362f2575a4aca313005cda70fe20f84d3fdf92cec12e780cc05bb", "transactionType": "CREATE", - "contractName": "HumanOracle", - "contractAddress": "0xdfacddfd6627239c11736506adc48a713671e09a", + "contractName": "MockHumanOracle", + "contractAddress": "0x5b48d6c49c2be6a0290bfc1756c700891861d3be", "function": null, - "arguments": [ - "0x17B354dD2595411ff79041f930e491A4Df39A278", - "1", - "app_485be80eb191bba1e603c1aeb6743660", - "registration" - ], + "arguments": null, "transaction": { "from": "0x4639b9f663c14bad89ddcc16966e85bc81dccd40", - "gas": "0x1d101d", + "gas": "0xd67e2", "value": "0x0", - "input": "0x60c0604052600160805234801561001557600080fd5b50604051611b78380380611b7883398101604081905261003491610199565b600080546001600160a01b0319166001600160a01b0386161790556080839052604051610094906100829061006d90859060200161022b565b60408051601f198184030181529190526100a1565b8260405160200161006d929190610247565b60a0525061026d92505050565b60006008826040516020016100b6919061022b565b60408051601f198184030181529190528051602090910120901c92915050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156101075781810151838201526020016100ef565b50506000910152565b600082601f83011261012157600080fd5b81516001600160401b0381111561013a5761013a6100d6565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610168576101686100d6565b60405281815283820160200185101561018057600080fd5b6101918260208301602087016100ec565b949350505050565b600080600080608085870312156101af57600080fd5b84516001600160a01b03811681146101c657600080fd5b6020860151604087015191955093506001600160401b038111156101e957600080fd5b6101f587828801610110565b606087015190935090506001600160401b0381111561021357600080fd5b61021f87828801610110565b91505092959194509250565b6000825161023d8184602087016100ec565b9190910192915050565b8281526000825161025f8160208501602087016100ec565b919091016020019392505050565b60805160a0516118e661029260003960006105a20152600061056401526118e66000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063a87430ba11610066578063a87430ba14610166578063aa607a94146101a2578063b7420702146101b7578063e6b7c0e5146101ca578063efef28bb146101dd57600080fd5b80630bfb7059146100a3578063163f7522146100c3578063753e9ef0146100e657806391e40730146101115780639c1f819814610143575b600080fd5b6100ab6101f0565b6040516100ba939291906112ab565b60405180910390f35b6100d66100d13660046112ee565b61036e565b60405190151581526020016100ba565b6000546100f9906001600160a01b031681565b6040516001600160a01b0390911681526020016100ba565b61013561011f366004611317565b6001602081905260009182526040909120015481565b6040519081526020016100ba565b610156610151366004611317565b61039c565b6040516100ba9493929190611330565b61018d6101743660046112ee565b6002602052600090815260409020805460019091015482565b604080519283526020830191909152016100ba565b6101b56101b036600461137a565b61046f565b005b6101356101c5366004611317565b6106a3565b6101b56101d83660046113b9565b610761565b6101b56101eb366004611430565b610a01565b6060806060600061020060035490565b9050806001600160401b0381111561021a5761021a6114df565b604051908082528060200260200182016040528015610243578160200160208202803683370190505b509350806001600160401b0381111561025e5761025e6114df565b60405190808252806020026020018201604052801561029157816020015b606081526020019060019003908161027c5790505b509250806001600160401b038111156102ac576102ac6114df565b6040519080825280602002602001820160405280156102d5578160200160208202803683370190505b50915060005b8181101561036757808582815181106102f6576102f66114f5565b60200260200101818152505061030b81610bf2565b84828151811061031d5761031d6114f5565b6020026020010181905250610342816000908152600160208190526040909120015490565b838281518110610354576103546114f5565b60209081029190910101526001016102db565b5050909192565b6001600160a01b0381166000908152600260205260408120541561039457506001919050565b506000919050565b6060806000606060006103bb8660009081526001602052604090205490565b6000878152600160208190526040909120015493509050806001600160401b038111156103ea576103ea6114df565b604051908082528060200260200182016040528015610413578160200160208202803683370190505b50915060005b818110156104505761042b8782610ca8565b83828151811061043d5761043d6114f5565b6020908102919091010152600101610419565b5061045a86610bf2565b61046387610ce3565b94509450509193509193565b33600090815260026020526040902054156104ca5760405162461bcd60e51b815260206004820152601660248201527507573657220616c7265616479207369676e65642075760541b60448201526064015b60405180910390fd5b600082815260046020526040902054339060ff16151560010361052f5760405162461bcd60e51b815260206004820152601e60248201527f6e756c6c69666965724861736820616c7265616479206578697374696e67000060448201526064016104c1565b6000546040516bffffffffffffffffffffffff19606084901b1660208201526001600160a01b0390911690633bc778e39086907f00000000000000000000000000000000000000000000000000000000000000009061059f90603401604051602081830303815290604052610de0565b877f0000000000000000000000000000000000000000000000000000000000000000886040518763ffffffff1660e01b81526004016105e39695949392919061150b565b60006040518083038186803b1580156105fb57600080fd5b505afa15801561060f573d6000803e3d6000fd5b5050506000848152600460209081526040808320805460ff1916600190811790915581518083018352888152438185019081526001600160a01b038816808752600286529584902082518082559151930183905583519081529384019190915293507f47c8e83729a89f8b0c23b722e4c21f48295ddfcd683910c564e11e6b6037d01c910160405180910390a25050505050565b600081436106b082610e15565b6106b983610e43565b6106c39190611559565b106107045760405162461bcd60e51b8152602060048201526011602482015270766f7465207374696c6c2061637469766560781b60448201526064016104c1565b3360006107118286610e71565b905084826001600160a01b03167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438360405161074f91815260200190565b60405180910390a39250505b50919050565b8261076b81610e43565b3360009081526002602052604090206001015411156107d85760405162461bcd60e51b815260206004820152602360248201527f7573657220776173206372656174656420616674657220766f74696e6720626560448201526233bab760e91b60648201526084016104c1565b33600090815260026020526040812054900361082a5760405162461bcd60e51b815260206004820152601160248201527075736572206e6f74206578697374696e6760781b60448201526064016104c1565b600084815260016020526040812054859133905b828110156108a5576000610853838684610ee9565b905080151560010361089c5760405162461bcd60e51b81526020600482015260126024820152711d5cd95c88185b1c9958591e481d9bdd195960721b60448201526064016104c1565b5060010161083e565b5086436108b182610e43565b11156108f65760405162461bcd60e51b81526020600482015260146024820152731d9bdd19481a185cc81b9bdd081cdd185c9d195960621b60448201526064016104c1565b4361090082610e15565b61090983610e43565b6109139190611559565b10156109525760405162461bcd60e51b815260206004820152600e60248201526d1d9bdd19481a185cc8195b99195960921b60448201526064016104c1565b60058611156109a35760405162461bcd60e51b815260206004820152601760248201527f6d6178207374616b696e6720616d6f756e74206973203500000000000000000060448201526064016104c1565b336109b0818a8a8a610f4a565b60408051898152602081018990528a916001600160a01b038416917f65658daa50ece7e5d9b3c4700c400745f04137171d9d6896eed2f10437013ee7910160405180910390a3505050505050505050565b6003546040805160a08101825282815281516020601f8a0181900481028201810190935288815260009280830191908b908b9081908401838280828437600092019190915250505090825250602001610a5a878961159c565b81526020808201879052604090910185905260038054600181018255600091909152825160059091027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b810191825591830151929350839290917fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c0190610ae19082611707565b5060408201518051610afd9160028401916020909101906110fe565b5060608201518160030155608082015181600401555050610b1d82611003565b60038281548110610b3057610b306114f5565b9060005260206000209060050201600001547f6912e5abe531ca5f3b6f973f97278ab6731cdec0178a7b3c2c7a5822a3f1732b60038481548110610b7657610b766114f5565b906000526020600020906005020160010160038581548110610b9a57610b9a6114f5565b90600052602060002090600502016003015460038681548110610bbf57610bbf6114f5565b906000526020600020906005020160040154604051610be0939291906117c5565b60405180910390a25050505050505050565b606060038281548110610c0757610c076114f5565b90600052602060002090600502016001018054610c2390611684565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4f90611684565b8015610c9c5780601f10610c7157610100808354040283529160200191610c9c565b820191906000526020600020905b815481529060010190602001808311610c7f57829003601f168201915b50505050509050919050565b6000828152600160205260408120805483908110610cc857610cc86114f5565b90600052602060002090600202016000015490505b92915050565b606060038281548110610cf857610cf86114f5565b9060005260206000209060050201600201805480602002602001604051908101604052809291908181526020016000905b82821015610dd5578382906000526020600020018054610d4890611684565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7490611684565b8015610dc15780601f10610d9657610100808354040283529160200191610dc1565b820191906000526020600020905b815481529060010190602001808311610da457829003601f168201915b505050505081526020019060010190610d29565b505050509050919050565b6000600882604051602001610df5919061185b565b60408051601f198184030181529190528051602090910120901c92915050565b600060038281548110610e2a57610e2a6114f5565b9060005260206000209060050201600401549050919050565b600060038281548110610e5857610e586114f5565b9060005260206000209060050201600301549050919050565b600080610e7d83611060565b9050610e8a848483610ee9565b610e98576000915050610cdd565b6000610ea58585846110ac565b600085815260016020819052604082200154919250610ec48685610ca8565b9050600083610ed38385611877565b610edd9190611899565b98975050505050505050565b6000828152600160205260408120805483908110610f0957610f096114f5565b600091825260208083206001600160a01b03881684526001600290930201919091019052604090205415610f3f57506001610f43565b5060005b9392505050565b6000838152600160205260409020805482919084908110610f6d57610f6d6114f5565b600091825260208083206001600160a01b03891684526001600290930201820181526040808420949094558683525220805482919084908110610fb257610fb26114f5565b90600052602060002090600202016000016000828254610fd29190611559565b909155505060008381526001602081905260408220018054839290610ff8908490611559565b909155505050505050565b60008181526001602052604081206003805491929184908110611028576110286114f5565b6000918252602082206002600590920201015491505b8181101561105a5782546001908101845560008490520161103e565b50505050565b60008181526001602052604081205460008060005b838110156110a35760006110898783610ca8565b90508084101561109a578093508192505b50600101611075565b50949350505050565b60008281526001602052604081208054839081106110cc576110cc6114f5565b600091825260208083206001600160a01b03881684526001600290930201919091019052604090205490509392505050565b828054828255906000526020600020908101928215611144579160200282015b8281111561114457825182906111349082611707565b509160200191906001019061111e565b50611150929150611154565b5090565b808211156111505760006111688282611171565b50600101611154565b50805461117d90611684565b6000825580601f1061118d575050565b601f0160209004906000526020600020908101906111ab91906111ae565b50565b5b8082111561115057600081556001016111af565b600081518084526020840193506020830160005b828110156111f55781518652602095860195909101906001016111d7565b5093949350505050565b60005b8381101561121a578181015183820152602001611202565b50506000910152565b6000815180845261123b8160208601602086016111ff565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b8381101561129f57601f19858403018852611289838351611223565b602098890198909350919091019060010161126d565b50909695505050505050565b6060815260006112be60608301866111c3565b82810360208401526112d0818661124f565b905082810360408401526112e481856111c3565b9695505050505050565b60006020828403121561130057600080fd5b81356001600160a01b0381168114610f4357600080fd5b60006020828403121561132957600080fd5b5035919050565b6080815260006113436080830187611223565b8281036020840152611355818761124f565b9050846040840152828103606084015261136f81856111c3565b979650505050505050565b6000806000610140848603121561139057600080fd5b833592506020840135915061014084018510156113ac57600080fd5b6040840190509250925092565b6000806000606084860312156113ce57600080fd5b505081359360208301359350604090920135919050565b60008083601f8401126113f757600080fd5b5081356001600160401b0381111561140e57600080fd5b6020830191508360208260051b850101111561142957600080fd5b9250929050565b6000806000806000806080878903121561144957600080fd5b86356001600160401b0381111561145f57600080fd5b8701601f8101891361147057600080fd5b80356001600160401b0381111561148657600080fd5b89602082840101111561149857600080fd5b6020918201975095508701356001600160401b038111156114b857600080fd5b6114c489828a016113e5565b979a9699509760408101359660609091013595509350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006101a0820190508782528660208301528560408301528460608301528360808301526101008360a0840137979650505050505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610cdd57610cdd611543565b604051601f8201601f191681016001600160401b0381118282101715611594576115946114df565b604052919050565b60006001600160401b038311156115b5576115b56114df565b8260051b6115c56020820161156c565b848152908301906020810190368311156115de57600080fd5b845b8381101561167a5780356001600160401b038111156115fe57600080fd5b860136601f82011261160f57600080fd5b80356001600160401b03811115611628576116286114df565b61163b601f8201601f191660200161156c565b81815236602083850101111561165057600080fd5b816020840160208301376000602083830101528086525050506020830192506020810190506115e0565b5095945050505050565b600181811c9082168061169857607f821691505b60208210810361075b57634e487b7160e01b600052602260045260246000fd5b601f82111561170257806000526020600020601f840160051c810160208510156116df5750805b601f840160051c820191505b818110156116ff57600081556001016116eb565b50505b505050565b81516001600160401b03811115611720576117206114df565b6117348161172e8454611684565b846116b8565b6020601f82116001811461176857600083156117505750848201515b600019600385901b1c1916600184901b1784556116ff565b600084815260208120601f198516915b828110156117985787850151825560209485019460019092019101611778565b50848210156117b65786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b6060815260008085546117d781611684565b80606086015260018216600081146117f6576001811461181257611846565b60ff1983166080870152608082151560051b8701019350611846565b88600052602060002060005b8381101561183d5781548882016080015260019091019060200161181e565b87016080019450505b50505060208301949094525060400152919050565b6000825161186d8184602087016111ff565b9190910192915050565b60008261189457634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610cdd57610cdd61154356fea2646970667358221220c4bfe9e7d7f5d5c42b8974ce69eb4c813a3330bc89527737a1f784bf380d9b5c64736f6c634300081c003300000000000000000000000017b354dd2595411ff79041f930e491a4df39a2780000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000246170705f343835626538306562313931626261316536303363316165623637343336363000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c726567697374726174696f6e0000000000000000000000000000000000000000", - "nonce": "0x4", + "input": "0x6080604052348015600f57600080fd5b50610b438061001f6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063aa607a941161005b578063aa607a94146100e8578063b7420702146100fd578063e6b7c0e514610110578063efef28bb1461012357600080fd5b80630bfb705914610082578063163f7522146100a25780639c1f8198146100c5575b600080fd5b61008a610136565b60405161009993929190610818565b60405180910390f35b6100b56100b036600461085b565b6102eb565b6040519015158152602001610099565b6100d86100d336600461088b565b61030b565b60405161009994939291906108a4565b6100fb6100f63660046108ee565b610637565b005b6100fb61010b36600461088b565b610676565b6100fb61011e36600461092d565b6106b1565b6100fb6101313660046109a5565b6106f3565b6040805160028082526060808301845292839283929182906020830190803683370190505093508067ffffffffffffffff81111561017657610176610a57565b6040519080825280602002602001820160405280156101a957816020015b60608152602001906001900390816101945790505b5092508067ffffffffffffffff8111156101c5576101c5610a57565b6040519080825280602002602001820160405280156101ee578160200160208202803683370190505b50915060018460008151811061020657610206610a6d565b602002602001018181525050604051806060016040528060218152602001610ac4602191398360008151811061023e5761023e610a6d565b60200260200101819052506103e88260008151811061025f5761025f610a6d565b60200260200101818152505060028460018151811061028057610280610a6d565b602002602001018181525050604051806060016040528060298152602001610ae560299139836001815181106102b8576102b8610a6d565b60200260200101819052506101f4826001815181106102d9576102d9610a6d565b60200260200101818152505050909192565b60006001600160a01b03821661030357506000919050565b506001919050565b60608060006060846001036104bc57604051806060016040528060218152602001610ac46021913960408051600380825260808201909252919550816020015b606081526020019060019003908161034b57905050925060405180604001604052806008815260200167457468657265756d60c01b8152508360008151811061039657610396610a6d565b6020026020010181905250604051806040016040528060138152602001722134b730b731b29029b6b0b93a1021b430b4b760691b815250836001815181106103e0576103e0610a6d565b602002602001018190525060405180604001604052806008815260200167141bdb1ad8591bdd60c21b8152508360028151811061041f5761041f610a6d565b6020908102919091010152604080516003808252608082019092526103e89350908160200160208202803683370190505090506102588160008151811061046857610468610a6d565b60200260200101818152505061012c8160018151811061048a5761048a610a6d565b6020026020010181815250506064816002815181106104ab576104ab610a6d565b602002602001018181525050610630565b846002036105e457604051806060016040528060298152602001610ae56029913960408051600280825260608201909252919550816020015b60608152602001906001900390816104f5579050509250604051806040016040528060078152602001660556e69737761760cc1b8152508360008151811061053f5761053f610a6d565b6020026020010181905250604051806040016040528060048152602001634161766560e01b8152508360018151811061057a5761057a610a6d565b6020908102919091010152604080516002808252606082019092526101f493509081602001602082028036833701905050905061015e816000815181106105c3576105c3610a6d565b6020026020010181815250506096816001815181106104ab576104ab610a6d565b60408051600080825260208201818152828401909352909550610617565b60608152602001906001900390816106025790505b5060408051600080825260208201909252919450925090505b9193509193565b6040805183815243602082015233917f47c8e83729a89f8b0c23b722e4c21f48295ddfcd683910c564e11e6b6037d01c910160405180910390a2505050565b604051600a8152819033907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439060200160405180910390a350565b6040805183815260208101839052849133917f65658daa50ece7e5d9b3c4700c400745f04137171d9d6896eed2f10437013ee7910160405180910390a3505050565b60007f6912e5abe531ca5f3b6f973f97278ab6731cdec0178a7b3c2c7a5822a3f1732b8787858560405161072a9493929190610a83565b60405180910390a2505050505050565b600081518084526020840193506020830160005b8281101561076c57815186526020958601959091019060010161074e565b5093949350505050565b6000815180845260005b8181101561079c57602081850181015186830182015201610780565b506000602082860101526020601f19601f83011685010191505092915050565b600082825180855260208501945060208160051b8301016020850160005b8381101561080c57601f198584030188526107f6838351610776565b60209889019890935091909101906001016107da565b50909695505050505050565b60608152600061082b606083018661073a565b828103602084015261083d81866107bc565b90508281036040840152610851818561073a565b9695505050505050565b60006020828403121561086d57600080fd5b81356001600160a01b038116811461088457600080fd5b9392505050565b60006020828403121561089d57600080fd5b5035919050565b6080815260006108b76080830187610776565b82810360208401526108c981876107bc565b905084604084015282810360608401526108e3818561073a565b979650505050505050565b6000806000610140848603121561090457600080fd5b8335925060208401359150610140840185101561092057600080fd5b6040840190509250925092565b60008060006060848603121561094257600080fd5b505081359360208301359350604090920135919050565b60008083601f84011261096b57600080fd5b50813567ffffffffffffffff81111561098357600080fd5b6020830191508360208260051b850101111561099e57600080fd5b9250929050565b600080600080600080608087890312156109be57600080fd5b863567ffffffffffffffff8111156109d557600080fd5b8701601f810189136109e657600080fd5b803567ffffffffffffffff8111156109fd57600080fd5b896020828401011115610a0f57600080fd5b60209182019750955087013567ffffffffffffffff811115610a3057600080fd5b610a3c89828a01610959565b979a9699509760408101359660609091013595509350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b606081528360608201528385608083013760006080858301015260006080601f19601f87011683010190508360208301528260408301529594505050505056fe5768617420697320796f7572206661766f7269746520626c6f636b636861696e3f576869636820446546692070726f6a65637420646f20796f7520747275737420746865206d6f73743fa2646970667358221220da6c5dadcbb74b6a17cf240a5009d54bd3816c9af4033f271d6f62c11cfe839264736f6c634300081c0033", + "nonce": "0x5", "chainId": "0x1e0" }, "additionalContracts": [], @@ -27,32 +22,32 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0x1b34ce", + "cumulativeGasUsed": "0xafc10", "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x0", - "transactionHash": "0xff5ab162f5556a856bc185e39dcb2c8d710b72c9f747521324500764c03a9635", - "transactionIndex": "0x3", - "blockHash": "0xe0ccf2904105d15b17db018584638da11d337aa5d06ba772fc8c4455cae251a1", - "blockNumber": "0x5ed38e", - "gasUsed": "0x165cf4", + "transactionHash": "0x15aa800da03362f2575a4aca313005cda70fe20f84d3fdf92cec12e780cc05bb", + "transactionIndex": "0x1", + "blockHash": "0x32018719d1f6955f917042dcdc27775d39a5801bd61e2582bd2c86db4ed54775", + "blockNumber": "0x5ed49d", + "gasUsed": "0xa50a1", "effectiveGasPrice": "0xf433a", "blobGasUsed": "0x0", "from": "0x4639b9f663c14bad89ddcc16966e85bc81dccd40", "to": null, - "contractAddress": "0xdfacddfd6627239c11736506adc48a713671e09a", + "contractAddress": "0x5b48d6c49c2be6a0290bfc1756c700891861d3be", "l1BaseFeeScalar": "0x21f9", - "l1BlobBaseFee": "0x6c1d8d5f", + "l1BlobBaseFee": "0x99f01431", "l1BlobBaseFeeScalar": "0xc5f4f", - "l1Fee": "0xca31a881a14", - "l1GasPrice": "0x307004382", - "l1GasUsed": "0x108c1" + "l1Fee": "0x61a4b786f05", + "l1GasPrice": "0x2e63bda1e", + "l1GasUsed": "0x6d96" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1731764725, + "timestamp": 1731765267, "chain": 480, - "commit": "2cf3ca6" + "commit": "03e1b4e" } \ No newline at end of file diff --git a/packages/foundry/script/Deploy.s.sol b/packages/foundry/script/Deploy.s.sol index 23afef3..f0d7883 100644 --- a/packages/foundry/script/Deploy.s.sol +++ b/packages/foundry/script/Deploy.s.sol @@ -7,11 +7,11 @@ import { DeployHumanOracle } from "./DeployHumanOracle.s.sol"; contract DeployScript is ScaffoldETHDeploy { function run() external { - // DeployMockHumanOracle deployMockHumanOracle = new DeployMockHumanOracle(); - // deployMockHumanOracle.run(); + DeployMockHumanOracle deployMockHumanOracle = new DeployMockHumanOracle(); + deployMockHumanOracle.run(); - DeployHumanOracle deployHumanOracle = new DeployHumanOracle(); - deployHumanOracle.run(); + // DeployHumanOracle deployHumanOracle = new DeployHumanOracle(); + // deployHumanOracle.run(); // deploy more contracts here // DeployMyContract deployMyContract = new DeployMyContract(); diff --git a/packages/nextjs-app/src/contracts/deployedContracts.ts b/packages/nextjs-app/src/contracts/deployedContracts.ts index d3f4718..dd5c15d 100644 --- a/packages/nextjs-app/src/contracts/deployedContracts.ts +++ b/packages/nextjs-app/src/contracts/deployedContracts.ts @@ -288,35 +288,9 @@ const deployedContracts = { }, }, 480: { - HumanOracle: { - address: "0xdfacddfd6627239c11736506adc48a713671e09a", + MockHumanOracle: { + address: "0x5b48d6c49c2be6a0290bfc1756c700891861d3be", abi: [ - { - type: "constructor", - inputs: [ - { - name: "_worldIdAddr", - type: "address", - internalType: "address", - }, - { - name: "_groupId", - type: "uint256", - internalType: "uint256", - }, - { - name: "_appId", - type: "string", - internalType: "string", - }, - { - name: "_action", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, { type: "function", name: "claimRewardForVote", @@ -327,13 +301,7 @@ const deployedContracts = { internalType: "uint256", }, ], - outputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], + outputs: [], stateMutability: "nonpayable", }, { @@ -385,7 +353,7 @@ const deployedContracts = { internalType: "uint256[]", }, ], - stateMutability: "view", + stateMutability: "pure", }, { type: "function", @@ -419,7 +387,7 @@ const deployedContracts = { internalType: "uint256[]", }, ], - stateMutability: "view", + stateMutability: "pure", }, { type: "function", @@ -438,7 +406,7 @@ const deployedContracts = { internalType: "bool", }, ], - stateMutability: "view", + stateMutability: "pure", }, { type: "function", @@ -463,25 +431,6 @@ const deployedContracts = { outputs: [], stateMutability: "nonpayable", }, - { - type: "function", - name: "stakesForVoteIds", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "totalStake", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, { type: "function", name: "submitVotingDecisionWithStake", @@ -497,7 +446,7 @@ const deployedContracts = { internalType: "uint256", }, { - name: "amount", + name: "stake", type: "uint256", internalType: "uint256", }, @@ -505,43 +454,6 @@ const deployedContracts = { outputs: [], stateMutability: "nonpayable", }, - { - type: "function", - name: "users", - inputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - outputs: [ - { - name: "nullifierHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "createdAtBlock", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "worldId", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IWorldID", - }, - ], - stateMutability: "view", - }, { type: "event", name: "RewardClaimed", diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index a947062..c07d695 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -289,35 +289,9 @@ const deployedContracts = { }, }, 480: { - HumanOracle: { - address: "0xdfacddfd6627239c11736506adc48a713671e09a", + MockHumanOracle: { + address: "0x5b48d6c49c2be6a0290bfc1756c700891861d3be", abi: [ - { - type: "constructor", - inputs: [ - { - name: "_worldIdAddr", - type: "address", - internalType: "address", - }, - { - name: "_groupId", - type: "uint256", - internalType: "uint256", - }, - { - name: "_appId", - type: "string", - internalType: "string", - }, - { - name: "_action", - type: "string", - internalType: "string", - }, - ], - stateMutability: "nonpayable", - }, { type: "function", name: "claimRewardForVote", @@ -328,13 +302,7 @@ const deployedContracts = { internalType: "uint256", }, ], - outputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], + outputs: [], stateMutability: "nonpayable", }, { @@ -386,7 +354,7 @@ const deployedContracts = { internalType: "uint256[]", }, ], - stateMutability: "view", + stateMutability: "pure", }, { type: "function", @@ -420,7 +388,7 @@ const deployedContracts = { internalType: "uint256[]", }, ], - stateMutability: "view", + stateMutability: "pure", }, { type: "function", @@ -439,7 +407,7 @@ const deployedContracts = { internalType: "bool", }, ], - stateMutability: "view", + stateMutability: "pure", }, { type: "function", @@ -464,25 +432,6 @@ const deployedContracts = { outputs: [], stateMutability: "nonpayable", }, - { - type: "function", - name: "stakesForVoteIds", - inputs: [ - { - name: "", - type: "uint256", - internalType: "uint256", - }, - ], - outputs: [ - { - name: "totalStake", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, { type: "function", name: "submitVotingDecisionWithStake", @@ -498,7 +447,7 @@ const deployedContracts = { internalType: "uint256", }, { - name: "amount", + name: "stake", type: "uint256", internalType: "uint256", }, @@ -506,43 +455,6 @@ const deployedContracts = { outputs: [], stateMutability: "nonpayable", }, - { - type: "function", - name: "users", - inputs: [ - { - name: "", - type: "address", - internalType: "address", - }, - ], - outputs: [ - { - name: "nullifierHash", - type: "uint256", - internalType: "uint256", - }, - { - name: "createdAtBlock", - type: "uint256", - internalType: "uint256", - }, - ], - stateMutability: "view", - }, - { - type: "function", - name: "worldId", - inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract IWorldID", - }, - ], - stateMutability: "view", - }, { type: "event", name: "RewardClaimed",