eth-brownie / brownie

A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
https://eth-brownie.readthedocs.io
MIT License
2.65k stars 552 forks source link

add multicall2 for ftm #1239

Open BlinkyStitt opened 3 years ago

BlinkyStitt commented 3 years ago
In [7]: brownie.multicall.deploy({"from": a})
Transaction sent: 0x509512f6d04774794229f7e862667d136cd6ccdd36e9f127e69d412f353e6517
  Gas price: 50.0 gwei   Gas limit: 656569   Nonce: 345
  Multicall2.constructor confirmed   Block: 16572242   Gas used: 602849 (91.82%)
  Multicall2 deployed at: 0xBAD2B082e2212DE4B065F636CA4e5e0717623d18
BlinkyStitt commented 3 years ago
In [20]: project.Multicall2.publish_source(load_contract("0xbad2b082e2212de4b065f636ca4e5e0717623d18"), silent=False)
Verification submitted successfully. Waiting for result...
Verification pending...
BlinkyStitt commented 3 years ago

it would be cool if this used the singleton deployer. then the address would be deterministic instead of depending on the sender and their nonce

BlinkyStitt commented 3 years ago

publish_source didn't return, so I verified it on the website directly: https://ftmscan.com/address/0xbad2b082e2212de4b065f636ca4e5e0717623d18#code