iamdefinitelyahuman / brownie-token-tester Goto Github PK
View Code? Open in Web Editor NEWHelper objects for generating ERC20s while testing a Brownie project.
License: MIT License
Helper objects for generating ERC20s while testing a Brownie project.
License: MIT License
brownie
Version: 1.17.0brownie-token-tester
Version: 0.3.2ganache-cli
Version: 6.12.2tokens that already have been initialised with brownie.interface.ERC20
do not have the mint
attribute:
AttributeError: Contract 'ERC20' object has no attribute 'mint'
instead of simply inheriting Contract
, i think the MintableForkToken
class should use a custom, hardcoded interface which extends brownie.interface.ERC20
with the necessary functions:
mint
updateGlobalPoolContract
createTokens
changeMaxSupply
issue
configureMinter
brownie
Version: v1.19.0brownie-token-tester
Version: 0.3.2ganache-cli
Version: v6.12.2Functionality not available: I tired installing brownie-token-tester using pipx, pip and setuptools.
I am in anaconda environment and I can see it has been installed.
what command you ran
brownie run scripts/stake.py --network mainnet-fork-dev
the code that caused the failure in stake.py:
from brownie_tokens import MintableForkToken
....
dai = MintableForkToken(dai_addr)
Brownie v1.19.0 - Python development framework for Ethereum
CurveFiProject is the active project.
Launching 'ganache-cli --accounts 10 --fork https://eth-mainnet.alchemyapi.io/v2/c40U6PVX1zEFdcRfYVjXMC2X1RBpNKpx --mnemonic brownie --port 8545 --hardfork istanbul'...
Running 'scripts/stake.py::main'...
0x66aB6D9362d4F35596279692F0251Db635165871
0x33A4622B82D4c04a53e170c638B944ce27cffce3
File "brownie/_cli/run.py", line 55, in main
_include_frame=True,
File "brownie/project/scripts.py", line 110, in run
return_value = f_locals[method_name](*args, **kwargs)
File "./scripts/stake.py", line 19, in main
dai = MintableForkToken(dai_addr)
File "brownie/network/contract.py", line 884, in __init__
build, sources = _get_deployment(alias=address_or_alias)
File "brownie/network/state.py", line 603, in _get_deployment
raise BrownieEnvironmentError("Functionality not available in local environment") from None
BrownieEnvironmentError: Functionality not available in local environment
Fill this in if you know how the bug could be fixed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.