Skip to content

Icedcool/TLBank

 
 

Repository files navigation

Time Locked Bank

Time Locked Bank is an NFT representation of locked Bankless Tokens. Users will lock up their BANK tokens inside the NFT contract to get access and season passes to Bankless DAO. The NFT contract will only accept BANK tokens for the lockup, and users can transfer or trade their NFTs as they see fit.

You can clone this repository for testing and deployments.

Contract Testing

npm install
npx hardhat compile
npx hardhat test

Deployment

To deploy the contracts you should create a .env file, and add your private keys, network rpc URL, and etherscan API Key. Navigate to ./scripts/deploy and adjust the token name, symbol, and bankless token address to the desired inputs for the contract deployment. These are the constructor arguments in the contract. Then you can use the hardhat deploy plugin to deploy to supported networks.

npx hardhat run scripts/deploy.js --network <network-name>

Afterwards using the etherscan verify plugin you can verify the network with the arguments you've input to the constructor;

npx hardhat verify --newtork <network-name> <contract_addresss> <tokenName> <tokenSymbol> <banklessTokenAddress>

Current Deployments

0xeaEAb9f1B25fa00FC01a3fcE521b47E88527Aa02 deployed to Ethereum Mainnet, with BANK token address: 0x2d94AA3e47d9D5024503Ca8491fcE9A2fB4DA198

Sending Transactions

You can use the methods.js file to send transactions to the TLBank contract. Be sure to input your private key and the desired parameters. All function inputs should be a string, including the amount and unlock date. Then you can use the below command in the terminal to send the transaction.

npx hardhat run scripts/methods.js --network <network-name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.6%
  • Solidity 37.4%