erc20-faucet

ERC20 token faucet
Log | Files | Refs

commit e7747461377f04136ac706589352bc953692115a
parent 8c92d67216088844d64be8c1e77cef99622d0f65
Author: nolash <dev@holbrook.no>
Date:   Wed,  9 Dec 2020 14:56:59 +0100

Add solidity abi bin data files

Diffstat:
Apython/MANIFEST.in | 1+
Dpython/erc20_single_shot_faucet/data/Erc20SingleShotFaucet.abi.json | 0
Dpython/erc20_single_shot_faucet/data/Erc20SingleShotFaucet.bin | 0
Dpython/erc20_single_shot_faucet/data/Erc20SingleShotFaucetStorage.abi.json | 0
Dpython/erc20_single_shot_faucet/data/Erc20SingleShotFaucetStorage.bin | 0
Dpython/erc20_single_shot_faucet/data/SingleShotFaucet.abi.json | 5-----
Dpython/erc20_single_shot_faucet/data/SingleShotFaucet.bin | 6------
Dpython/erc20_single_shot_faucet/data/SingleShotFaucetStorage.abi.json | 1-
Dpython/erc20_single_shot_faucet/data/SingleShotFaucetStorage.bin | 2--
Mpython/setup.cfg | 9+++++++++
10 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/python/MANIFEST.in b/python/MANIFEST.in @@ -0,0 +1 @@ +include **/*.abi.json diff --git a/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucet.abi.json b/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucet.abi.json diff --git a/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucet.bin b/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucet.bin diff --git a/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucetStorage.abi.json b/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucetStorage.abi.json diff --git a/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucetStorage.bin b/python/erc20_single_shot_faucet/data/Erc20SingleShotFaucetStorage.bin diff --git a/python/erc20_single_shot_faucet/data/SingleShotFaucet.abi.json b/python/erc20_single_shot_faucet/data/SingleShotFaucet.abi.json @@ -1,5 +0,0 @@ -[{"inputs":[],"name":"completeOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}] - -======= SingleShotFaucet.sol:SingleShotFaucet ======= -Contract JSON ABI -[{"inputs":[{"internalType":"address[]","name":"_overriders","type":"address[]"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_store","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"NewBeneficiary","type":"event"},{"inputs":[],"name":"amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"giveTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/python/erc20_single_shot_faucet/data/SingleShotFaucet.bin b/python/erc20_single_shot_faucet/data/SingleShotFaucet.bin @@ -1,5 +0,0 @@ - - -======= SingleShotFaucet.sol:SingleShotFaucet ======= -Binary: -608060405234801561001057600080fd5b506040516109c53803806109c58339818101604052606081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b8382019150602082018581111561006957600080fd5b825186602082028301116401000000008211171561008657600080fd5b8083526020830192505050908051906020019060200280838360005b838110156100bd5780820151818401526020810190506100a2565b505050509050016040526020018051906020019092919080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b83518110156101fb57600180600086848151811061019557fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808060010191505061017b565b5080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050610735806102906000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063271f88b41461005157806363e4bff414610095578063aa8c217c146100ef578063fc0c546a1461010d575b600080fd5b61007d6004803603602081101561006757600080fd5b8101908080359060200190929190505050610141565b60405180821515815260200191505060405180910390f35b6100d7600480360360208110156100ab57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506101a9565b60405180821515815260200191505060405180910390f35b6100f76106d3565b6040518082815260200191505060405180910390f35b6101156106d9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661019957600080fd5b8160028190555060019050919050565b6000806060600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1684604051602401808273ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040527f7ff2f063000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106102be578051825260208201915060208101905060208303925061029b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610320576040519150601f19603f3d011682016040523d82523d6000602084013e610325565b606091505b5091509150811561033557600080fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1684604051602401808273ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040527fdb7d3fc7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106104455780518252602082019150602081019050602083039250610422565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146104a7576040519150601f19603f3d011682016040523d82523d6000602084013e6104ac565b606091505b508092508193505050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1684600254604051602401808373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506040516020818303038152906040527fa9059cbb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106105cf57805182526020820191506020810190506020830392506105ac565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610631576040519150601f19603f3d011682016040523d82523d6000602084013e610636565b606091505b508092508193505050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f1812274c41aaf75e4c38824d94e185a8d4609cdc7ba6044a896b05c31c8430f86002546040518082815260200191505060405180910390a3600192505050919050565b60025481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea26469706673582212207af20c4ea9c6f7ff0b892d18d26b44fb89fc0f1c4ad665fb584e67f21db12bf764736f6c63430007050033 -\ No newline at end of file diff --git a/python/erc20_single_shot_faucet/data/SingleShotFaucetStorage.abi.json b/python/erc20_single_shot_faucet/data/SingleShotFaucetStorage.abi.json @@ -1 +0,0 @@ -[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"completeOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"lock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_owner","type":"address"}],"name":"transferOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"used_accounts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}] diff --git a/python/erc20_single_shot_faucet/data/SingleShotFaucetStorage.bin b/python/erc20_single_shot_faucet/data/SingleShotFaucetStorage.bin @@ -1 +0,0 @@ -608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061043b806100606000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80634a4fbeec1461005c57806354974421146100b65780637ff2f063146100d6578063f2fde38b14610130578063f435f5a71461018a575b600080fd5b61009e6004803603602081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506101e4565b60405180821515815260200191505060405180910390f35b6100be61023a565b60405180821515815260200191505060405180910390f35b610118600480360360208110156100ec57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102dd565b60405180821515815260200191505060405180910390f35b6101726004803603602081101561014657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102fd565b60405180821515815260200191505060405180910390f35b6101cc600480360360208110156101a057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103a2565b60405180821515815260200191505060405180910390f35b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461029657600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905090565b60026020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461035857600080fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050919050565b60006001600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001905091905056fea2646970667358221220f617e462c253102c10bcb82dbf9861737254ed63fb6ee686007c9a103bbec2c964736f6c63430007050033 -\ No newline at end of file diff --git a/python/setup.cfg b/python/setup.cfg @@ -21,8 +21,10 @@ licence_files = LICENSE [options] +include_package_data = True python_requires = >= 3.6 packages = + erc20_single_shot_faucet erc20_single_shot_faucet.runnable install_requires = web3==5.12.2 @@ -35,6 +37,13 @@ testing = eth-tester==0.5.0b2 py-evm==0.3.0a20 +[options.package_data] +* = + data/ERC20SingleShotFaucet.abi.json + data/ERC20SingleShotFaucet.bin + data/ERC20SingleShotFaucetStorage.abi.json + data/ERC20SingleShotFaucetStorage.bin + [options.entry_points] console_scripts = erc20-single-shot-faucet = erc20_single_shot_faucet.runnable.deploy:main