Skip to content

Commit

Permalink
deployement
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCalibur committed Jan 15, 2025
1 parent b3a0018 commit 29a81bd
Show file tree
Hide file tree
Showing 11 changed files with 2,238 additions and 6,993 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bunx hardhat deploy --network <network-name> --tags <tag>
```
bunx hardhat lz:deploy --tags <deployement-name> --networks <network-name>
```
> beware that a default proxy admin deployment file `DefaultProxyAdmin` is deployed and is the proxy admin that should be used to upgrade the proxy. It should be renamed to a more meaningful name after the deployment. For example `BoundSpellOFT_ProxyAdmin` instead of `DefaultProxyAdmin`. The main reason is that a new OFT deployement will be overwrite this file.
# Verify
```
Expand All @@ -45,4 +46,16 @@ bunx hardhat lz:oapp:wire --oapp-config layerzero.config.ts
--dst-chain arbitrum-mainnet \
--to 0xfB3485c2e209A5cfBDC1447674256578f1A80eE3 \
--amount 1
```
```

# Change ownerships

Proxy Contract
```
cast send --rpc-url <rpc-url> <proxy-address> --private-key <private-key> "transferOwnership(address)" <new-owner-address>
```

Proxy Admin
```
cast send --rpc-url <rpc-url> <proxy-admin-address> --private-key <private-key> "transferOwnership(address)" <new-owner-address>
```
1 change: 0 additions & 1 deletion deploy/BoundSpellOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const deploy: DeployFunction = async (hre) => {
skipIfAlreadyDeployed: false,
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
viaAdminContract: `${config.contractName}_ProxyAdmin`,
owner: signer.address,
execute: {
init: {
Expand Down
1 change: 0 additions & 1 deletion deploy/MIMOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const deploy: DeployFunction = async (hre) => {
skipIfAlreadyDeployed: false,
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
viaAdminContract: `${config.contractName}_ProxyAdmin`,
owner: signer.address,
execute: {
init: {
Expand Down
1 change: 0 additions & 1 deletion deploy/SpellOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const deploy: DeployFunction = async (hre) => {
skipIfAlreadyDeployed: false,
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
viaAdminContract: `${config.contractName}_ProxyAdmin`,
owner: signer.address,
execute: {
init: {
Expand Down
Loading

0 comments on commit 29a81bd

Please sign in to comment.