mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2024-11-26 03:36:47 +01:00
Correct missing chain spec changes
This commit is contained in:
parent
a15fe1d6a8
commit
9bece8494c
@ -21,6 +21,7 @@ from eth_keys import keys
|
|||||||
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
|
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
|
||||||
from crypto_dev_signer.keystore import DictKeystore
|
from crypto_dev_signer.keystore import DictKeystore
|
||||||
from crypto_dev_signer.eth.helper import EthTxExecutor
|
from crypto_dev_signer.eth.helper import EthTxExecutor
|
||||||
|
from chainlib.chain import ChainSpec
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
logg = logging.getLogger()
|
logg = logging.getLogger()
|
||||||
@ -60,8 +61,8 @@ if args.y != None:
|
|||||||
logg.debug('now have key for signer address {}'.format(signer_address))
|
logg.debug('now have key for signer address {}'.format(signer_address))
|
||||||
signer = EIP155Signer(keystore)
|
signer = EIP155Signer(keystore)
|
||||||
|
|
||||||
chain_pair = args.i.split(':')
|
chain_spec = ChainSpec.from_chain_str(args.i)
|
||||||
chain_id = int(chain_pair[1])
|
chain_id = chain_spec.network_id()
|
||||||
|
|
||||||
helper = EthTxExecutor(
|
helper = EthTxExecutor(
|
||||||
w3,
|
w3,
|
||||||
|
@ -16,11 +16,12 @@ import logging
|
|||||||
import time
|
import time
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
# third-party imports
|
# external imports
|
||||||
import web3
|
import web3
|
||||||
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
|
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
|
||||||
from crypto_dev_signer.keystore import DictKeystore
|
from crypto_dev_signer.keystore import DictKeystore
|
||||||
from crypto_dev_signer.eth.helper import EthTxExecutor
|
from crypto_dev_signer.eth.helper import EthTxExecutor
|
||||||
|
from chainlib.chain import ChainSpec
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
logg = logging.getLogger()
|
logg = logging.getLogger()
|
||||||
@ -37,7 +38,7 @@ argparser.add_argument('-p', '--provider', dest='p', default='http://localhost:8
|
|||||||
argparser.add_argument('-w', action='store_true', help='Wait for the last transaction to be confirmed')
|
argparser.add_argument('-w', action='store_true', help='Wait for the last transaction to be confirmed')
|
||||||
argparser.add_argument('-ww', action='store_true', help='Wait for every transaction to be confirmed')
|
argparser.add_argument('-ww', action='store_true', help='Wait for every transaction to be confirmed')
|
||||||
argparser.add_argument('-e', action='store_true', help='Treat all transactions as essential')
|
argparser.add_argument('-e', action='store_true', help='Treat all transactions as essential')
|
||||||
argparser.add_argument('-i', '--chain-spec', dest='i', type=str, default='Ethereum:1', help='Chain specification string')
|
argparser.add_argument('-i', '--chain-spec', dest='i', type=str, default='evm:ethereum:1', help='Chain specification string')
|
||||||
argparser.add_argument('-y', '--key-file', dest='y', type=str, help='Ethereum keystore file to use for signing')
|
argparser.add_argument('-y', '--key-file', dest='y', type=str, help='Ethereum keystore file to use for signing')
|
||||||
argparser.add_argument('--name', dest='n', default='Giftable Token', type=str, help='Token name')
|
argparser.add_argument('--name', dest='n', default='Giftable Token', type=str, help='Token name')
|
||||||
argparser.add_argument('--symbol', dest='s', default='GFT', type=str, help='Token symbol')
|
argparser.add_argument('--symbol', dest='s', default='GFT', type=str, help='Token symbol')
|
||||||
@ -65,8 +66,8 @@ if args.y != None:
|
|||||||
logg.debug('now have key for signer address {}'.format(signer_address))
|
logg.debug('now have key for signer address {}'.format(signer_address))
|
||||||
signer = EIP155Signer(keystore)
|
signer = EIP155Signer(keystore)
|
||||||
|
|
||||||
chain_pair = args.i.split(':')
|
chain_spec = ChainSpec.from_chain_str(args.i)
|
||||||
chain_id = int(chain_pair[1])
|
chain_id = chain_spec.network_id()
|
||||||
|
|
||||||
helper = EthTxExecutor(
|
helper = EthTxExecutor(
|
||||||
w3,
|
w3,
|
||||||
|
@ -21,6 +21,7 @@ from eth_keys import keys
|
|||||||
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
|
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
|
||||||
from crypto_dev_signer.keystore import DictKeystore
|
from crypto_dev_signer.keystore import DictKeystore
|
||||||
from crypto_dev_signer.eth.helper import EthTxExecutor
|
from crypto_dev_signer.eth.helper import EthTxExecutor
|
||||||
|
from chainlib.chain from ChainSpec
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
logg = logging.getLogger()
|
logg = logging.getLogger()
|
||||||
@ -61,8 +62,8 @@ if args.y != None:
|
|||||||
logg.debug('now have key for signer address {}'.format(signer_address))
|
logg.debug('now have key for signer address {}'.format(signer_address))
|
||||||
signer = EIP155Signer(keystore)
|
signer = EIP155Signer(keystore)
|
||||||
|
|
||||||
chain_pair = args.i.split(':')
|
chain_spec = ChainSpec.from_chain_str(args.i)
|
||||||
chain_id = int(chain_pair[1])
|
chain_id = chain_spec.network_id()
|
||||||
|
|
||||||
helper = EthTxExecutor(
|
helper = EthTxExecutor(
|
||||||
w3,
|
w3,
|
||||||
|
@ -1 +1,2 @@
|
|||||||
web3==5.12.2
|
web3==5.12.2
|
||||||
|
chainlib~=0.0.1a15
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = giftable-erc20-token
|
name = giftable-erc20-token
|
||||||
version = 0.0.7b10
|
version = 0.0.7b11
|
||||||
description = Simple ERC20 contract with deployment script that lets any address mint and gift itself tokens.
|
description = Simple ERC20 contract with deployment script that lets any address mint and gift itself tokens.
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
@ -29,6 +29,7 @@ packages =
|
|||||||
install_requires =
|
install_requires =
|
||||||
web3==5.12.2
|
web3==5.12.2
|
||||||
crypto-dev-signer~=0.4.13rc2
|
crypto-dev-signer~=0.4.13rc2
|
||||||
|
chainlib~=0.0.1a15
|
||||||
|
|
||||||
[options.package_data]
|
[options.package_data]
|
||||||
* =
|
* =
|
||||||
|
Loading…
Reference in New Issue
Block a user