0.1.0 • Published 5 months ago

@gluwa/universal-smart-contract v0.1.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
5 months ago

1. Install node package

cd common/eth
npm i

1.2 Create .env File

For initial setup, you need to create a .env file in your /eth directory. You then need to add the following contents:

OWNER_PRIVATE_KEY=your_private_key_here

2. Compile smart contracts

npx hardhat compile

3. Run script to deploy contracts

Deploy at target network as cc_devnet

npx hardhat deploy --network cc_devnet --proceedsaccount <your-address> --costperbyte 10 --basefee 100 --chainkey 42 --displayname "My Contract" --timeout 300 --lockupduration 86400 --approvalthreshold 1 --maxinstantmint 10 --admin <your-address>