@gearbox-protocol/periphery-v3 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -1
- package/contracts/degen/DegenDistributorV3.sol +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
## Foundry
|
|
2
|
+
|
|
3
|
+
**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
|
|
4
|
+
|
|
5
|
+
Foundry consists of:
|
|
6
|
+
|
|
7
|
+
- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
|
|
8
|
+
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
|
|
9
|
+
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
|
|
10
|
+
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.
|
|
11
|
+
|
|
12
|
+
## Documentation
|
|
13
|
+
|
|
14
|
+
https://book.getfoundry.sh/
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
### Build
|
|
19
|
+
|
|
20
|
+
```shell
|
|
21
|
+
$ forge build
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Test
|
|
25
|
+
|
|
26
|
+
```shell
|
|
27
|
+
$ forge test
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Format
|
|
31
|
+
|
|
32
|
+
```shell
|
|
33
|
+
$ forge fmt
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Gas Snapshots
|
|
37
|
+
|
|
38
|
+
```shell
|
|
39
|
+
$ forge snapshot
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Anvil
|
|
43
|
+
|
|
44
|
+
```shell
|
|
45
|
+
$ anvil
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Deploy
|
|
49
|
+
|
|
50
|
+
```shell
|
|
51
|
+
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Cast
|
|
55
|
+
|
|
56
|
+
```shell
|
|
57
|
+
$ cast <subcommand>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Help
|
|
61
|
+
|
|
62
|
+
```shell
|
|
63
|
+
$ forge --help
|
|
64
|
+
$ anvil --help
|
|
65
|
+
$ cast --help
|
|
66
|
+
```
|
|
@@ -37,7 +37,7 @@ contract DegenDistributorV3 is IDegenDistributorV3 {
|
|
|
37
37
|
|
|
38
38
|
constructor(address addressProvider) {
|
|
39
39
|
treasury = IAddressProviderV3(addressProvider).getAddressOrRevert(AP_TREASURY, NO_VERSION_CONTROL);
|
|
40
|
-
degenNFT = IAddressProviderV3(addressProvider).getAddressOrRevert(AP_DEGEN_NFT,
|
|
40
|
+
degenNFT = IAddressProviderV3(addressProvider).getAddressOrRevert(AP_DEGEN_NFT, 1);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function updateMerkleRoot(bytes32 newRoot) external treasuryOnly {
|
package/package.json
CHANGED