mirror of
git://holbrook.no/erc20-demurrage-token
synced 2026-04-27 10:31:04 +02:00
Rehabilitate deployer cli script
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user