Skip to content

Boilerplate project to integrate VeChain Smart Contract deployment with HardHat framework

License

Notifications You must be signed in to change notification settings

rodolfopietro97/VeChain-Hardhat

Repository files navigation

VeChain HardHat boilperplate project

This repo contains a boilerplate Hardhat project able to deploy Smart Contracts into VeChain network.

How to

1. Install project and dependencies

npm install

2. Compile your Smart Contracts

npx hardhat compile

If all goes ok you will have an /artifacts folder.

3. Edit configuration for deploy

Go to ./scripts/deployVeChain.ts file and edit the following variables:

/**
 * Mnemonics to use for sign and deploy contract
 * 
 * This is a test account :D
 */
const MNEMONICS = [
    'vivid',
    'any',
    'call',
    'mammal',
    'mosquito',
    'budget',
    'midnight',
    'expose',
    'spirit',
    'approve',
    'reject',
    'system'
]

/**
 * Address of a node
 */
const NETWORK_URL = 'https://testnet.veblocks.net/'

/**
 * URL of a delegate (and decide if use a delegate or not)
 */
const DELEGATE_URL = "https://sponsor-testnet.vechain.energy/by/90"
const USE_SPONSOR = true

/**
 * URL of block explorer
 */
const EXPLORER_URL = "https://explore-testnet.vechain.org/"

/**
 * Enable verbose mode
 */
const VERBOSE = true

/**
 * Name of smart contract to deploy (WITHOUT .sol)
 */
const CONTRACT_NAME = "Test"

4. You are ready to deploy!

npx hardhat run ./scripts/deployVeChain.ts

About

Boilerplate project to integrate VeChain Smart Contract deployment with HardHat framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published