Skip to content

Commit 7c66adf

Browse files
committed
deploy: mainnet: InventoryStaking, NFTXVault implementation
1 parent faa5b73 commit 7c66adf

7 files changed

+909
-84
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ forge test
151151
1. To deploy core V3 contracts (including Uniswap V3 Fork):
152152

153153
```sh
154-
yarn deploy:goerli --maxfee <inWei> --priorityfee <inWei> --tags NFTXV3
154+
yarn deploy:mainnet --maxfee <inWei> --priorityfee <inWei> --tags NFTXV3
155155
```
156156

157157
2. Deploy new Universal Router (https://github.com/NFTX-project/nftx-universal-router) with updated address for UniswapV3 Factory address.
158158
3. Deploy all Zaps:
159159

160160
```sh
161-
yarn deploy:goerli --maxfee <inWei> --priorityfee <inWei> --tags Zaps
161+
yarn deploy:mainnet --maxfee <inWei> --priorityfee <inWei> --tags Zaps
162162
```
163163

164164
4. Run the following to generate `./addresses.json` for the deployed contract addresses
@@ -171,11 +171,11 @@ Note: Tags are defined in the deploy script at the end like: `func.tags = ["<tag
171171

172172
### Verify Contracts
173173

174-
`yarn verify:goerli`
174+
`yarn verify:mainnet`
175175

176176
**Note:** For some UniswapV3 contracts there might be some error while verifying, so run this for those contracts:
177177

178-
`yarn verify:goerli --license "GPL-2.0" --force-license --solc-input`
178+
`yarn verify:mainnet --license "GPL-2.0" --force-license --solc-input`
179179

180180
- How to verify the Create2BeaconProxy (for Vaults):
181181

deployments/mainnet/NFTXInventoryStakingV3Upgradeable.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@
11471147
"0x39D9A925d7fcA17E430b731882b97e2d10E9F8bB"
11481148
]
11491149
},
1150-
"implementation": "0x8E912C466bD1D720b7d97034c03572c4A261de33",
1150+
"implementation": "0xF76e6B0029cb2D6D41B321E5BEb2e849d345081A",
11511151
"devdoc": {
11521152
"details": "This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",
11531153
"kind": "dev",

deployments/mainnet/NFTXInventoryStakingV3Upgradeable_Implementation.json

Lines changed: 61 additions & 61 deletions
Large diffs are not rendered by default.

deployments/mainnet/NFTXVaultUpgradeableV3.json

Lines changed: 21 additions & 14 deletions
Large diffs are not rendered by default.

deployments/mainnet/solcInputs/3e376bbf7a8df358ac1844c5f1edbe9c.json

Lines changed: 330 additions & 0 deletions
Large diffs are not rendered by default.

deployments/mainnet/solcInputs/98fafc251af9736707ec776efffb9e7a.json

Lines changed: 488 additions & 0 deletions
Large diffs are not rendered by default.

script/base-README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ forge test
132132
1. To deploy core V3 contracts (including Uniswap V3 Fork):
133133

134134
```sh
135-
yarn deploy:goerli --maxfee <inWei> --priorityfee <inWei> --tags NFTXV3
135+
yarn deploy:mainnet --maxfee <inWei> --priorityfee <inWei> --tags NFTXV3
136136
```
137137

138138
2. Deploy new Universal Router (https://github.com/NFTX-project/nftx-universal-router) with updated address for UniswapV3 Factory address.
139139
3. Deploy all Zaps:
140140

141141
```sh
142-
yarn deploy:goerli --maxfee <inWei> --priorityfee <inWei> --tags Zaps
142+
yarn deploy:mainnet --maxfee <inWei> --priorityfee <inWei> --tags Zaps
143143
```
144144

145145
4. Run the following to generate `./addresses.json` for the deployed contract addresses
@@ -152,11 +152,11 @@ Note: Tags are defined in the deploy script at the end like: `func.tags = ["<tag
152152

153153
### Verify Contracts
154154

155-
`yarn verify:goerli`
155+
`yarn verify:mainnet`
156156

157157
**Note:** For some UniswapV3 contracts there might be some error while verifying, so run this for those contracts:
158158

159-
`yarn verify:goerli --license "GPL-2.0" --force-license --solc-input`
159+
`yarn verify:mainnet --license "GPL-2.0" --force-license --solc-input`
160160

161161
- How to verify the Create2BeaconProxy (for Vaults):
162162

0 commit comments

Comments
 (0)