Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.05 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.05 KB

Smart Contract Workspace

Smart contracts / crypto scratch code / workspace on various networks:

  • Avalanche (Solidity)
  • Polygon (Solidity)
  • Solana (Rust)
  • Aptos (Rust)

Creating NPM Environment

	npm init
	npm install -g truffle
	npx truffle init # will create general solidity dir structure
	npx truffle test
	npm install @openzeppelin/contracts
	npm install @truffle/hdwallet-provider

Set up local blockchain (ganache, via truffle)

	npm install ganache --global
	ganache # will run service

Compiling solidity code

  npx truffle compile # creates .json files in build/

Deploy to development / Deploy to testnet (fuji) (Avalanche-specific)

	npx truffle migrate --network development
	npx truffle migrate --network fuji 
	// note these networks are config'd in truffle-config.js

Viewing contract deployed on testnet (Avalanche-specific): https://testnet.snowtrace.io

Fuji Testnet info & Faucet (Avalanche-specific): https://umbria.network/connect/avalanche-fuji-testnet https://faucet.avax.network/