re-organize contracts

This commit is contained in:
Andrea Franz 2020-04-03 14:19:40 +02:00
parent 3da8c8c43c
commit f2971e659c
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
6 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pragma solidity ^0.6.1; pragma solidity ^0.6.1;
pragma experimental ABIEncoderV2; pragma experimental ABIEncoderV2;
import "./IERC20.sol"; import "./erc20/IERC20.sol";
contract GiftBucket { contract GiftBucket {

View File

@ -6,7 +6,7 @@ import "./Proxy.sol";
contract GiftBucketFactory { contract GiftBucketFactory {
GiftBucket public GiftBucketImplementation; GiftBucket public GiftBucketImplementation;
event Created(address indexed gifter, address indexed bucket); event BucketCreated(address indexed gifter, address indexed bucket);
constructor() public { constructor() public {
GiftBucketImplementation = new GiftBucket(address(0), block.timestamp + 1); GiftBucketImplementation = new GiftBucket(address(0), block.timestamp + 1);
@ -14,7 +14,7 @@ contract GiftBucketFactory {
function create(address _tokenAddress, uint256 _expirationTime) public returns (address) { function create(address _tokenAddress, uint256 _expirationTime) public returns (address) {
address p = address(new Proxy(abi.encodeWithSelector(0xc350a1b5, _tokenAddress, _expirationTime, msg.sender), address(GiftBucketImplementation))); address p = address(new Proxy(abi.encodeWithSelector(0xc350a1b5, _tokenAddress, _expirationTime, msg.sender), address(GiftBucketImplementation)));
emit Created(msg.sender, p); emit BucketCreated(msg.sender, p);
return p; return p;
} }
} }