mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2024-11-22 01:36:46 +01:00
Simplify chainlib find include
This commit is contained in:
parent
fc9fa18e1c
commit
7ab3cd14f5
@ -1 +1,4 @@
|
|||||||
from .factory import GiftableToken
|
from .factory import GiftableToken
|
||||||
|
from .factory import bytecode
|
||||||
|
from .factory import create
|
||||||
|
from .factory import default
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
# local imports
|
|
||||||
from .factory import GiftableToken
|
|
||||||
|
|
||||||
|
|
||||||
def code(v):
|
|
||||||
version = None
|
|
||||||
if v != None:
|
|
||||||
version = v[0]
|
|
||||||
return GiftableToken.bytecode(version=version)
|
|
||||||
|
|
||||||
|
|
||||||
def init(v):
|
|
||||||
if v == None or len(v) < 3:
|
|
||||||
raise ValueError('minimum 3 arguments required')
|
|
||||||
version = None
|
|
||||||
if len(v) == 4:
|
|
||||||
version = v[4]
|
|
||||||
return GiftableToken.cargs(v[0], v[1], v[2], version=version)
|
|
||||||
|
|
||||||
|
|
||||||
default = code
|
|
@ -103,3 +103,11 @@ class GiftableToken(TxFactory):
|
|||||||
return tx
|
return tx
|
||||||
|
|
||||||
|
|
||||||
|
def bytecode(version=None):
|
||||||
|
return GiftableToken.bytecode(version=version)
|
||||||
|
|
||||||
|
|
||||||
|
def create(name, symbol, decimals, version=None):
|
||||||
|
return GiftableToken.cargs(name, symbol, decimals, version=version)
|
||||||
|
|
||||||
|
default = bytecode
|
||||||
|
Loading…
Reference in New Issue
Block a user