-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,62 @@ | ||
## Back-End Lint | ||
## 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 | | ||
|
||
|
||
|
||
## Run test (Localnet) | ||
|
||
```bash | ||
cd /<your-path>/anchor-nft-ticketing | ||
``` | ||
|
||
Format the code: | ||
When the Solana local validator is not activated (without `--skip-local-validator` argument): | ||
|
||
```bash | ||
cargo fmt | ||
anchor test | ||
``` | ||
|
||
Lint : | ||
When the Solana local validator is activated (must add argument `--skip-local-validator`): | ||
|
||
```bash | ||
cargo clippy | ||
anchor test --skip-local-validator | ||
``` | ||
|
||
|
||
|
||
## Front-End Lint | ||
## Back-End Lint | ||
|
||
```bash | ||
cd /<your-path>/anchor-nft-ticketing | ||
``` | ||
|
||
Lint and format the code : | ||
Format the code: | ||
|
||
```bash | ||
npm run lint:fix | ||
cargo fmt | ||
``` | ||
|
||
|
||
|
||
## Run test (with Localnet) | ||
Lint : | ||
|
||
```bash | ||
cd /<your-path>/anchor-nft-ticketing | ||
cargo clippy | ||
``` | ||
|
||
When the Solana local validator is not activated (without `--skip-local-validator` argument): | ||
|
||
```bash | ||
anchor test | ||
``` | ||
|
||
When the Solana local validator is activated (must add argument `--skip-local-validator`): | ||
## Front-End Lint | ||
|
||
```bash | ||
anchor test --skip-local-validator | ||
cd /<your-path>/anchor-nft-ticketing | ||
``` | ||
|
||
Lint and format the code : | ||
|
||
|
||
## 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 | | ||
```bash | ||
npm run lint:fix | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters