Skip to content

Commit 87b8dab

Browse files
committed
Merge branch 'release/1.5.0'
2 parents 39f76a3 + 964082d commit 87b8dab

File tree

16 files changed

+966
-174
lines changed

16 files changed

+966
-174
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ dist: bionic
22
language: python
33
python:
44
- "3.7"
5-
65
script:
76
- set -e
7+
- if [ -n "$DOCKER_PASSWORD" ]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; fi
88
- python3 test_unit.py
99
- make docker-test
10+
env:
11+
global:
12+
- secure: CNZSqSglsDSMYKwxyTxoj6FrSCshvsl/9aXdnlFXl8Y/+zDIKCdV5Py0TgboPmhQtMBtYqkxLv7nItlB4jRjVHWXQ26J7tNhqZX4SEKvfmyKv94y10/HdV/rXJdYJLemobt2C2iheqBMMbg+py0Pyh5kyZfdORvyqukeh4XldhFbqmhSHomh2/juo7AiqRhk9L68TGWPkIvYjKvCx43SLu8c8eJXosdllFoOp69c1IjEEwlfBAUTXAyytZnogBkuzhCzjJgEbWT8x4umpud46vHvtUwmRExGa/wqhWlAo4KSeR59wX7T/BhG15w2DxqVWuzjn7s+26Il+crT3rKCPfrInDmu6A6dtFcYGl9+g8DYlXczs0hIPHRUvA8ieQpO2wMKMBUcR+4qsiXe8510ISy3WJRzJDmW2XwfrJ/tiLomeaA4MGWrOWsszxVQddTREKVP0PQeszLJQFA/RgyaYMzeZQPn9xXD+tJS7aAwlszdHgq+Hm1JIA8763b7jnuEPLimdZwrY4z3B9/y8or9I0tVhcRRbVipJKVQDCZrJpZE+Rh6oCnZ/GRGUrAiPJqKExO8HtH37025KTAxuCCYkHGHb1hEw3P0a63KUvaRzO4/5ElWp/sFJq1LxDehFyuONBdrOo3DY3scEs27GhTMtXUq1Z2kkTMi9AV5L/NYxK0=
13+
- secure: GtSY5hon4bWzHTTVNB6CFPYgM+umWgiECPj0gnw/d6bmypwUxVnydBx4j6p+GYzwd6u7eByGXwPWQhrqsv5SLNS5683GS7qf89ab0bRhiQsW3J7s/QlmdRbMosw0mZ4E9JeQAC+IK/yAuqS+m0YcQuqks9ausJUgz0NjgjcJKvZTPjhi7up+kdJZ9nOkyIlJEJ6d4IJLYZT0RK3T5RapfTkw/NF15keYMtVV/Paf4vYyV0sqHwAt1DdT6bjpEj/2eN6WG+ISVKvzXWYhCcq86Yk89TqqY6hECTYRe+1pJqmTIJe2RNgNk9+W2NlOfpTswCG8bzLZbK08ph/QD61KzHIaya/IpCXnaEriW3wda7kkSoTPVOE4eiIQr7uG0zHY6nVO3EnxxM7YMRdaMUcCF//+SCjSIbbMKhUwKhz2gjbDQT0iPfgIPs5Hb75OhidcVWbqVmlWSiAQBEiCTYpVtx4HwNDZdozYCIS0Jw+I5aR7fVp4e1TrzbZ7OIIDgwrGmX1ZB4UXO1EMovWlkwRo4YylWafjrs/euqmQqMrG4XiTaWGvZUxuA/9qmDTNCGksn/idC8VVCN6/9MCrNSjjbbQBuIHaymHw/CUL8hbp80Ih6i+9Srq1QPaGBAPUEIDeHxljeyc1VJUcHB14883U2JRJPvAls1u+wRB9DsPpsoc=

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 1.5.0
4+
### Added
5+
- Support new features for indexer 2.3.2
6+
- Support for offline and nonparticipating key registration transactions.
7+
- Add TEAL 3 support
8+
9+
### BugFix
10+
- Detects the sending of unsigned transactions
11+
- Add asset_info() and application_info() methods to the v2 AlgodClient class.
12+
313
## 1.4.1
414
## Bugfix
515
- Dependency on missing constant removed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM python:3.7.7
1+
FROM python:3.7.9
22

33
# Copy SDK code into the container
44
RUN mkdir -p $HOME/py-algorand-sdk
55
COPY . $HOME/py-algorand-sdk
66
WORKDIR $HOME/py-algorand-sdk
77

88
# SDK dependencies, and source version of behave with tag expression support
9-
RUN pip3 install git+https://github.com/algorand/py-algorand-sdk/ -q \
9+
RUN pip install . -q \
1010
&& pip install git+https://github.com/behave/behave -q
1111

1212
# Run integration tests

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
unit:
2-
behave --tags="@unit.offline or @unit.algod or @unit.indexer or @unit.rekey or @unit.tealsign or @unit.dryrun or @unit.responses" test -f progress2
2+
behave --tags="@unit.offline or @unit.algod or @unit.indexer or @unit.rekey or @unit.tealsign or @unit.dryrun or @unit.applications or @unit.responses or @unit.transactions or @unit.responses.231" test -f progress2
33

44
integration:
5-
behave --tags="@algod or @assets or @auction or @kmd or @send or @template or @indexer or @indexer.applications or @rekey or @compile or @dryrun or @dryrun.testing or @applications or @applications.verified" test -f progress2
5+
behave --tags="@algod or @assets or @auction or @kmd or @send or @template or @indexer or @indexer.applications or @rekey or @compile or @dryrun or @dryrun.testing or @applications or @applications.verified or @indexer.231" test -f progress2
66

77
docker-test:
88
./run_integration.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else:
3434

3535
## Node setup
3636

37-
Follow the instructions in Algorand's [developer resources](https://developer.algorand.org/docs/introduction-installing-node) to install a node on your computer.
37+
Follow the instructions in Algorand's [developer resources](https://developer.algorand.org/docs/run-a-node/setup/install/) to install a node on your computer.
3838

3939
## Running examples/example.py
4040

algosdk/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""str: header key for algod requests"""
99
indexer_auth_header = "X-Indexer-API-Token"
1010
"""str: header key for indexer requests"""
11-
unversioned_paths = ["/health", "/versions", "/metrics"]
11+
unversioned_paths = ["/health", "/versions", "/metrics", "/genesis"]
1212
"""str[]: paths that don't use the version path prefix"""
1313
no_auth = []
1414
"""str[]: requests that don't require authentication"""
@@ -55,6 +55,8 @@
5555
"""bytes: program (logic) data prefix when signing"""
5656

5757

58+
hash_len = 32
59+
"""int: how long various hash-like fields should be"""
5860
check_sum_len_bytes = 4
5961
"""int: how long checksums should be"""
6062
key_len_bytes = 32

algosdk/data/langspec.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

algosdk/error.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ def __init__(self):
4545
Exception.__init__(self, "mnemonic length must be 25")
4646

4747

48+
class WrongHashLengthError(Exception):
49+
"""General error that is normally changed to be more specific"""
50+
51+
def __init(self):
52+
Exception.__init__(self, "length must be 32 bytes")
53+
54+
4855
class WrongKeyBytesLengthError(Exception):
4956
def __init__(self):
5057
Exception.__init__(self, "key length in bytes must be 32")

0 commit comments

Comments
 (0)