Skip to content

Latest commit

 

History

History
88 lines (55 loc) · 1.97 KB

Notes-tech.md

File metadata and controls

88 lines (55 loc) · 1.97 KB

Networks

Name Consensus Type Equivalent on Ethereum
Localnet PoS (Proof of Stake) Local development Localhost (Hardhat Network)
Devnet PoS (Proof of Stake) Public devnet Sepolia
Testnet PoS (Proof of Stake) Public testnet Goerli
Mainnet PoS (Proof of Stake) Production Mainnet

Solana Commitment Levels

Option Description
processed The transaction has been seen by a validator and processed by that validator, but it hasn't yet been confirmed by the network. It could still be canceled or modified.
confirmed The transaction has been included in a block that has been voted on by at least one validator, but it could still be reorganized in the event of a minor chain fork.
finalized The transaction has been included in a block that has reached a high level of confirmation, making it extremely unlikely to be canceled, except in the event of a major chain fork.

Run tests (Localnet)

cd /<your-path>/anchor-nft-ticketing

When the Solana local validator is not activated (without --skip-local-validator argument):

anchor test

When the Solana local validator is activated (must add argument --skip-local-validator):

anchor test --skip-local-validator

Verify Deployment

Check if your program is correctly deployed:

solana program show <your-program-id> --url <network>

Lint

Rust Lint

cd /<your-path>/anchor-nft-ticketing

Format the code:

cargo fmt

Lint:

cargo clippy

Lint (with warnings):

cargo clippy --all-targets

JS Lint

cd /<your-path>/anchor-nft-ticketing

Lint and format the code:

npm run lint:fix