0x73696d616f / codeup-issues-external

Smart Contract and configuration scripts for codeup.app DEFI game based on Ethereum story
https://codeup.app
0 stars 0 forks source link

๐Ÿ’Ž CodeUP Smart Contract ๐Ÿ’Ž

Welcome to ๐Ÿ’Ž CodeUP ๐Ÿ’Ž, your portal to Ethereum's rich history and promising future! ๐Ÿฐ๐Ÿš€

๐ŸŽฎ Game Mechanics ๐ŸŽฎ

More Details

๐Ÿ•ต Audit Report ๐Ÿ•ต

Report

๐Ÿ“œ Contracts ๐Ÿ“œ

Project smart contracts:

๐Ÿ“œ Deployments ๐Ÿ“œ

Codeup - 0x1B82536914F3fD162e1EDa12ddB2E05cd961Fe57.
codeUP(CUP) - 0xDE698Ef96434CE7b12eDdbCc92E12C0464c2E2Ed

๐Ÿ“š Technical Stack ๐Ÿ“š

โŒ› Installation โŒ›

It is recommended to install Yarn through the npm package manager, which comes bundled with Node.js when you install it on your system. It is recommended to use a Node.js version >= 16.0.0.

Once you have npm installed, you can run the following both to install and upgrade Yarn:

npm install --global yarn

After having installed Yarn, simply run:

yarn install

๐Ÿคซ .env File ๐Ÿคซ

In the .env file place the private key of your wallet in the PRIVATE_KEY section. This allows secure access to your wallet to use with both testnet and mainnet funds during Hardhat deployments. For more information on how this works, please read the documentation of the npm package dotenv.

.env variables list

You can see an example of the .env file in the .env.example file.

โœ”๏ธ Testing โœ”๏ธ

  1. To run TypeScript tests:
yarn test:hh
  1. To run tests and view coverage :
yarn coverage

๐Ÿ’ฝ Compilation ๐Ÿ’ฝ

yarn compile

๐Ÿš€ Deployment CodeUp ๐Ÿš€

To deploy contracts you need set up .env

run:

yarn deploy:[network]

or

npx hardhat run --network [Network] scripts/deploy.ts

Contract Verification ใ€Œโœ” แต›แต‰สณแถฆแถ แถฆแต‰แตˆใ€

Change the contract address to your contract after the deployment has been successful. This works for both testnet and mainnet. You will need to get an API key from etherscan, snowtrace etc.

Example:

npx hardhat verify --network [network] --constructor-args [...args] <YOUR_CONTRACT_ADDRESS>