Skip to content

A demo app for a double entry accounting system using NFTs on the Avalanche C-Chain

License

Notifications You must be signed in to change notification settings

Consensys/avalanche-tutorial-accounting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avalanche app for double entry accounting

Read the tutorial

For a complete overview, read this post on the Infura blog.

Clone the repo

git clone git@github.com:ConsenSys/avalanche-tutorial-accounting.git
cd avalanche-tutorial-accounting

Add configuration values to config.tsx

const config = {
  INFURA_FUJI_PROVIDER: "xxxxxxxxxx",
  INFURA_IPFS_PROJECT_ID: "xxxxxxxxxx",
  INFURA_IPFS_API_KEY_SECRET: "xxxxxxxxxx",
  INFURA_IPFS_GATEWAY: "xxxxxxxxxx",
  CONTRACT_ADDRESS: "xxxxxxxxxx",
  WALLET_ADDRESS: "xxxxxxxxxx",
  PRIVATE_KEY:"xxxxxxxxxx",
};

Store the actual values in config_local.tsx, which SHOULD NOT be committed (entry in .gitignore)

NOTE: For convenience if you’re doing additional commits, instead of writing these values directly to config.tsx, create a file called “config_local.tsx” in the src directory. You can store these values there, and then copy the entire config structure into config.tsx before running the application. Since the .gitignore file has an entry for config_local.tsx, you should avoid accidentally committing the actual values for all to see. Before any additional commits, remove the changes to config.tsx, so the file reverts to the placeholder strings.

Copy the ABI

Per the instructions in the tutorial, once you've compiled the ERC721 contract in Remix, copy the ABI into the empty abi.json file.

Install and run

npm install
npm start

or:

yarn install
yarn start

About

A demo app for a double entry accounting system using NFTs on the Avalanche C-Chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published