Skip to content

Commit

Permalink
deploy to zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed May 30, 2024
1 parent 03b8279 commit daab6a6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/AddressProviderNG.vy
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__():
def ids() -> DynArray[uint256, 1000]:
"""
@notice returns IDs of active registry items in the AddressProvider.
@returns An array of IDs.
@return An array of IDs.
"""
_ids: DynArray[uint256, 1000] = []
for _id in self._ids:
Expand Down Expand Up @@ -280,7 +280,7 @@ def remove_id(_id: uint256) -> bool:
def remove_ids(_ids: DynArray[uint256, 20]) -> bool:
"""
@notice Unset existing identifiers
@param _id DynArray of identifier to unset
@param _ids DynArray of identifier to unset
@return bool success
"""
assert msg.sender == self.admin # dev: admin-only function
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
titanoboa[forking-recommended] @ git+https://github.com/vyperlang/titanoboa@05ec84ad1decfe23cd4a3ffc588d567fd322a509
git+https://github.com/DanielSchiavini/titanoboa-zksync.git
black
flake8
isort
Expand Down
22 changes: 22 additions & 0 deletions scripts/deploy_addressprovider_and_setup_zksync.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# AddressProvider deployed on zksync at: 0x54A5a69e17Aa6eB89d77aa3828E38C9Eb4fF263D

import os

import boa
import boa_zksync
from eth_account import Account

zksync_rpc = "https://mainnet.era.zksync.io"

boa_zksync.set_zksync_env(zksync_rpc)


def main():
boa.env.add_account(
Account.from_key(os.environ["FIDDYDEPLOYER"]), force_eoa=True
)
boa.load("contracts/AddressProviderNG.vy")


if __name__ == "__main__":
main()

0 comments on commit daab6a6

Please sign in to comment.