Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9548ed5d1b
|
||
|
|
e499770d6d
|
||
|
|
e49fae9717
|
||
|
|
84c4a82abb
|
||
|
|
a71b3d6388
|
||
|
|
2dd92fe74b
|
||
|
|
129e25bbf5
|
||
|
|
a76020b13b
|
@@ -1,3 +1,9 @@
|
|||||||
|
- 0.1.3
|
||||||
|
* Add block author field
|
||||||
|
- 0.1.2
|
||||||
|
* Upgrade chainlib dep
|
||||||
|
- 0.1.1
|
||||||
|
* Add fee_limit, fee_price alias to Tx object
|
||||||
- 0.1.0:
|
- 0.1.0:
|
||||||
* Allow nonce ommission in encode when not tx mode
|
* Allow nonce ommission in encode when not tx mode
|
||||||
* Add rcpt src to tx object
|
* Add rcpt src to tx object
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ class Block(BaseBlock):
|
|||||||
self.timestamp = int(strip_0x(src['timestamp']), 16)
|
self.timestamp = int(strip_0x(src['timestamp']), 16)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.timestamp = int(src['timestamp'])
|
self.timestamp = int(src['timestamp'])
|
||||||
|
self.author = src['author']
|
||||||
|
|
||||||
|
|
||||||
def get_tx(self, tx_hash):
|
def get_tx(self, tx_hash):
|
||||||
|
|||||||
@@ -429,6 +429,8 @@ class TxFactory:
|
|||||||
return self.build_raw(tx)
|
return self.build_raw(tx)
|
||||||
elif tx_format == TxFormat.RAW_ARGS:
|
elif tx_format == TxFormat.RAW_ARGS:
|
||||||
return strip_0x(tx['data'])
|
return strip_0x(tx['data'])
|
||||||
|
elif tx_format == TxFormat.DICT:
|
||||||
|
return tx
|
||||||
raise NotImplementedError('tx formatting {} not implemented'.format(tx_format))
|
raise NotImplementedError('tx formatting {} not implemented'.format(tx_format))
|
||||||
|
|
||||||
|
|
||||||
@@ -554,6 +556,9 @@ class Tx(BaseTx):
|
|||||||
self.outputs = [to_checksum(address_from)]
|
self.outputs = [to_checksum(address_from)]
|
||||||
self.contract = None
|
self.contract = None
|
||||||
|
|
||||||
|
self.fee_limit = self.gas_limit
|
||||||
|
self.fee_price = self.gas_price
|
||||||
|
|
||||||
try:
|
try:
|
||||||
inpt = src['input']
|
inpt = src['input']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
funga-eth~=0.6.0
|
funga-eth~=0.6.1
|
||||||
pysha3==1.0.2
|
pysha3==1.0.2
|
||||||
hexathon~=0.1.5
|
hexathon~=0.1.6
|
||||||
websocket-client==0.57.0
|
websocket-client==0.57.0
|
||||||
potaahto~=0.1.1
|
potaahto~=0.1.1
|
||||||
chainlib>=0.1.0b1,<=0.1.0
|
chainlib~=0.1.2
|
||||||
confini~=0.6.0
|
confini~=0.6.0
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib-eth
|
name = chainlib-eth
|
||||||
version = 0.1.0b4
|
version = 0.1.3
|
||||||
description = Ethereum implementation of the chainlib interface
|
description = Ethereum implementation of the chainlib interface
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
url = https://gitlab.com/chaintools/chainlib
|
url = https://gitlab.com/chaintool/chainlib-eth
|
||||||
keywords =
|
keywords =
|
||||||
dlt
|
dlt
|
||||||
blockchain
|
blockchain
|
||||||
@@ -26,7 +26,7 @@ licence_files =
|
|||||||
|
|
||||||
[options]
|
[options]
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
python_requires = >= 3.6
|
python_requires = >= 3.7
|
||||||
packages =
|
packages =
|
||||||
chainlib.eth
|
chainlib.eth
|
||||||
chainlib.eth.dialect
|
chainlib.eth.dialect
|
||||||
|
|||||||
Reference in New Issue
Block a user