Skip to content

Commit

Permalink
added the faucet contract
Browse files Browse the repository at this point in the history
  • Loading branch information
sammed-21 committed Oct 23, 2024
1 parent 4559477 commit 7ffa297
Show file tree
Hide file tree
Showing 9 changed files with 595 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"transactions": [
{
"hash": "0xc51761f4c09d33ca1db6bce07cc6e36983af71fbec7443e1576d03b0f573f039",
"transactionType": "CREATE",
"contractName": "StakeXTokenFaucet",
"contractAddress": "0xbd59c552ff97d4393e80fe09cfc6fe88afdb5f8f",
"function": null,
"arguments": [
"0x7Ae44D9950Db7b464b459b7BCF52616b3e91B1D6"
],
"transaction": {
"from": "0x74d75f13c39014dd1515758bf66ba46571b73f2e",
"gas": "0x95041",
"value": "0x0",
"input": "0x6080604052678ac7230489e8000060025561a8c060035534801561002257600080fd5b506040516106d23803806106d2833981016040819052610041916100bf565b61004a3361006f565b600180546001600160a01b0319166001600160a01b03929092169190911790556100ef565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100d157600080fd5b81516001600160a01b03811681146100e857600080fd5b9392505050565b6105d4806100fe6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a61461013c57806381d2fd9c146101445780638da5cb5b146101575780639c28143014610168578063b319c6b714610171578063f2fde38b1461017a57600080fd5b8063315a095d146100ae578063359cf2b7146100c3578063394f6181146100cb5780636ae674e2146100fe5780636ff7320114610129575b600080fd5b6100c16100bc36600461050c565b61018d565b005b6100c161020e565b6100eb6100d9366004610525565b60046020526000908152604090205481565b6040519081526020015b60405180910390f35b600154610111906001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b6100c161013736600461050c565b610354565b6100c1610398565b6100c161015236600461050c565b6103ac565b6000546001600160a01b0316610111565b6100eb60025481565b6100eb60035481565b6100c1610188366004610525565b6103e9565b610195610462565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156101e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020a9190610555565b5050565b3360009081526004602052604090205460035461022b9190610577565b421161028a5760405162461bcd60e51b815260206004820152602360248201527f506c656173652077616974206265666f72652072657175657374696e6720616760448201526230b4b760e91b60648201526084015b60405180910390fd5b33600081815260046020819052604091829020429055600154600254925163a9059cbb60e01b81529182019390935260248101919091526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156102f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103199190610555565b5060025460405190815233907fc471df7d13ab46c73ec6eb2da0f35f84077f20d50243ba09a714b82cffc54de99060200160405180910390a2565b61035c610462565b60038190556040518181527fc4d978175d3c07d16372ccefaf0cd6282f07b3b93c73c51ca598d816838b623b906020015b60405180910390a150565b6103a0610462565b6103aa60006104bc565b565b6103b4610462565b60028190556040518181527f07b130fc089b6153dc5748b5d744efe6ec1dd025c8c48e5b105e632f6cbd93da9060200161038d565b6103f1610462565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610281565b61045f816104bc565b50565b6000546001600160a01b031633146103aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561051e57600080fd5b5035919050565b60006020828403121561053757600080fd5b81356001600160a01b038116811461054e57600080fd5b9392505050565b60006020828403121561056757600080fd5b8151801515811461054e57600080fd5b8082018082111561059857634e487b7160e01b600052601160045260246000fd5b9291505056fea264697066735822122055620f00678c26c4ceb039f9b44d0e9b758ff591fee8bacb398627674b84d18164736f6c634300081b00330000000000000000000000007ae44d9950db7b464b459b7bcf52616b3e91b1d6",
"nonce": "0x2a",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x86a3ed",
"logs": [
{
"address": "0xbd59c552ff97d4393e80fe09cfc6fe88afdb5f8f",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000074d75f13c39014dd1515758bf66ba46571b73f2e"
],
"data": "0x",
"blockHash": "0x02a2e251d040b127083902207a008a93f5df584a4bf0387a272e3e8a72d3a76d",
"blockNumber": "0x69c1ea",
"transactionHash": "0xc51761f4c09d33ca1db6bce07cc6e36983af71fbec7443e1576d03b0f573f039",
"transactionIndex": "0x3d",
"logIndex": "0x3e",
"removed": false
}
],
"logsBloom": "0x00000004000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000002000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000020000000000",
"type": "0x2",
"transactionHash": "0xc51761f4c09d33ca1db6bce07cc6e36983af71fbec7443e1576d03b0f573f039",
"transactionIndex": "0x3d",
"blockHash": "0x02a2e251d040b127083902207a008a93f5df584a4bf0387a272e3e8a72d3a76d",
"blockNumber": "0x69c1ea",
"gasUsed": "0x72a7b",
"effectiveGasPrice": "0x7f418dd9",
"from": "0x74d75f13c39014dd1515758bf66ba46571b73f2e",
"to": null,
"contractAddress": "0xbd59c552ff97d4393e80fe09cfc6fe88afdb5f8f"
}
],
"libraries": [],
"pending": [],
"returns": {
"0": {
"internal_type": "contract StakeXTokenFaucet",
"value": "0xBD59C552fF97d4393E80Fe09cfc6fE88aFDb5F8F"
}
},
"timestamp": 1729709884,
"chain": 11155111,
"commit": "4559477"
}
69 changes: 69 additions & 0 deletions broadcast/DeployStakeXTokenFaucet.s.sol/11155111/run-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"transactions": [
{
"hash": "0xc51761f4c09d33ca1db6bce07cc6e36983af71fbec7443e1576d03b0f573f039",
"transactionType": "CREATE",
"contractName": "StakeXTokenFaucet",
"contractAddress": "0xbd59c552ff97d4393e80fe09cfc6fe88afdb5f8f",
"function": null,
"arguments": [
"0x7Ae44D9950Db7b464b459b7BCF52616b3e91B1D6"
],
"transaction": {
"from": "0x74d75f13c39014dd1515758bf66ba46571b73f2e",
"gas": "0x95041",
"value": "0x0",
"input": "0x6080604052678ac7230489e8000060025561a8c060035534801561002257600080fd5b506040516106d23803806106d2833981016040819052610041916100bf565b61004a3361006f565b600180546001600160a01b0319166001600160a01b03929092169190911790556100ef565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100d157600080fd5b81516001600160a01b03811681146100e857600080fd5b9392505050565b6105d4806100fe6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a61461013c57806381d2fd9c146101445780638da5cb5b146101575780639c28143014610168578063b319c6b714610171578063f2fde38b1461017a57600080fd5b8063315a095d146100ae578063359cf2b7146100c3578063394f6181146100cb5780636ae674e2146100fe5780636ff7320114610129575b600080fd5b6100c16100bc36600461050c565b61018d565b005b6100c161020e565b6100eb6100d9366004610525565b60046020526000908152604090205481565b6040519081526020015b60405180910390f35b600154610111906001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b6100c161013736600461050c565b610354565b6100c1610398565b6100c161015236600461050c565b6103ac565b6000546001600160a01b0316610111565b6100eb60025481565b6100eb60035481565b6100c1610188366004610525565b6103e9565b610195610462565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156101e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020a9190610555565b5050565b3360009081526004602052604090205460035461022b9190610577565b421161028a5760405162461bcd60e51b815260206004820152602360248201527f506c656173652077616974206265666f72652072657175657374696e6720616760448201526230b4b760e91b60648201526084015b60405180910390fd5b33600081815260046020819052604091829020429055600154600254925163a9059cbb60e01b81529182019390935260248101919091526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156102f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103199190610555565b5060025460405190815233907fc471df7d13ab46c73ec6eb2da0f35f84077f20d50243ba09a714b82cffc54de99060200160405180910390a2565b61035c610462565b60038190556040518181527fc4d978175d3c07d16372ccefaf0cd6282f07b3b93c73c51ca598d816838b623b906020015b60405180910390a150565b6103a0610462565b6103aa60006104bc565b565b6103b4610462565b60028190556040518181527f07b130fc089b6153dc5748b5d744efe6ec1dd025c8c48e5b105e632f6cbd93da9060200161038d565b6103f1610462565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610281565b61045f816104bc565b50565b6000546001600160a01b031633146103aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610281565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561051e57600080fd5b5035919050565b60006020828403121561053757600080fd5b81356001600160a01b038116811461054e57600080fd5b9392505050565b60006020828403121561056757600080fd5b8151801515811461054e57600080fd5b8082018082111561059857634e487b7160e01b600052601160045260246000fd5b9291505056fea264697066735822122055620f00678c26c4ceb039f9b44d0e9b758ff591fee8bacb398627674b84d18164736f6c634300081b00330000000000000000000000007ae44d9950db7b464b459b7bcf52616b3e91b1d6",
"nonce": "0x2a",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x86a3ed",
"logs": [
{
"address": "0xbd59c552ff97d4393e80fe09cfc6fe88afdb5f8f",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000074d75f13c39014dd1515758bf66ba46571b73f2e"
],
"data": "0x",
"blockHash": "0x02a2e251d040b127083902207a008a93f5df584a4bf0387a272e3e8a72d3a76d",
"blockNumber": "0x69c1ea",
"transactionHash": "0xc51761f4c09d33ca1db6bce07cc6e36983af71fbec7443e1576d03b0f573f039",
"transactionIndex": "0x3d",
"logIndex": "0x3e",
"removed": false
}
],
"logsBloom": "0x00000004000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000002000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000020000000000",
"type": "0x2",
"transactionHash": "0xc51761f4c09d33ca1db6bce07cc6e36983af71fbec7443e1576d03b0f573f039",
"transactionIndex": "0x3d",
"blockHash": "0x02a2e251d040b127083902207a008a93f5df584a4bf0387a272e3e8a72d3a76d",
"blockNumber": "0x69c1ea",
"gasUsed": "0x72a7b",
"effectiveGasPrice": "0x7f418dd9",
"from": "0x74d75f13c39014dd1515758bf66ba46571b73f2e",
"to": null,
"contractAddress": "0xbd59c552ff97d4393e80fe09cfc6fe88afdb5f8f"
}
],
"libraries": [],
"pending": [],
"returns": {
"0": {
"internal_type": "contract StakeXTokenFaucet",
"value": "0xBD59C552fF97d4393E80Fe09cfc6fE88aFDb5F8F"
}
},
"timestamp": 1729709884,
"chain": 11155111,
"commit": "4559477"
}
Loading

0 comments on commit 7ffa297

Please sign in to comment.