From d5ed9650b9eeff3064581ff3b3036931234e0603 Mon Sep 17 00:00:00 2001 From: Edward Amor Date: Fri, 25 Jun 2021 23:51:33 -0400 Subject: [PATCH] feat: add multicall2 to brownie namespace --- brownie/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brownie/__init__.py b/brownie/__init__.py index c71e40452..497221691 100644 --- a/brownie/__init__.py +++ b/brownie/__init__.py @@ -8,11 +8,13 @@ from brownie.convert import Fixed, Wei from brownie.network import accounts, alert, chain, history, rpc, web3 from brownie.network.contract import Contract # NOQA: F401 +from brownie.network.multicall2 import Multicall2 ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ZERO_ADDRESS = "0x0000000000000000000000000000000000000000" config = _CONFIG.settings +multicall2 = Multicall2 __all__ = [ "Contract", @@ -22,6 +24,7 @@ "alert", "chain", "history", # history is a TxHistory singleton + "multicall2", "network", "rpc", # rpc is a Rpc singleton "web3", # web3 is a Web3 instance