Skip to content

smart wrapper: scheduled transfer, approval expiry, and lost money recovery

License

Notifications You must be signed in to change notification settings

KeepERC20/KeepERC20-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

$ npm install

Set .env

and/or .env.test for test environment.

Now we can use pre-defined values as environment variable, with a prefix dotenv -e <ENV> --. For example, dotenv -e .env.test --.

Run Node

$ dotenv -e .env.test -- npx hardhat node --network hardhat

Deploy

$ dotenv -e .env -- npx hardhat run scripts/deploy.js --network localhost

Register Upkeeps

Mumbai testnet is used for a concrete example.

$ dotenv -e .env.test -- npx hardhat run scripts/deploy.js --network mumbai   

Compiled 2 Solidity files successfully

<Set>
Owner:   0x1ccE14942bD77f5c8EdFe408f7116595E18ccaF4 (0.19886533549475788 ETH)
User1:   0x0E723d5710E79907b0E6D3661F3fed0D3452C04c (0.8923594874453868 ETH)
User2:   0xdBf13a0374E70f01DB7d1a570Be84e067B9E1Be1 (0 ETH)
Fee:     0x21De12f081958D5590AB70C172703345286bcDc9 (0 ETH)

<Deploy>
Deploy Token:            0x6f7ebA5Ccf6c1e524df9F0f353843B233f82e48F
Deploy Factory:          0x516e99AccB8Ebd6FC04C5FE4C516b8fF172a37e7
Deploy KeepToken:        0x09955185759C8A5d1668AE9C843185a063b39516

Steps

  1. Goto Chainlink Automation
  2. Register new upkeep
  3. Set check data for pagination (lowerBound, upperBound)
  4. Manage My upkeeps

About

smart wrapper: scheduled transfer, approval expiry, and lost money recovery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 89.3%
  • JavaScript 10.7%