Skip to content

Smart contracts - mostly scratch from tutorials (Solidity, Rust)

Notifications You must be signed in to change notification settings

liangjh/smart-contract-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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/

About

Smart contracts - mostly scratch from tutorials (Solidity, Rust)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published