feat: solidity code for faucet smart contract

This commit is contained in:
Ting-Jun Wang 2023-02-26 02:19:25 +08:00
commit ada22f489c
Signed by: snsd0805
GPG Key ID: 8DB0D22BC1217D33
4 changed files with 15 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
artifacts/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "web"]
path = web
url = https://gitea.snsd0805.com/snsd0805/faucet_web.git

10
Faucet.sol Normal file
View File

@ -0,0 +1,10 @@
pragma solidity ^0.4.25;
contract Faucet {
function withdraw(uint withdraw_amount) public {
require(withdraw_amount <= 1000000000000000);
msg.sender.transfer(withdraw_amount);
}
function () public payable {}
}

1
web Submodule

@ -0,0 +1 @@
Subproject commit bce3825c4837e8d507ce086e929e36e00003bc8e