- Run command
solana-keygen new -o ./wallet/id.json
to generate authority - Run command
solana airdrop 1 <Public Key of id.json>
add devnet solana in account - Run command
solana-keygen new -o ./wallet/signer.json
to generate signer account
- Run command
anchor build
- Use command
solana address -k ./target/deploy/volatility-keypair.json
to findPROGRAM_ID
- Update
PROGRAM_ID
inAnchor.toml | program/volatility/src/lib.rs | client/programIDs
files - Run command
anchor deploy
# Install node_modules
$ npm install
# To initialize your account
$ npm run initialize
# To add new record and calculate volatility
$ npm run addRecord
# To read values of contract
$ npm run readContract