diff --git a/contracts/AddressProviderNG.vy b/contracts/AddressProviderNG.vy index 06b1eff..9b7f2f9 100644 --- a/contracts/AddressProviderNG.vy +++ b/contracts/AddressProviderNG.vy @@ -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: @@ -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 diff --git a/requirements.in b/requirements.in index 3267103..e26d9ba 100644 --- a/requirements.in +++ b/requirements.in @@ -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 diff --git a/scripts/deploy_addressprovider_and_setup_zksync.py b/scripts/deploy_addressprovider_and_setup_zksync.py new file mode 100644 index 0000000..b3841d0 --- /dev/null +++ b/scripts/deploy_addressprovider_and_setup_zksync.py @@ -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()