Ready NFT
CI / Foundry project (push) Waiting to run

This commit is contained in:
2024-08-18 17:10:03 +08:00
parent e7ed382823
commit 11e41de86a
209 changed files with 6325 additions and 120 deletions
+11 -62
View File
@@ -1,66 +1,15 @@
## Foundry
https://eips.ethereum.org/EIPS/eip-721
**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
forge init
forge install OpenZeppelin/openzeppelin-contracts --no-commit
forge install ChainAccelOrg/foundry-devops --no-commit
Foundry consists of:
// Local Anvil Test
make deploy
make mint
- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.
// Sepolia Test
make deploy ARGS="--network sepolia"
make mint ARGS="--network sepolia"
## Documentation
https://book.getfoundry.sh/
## Usage
### Build
```shell
$ forge build
```
### Test
```shell
$ forge test
```
### Format
```shell
$ forge fmt
```
### Gas Snapshots
```shell
$ forge snapshot
```
### Anvil
```shell
$ anvil
```
### Deploy
```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
```
### Cast
```shell
$ cast <subcommand>
```
### Help
```shell
$ forge --help
$ anvil --help
$ cast --help
```
// MetaMask add deployed contract address with token id start with 0