Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
onetechnical committed Apr 21, 2021
2 parents 39f76a3 + 964082d commit 87b8dab
Show file tree
Hide file tree
Showing 16 changed files with 966 additions and 174 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ dist: bionic
language: python
python:
- "3.7"

script:
- set -e
- if [ -n "$DOCKER_PASSWORD" ]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; fi
- python3 test_unit.py
- make docker-test
env:
global:
- secure: CNZSqSglsDSMYKwxyTxoj6FrSCshvsl/9aXdnlFXl8Y/+zDIKCdV5Py0TgboPmhQtMBtYqkxLv7nItlB4jRjVHWXQ26J7tNhqZX4SEKvfmyKv94y10/HdV/rXJdYJLemobt2C2iheqBMMbg+py0Pyh5kyZfdORvyqukeh4XldhFbqmhSHomh2/juo7AiqRhk9L68TGWPkIvYjKvCx43SLu8c8eJXosdllFoOp69c1IjEEwlfBAUTXAyytZnogBkuzhCzjJgEbWT8x4umpud46vHvtUwmRExGa/wqhWlAo4KSeR59wX7T/BhG15w2DxqVWuzjn7s+26Il+crT3rKCPfrInDmu6A6dtFcYGl9+g8DYlXczs0hIPHRUvA8ieQpO2wMKMBUcR+4qsiXe8510ISy3WJRzJDmW2XwfrJ/tiLomeaA4MGWrOWsszxVQddTREKVP0PQeszLJQFA/RgyaYMzeZQPn9xXD+tJS7aAwlszdHgq+Hm1JIA8763b7jnuEPLimdZwrY4z3B9/y8or9I0tVhcRRbVipJKVQDCZrJpZE+Rh6oCnZ/GRGUrAiPJqKExO8HtH37025KTAxuCCYkHGHb1hEw3P0a63KUvaRzO4/5ElWp/sFJq1LxDehFyuONBdrOo3DY3scEs27GhTMtXUq1Z2kkTMi9AV5L/NYxK0=
- 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=
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.5.0
### Added
- Support new features for indexer 2.3.2
- Support for offline and nonparticipating key registration transactions.
- Add TEAL 3 support

### BugFix
- Detects the sending of unsigned transactions
- Add asset_info() and application_info() methods to the v2 AlgodClient class.

## 1.4.1
## Bugfix
- Dependency on missing constant removed
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.7.7
FROM python:3.7.9

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

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

# Run integration tests
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
unit:
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
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

integration:
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
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

docker-test:
./run_integration.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else:

## Node setup

Follow the instructions in Algorand's [developer resources](https://developer.algorand.org/docs/introduction-installing-node) to install a node on your computer.
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.

## Running examples/example.py

Expand Down
4 changes: 3 additions & 1 deletion algosdk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""str: header key for algod requests"""
indexer_auth_header = "X-Indexer-API-Token"
"""str: header key for indexer requests"""
unversioned_paths = ["/health", "/versions", "/metrics"]
unversioned_paths = ["/health", "/versions", "/metrics", "/genesis"]
"""str[]: paths that don't use the version path prefix"""
no_auth = []
"""str[]: requests that don't require authentication"""
Expand Down Expand Up @@ -55,6 +55,8 @@
"""bytes: program (logic) data prefix when signing"""


hash_len = 32
"""int: how long various hash-like fields should be"""
check_sum_len_bytes = 4
"""int: how long checksums should be"""
key_len_bytes = 32
Expand Down
2 changes: 1 addition & 1 deletion algosdk/data/langspec.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions algosdk/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ def __init__(self):
Exception.__init__(self, "mnemonic length must be 25")


class WrongHashLengthError(Exception):
"""General error that is normally changed to be more specific"""

def __init(self):
Exception.__init__(self, "length must be 32 bytes")


class WrongKeyBytesLengthError(Exception):
def __init__(self):
Exception.__init__(self, "key length in bytes must be 32")
Expand Down
Loading

0 comments on commit 87b8dab

Please sign in to comment.