Rehabilitate deployer cli script

This commit is contained in:
lash
2023-02-10 10:05:10 +00:00
parent 5317573b47
commit dc891ce9bb
11 changed files with 886 additions and 221 deletions

View File

@@ -18,11 +18,11 @@ from chainlib.eth.contract import (
)
from hexathon import same as hex_same
from hexathon import strip_0x
from dexif import from_fixed
# local imports
from erc20_demurrage_token import DemurrageToken
from erc20_demurrage_token import DemurrageRedistribution
from erc20_demurrage_token.fixed import from_fixed
# test imports
from erc20_demurrage_token.unittest import TestDemurrageDefault

View File

@@ -18,10 +18,10 @@ from hexathon import (
add_0x,
same as hex_same,
)
from dexif import from_fixed
# local imports
from erc20_demurrage_token import DemurrageToken
from erc20_demurrage_token.fixed import from_fixed
# test imports
from erc20_demurrage_token.unittest import TestDemurrageDefault
@@ -63,7 +63,6 @@ class TestRedistribution(TestDemurrageDefault):
o = c.to_redistribution_demurrage_modifier(self.address, redistribution, sender_address=self.accounts[0])
r = self.rpc.do(o)
#demurrage = c.parse_to_redistribution_item(r)
demurrage = from_fixed(r)
o = c.redistributions(self.address, i-1, sender_address=self.accounts[0])
@@ -71,7 +70,6 @@ class TestRedistribution(TestDemurrageDefault):
o = c.to_redistribution_demurrage_modifier(self.address, redistribution, sender_address=self.accounts[0])
r = self.rpc.do(o)
#demurrage_previous = c.parse_to_redistribution_item(r)
demurrage_previous = from_fixed(r)
o = c.balance_of(self.address, self.sink_address, sender_address=self.accounts[0])

View File

@@ -16,10 +16,10 @@ from hexathon import (
strip_0x,
add_0x,
)
from dexif import to_fixed
# local imports
from erc20_demurrage_token import DemurrageToken
from erc20_demurrage_token.fixed import to_fixed
from erc20_demurrage_token import DemurrageRedistribution
# test imports

View File

@@ -13,13 +13,13 @@ from hexathon import (
strip_0x,
add_0x,
)
from dexif import to_fixed
# local imports
from erc20_demurrage_token import DemurrageToken
# test imports
from erc20_demurrage_token.unittest import TestDemurrageDefault
from erc20_demurrage_token.fixed import to_fixed
logging.basicConfig(level=logging.DEBUG)
logg = logging.getLogger()