Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit c75d5c8

Browse files
authored
Merge pull request #253 from aeternity/release/5.0.1
Release/5.0.1
2 parents 6a477fc + b1d4984 commit c75d5c8

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [5.0.1](https://github.com/aeternity/aepp-sdk-python/releases/tag/5.0.1) ([compare](https://github.com/aeternity/aepp-sdk-python/compare/5.0.0...5.0.1)) - 2019-10-06
8+
9+
### Bug Fixes
10+
- fix: compatibility range for node version (#251) ([a1b273e](https://github.com/aeternity/aepp-sdk-python/commit/a1b273eb73b093c81c8ef3e8de3dcfe24989a8d5)).
11+
- fix: inspect oracle (#252) ([9daf5ef](https://github.com/aeternity/aepp-sdk-python/commit/9daf5efae9a6abb2a312667078c1f76ccf21be39)).
12+
13+
14+
715
## [5.0.0](https://github.com/aeternity/aepp-sdk-python/releases/tag/5.0.0) ([compare](https://github.com/aeternity/aepp-sdk-python/compare/4.3.0...5.0.0)) - 2019-10-04
816

917

aeternity/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pkg_resources
22

3-
__node_compatibility__ = (">=3.0.1", "<=5.0.0-rc.3")
4-
__compiler_compatibility__ = (">=3.2.0", "<5.0.0")
3+
__node_compatibility__ = (">=3.0.1", "<=5.0.0")
4+
__compiler_compatibility__ = (">=3.2.0", "<6.0.0")
55

66

77
def _version():

aeternity/identifiers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"OracleRegisterTx": OBJECT_TAG_ORACLE_REGISTER_TRANSACTION,
153153
"OracleExtendTx": OBJECT_TAG_ORACLE_EXTEND_TRANSACTION,
154154
"OracleQueryTx": OBJECT_TAG_ORACLE_QUERY_TRANSACTION,
155-
"OracleResponseTx": OBJECT_TAG_ORACLE_RESPONSE_TRANSACTION,
155+
"OracleRespondTx": OBJECT_TAG_ORACLE_RESPONSE_TRANSACTION,
156156
"NamePreclaimTx": OBJECT_TAG_NAME_SERVICE_PRECLAIM_TRANSACTION,
157157
"NameClaimTx": OBJECT_TAG_NAME_SERVICE_CLAIM_TRANSACTION,
158158
"NameUpdateTx": OBJECT_TAG_NAME_SERVICE_UPDATE_TRANSACTION,
@@ -179,7 +179,7 @@
179179
OBJECT_TAG_ORACLE_REGISTER_TRANSACTION: "OracleRegisterTx",
180180
OBJECT_TAG_ORACLE_EXTEND_TRANSACTION: "OracleExtendTx",
181181
OBJECT_TAG_ORACLE_QUERY_TRANSACTION: "OracleQueryTx",
182-
OBJECT_TAG_ORACLE_RESPONSE_TRANSACTION: "OracleResponseTx",
182+
OBJECT_TAG_ORACLE_RESPONSE_TRANSACTION: "OracleRespondTx",
183183
OBJECT_TAG_NAME_SERVICE_PRECLAIM_TRANSACTION: "NamePreclaimTx",
184184
OBJECT_TAG_NAME_SERVICE_CLAIM_TRANSACTION: "NameClaimTx",
185185
OBJECT_TAG_NAME_SERVICE_UPDATE_TRANSACTION: "NameUpdateTx",

aeternity/transactions.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,21 @@ def _jsontx_to_txobject(self, api_data):
557557
if descriptor is None:
558558
# the transaction is not defined
559559
raise TypeError(f"Unknown transaction tag/version: {tag}/{vsn}")
560+
561+
# flatten the oracle_ttl fields
562+
def flatten_ttl(key, data):
563+
ttl = data.pop(key)
564+
data[f"{key}_type"] = ttl.get("type")
565+
data[f"{key}_value"] = ttl.get("value")
566+
567+
if tag == idf.OBJECT_TAG_ORACLE_QUERY_TRANSACTION:
568+
flatten_ttl("query_ttl", tx_data)
569+
flatten_ttl("response_ttl", tx_data)
570+
if tag in [idf.OBJECT_TAG_ORACLE_REGISTER_TRANSACTION, idf.OBJECT_TAG_ORACLE_EXTEND_TRANSACTION]:
571+
flatten_ttl("oracle_ttl", tx_data)
572+
if tag == idf.OBJECT_TAG_ORACLE_RESPONSE_TRANSACTION:
573+
flatten_ttl("response_ttl", tx_data)
574+
560575
# do not compute the fee for a signed transaction
561576
compute_hash = True if tag == idf.OBJECT_TAG_SIGNED_TRANSACTION else False
562577
return self._txdata_to_txobject(tx_data, descriptor, compute_hash=compute_hash)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aepp-sdk"
3-
version = "5.0.0"
3+
version = "5.0.1"
44
description = "Python SDK to interact with the Æternity blockchain"
55
authors = [
66
"Andrea Giacobino <[email protected]>",

0 commit comments

Comments
 (0)