erc20-transfer-authorization

Simple approval escrow for ERC20 spending
Log | Files | Refs

commit 11e43333adfda43fe7e10b5883f3750d4966f858
parent 95990542e86936d820192b520c726a0fc4f1f7ba
Author: nolash <dev@holbrook.no>
Date:   Sun,  4 Apr 2021 14:40:00 +0200

Upgrade chainlib

Diffstat:
Mpython/erc20_transfer_authorization/runnable/deploy.py | 5++---
Mpython/requirements.txt | 4++--
Mpython/setup.cfg | 2+-
3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/python/erc20_transfer_authorization/runnable/deploy.py b/python/erc20_transfer_authorization/runnable/deploy.py @@ -34,7 +34,7 @@ argparser = argparse.ArgumentParser() argparser.add_argument('-p', '--provider', dest='p', default='http://localhost:8545', type=str, help='Web3 provider url (http only)') 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('-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('-a', '--signer-address', dest='a', type=str, help='Signer address') argparser.add_argument('-y', '--key-file', dest='y', type=str, help='Ethereum keystore file to use for signing') argparser.add_argument('-v', action='store_true', help='Be verbose') @@ -67,7 +67,6 @@ if args.y != None: signer = EIP155Signer(keystore) chain_spec = ChainSpec.from_chain_str(args.i) -chain_id = chain_spec.network_id() rpc = EthHTTPConnection(args.p) nonce_oracle = RPCNonceOracle(signer_address, rpc) @@ -75,7 +74,7 @@ gas_oracle = RPCGasOracle(rpc, code_callback=TransferAuthorization.gas) def main(): - c = TransferAuthorization(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle, chain_id=chain_id) + c = TransferAuthorization(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle) (tx_hash_hex, o) = c.constructor(signer_address) rpc.do(o) if block_last: diff --git a/python/requirements.txt b/python/requirements.txt @@ -1,3 +1,3 @@ confini~=0.3.6rc3 -crypto-dev-signer~=0.4.14a9 -chainlib~=0.0.1a34 +crypto-dev-signer~=0.4.14a17 +chainlib~=0.0.2a1 diff --git a/python/setup.cfg b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = erc20-transfer-authorization -version = 0.3.1a1 +version = 0.3.1a3 description = Simple approval escrow for ERC20 spend approval author = Louis Holbrook author_email = dev@holbrook.no