mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2024-11-26 03:36:47 +01:00
Upgrade signer
This commit is contained in:
parent
d21ea1b0b3
commit
129481c8e1
File diff suppressed because one or more lines are too long
@ -15,6 +15,7 @@ import argparse
|
|||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
import uuid
|
||||||
|
|
||||||
# third-party imports
|
# third-party imports
|
||||||
import web3
|
import web3
|
||||||
@ -88,9 +89,15 @@ def main():
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
c = w3.eth.contract(abi=abi, bytecode=bytecode)
|
c = w3.eth.contract(abi=abi, bytecode=bytecode)
|
||||||
|
tx = c.constructor(args.n, args.s, args.d).buildTransaction
|
||||||
|
uu = str(uuid.uuid4())
|
||||||
|
f = open(os.path.join('txs', uu), 'w')
|
||||||
|
f.write(str(tx()))
|
||||||
|
f.close()
|
||||||
|
logg.info('saved to {}'.format(uu))
|
||||||
(tx_hash, rcpt) = helper.sign_and_send(
|
(tx_hash, rcpt) = helper.sign_and_send(
|
||||||
[
|
[
|
||||||
c.constructor(args.n, args.s, args.d).buildTransaction
|
tx,
|
||||||
],
|
],
|
||||||
force_wait=True,
|
force_wait=True,
|
||||||
)
|
)
|
||||||
|
@ -95,6 +95,7 @@ def main():
|
|||||||
[
|
[
|
||||||
c.functions.mint(args.amount).buildTransaction,
|
c.functions.mint(args.amount).buildTransaction,
|
||||||
],
|
],
|
||||||
|
force_wait=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
logg.info('mint to {} tx {}'.format(signer_address, tx_hash)) #.hex()))
|
logg.info('mint to {} tx {}'.format(signer_address, tx_hash)) #.hex()))
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = giftable-erc20-token
|
name = giftable-erc20-token
|
||||||
version = 0.0.7b3
|
version = 0.0.7b6
|
||||||
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
|
||||||
@ -28,7 +28,7 @@ packages =
|
|||||||
giftable_erc20_token.runnable
|
giftable_erc20_token.runnable
|
||||||
install_requires =
|
install_requires =
|
||||||
web3==5.12.2
|
web3==5.12.2
|
||||||
crypto-dev-signer~=0.4.13b10
|
crypto-dev-signer~=0.4.13rc1
|
||||||
|
|
||||||
[options.package_data]
|
[options.package_data]
|
||||||
* =
|
* =
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user