diff --git a/.circleci/circle_wheels.sh b/.circleci/circle_wheels.sh new file mode 100644 index 00000000..9a0fbe31 --- /dev/null +++ b/.circleci/circle_wheels.sh @@ -0,0 +1,16 @@ +# Compile wheels +for PYBIN in /opt/python/*/bin; do + "${PYBIN}/pip" install -r /io/requirements.dev.txt + "${PYBIN}/pip" install -r /io/requirements.txt + "${PYBIN}/pip" install -r /io/lib/skyapi/requirements.txt + "${PYBIN}/pip" wheel /io/ -w /io/wheelhouse/ + "${PYBIN}/pip" wheel /io/lib/skyapi/ -w /io/wheelhouse/ +done + +# Bundle external shared libraries into the wheels +for whl in /io/wheelhouse/*.whl; do + auditwheel repair "$whl" -w /io/wheelhouse/ +done + +rm -rfv /io/wheelhouse/*linux_i686.whl +rm -rfv /io/wheelhouse/*linux_x86_64.whl \ No newline at end of file diff --git a/.circleci/circle_wheels_arm.sh b/.circleci/circle_wheels_arm.sh new file mode 100644 index 00000000..2e71f613 --- /dev/null +++ b/.circleci/circle_wheels_arm.sh @@ -0,0 +1,8 @@ +# Compile wheels + pip wheel /io/ -w /io/wheelhouse/ + pip wheel /io/lib/skyapi/ -w /io/wheelhouse/ + # python3.4 -m pip wheel /io/ -w wheelhouse/ + pip3 wheel /io/lib/skyapi/ -w /io/wheelhouse/ + pip3 wheel /io/ -w /io/wheelhouse/ + # python3.6 -m pip wheel /io/ -w wheelhouse/ + # python3.7 -m pip wheel /io/ -w wheelhouse/ \ No newline at end of file diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..d6f2fcaa --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,51 @@ +version: 2 +jobs: + manylinux64: + docker: + - image: docker:18.06.0-ce-git + working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin + steps: + - run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin + - checkout + - setup_remote_docker: + version: 18.06.0-ce + + manylinux32: + docker: + - image: docker:18.06.0-ce-git + working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin + steps: + - run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin + - checkout + - setup_remote_docker: + version: 18.06.0-ce + + manylinuxarmv7: + docker: + - image: docker:18.06.0-ce-git + working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin + steps: + - run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin + - checkout + - setup_remote_docker: + version: 18.06.0-ce + - run: docker build --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-test + + docker: + - image: docker:18.06.0-ce-git + working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin + steps: + - run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin + - checkout + - setup_remote_docker: + version: 18.06.0-ce + - run: if [[ $CIRCLE_TAG ]]; then docker build --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg QEMU_PLATFORM=raspberrypi3 --build-arg VERSION --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/circle/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-deploy ; fi + + +workflows: + version: 2 + arm_test: + jobs: + - manylinux64 + - manylinux32 + - manylinuxarmv7 \ No newline at end of file diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh new file mode 100644 index 00000000..3b39caee --- /dev/null +++ b/.circleci/deploy.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -x + +git --version + +export VERSION="$(git describe --tags --exact-match HEAD)" + +if [[ "$VERSION" ]]; then + docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg GO_ARCH=386 --build-arg ARCH=i686 --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg URL_DEPLOY=https://pypi.org/legacy/ --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-deploy + docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg GO_ARCH=amd64 --build-arg ARCH=x86_64 --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg URL_DEPLOY=https://pypi.org/legacy/ --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-deploy + docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg ARCH=armv7hf --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-test + docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg ARCH=aarch64 --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-test +fi \ No newline at end of file diff --git a/.circleci/upload_pypi.sh b/.circleci/upload_pypi.sh new file mode 100644 index 00000000..d80c121f --- /dev/null +++ b/.circleci/upload_pypi.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -x + +if [[ "$URL_DEPLOY" ]]; then + + $TWINE_PATH upload -u ${PYPI_USER} -p ${PYPI_PASSWD} --skip-existing --repository-url ${URL_DEPLOY} /io/dist/*sky* + +else + + $TWINE_PATH upload -u ${PYPI_USER} -p ${PYPI_PASSWD} --skip-existing /io/dist/*sky* + go get github.com/tcnksm/ghr + ghr -t ${GITHUB_OAUTH_TOKEN} -u ${PROJECT_USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} ${VERSION} /io/dist/*sky* + +fi \ No newline at end of file diff --git a/.gitignore b/.gitignore index a33bef8b..5712a81c 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,8 @@ lib/swig/.cache # Temp files *.swp *.swo +skycoin.py +swig/pyskycoin_wrap.c # IDES .idea/ @@ -46,3 +48,8 @@ lib/swig/.cache # SWIG *.kbk +swig/pyskycoin_wrap.c +.directory +core* +qemu_* +venv diff --git a/.gitmodules b/.gitmodules index 0a96b1ea..afc8159f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "skycoin"] - path = gopath/src/github.com/skycoin/skycoin - url = https://github.com/skycoin/skycoin.git +[submodule "gopath/src/github.com/fibercrypto/libskyfiber"] + path = gopath/src/github.com/fibercrypto/libskyfiber + url = https://github.com/fibercrypto/libskyfiber diff --git a/.travis.yml b/.travis.yml index ae8cb4bc..0b15a34e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,133 +1,147 @@ matrix: include: - - os: linux - language: python - python: 2.7 - env: - - TOXENV=py27 - - PYTHON=2.7 - - os: linux - language: python - python: 3.4 - env: - - TOXENV=py34 - - PYTHON=3.4 - - os: linux - language: python - python: 3.5 - env: - - TOXENV=py35 - - PYTHON=3.5 - - os: linux - language: python - python: 3.6 - env: - - TOXENV=py36 - - PYTHON=3.6 - - os: linux - language: python - dist: xenial - python: 3.7 - sudo: true - services: - - docker - env: - - TOXENV=py37 - - PYTHON=3.7 - - os: osx - languague: generic - env: - - PYTHON=2.7.16 - - TOXENV=py27 - - os: osx - languague: generic - env: - - PYTHON=3.4.8 - - TOXENV=py34 - - os: osx - languague: generic - env: - - PYTHON=3.5.5 - - TOXENV=py35 - - os: osx - languague: generic - env: - - PYTHON=3.6.5 - - TOXENV=py36 - - os: osx - languague: generic - env: - - PYTHON=3.7.1 - - TOXENV=py37 + - os: linux + language: python + python: 3.5 + services: + - docker + env: + - TOXENV=py35 + - PYTHON=3.5 + - os: linux + language: python + python: 3.6 + services: + - docker + env: + - TOXENV=py36 + - PYTHON=3.6 + - os: linux + language: python + dist: xenial + python: 3.7 + sudo: true + services: + - docker + env: + - TOXENV=py37 + - PYTHON=3.7 + - os: linux + language: python + dist: xenial + python: 3.8 + sudo: true + services: + - docker + env: + - TOXENV=py38 + - PYTHON=3.8 + - os: osx + language: go + env: + - PYTHON=3.5.5 + - TOXENV=py35 + - os: osx + language: go + env: + - PYTHON=3.6.5 + - TOXENV=py36 + - os: osx + language: go + env: + - PYTHON=3.7.1 + - TOXENV=py37 + - os: osx + language: go + env: + - PYTHON=3.8.0 + - TOXENV=py38 + +env: + global: + - CGO_ENABLED: 1 + - PATH_SUBMODULE: "gopath/src/github.com/fibercrypto/libskyfiber" + before_install: -- cd gopath/src/github.com/skycoin/skycoin && git checkout v0.25.0 && cd ${TRAVIS_BUILD_DIR} -- if [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then bash ./.travis/install-linux.sh ; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then bash ./.travis/install-osx.sh; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then - export PYCMD_VERSION="$(echo ${PYTHON} | cut -d . -f 1,2)" ; - fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then export PYCMD_PATH="$(pyenv which python${PYCMD_VERSION})"; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then export PYCMD_DIRPATH="$( dirname ${PYCMD_PATH})" ; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then export PATH="${PYCMD_DIRPATH}:/Users/travis/.pyenv/shims:${PATH}"; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then - eval "alias python${PYCMD_VERSION}=$(pyenv which python${PYCMD_VERSION})" && eval "alias python2.7=$(pyenv which python2.7)"; - fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then pyenv versions ; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then pyenv which python${PYCMD_VERSION} ; fi -- if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then eval "python${PYCMD_VERSION} --version"; fi -- echo "PATH=$PATH" + - if [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then bash ./.travis/install-linux.sh ; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then bash ./.travis/install-osx.sh; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then + export PYCMD_VERSION="$(echo ${PYTHON} | cut -d . -f 1,2)" ; + fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then export PYCMD_PATH="$(pyenv which python${PYCMD_VERSION})"; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then export PYCMD_DIRPATH="$( dirname ${PYCMD_PATH})" ; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then export PATH="${PYCMD_DIRPATH}:/Users/travis/.pyenv/shims:${PATH}"; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then + eval "alias python${PYCMD_VERSION}=$(pyenv which python${PYCMD_VERSION})" && eval "alias python2.7=$(pyenv which python2.7)"; + fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then pyenv versions ; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then pyenv which python${PYCMD_VERSION} ; fi + - if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then eval "python${PYCMD_VERSION} --version"; fi + - echo "PATH=$PATH" + install: -- eval "$(gimme 1.10)" -before_script: - # Install PyPA Docker images for building multilinux wheels + - eval "$(gimme 1.11)" script: -# Test PySkycoin -- make test-ci + # Compile lib + - make build && make develop + # Format code to PEP8 + - make format + # Linter code to pylint + - make lint + # Test pyskyfiber + - make test-ci after_failure: -- cat ./.tox/${TOXENV}/log/${TOXENV}-*.log + - cat ./.tox/${TOXENV}/log/${TOXENV}-*.log notifications: email: false webhooks: https://fathomless-fjord-24024.herokuapp.com/notify before_deploy: -- echo "Generating distribution archives before deploy" -- make sdist -- make bdist_wheel -- if [ $TRAVIS_OS_NAME == "linux" && $TOXENV == "py37" ]; then make bdist_manylinux_amd64 ; fi -- ls dist + - echo "Generating distribution archives before deploy" + - make sdist + - make bdist_wheel + - if [ $TRAVIS_OS_NAME == "linux" ]; then make bdist_manylinux_amd64 ; fi + - ls dist deploy: -- provider: releases - api_key: - secure: kfY02m+bBVHJqwAoeJnLLPs2W7nis+YkfaU/Cb4IFsNlgjszHNDNZZikLdiO7TDw3XDLIPTHF0yesoeobA8oLiD8D1Z9n6eZg6fuQPBeOA2qOvBXasJNN+fZwJztSlr8yyVUp7OX+rWT0TNbDaqRI8MTJseKX7x8yIDi9Cxnkh6RIoPbvrdpmEvwlYf76ukC7Caw1IjBz/0QSML5C9U3hmkSNMGGzQh/oN4VexclDTP1Ze3DRXxXS8cSZMP8FaDSRt90AFErTJYO2hn4U3zCqL8eW6q/caL30hxdXN1xZuEwik3OfTiqB/86DOAVqJJAcpHCp1B/1JooSQ8SA0nsqTiw4CAAyR4a3cQcsbAM54kmbnTLj6GZg7OFn6MeYlsVpfx1E606uoHQjglHJZa0qPmwvEQE70gW9zxH3KGhiYLDba/ONtZWe0sc228jsrcqxQYvBfpRvizjpuEFPW2Bn6d8+C2mJzHWceAoUfvy1mhfZzYrrQJArewD55RFryqdjWpJg9RjF095rVWYCxq1Q90Xz1Ogx7f8y07MK747wYrgAiTcXnoX+pu6PzWYmK17y1N/9FamnUzmFUhv6xam7xFCAlR2yBvHnpJabgUjrcHnL3Ik7VQvZhPpHmf2M+xChZQgqOrcAAPz0mpUI4x1x1uudjas+WEO1fJBu01m6Xg= - file: dist/* - skip_cleanup: true - skip_existing: true - on: - all_branches: true - tags: true - repo: skycoin/pyskycoin -- provider: pypi - distributions: sdist - skip_cleanup: true - skip_existing: true - user: - secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI= - password: - secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI= - on: - all_branches: true - tags: true - repo: skycoin/pyskycoin -- provider: pypi - distributions: bdist_wheel - skip_cleanup: true - skip_existing: true - user: - secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI= - password: - secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI= - on: - all_branches: true - tags: true - repo: skycoin/pyskycoin - condition: $TRAVIS_OS_NAME = "osx" + - provider: releases + api_key: + secure: kfY02m+bBVHJqwAoeJnLLPs2W7nis+YkfaU/Cb4IFsNlgjszHNDNZZikLdiO7TDw3XDLIPTHF0yesoeobA8oLiD8D1Z9n6eZg6fuQPBeOA2qOvBXasJNN+fZwJztSlr8yyVUp7OX+rWT0TNbDaqRI8MTJseKX7x8yIDi9Cxnkh6RIoPbvrdpmEvwlYf76ukC7Caw1IjBz/0QSML5C9U3hmkSNMGGzQh/oN4VexclDTP1Ze3DRXxXS8cSZMP8FaDSRt90AFErTJYO2hn4U3zCqL8eW6q/caL30hxdXN1xZuEwik3OfTiqB/86DOAVqJJAcpHCp1B/1JooSQ8SA0nsqTiw4CAAyR4a3cQcsbAM54kmbnTLj6GZg7OFn6MeYlsVpfx1E606uoHQjglHJZa0qPmwvEQE70gW9zxH3KGhiYLDba/ONtZWe0sc228jsrcqxQYvBfpRvizjpuEFPW2Bn6d8+C2mJzHWceAoUfvy1mhfZzYrrQJArewD55RFryqdjWpJg9RjF095rVWYCxq1Q90Xz1Ogx7f8y07MK747wYrgAiTcXnoX+pu6PzWYmK17y1N/9FamnUzmFUhv6xam7xFCAlR2yBvHnpJabgUjrcHnL3Ik7VQvZhPpHmf2M+xChZQgqOrcAAPz0mpUI4x1x1uudjas+WEO1fJBu01m6Xg= + file: dist/* + skip_cleanup: true + skip_existing: true + on: + all_branches: true + tags: true + repo: fibercrypto/pyskyfiber + - provider: pypi + distributions: sdist + skip_cleanup: true + skip_existing: true + user: + secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI= + password: + secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI= + on: + all_branches: true + tags: true + repo: fibercrypto/pyskyfiber + - provider: pypi + distributions: bdist_wheel + skip_cleanup: true + skip_existing: true + user: + secure: qPng5d9MuWToDdnABpvUvKspQJ2xj+evgBQOMxpCpXKkrp3EcJtT7VA4bi3k3RlShiKMw71+gqqpGFOO8QshRRf0qldDSzwYefUxe0/dqwuKcb77tY4yUZJtYi3MX/jmWUW0kLSedNGXv42ye4TbFxnd0yCCNVrffbIclcIapzqAECB2a61btcrLTWqaqsO5BYitEQ9VfRtv20Kx4wSjxECNGr354kYV95d74g6zF0OzxMcxha2VB4MYKQ308gX1ISF11ZuaW35ZRa81dT8/fWa9j7/xhpXVBZ6craCBtAFc3q5AcQL0FlYmhM1XFgDanhv3Uxw75mhjapyMedQFpmRT+2ej4v+Le9Etf8rxeebZRJBch0o/zw8ZRUltKSeN8comWSCwaS1NQVauhb9D0cQ7R+0ULkLkBw3E4Os+9wLWNPppw4p7v4m5SpCcD5AVeBuUFd4F9y4LNfjWGrEMfyGjcSyZqZts0xoZ3L6ta05n1vr84ah8DpQRHrMl6PeuH0dfbYRxnGEhBJcEfXZ2RmqC6EBdV1OBnWh91bUpltnwv/kG+aIhtgp/ZSQY1DukglJ2QDrXZZ0HI7TjXwYTJeScPuxsbPcluepfFrxU0K3dib8JyeJEQOfN1ioE6ln9TDGcDgTuYvBbA3ndjtqJZeWiUS7siyO9d7aE2kPZOSI= + password: + secure: Lek+1bI8jaYADO5b4oLTirI3xqdYktV/ihyGCraK+Glp/U6FwwlF3ttRpvdT9/YyVRgWEt/jePQxH+COW3WbKh54MZWCMlMKmWc4JTs6zHliAWXecAQSvPDWHjzO0F1iz839MRBfQdBUMh1g7BFi4nC886DS7ts7+p2XXGsWwtI+quOwvZ6bS0M6nMTecG8OtpYCkOAoGZI6JEoDXyIygPR5+TIWXO2QFt7KT+fsircOvDHzdA2YY/oexwUWwLLf7J0qnRm2AEx0dDjpFTCaOr6+VxdjD7F8qDoXePzVEvW7AG6k0Emx3Vuj9JiTgga8qX3ExHSXoomNhiJoOM30UbH00mdT5Fz+6HqYqFieijX/Li2fExqXXp6Za4VHMrwImrXoYQw4350F8b6QzF7E4WouBBysBZIkBEswp69783uU1lGcbU0wnyj8SN6rYIPO03MG1e5HO+Dd9avMtCMdGj3qsNlmfK0v3fAGjrYsStMQtrfOUZGTahrHPh7P3VPB4qmsJ7eNo+lFtLN0I2+ehoqMd3UH+qggdFdLQFGVMe0SWCUV9Aoyxo9vVqbnPzclsmWL44M6YRDIgOtochNiDINbdx/EA/L517GrpSDjZwvhrJkoCE7Wr9m5YcC+x8qQXCpQ4dcYAJ4C+okASAIwtjOai5dQB7TfHJfN5XzSLUI= + on: + all_branches: true + tags: true + repo: fibercrypto/pyskyfiber + condition: $TRAVIS_OS_NAME = "osx" + - provider: script + script: bash .travis/skyapi_deploy.sh + on: + all_branches: true + tags: true + repo: fibercrypto/pyskyfiber + condition: $TRAVIS_BRANCH =~ "^release-.*$" # TODO: Upload manylinux wheels to PyPI diff --git a/.travis/build_wheels.sh b/.travis/build_wheels.sh old mode 100755 new mode 100644 index 4b76f02e..95bf817b --- a/.travis/build_wheels.sh +++ b/.travis/build_wheels.sh @@ -7,6 +7,16 @@ mkdir -p "$HOME/bin" PIP=/opt/python/cp27-cp27m/bin/pip source /io/.travis/install-linux.sh eval "$(gimme 1.10)" +# Install golang +curl -sL -o "go1.11.3.linux-$1.tar.gz" https://storage.googleapis.com/golang/go1.11.3.linux-$1.tar.gz +sudo tar -zxf go1.11.3.linux-$1.tar.gz -C /usr/local +echo 'export GOROOT=/usr/local/go' | sudo tee -a /etc/profile +echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee -a /etc/profile +echo 'export CGO_ENABLE=1' | sudo tee -a /etc/profile +source /etc/profile +go version +go env + # Compile wheels for PYBIN in /opt/python/*/bin; do "${PYBIN}/pip" install -r /io/requirements.dev.txt diff --git a/.travis/build_wheels_skyapi.sh b/.travis/build_wheels_skyapi.sh new file mode 100755 index 00000000..1e0e4d14 --- /dev/null +++ b/.travis/build_wheels_skyapi.sh @@ -0,0 +1,30 @@ +#!/bin/bash +set -e -x + +# Install system packages required by our library +yum install -y sudo pcre pcre-devel +mkdir -p "$HOME/bin" +PIP=/opt/python/cp27-cp27m/bin/pip source /io/.travis/install-linux.sh +eval "$(gimme 1.10)" + +# Install golang +curl -sL -o "go1.11.3.linux-$1.tar.gz" https://storage.googleapis.com/golang/go1.11.3.linux-$1.tar.gz +sudo tar -zxf go1.11.3.linux-$1.tar.gz -C /usr/local +echo 'export GOROOT=/usr/local/go' | sudo tee -a /etc/profile +echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee -a /etc/profile +echo 'export CGO_ENABLE=1' | sudo tee -a /etc/profile +source /etc/profile +go version +go env + +# Compile wheels +for PYBIN in /opt/python/*/bin; do + "${PYBIN}/pip" install -r /io/lib/skyapi/requirements.txt + "${PYBIN}/pip" wheel /io/lib/skyapi/ -w wheelhouse/ +done + +# Bundle external shared libraries into the wheels +for whl in wheelhouse/*.whl; do + auditwheel repair "$whl" -w /io/wheelhouse/ +done + diff --git a/.travis/install-linux.sh b/.travis/install-linux.sh index 90e4ec22..6dfe3f2a 100644 --- a/.travis/install-linux.sh +++ b/.travis/install-linux.sh @@ -16,7 +16,7 @@ curl -sL -o "$HOME/bin/gimme" https://raw.githubusercontent.com/travis-ci/gimme/ chmod +x "$HOME/bin/gimme" # Install Python libraries -$PIP install --upgrade pip setuptools tox-travis +$PIP install --upgrade pip setuptools tox-travis $PIP install -r "$REPO_ROOT/requirements.dev.txt" $PIP install -r "$REPO_ROOT/lib/skyapi/requirements.txt" $PIP install -r "$REPO_ROOT/lib/skyapi/test-requirements.txt" @@ -32,4 +32,3 @@ mkdir swig_build && \ sudo make install && \ cd ../../ && \ sudo rm -rf swig_build - diff --git a/.travis/install-osx.sh b/.travis/install-osx.sh index 4fa270a2..00cbdb9b 100644 --- a/.travis/install-osx.sh +++ b/.travis/install-osx.sh @@ -5,14 +5,20 @@ set -ev # Install some dependencies brew update; brew outdated pyenv || brew upgrade pyenv; -brew install pyenv-virtualenv -brew install swig; +brew install pyenv-virtualenv; +brew install readline xz; +echo 'Creating swig@3.0.12 formula'; +cd "$(brew --repository)/Library/Taps/homebrew/homebrew-core"; +(cd Formula && curl -sL -o "swig.rb" https://raw.githubusercontent.com/Homebrew/homebrew-core/42d31bba7772fb01f9ba442d9ee98b33a6e7a055/Formula/swig.rb) +echo 'Installing swig@3.0.12 (3.0.12)'; +brew install swig || brew link --overwrite swig; + brew install gimme; +brew install yamllint; # Install Python pyenv install ${PYTHON} -pyenv install 2.7.14 -pyenv global ${PYTHON} 2.7.14 +pyenv global ${PYTHON} # Prepare and initialize pyenv environment eval "$(pyenv init -)"; @@ -25,5 +31,5 @@ export PYCMD_PATH="$(pyenv which python${PYCMD_VERSION})" export PYCMD_DIRPATH="$( dirname ${PYCMD_PATH} )" export PATH="${PYCMD_DIRPATH}:/Users/travis/.pyenv/shims:${PATH}" -eval "python${PYCMD_VERSION} -m pip install --upgrade pip setuptools wheel tox tox-pyenv pytest pytest-runner" - +eval "python${PYCMD_VERSION} -m pip install setuptools_scm" +eval "python${PYCMD_VERSION} -m pip install --upgrade pip setuptools wheel tox tox-pyenv pytest pytest-runner pylint autopep8" \ No newline at end of file diff --git a/.travis/install_docker.sh b/.travis/install_docker.sh new file mode 100644 index 00000000..4b7062d9 --- /dev/null +++ b/.travis/install_docker.sh @@ -0,0 +1,16 @@ +#!/bin/bash +if [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" +sudo apt-get update +sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce docker-ce-cli containerd.io +fi + +if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then +brew install docker docker-compose docker-machine xhyve docker-machine-driver-xhyve +sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve +sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve +docker-machine create default --driver xhyve --xhyve-experimental-nfs-share +eval $(docker-machine env default) +docker-machine start default +fi \ No newline at end of file diff --git a/.travis/skyapi_deploy.sh b/.travis/skyapi_deploy.sh new file mode 100755 index 00000000..0787817e --- /dev/null +++ b/.travis/skyapi_deploy.sh @@ -0,0 +1,7 @@ +# Install twine +echo "Installing twine" +python -m pip install twine + +#Upload to PyPi +echo "Upload to PyPI" +twine upload -u $PYPI_USER -p $PYPI_PASSWD --repository-url https://upload.pypi.org/legacy/ lib/skyapi/dist/*sky* diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a03c64f..3d12cb7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,18 +5,26 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## PySkycoin 0.25.1 - 2019/03/14 +## PySkycoin [Unreleased] + - Remove support to `python 2.X` + +## PySkycoin 0.25.1 - 2019/06/15 ### Added - Add `skyapi`, a wrapper for Skycoin node REST API at version 0.25.1 +- Export functions in Skycoin 0.25.1 core API's +- `skyapi` client for Skycoin node REST API +- Support for building ARM 32 / 64 bits architectures. ### Fixed -### Changed +- Virtual envs now work for every Python version of interest ### Removed +- Delete function `SKY_base58_String2Hex` + ### Known issues ## PySkycoin 0.25.0 - 2019/01/01 diff --git a/LICENSE.txt b/LICENSE.txt index e69de29b..0a041280 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/Makefile b/Makefile index 52e4b6fc..f43806d6 100644 --- a/Makefile +++ b/Makefile @@ -6,54 +6,60 @@ .ONESHELL: SHELL := /bin/bash -PYTHON = python -PWD = $(shell pwd) -GOPATH_DIR = $(PWD)/gopath -SKYCOIN_DIR = gopath/src/github.com/skycoin/skycoin -SKYBUILD_DIR = $(SKYCOIN_DIR)/build +PYTHON_BIN ?= python$(PYTHON) +MKFILE_PATH = $(abspath $(lastword $(MAKEFILE_LIST))) +REPO_ROOT = $(dir $(MKFILE_PATH)) +GOPATH_DIR = gopath +SKYLIBC_DIR ?= $(GOPATH_DIR)/src/github.com/fibercrypto/libskyfiber +SKYCOIN_DIR ?= $(SKYLIBC_DIR)/vendor/github.com/skycoin/skycoin +SKYBUILD_DIR = $(SKYLIBC_DIR)/build BUILDLIBC_DIR = $(SKYBUILD_DIR)/libskycoin -LIBC_DIR = $(SKYCOIN_DIR)/lib/cgo -LIBSWIG_DIR = lib/swig/swig +LIBC_DIR = $(SKYLIBC_DIR)/lib/cgo +LIBSWIG_DIR = lib/swig/swig LIBSWIG_PYSKYCOIN = lib/swig -BUILD_DIR = build -DIST_DIR = dist -BIN_DIR = $(SKYCOIN_DIR)/bin -INCLUDE_DIR = $(SKYCOIN_DIR)/include -FULL_PATH_LIB = $(PWD)/$(BUILDLIBC_DIR) +BUILD_DIR = build +DIST_DIR = dist +BIN_DIR = $(SKYLIBC_DIR)/bin +INCLUDE_DIR = $(SKYLIBC_DIR)/include +FULL_PATH_LIB = $(REPO_ROOT)/$(BUILDLIBC_DIR) -LIB_FILES = $(shell find $(SKYCOIN_DIR)/lib/cgo -type f -name "*.go") +LIB_FILES = $(shell find $(SKYLIBC_DIR)/lib/cgo -type f -name "*.go") SRC_FILES = $(shell find $(SKYCOIN_DIR)/src -type f -name "*.go") SWIG_FILES = $(shell find $(LIBSWIG_DIR) -type f -name "*.i") -HEADER_FILES = $(shell find $(SKYCOIN_DIR)/include -type f -name "*.h") +HEADER_FILES = $(shell find $(INCLUDE_DIR) -type f -name "*.h") PYTHON_CLIENT_DIR = lib/skyapi ifeq ($(shell uname -s),Linux) TEMP_DIR = tmp + PYTHON_BIN = python$(PYTHON) else ifeq ($(shell uname -s),Darwin) TEMP_DIR = $TMPDIR + PYTHON_BIN = python endif configure: ## Configure build environment + echo "Configure build environment" mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR) mkdir -p $(DIST_DIR) -$(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) - rm -f $(BUILDLIBC_DIR)/libskycoin.a - GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static - ls $(BUILDLIBC_DIR) - rm -f $(LIBSWIG_PYSKYCOIN)/swig/include/libskycoin.h - mkdir -p $(LIBSWIG_PYSKYCOIN)/swig/include - grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > $(LIBSWIG_PYSKYCOIN)/swig/include/libskycoin.h -build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a ## Build libskycoin C client library +build-libc: configure ## Build libskycoin C client library + echo "Build libskycoin C client library" + GOPATH="$(REPO_ROOT)/$(GOPATH_DIR)" make -C $(SKYLIBC_DIR) clean-libc + GOPATH="$(REPO_ROOT)/$(GOPATH_DIR)" make -C $(SKYLIBC_DIR) build-libc + rm -f swig/include/libskycoin.h + rm -f swig/include/swig.h + mkdir -p swig/include + cp $(SKYLIBC_DIR)/include/swig.h swig/include/ + grep -v _Complex $(SKYLIBC_DIR)/include/libskycoin.h > swig/include/libskycoin.h build-swig: ## Generate Python C module from SWIG interfaces + echo "Generate Python C module from SWIG interfaces" #Generate structs.i from skytypes.gen.h rm -f $(LIBSWIG_DIR)/structs.i cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i - #sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i { \ if [[ "$$(uname -s)" == "Darwin" ]]; then \ sed -i '.kbk' 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ @@ -61,58 +67,106 @@ build-swig: ## Generate Python C module from SWIG interfaces sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ fi \ } - rm -f $(LIBSWIG_PYSKYCOIN)/skycoin/skycoin.py - rm -f $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c - rm -f $(LIBSWIG_PYSKYCOIN)/swig/include/swig.h - cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h $(LIBSWIG_PYSKYCOIN)/swig/include/ - swig -python -Ilib/swig/swig/include -I$(shell pwd)/gopath/src/github.com/skycoin/skycoin/include -outdir $(LIBSWIG_PYSKYCOIN)/skycoin/ -o $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i + rm -fv skycoin/skycoin.py + rm -f swig/pyskycoin_wrap.c + rm -f swig/include/swig.h + swig -python -py3 -w501,505,401,302,509,451 -Iswig/include -I$(INCLUDE_DIR) -outdir ./skycoin/ -o swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i develop: ## Install PySkycoin for development - $(PYTHON) $(PYTHON_CLIENT_DIR)/setup.py develop \ - (cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py develop) + $(PYTHON_BIN) setup.py develop + (cd $(PYTHON_CLIENT_DIR) && $(PYTHON_BIN) setup.py develop) build-libc-swig: build-libc build-swig build: build-libc-swig ## Build PySkycoin Python package - $(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py build - (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py build) + $(PYTHON_BIN) setup.py build + (cd $(PYTHON_CLIENT_DIR) && $(PYTHON_BIN) setup.py build) -test-ci: ## Run tests on (Travis) CI build +test-ci: build-libc build-swig develop ## Run tests on (Travis) CI build + tox (cd $(PYTHON_CLIENT_DIR) && tox) (cd $(PYTHON_CLIENT_DIR) && tox) -test: build-libc build-swig develop ## Run project test suite - $(PYTHON) $(PYTHON_CLIENT_DIR)/setup.py test \ - (cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py test) +test-skyapi: build-libc build-swig develop ## Run project test suite by skyapi + (cd $(PYTHON_CLIENT_DIR) && $(PYTHON_BIN) setup.py test) + +test-libsky: build-libc build-swig develop ## Run project test suite by pyskycoin + echo "Run project test suite by pyskycoin" + $(PYTHON_BIN) setup.py test + +test: test-skyapi test-libsky ## Run project test suite sdist: ## Create source distribution archive - $(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py sdist --formats=gztar \ - (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py sdist --formats=gztar) + $(PYTHON_BIN) setup.py sdist --formats=gztar + (cd $(PYTHON_CLIENT_DIR) && $(PYTHON_BIN) setup.py sdist --formats=gztar) bdist_wheel: ## Create architecture-specific binary wheel distribution archive - $(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py bdist_wheel \ - (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py bdist_wheel) + $(PYTHON_BIN) setup.py bdist_wheel + (cd $(PYTHON_CLIENT_DIR) && $(PYTHON_BIN) setup.py bdist_wheel) # FIXME: After libskycoin 32-bits binaries add bdist_manylinux_i686 bdist_manylinux: bdist_manylinux_amd64 ## Create multilinux binary wheel distribution archives bdist_manylinux_amd64: ## Create 64 bits multilinux binary wheel distribution archives docker pull quay.io/pypa/manylinux1_x86_64 - docker run --rm -t -v $(PWD):/io quay.io/pypa/manylinux1_x86_64 /io/.travis/build_wheels.sh + docker run --rm -t -v $(REPO_ROOT):/io quay.io/pypa/manylinux1_x86_64 /io/.travis/build_wheels.sh ls wheelhouse/ + mkdir -p $(DIST_DIR) cp -v wheelhouse/* $(DIST_DIR) + docker run --rm -t -v $(REPO_ROOT):/io quay.io/pypa/manylinux1_x86_64 /io/.travis/build_wheels_skyapi.sh + mkdir -p $(PYTHON_CLIENT_DIR)/$(DIST_DIR) + cp -v $(PYTHON_CLIENT_DIR)/wheelhouse/* $(PYTHON_CLIENT_DIR)/$(DIST_DIR) + ls $(PYTHON_CLIENT_DIR)/wheelhouse/ + bdist_manylinux_i686: ## Create 32 bits multilinux binary wheel distribution archives docker pull quay.io/pypa/manylinux1_i686 - docker run --rm -t -v $(PWD):/io quay.io/pypa/manylinux1_i686 linux32 /io/.travis/build_wheels.sh + docker run --rm -t -v $(REPO_ROOT):/io quay.io/pypa/manylinux1_i686 linux32 /io/.travis/build_wheels.sh ls wheelhouse/ + mkdir -p $(DIST_DIR) cp -v wheelhouse/* $(DIST_DIR) + docker run --rm -t -v $(REPO_ROOT):/io quay.io/pypa/manylinux1_i686 linux32 /io/.travis/build_wheels_skyapi.sh + mkdir -p $(PYTHON_CLIENT_DIR)/$(DIST_DIR) + cp -v $(PYTHON_CLIENT_DIR)/wheelhouse/* $(PYTHON_CLIENT_DIR)/$(DIST_DIR) + ls $(PYTHON_CLIENT_DIR)/wheelhouse/ dist: sdist bdist_wheel bdist_manylinux_amd64 ## Create distribution archives check-dist: dist ## Perform self-tests upon distributions archives - docker run --rm -t -v $(PWD):/io quay.io/pypa/manylinux1_i686 linux32 /io/.travis/check_wheels.sh + docker run --rm -t -v $(REPO_ROOT):/io quay.io/pypa/manylinux1_i686 linux32 /io/.travis/check_wheels.sh + +format: ## Format code that autopep8 + autopep8 --in-place --aggressive --aggressive --aggressive --aggressive ./tests/*.py + +lint: ## Linter to pylint + pylint -E tests/*.py + yamllint -d relaxed .travis.yml + +clean: #Clean all + make -C $(SKYLIBC_DIR) clean-libc + $(PYTHON_BIN) -m pip uninstall -y pyskycoin + $(PYTHON_BIN) -m pip uninstall -y skyapi + rm -rfv tests/__pycache__ + rm -rfv skycoin/__pycache__ + rm -rfv skycoin/*.pyc + rm -rfv tests/*.pyc + rm -rfv tests/utils/*.pyc + rm -rfv tests/utils/__pycache__ + rm -rfv *.so + rm -rfv qemu_python_* + rm -rfv lib/skyapi/skyapi/__pycache__ + rm -rfv lib/skyapi/skyapi/*.pyc + rm -rfv lib/skyapi/skyapi/models/*.pyc + rm -rfv lib/skyapi/skyapi/models/__pycache__ + rm -rfv lib/skyapi/skyapi/api/*.pyc + rm -rfv lib/skyapi/skyapi/api/__pycache__ + rm -rfv lib/skyapi/test/__pycache__ + rm -rfv lib/skyapi/test/*.pyc + rm -rfv swig/pyskycoin_wrap.c + rm -rfv skycoin/skycoin.py + $(PYTHON_BIN) setup.py clean + help: ## List available commands - @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' \ No newline at end of file diff --git a/docker/images/deploy/Dockerfile b/docker/images/deploy/Dockerfile new file mode 100644 index 00000000..52ab578b --- /dev/null +++ b/docker/images/deploy/Dockerfile @@ -0,0 +1,64 @@ +ARG ARCH + +FROM quay.io/pypa/manylinux1_${ARCH} + +ARG GO_ARCH +ARG URL_DEPLOY +ARG PYPI_USER +ARG PYPI_PASSWD + +ARG GITHUB_OAUTH_TOKEN +ARG PROJECT_USERNAME +ARG PROJECT_REPONAME +ARG SHA1 +ARG VERSION + +ADD . /io + +RUN ls /io +RUN yum install -y sudo pcre pcre-devel curl git --skip-broken +RUN mkdir -p "$HOME/bin" +ENV PIP "/opt/python/cp37-cp37m/bin/pip" +ENV REPO_ROOT "/io/" +RUN curl -sL -o "$HOME/bin/gimme" https://raw.githubusercontent.com/travis-ci/gimme/master/gimme +RUN chmod +x "$HOME/bin/gimme" +ENV PATH="${PATH}:$HOME/bin/gimme" +RUN eval "$(gimme 1.11)" + +RUN $PIP install --upgrade pip setuptools tox-travis + +RUN mkdir swig_build && \ + cd swig_build && \ + curl -sL -o "swig-3.0.12.tar.gz" http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz && \ + tar -zxf swig-3.0.12.tar.gz && \ + cd swig-3.0.12 && \ + ./configure --prefix=/usr && \ + make && \ + make install && \ + cd ../../ && \ + rm -rf swig_build + +RUN curl -sL -o "go1.11.12.linux-${GO_ARCH}.tar.gz" https://storage.googleapis.com/golang/go1.11.12.linux-${GO_ARCH}.tar.gz +RUN tar -zxf go1.11.12.linux-${GO_ARCH}.tar.gz -C /usr/local +ENV GOROOT=/usr/local/go +ENV PATH="${PATH}:/usr/local/go/bin" +ENV CGO_ENABLE=1 + +RUN go version +RUN go env +RUN go get github.com/gz-c/gox +RUN cd /io && git submodule update --init --recursive +RUN make -C /io/gopath/src/github.com/skycoin/libskycoin dep +RUN make -C /io build-libc +RUN make -C /io build-swig +RUN mkdir -p /io/wheelhouse +RUN sh /io/.circleci/circle_wheels.sh + +RUN ls /io/wheelhouse +RUN mkdir -p /io/dist +RUN cp -v /io/wheelhouse/* /io/dist +RUN $PIP install twine +ENV TWINE_PATH=/opt/python/cp37-cp37m/bin/twine +RUN bash /io/.circleci/upload_pypi.sh + +WORKDIR /io \ No newline at end of file diff --git a/docker/images/deploy/Dockerfile-arm b/docker/images/deploy/Dockerfile-arm new file mode 100644 index 00000000..1525f993 --- /dev/null +++ b/docker/images/deploy/Dockerfile-arm @@ -0,0 +1,48 @@ + +FROM balenalib/armv7hf-debian-golang + +RUN [ "cross-build-start" ] +RUN mkdir -p /io + +ADD . /io + +# Install Python 2.7/3.5 runtime and development tools +RUN set -ex \ + && apt update \ + wget \ + curl \ + libpcre3-dev \ + python-pip \ + python3-pip \ + python-setuptools \ + python3-setuptools \ + python3-venv \ + python-wheel \ + python3-wheel \ + make \ + cmake \ + swig + +# Install packages in PIP_PACKAGES + +# Python 2.7 +ENV CGO_ENABLE=1 + +RUN go version +RUN go env +RUN go get github.com/gz-c/gox +RUN cd /io && git submodule update --init --recursive +RUN make -C /io/gopath/src/github.com/skycoin/libskycoin dep +RUN make -C /io build-libc +RUN make -C /io build-swig +RUN sh /io/.circleci/circle_wheels_arm.sh + +RUN ls /io/wheelhouse +RUN mkdir -p /io/dist +RUN cp -v /io/wheelhouse/* /io/dist +RUN pip install twine +RUN twine upload -u pyskycoin -p "prerelease_0.X" --skip-existing --repository-url https://test.pypi.org/legacy/ /io/dist/* + +RUN [ "cross-build-end" ] + +WORKDIR /io \ No newline at end of file diff --git a/docker/images/dev-cli/Dockerfile b/docker/images/dev-cli/Dockerfile index 8caf6c53..af31ab17 100644 --- a/docker/images/dev-cli/Dockerfile +++ b/docker/images/dev-cli/Dockerfile @@ -4,7 +4,7 @@ FROM $IMAGE_FROM ARG BDATE ARG SCOMMIT -ARG PIP_PACKAGES="setuptools wheel" +ARG PIP_PACKAGES="pip setuptools wheel" # Image labels (see ./hooks/build for ARGS) LABEL "org.label-schema.name"="skycoindev-python" \ @@ -13,9 +13,9 @@ LABEL "org.label-schema.name"="skycoindev-python" \ "org.label-schema.url"="skycoin.net" \ "org.label-schema.version"="0.24.4" \ "org.label-schema.build-date"=$BDATE \ - "org.label-schema.vcs-url"="https://github.com/skycoin/pyskycoin.git" \ + "org.label-schema.vcs-url"="https://github.com/fibercrypto/pyskycoin.git" \ "org.label-schema.vcs-ref"=$SCOMMIT \ - "org.label-schema.usage"="https://github.com/skycoin/pyskycoin/blob/"$SCOMMIT"/docker/images/dev/README.md" \ + "org.label-schema.usage"="https://github.com/fibercrypto/pyskycoin/blob/"$SCOMMIT"/docker/images/dev/README.md" \ "org.label-schema.schema-version"="1.0" \ "org.label-schema.docker.cmd"="mkdir src; docker run --rm -v ${PWD}/src:/usr/local/src skycoin/skycoindev-python:develop git clone https://github.com/simelo/pyskycoin.git" @@ -23,11 +23,6 @@ LABEL "org.label-schema.name"="skycoindev-python" \ RUN set -ex \ && apt-get update \ && apt-get install -y --no-install-recommends \ - python2.7-dev \ - python3.5 \ - python3.5-dev \ - python-dev \ - python3-dev \ ca-certificates \ libexpat1 \ libffi6 \ @@ -37,199 +32,57 @@ RUN set -ex \ libssl1.1 \ netbase \ wget \ - python-pip \ - python3-pip \ - && pip install --upgrade pip \ - && pip3 install --upgrade pip + make \ + build-essential \ + libssl1.0-dev \ + zlib1g-dev \ + libbz2-dev \ + libreadline-dev \ + libsqlite3-dev \ + wget \ + curl \ + llvm \ + libncurses5-dev \ + libncursesw5-dev \ + xz-utils \ + tk-dev \ + libffi-dev \ + liblzma-dev \ + git \ + && git clone git://github.com/yyuu/pyenv.git ~/.pyenv \ + && rm -rf ~/.pyenv/plugins/pyenv-virtualenv \ + && git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv -# Install Python 3.7 -# runtime dependencies -ENV PYTHON_VERSION 3.7.1 -RUN set -ex \ - && buildDeps=" \ - libexpat1-dev \ - tcl-dev \ - tk-dev \ - # as of Stretch, "gpg" is no longer included by default - $(command -v gpg > /dev/null || echo 'gnupg dirmngr') \ - " \ - && apt-get install -y $buildDeps --no-install-recommends \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && for server in ha.pool.sks-keyservers.net \ - hkp://p80.pool.sks-keyservers.net:80 \ - keyserver.ubuntu.com \ - hkp://keyserver.ubuntu.com:80 ;do\ - gpg --keyserver "$server" --recv-keys 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D;done \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -rf "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ - && ./configure \ - --prefix=/usr \ - --build="$gnuArch" \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - --with-system-expat \ - --with-system-ffi \ - --without-ensurepip \ - && make -j "$(nproc)" \ - && make altinstall \ - && ldconfig \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a \( -name test -o -name tests \) \) \ - -o \ - \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ - \) -exec rm -rf '{}' + \ - && rm -rf /usr/src/python - -# Install Python 3.6 -# runtime dependencies -ENV PYTHON_VERSION 3.6.7 -RUN set -ex \ - && buildDeps=" \ - libexpat1-dev \ - tcl-dev \ - tk-dev \ - # as of Stretch, "gpg" is no longer included by default - $(command -v gpg > /dev/null || echo 'gnupg dirmngr') \ - " \ - && apt-get install -y $buildDeps --no-install-recommends \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && for server in ha.pool.sks-keyservers.net \ - hkp://p80.pool.sks-keyservers.net:80 \ - keyserver.ubuntu.com \ - hkp://keyserver.ubuntu.com:80 ;do\ - gpg --keyserver "$server" --recv-keys 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D;done \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -rf "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ - && ./configure \ - --prefix=/usr \ - --build="$gnuArch" \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - --with-system-expat \ - --with-system-ffi \ - --without-ensurepip \ - && make -j "$(nproc)" \ - && make altinstall \ - && ldconfig \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a \( -name test -o -name tests \) \) \ - -o \ - \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ - \) -exec rm -rf '{}' + \ - && rm -rf /usr/src/python - -# Install Python 3.4 -# runtime dependencies -ENV PYTHON_VERSION 3.4.9 -RUN set -ex \ - && buildDeps=" \ -# as of Stretch, "gpg" is no longer included by default - $(command -v gpg > /dev/null || echo 'gnupg dirmngr') \ - " \ - && apt-get install -y libssl1.0-dev $buildDeps --no-install-recommends \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && for server in ha.pool.sks-keyservers.net \ - hkp://p80.pool.sks-keyservers.net:80 \ - keyserver.ubuntu.com \ - hkp://keyserver.ubuntu.com:80 ;do\ - gpg --keyserver "$server" --recv-keys 97FC712E4C024BBEA48A61ED3A5CA953F73C700D;done \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -rf "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ - && ./configure \ - --prefix=/usr \ - --build="$gnuArch" \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - --with-system-expat \ - --with-system-ffi \ - --without-ensurepip \ - && make -j "$(nproc)" \ - && make altinstall \ - && ldconfig \ - \ - && apt-get install -y libssl-dev \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a \( -name test -o -name tests \) \) \ - -o \ - \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ - \) -exec rm -rf '{}' + \ - && rm -rf /usr/src/python - -# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 18.1 -RUN set -ex; \ - \ - wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \ - \ - python3.7 get-pip.py \ - --disable-pip-version-check \ - --no-cache-dir \ - "pip==$PYTHON_PIP_VERSION" \ - ; \ - python3.6 get-pip.py \ - --disable-pip-version-check \ - --no-cache-dir \ - "pip==$PYTHON_PIP_VERSION" \ - ; \ - python3.5 get-pip.py \ - --disable-pip-version-check \ - --no-cache-dir \ - "pip==$PYTHON_PIP_VERSION" \ - ; \ - python3.4 get-pip.py \ - --disable-pip-version-check \ - --no-cache-dir \ - "pip==$PYTHON_PIP_VERSION" \ - ; \ - find /usr/local -depth \ - \( \ - \( -type d -a \( -name test -o -name tests \) \) \ - -o \ - \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ - \) -exec rm -rf '{}' +; \ - rm -f get-pip.py +ENV HOME /root +ENV PROJECT_ROOT /source +ENV PYENV_ROOT $HOME/.pyenv +ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH -# Install packages in PIP_PACKAGES -RUN pip install --upgrade $PIP_PACKAGES \ - && pip3 install --upgrade $PIP_PACKAGES \ - && python3.4 -m pip install --upgrade $PIP_PACKAGES \ - && python3.6 -m pip install --upgrade $PIP_PACKAGES \ - && python3.7 -m pip install --upgrade $PIP_PACKAGES +RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc \ + && echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc \ + && echo 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc \ + && bash \ + && git clone https://github.com/fibercrypto/pyskycoin.git $PROJECT_ROOT/pyskycoin \ + && cd $PROJECT_ROOT/pyskycoin \ + && git checkout v0.25.0 \ + && git submodule update --init --recursive \ + && echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc \ + && bash -c "eval "$(pyenv virtualenv-init -)"" \ + && pyenv install 2.7.10 \ + && pyenv install 3.4.9 \ + && pyenv install 3.5.7 \ + && pyenv install 3.6.7 \ + && pyenv install 3.7.1 \ + && pyenv virtualenv 2.7.10 pysky27 \ + && pyenv virtualenv 3.4.9 pysky34 \ + && pyenv virtualenv 3.5.7 pysky35 \ + && pyenv virtualenv 3.6.7 pysky36 \ + && pyenv virtualenv 3.7.1 pysky37 \ + && . $PYENV_ROOT/versions/pysky27/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \ + && . $PYENV_ROOT/versions/pysky34/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \ + && . $PYENV_ROOT/versions/pysky35/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \ + && . $PYENV_ROOT/versions/pysky36/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \ + && . $PYENV_ROOT/versions/pysky37/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate WORKDIR $GOPATH/src/github.com/skycoin diff --git a/docker/images/dev-cli/README.md b/docker/images/dev-cli/README.md index e856c5b9..1bdbccfa 100644 --- a/docker/images/dev-cli/README.md +++ b/docker/images/dev-cli/README.md @@ -51,6 +51,31 @@ $ docker run --rm \ vim ``` +### Switch python environment + +Inside docker image is installed `pyenv` and `pyenv-virtualenv`, with one goal in mind: +- Add a ready-to-use virtualenv in Docker dev image with stable version of pyskycoin package pre-installed from PyPI + +The virtualenv installed are: +- pysky27 +- pysky34 +- pysky35 +- pysky37 + +If you want to access to one specific virtualenv you just need run the next command: +``bash +pyenv activate pysky +`` +where version represent python version you need. +Once activated, you may deactivate it with: +``bash +pyenv deactivate +`` + +For more details with `pyenv`, visit [pyenv doc](https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#command-reference) + +All of then contains `pyskycoin` package installed. + ## How to use Docker in Docker image ### Start a daemon instance diff --git a/docker/images/test/Dockerfile b/docker/images/test/Dockerfile new file mode 100644 index 00000000..d60756bb --- /dev/null +++ b/docker/images/test/Dockerfile @@ -0,0 +1,15 @@ +ARG IMAGE +FROM ${IMAGE} + +ADD . /io +RUN ls -oa /io +ENV PIP='python -m pip' +#Install package +RUN apt-get update +RUN apt-get install make cmake python-dev python-pip python-setuptools python-pytest libpcre3-dev curl gcc -y + +# Install packages in PIP_PACKAGES +RUN ${PIP} install -i https://test.pypi.org/simple/ pyskycoin + +RUN ls -oa /io/tests +RUN py.test /io/tests/*.py diff --git a/docker/images/test/Dockerfile-armv7 b/docker/images/test/Dockerfile-armv7 new file mode 100644 index 00000000..0da37778 --- /dev/null +++ b/docker/images/test/Dockerfile-armv7 @@ -0,0 +1,18 @@ +FROM balenalib/armv7hf-debian-python + +ENV REPO_ROOT=$GOPATH/src/github.com/fibercrypto/pyskycoin/ +ADD . ${REPO_ROOT} +ENV PIP='python3 -m pip' + +RUN [ "cross-build-start" ] + +#Install package +RUN apt-get update +RUN apt-get install make cmake python3-dev python3-pip python3-setuptools python3-pytest libpcre3-dev curl gcc -y + +# Install packages in PIP_PACKAGES +RUN ${PIP} install -i https://test.pypi.org/simple/ pyskycoin + +RUN cd ${REPO_ROOT} && python3 -m pytest tests/*.py + +RUN [ "cross-build-end" ] \ No newline at end of file diff --git a/gopath/src/github.com/fibercrypto/libskyfiber b/gopath/src/github.com/fibercrypto/libskyfiber new file mode 160000 index 00000000..97967301 --- /dev/null +++ b/gopath/src/github.com/fibercrypto/libskyfiber @@ -0,0 +1 @@ +Subproject commit 97967301f1308671287893a5ab93d92c95b7950c diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin deleted file mode 160000 index 438f338f..00000000 --- a/gopath/src/github.com/skycoin/skycoin +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 438f338fff7f58c14abf10265574625988e36cbf diff --git a/lib/skyapi/.openapi-generator/VERSION b/lib/skyapi/.openapi-generator/VERSION index 2c6109e5..afa63656 100644 --- a/lib/skyapi/.openapi-generator/VERSION +++ b/lib/skyapi/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.4 \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/lib/skyapi/.travis.yml b/lib/skyapi/.travis.yml deleted file mode 100644 index 86211e2d..00000000 --- a/lib/skyapi/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/lib/skyapi/README.md b/lib/skyapi/README.md index e92132d7..e9aeefa1 100644 --- a/lib/skyapi/README.md +++ b/lib/skyapi/README.md @@ -1,13 +1,12 @@ -# Skycoin node API client - +# skyapi Skycoin is a next-generation cryptocurrency. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 0.25.1 +- API version: 0.26.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen -For more information, please visit [http://127.0.0.1:6420](http://127.0.0.1:6420) +For more information, please visit [https://skycoin.net](https://skycoin.net) ## Requirements. @@ -53,6 +52,7 @@ import skyapi from skyapi.rest import ApiException from pprint import pprint + # create an instance of the API class api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) @@ -73,17 +73,20 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**address_count**](docs/DefaultApi.md#address_count) | **GET** /api/v1/addresscount | Returns the total number of unique address that have coins. *DefaultApi* | [**address_uxouts**](docs/DefaultApi.md#address_uxouts) | **GET** /api/v1/address_uxouts | +*DefaultApi* | [**api_v1_rawtx_get**](docs/DefaultApi.md#api_v1_rawtx_get) | **GET** /api/v1/rawtx | +*DefaultApi* | [**api_v2_metrics_get**](docs/DefaultApi.md#api_v2_metrics_get) | **GET** /api/v2/metrics | *DefaultApi* | [**balance_get**](docs/DefaultApi.md#balance_get) | **GET** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. *DefaultApi* | [**balance_post**](docs/DefaultApi.md#balance_post) | **POST** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. -*DefaultApi* | [**block**](docs/DefaultApi.md#block) | **GET** /api/v1/block | +*DefaultApi* | [**block**](docs/DefaultApi.md#block) | **GET** /api/v1/block | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. *DefaultApi* | [**blockchain_metadata**](docs/DefaultApi.md#blockchain_metadata) | **GET** /api/v1/blockchain/metadata | Returns the blockchain metadata. *DefaultApi* | [**blockchain_progress**](docs/DefaultApi.md#blockchain_progress) | **GET** /api/v1/blockchain/progress | Returns the blockchain sync progress. -*DefaultApi* | [**blocks_get**](docs/DefaultApi.md#blocks_get) | **GET** /api/v1/blocks | blocksHandler returns blocks between a start and end point, -*DefaultApi* | [**blocks_post**](docs/DefaultApi.md#blocks_post) | **POST** /api/v1/blocks | blocksHandler returns blocks between a start and end point, +*DefaultApi* | [**blocks**](docs/DefaultApi.md#blocks) | **GET** /api/v1/blocks | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. *DefaultApi* | [**coin_supply**](docs/DefaultApi.md#coin_supply) | **GET** /api/v1/coinSupply | *DefaultApi* | [**csrf**](docs/DefaultApi.md#csrf) | **GET** /api/v1/csrf | Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. +*DefaultApi* | [**data_delete**](docs/DefaultApi.md#data_delete) | **DELETE** /api/v2/data | +*DefaultApi* | [**data_get**](docs/DefaultApi.md#data_get) | **GET** /api/v2/data | +*DefaultApi* | [**data_post**](docs/DefaultApi.md#data_post) | **POST** /api/v2/data | *DefaultApi* | [**default_connections**](docs/DefaultApi.md#default_connections) | **GET** /api/v1/network/defaultConnections | defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. -*DefaultApi* | [**explorer_address**](docs/DefaultApi.md#explorer_address) | **GET** /api/v1/explorer/address | *DefaultApi* | [**health**](docs/DefaultApi.md#health) | **GET** /api/v1/health | Returns node health data. *DefaultApi* | [**last_blocks**](docs/DefaultApi.md#last_blocks) | **GET** /api/v1/last_blocks | *DefaultApi* | [**network_connection**](docs/DefaultApi.md#network_connection) | **GET** /api/v1/network/connection | This endpoint returns a specific connection. @@ -97,7 +100,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**resend_unconfirmed_txns**](docs/DefaultApi.md#resend_unconfirmed_txns) | **POST** /api/v1/resendUnconfirmedTxns | *DefaultApi* | [**richlist**](docs/DefaultApi.md#richlist) | **GET** /api/v1/richlist | Returns the top skycoin holders. *DefaultApi* | [**transaction**](docs/DefaultApi.md#transaction) | **GET** /api/v1/transaction | -*DefaultApi* | [**transaction_inject**](docs/DefaultApi.md#transaction_inject) | **POST** /api/v2/transaction/inject | Broadcast a hex-encoded, serialized transaction to the network. +*DefaultApi* | [**transaction_inject**](docs/DefaultApi.md#transaction_inject) | **POST** /api/v1/injectTransaction | Broadcast a hex-encoded, serialized transaction to the network. +*DefaultApi* | [**transaction_post**](docs/DefaultApi.md#transaction_post) | **POST** /api/v2/transaction | +*DefaultApi* | [**transaction_post_unspent**](docs/DefaultApi.md#transaction_post_unspent) | **POST** /api/v2/transaction/unspent | *DefaultApi* | [**transaction_raw**](docs/DefaultApi.md#transaction_raw) | **GET** /api/v2/transaction/raw | Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. *DefaultApi* | [**transaction_verify**](docs/DefaultApi.md#transaction_verify) | **POST** /api/v2/transaction/verify | *DefaultApi* | [**transactions_get**](docs/DefaultApi.md#transactions_get) | **GET** /api/v1/transactions | Returns transactions that match the filters. @@ -116,8 +121,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**wallet_recover**](docs/DefaultApi.md#wallet_recover) | **POST** /api/v2/wallet/recover | Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. *DefaultApi* | [**wallet_seed**](docs/DefaultApi.md#wallet_seed) | **POST** /api/v1/wallet/seed | This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. *DefaultApi* | [**wallet_seed_verify**](docs/DefaultApi.md#wallet_seed_verify) | **POST** /api/v2/wallet/seed/verify | Verifies a wallet seed. -*DefaultApi* | [**wallet_spent**](docs/DefaultApi.md#wallet_spent) | **POST** /api/v1/wallet/spend | -*DefaultApi* | [**wallet_transaction**](docs/DefaultApi.md#wallet_transaction) | **POST** /api/v1/wallet/transaction | +*DefaultApi* | [**wallet_transaction**](docs/DefaultApi.md#wallet_transaction) | **POST** /api/v1/wallet/transaction | Creates a signed transaction +*DefaultApi* | [**wallet_transaction_sign**](docs/DefaultApi.md#wallet_transaction_sign) | **POST** /api/v2/wallet/transaction/sign | Creates a signed transaction *DefaultApi* | [**wallet_transactions**](docs/DefaultApi.md#wallet_transactions) | **GET** /api/v1/wallet/transactions | *DefaultApi* | [**wallet_unload**](docs/DefaultApi.md#wallet_unload) | **POST** /api/v1/wallet/unload | Unloads wallet from the wallet service. *DefaultApi* | [**wallet_update**](docs/DefaultApi.md#wallet_update) | **POST** /api/v1/wallet/update | Update the wallet. @@ -126,27 +131,47 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [Apiv1exploreraddressInputs](docs/Apiv1exploreraddressInputs.md) - - [Apiv1exploreraddressOutputs](docs/Apiv1exploreraddressOutputs.md) - - [Apiv1exploreraddressStatus](docs/Apiv1exploreraddressStatus.md) - - [Apiv1pendingTxsTransaction](docs/Apiv1pendingTxsTransaction.md) - - [Apiv1walletsEntries](docs/Apiv1walletsEntries.md) - - [Apiv1walletsMeta](docs/Apiv1walletsMeta.md) - - [Apiv1wallettransactionHoursSelection](docs/Apiv1wallettransactionHoursSelection.md) - - [Apiv1wallettransactionTo](docs/Apiv1wallettransactionTo.md) - - [Apiv1wallettransactionWallet](docs/Apiv1wallettransactionWallet.md) - - [InlineObject](docs/InlineObject.md) + - [Address](docs/Address.md) + - [ApiV1PendingTxsTransaction](docs/ApiV1PendingTxsTransaction.md) + - [ApiV1PendingTxsTransactionOutputs](docs/ApiV1PendingTxsTransactionOutputs.md) + - [BlockSchema](docs/BlockSchema.md) + - [BlockSchemaBody](docs/BlockSchemaBody.md) + - [BlockVerboseSchema](docs/BlockVerboseSchema.md) + - [BlockVerboseSchemaBody](docs/BlockVerboseSchemaBody.md) + - [BlockVerboseSchemaHeader](docs/BlockVerboseSchemaHeader.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) + - [InlineResponse20010](docs/InlineResponse20010.md) - [InlineResponse2002](docs/InlineResponse2002.md) - [InlineResponse2003](docs/InlineResponse2003.md) - - [InlineResponse2003UnconfirmedVerifyTransaction](docs/InlineResponse2003UnconfirmedVerifyTransaction.md) - [InlineResponse2004](docs/InlineResponse2004.md) - [InlineResponse2005](docs/InlineResponse2005.md) - [InlineResponse2006](docs/InlineResponse2006.md) - [InlineResponse2007](docs/InlineResponse2007.md) - - [InlineResponse2007Data](docs/InlineResponse2007Data.md) + - [InlineResponse2008](docs/InlineResponse2008.md) + - [InlineResponse2008Data](docs/InlineResponse2008Data.md) + - [InlineResponse2009](docs/InlineResponse2009.md) - [InlineResponseDefault](docs/InlineResponseDefault.md) + - [NetworkConnectionSchema](docs/NetworkConnectionSchema.md) + - [NetworkConnectionSchemaUnconfirmedVerifyTransaction](docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md) + - [Transaction](docs/Transaction.md) + - [TransactionEncoded](docs/TransactionEncoded.md) + - [TransactionEncodedS](docs/TransactionEncodedS.md) + - [TransactionStatus](docs/TransactionStatus.md) + - [TransactionTxn](docs/TransactionTxn.md) + - [TransactionV2ParamsAddress](docs/TransactionV2ParamsAddress.md) + - [TransactionV2ParamsAddressHoursSelection](docs/TransactionV2ParamsAddressHoursSelection.md) + - [TransactionV2ParamsUnspent](docs/TransactionV2ParamsUnspent.md) + - [TransactionV2ParamsUnspentHoursSelection](docs/TransactionV2ParamsUnspentHoursSelection.md) + - [TransactionV2ParamsUnspentTo](docs/TransactionV2ParamsUnspentTo.md) + - [TransactionVerbose](docs/TransactionVerbose.md) + - [TransactionVerboseTxn](docs/TransactionVerboseTxn.md) + - [TransactionVerboseTxnInputs](docs/TransactionVerboseTxnInputs.md) + - [TransactionVerifyRequest](docs/TransactionVerifyRequest.md) + - [WalletTransactionRequest](docs/WalletTransactionRequest.md) + - [WalletTransactionRequestHoursSelection](docs/WalletTransactionRequestHoursSelection.md) + - [WalletTransactionRequestWallet](docs/WalletTransactionRequestWallet.md) + - [WalletTransactionSignRequest](docs/WalletTransactionSignRequest.md) ## Documentation For Authorization diff --git a/lib/skyapi/docs/InlineResponse2007Data.md b/lib/skyapi/docs/Address.md similarity index 81% rename from lib/skyapi/docs/InlineResponse2007Data.md rename to lib/skyapi/docs/Address.md index 3d6b0d35..1cd4d546 100644 --- a/lib/skyapi/docs/InlineResponse2007Data.md +++ b/lib/skyapi/docs/Address.md @@ -1,9 +1,9 @@ -# InlineResponse2007Data +# Address ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version** | **int** | | [optional] +**address** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/ApiV1PendingTxsTransaction.md b/lib/skyapi/docs/ApiV1PendingTxsTransaction.md new file mode 100644 index 00000000..fc49cb2e --- /dev/null +++ b/lib/skyapi/docs/ApiV1PendingTxsTransaction.md @@ -0,0 +1,16 @@ +# ApiV1PendingTxsTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**length** | **int** | | [optional] +**type** | **int** | | [optional] +**txid** | **str** | | [optional] +**inner_hash** | **str** | | [optional] +**sigs** | **list[str]** | | [optional] +**inputs** | **list[str]** | | [optional] +**outputs** | [**list[ApiV1PendingTxsTransactionOutputs]**](ApiV1PendingTxsTransactionOutputs.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/Apiv1exploreraddressOutputs.md b/lib/skyapi/docs/ApiV1PendingTxsTransactionOutputs.md similarity index 92% rename from lib/skyapi/docs/Apiv1exploreraddressOutputs.md rename to lib/skyapi/docs/ApiV1PendingTxsTransactionOutputs.md index e92876ab..85c6b4ca 100644 --- a/lib/skyapi/docs/Apiv1exploreraddressOutputs.md +++ b/lib/skyapi/docs/ApiV1PendingTxsTransactionOutputs.md @@ -1,12 +1,12 @@ -# Apiv1exploreraddressOutputs +# ApiV1PendingTxsTransactionOutputs ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hours** | **int** | | [optional] +**uxid** | **str** | | [optional] **dst** | **str** | | [optional] **coins** | **str** | | [optional] -**uxid** | **str** | | [optional] +**hours** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/BlockSchema.md b/lib/skyapi/docs/BlockSchema.md new file mode 100644 index 00000000..c6ed9509 --- /dev/null +++ b/lib/skyapi/docs/BlockSchema.md @@ -0,0 +1,12 @@ +# BlockSchema + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**BlockVerboseSchemaHeader**](BlockVerboseSchemaHeader.md) | | [optional] +**body** | [**BlockSchemaBody**](BlockSchemaBody.md) | | [optional] +**size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/Apiv1wallettransactionTo.md b/lib/skyapi/docs/BlockSchemaBody.md similarity index 66% rename from lib/skyapi/docs/Apiv1wallettransactionTo.md rename to lib/skyapi/docs/BlockSchemaBody.md index d7b40677..aeba4297 100644 --- a/lib/skyapi/docs/Apiv1wallettransactionTo.md +++ b/lib/skyapi/docs/BlockSchemaBody.md @@ -1,11 +1,9 @@ -# Apiv1wallettransactionTo +# BlockSchemaBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hours** | **int** | | [optional] -**address** | **str** | | [optional] -**coins** | **int** | | [optional] +**txns** | **list[object]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/BlockVerboseSchema.md b/lib/skyapi/docs/BlockVerboseSchema.md new file mode 100644 index 00000000..8e446c03 --- /dev/null +++ b/lib/skyapi/docs/BlockVerboseSchema.md @@ -0,0 +1,12 @@ +# BlockVerboseSchema + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**BlockVerboseSchemaHeader**](BlockVerboseSchemaHeader.md) | | [optional] +**body** | [**BlockVerboseSchemaBody**](BlockVerboseSchemaBody.md) | | [optional] +**size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/BlockVerboseSchemaBody.md b/lib/skyapi/docs/BlockVerboseSchemaBody.md new file mode 100644 index 00000000..96a7b747 --- /dev/null +++ b/lib/skyapi/docs/BlockVerboseSchemaBody.md @@ -0,0 +1,10 @@ +# BlockVerboseSchemaBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**txns** | **list[object]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/Apiv1walletsMeta.md b/lib/skyapi/docs/BlockVerboseSchemaHeader.md similarity index 50% rename from lib/skyapi/docs/Apiv1walletsMeta.md rename to lib/skyapi/docs/BlockVerboseSchemaHeader.md index 51aa9834..65e5612d 100644 --- a/lib/skyapi/docs/Apiv1walletsMeta.md +++ b/lib/skyapi/docs/BlockVerboseSchemaHeader.md @@ -1,16 +1,16 @@ -# Apiv1walletsMeta +# BlockVerboseSchemaHeader ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filename** | **str** | | [optional] -**encrypted** | **bool** | | [optional] -**crypto_type** | **str** | | [optional] -**label** | **str** | | [optional] -**type** | **str** | | [optional] -**version** | **str** | | [optional] -**coin** | **str** | | [optional] +**seq** | **int** | | [optional] **timestamp** | **int** | | [optional] +**fee** | **int** | | [optional] +**version** | **int** | | [optional] +**block_hash** | **str** | | [optional] +**previous_block_hash** | **str** | | [optional] +**tx_body_hash** | **str** | | [optional] +**ux_hash** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/DefaultApi.md b/lib/skyapi/docs/DefaultApi.md index 82a9f7e4..32af7503 100644 --- a/lib/skyapi/docs/DefaultApi.md +++ b/lib/skyapi/docs/DefaultApi.md @@ -6,17 +6,20 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**address_count**](DefaultApi.md#address_count) | **GET** /api/v1/addresscount | Returns the total number of unique address that have coins. [**address_uxouts**](DefaultApi.md#address_uxouts) | **GET** /api/v1/address_uxouts | +[**api_v1_rawtx_get**](DefaultApi.md#api_v1_rawtx_get) | **GET** /api/v1/rawtx | +[**api_v2_metrics_get**](DefaultApi.md#api_v2_metrics_get) | **GET** /api/v2/metrics | [**balance_get**](DefaultApi.md#balance_get) | **GET** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. [**balance_post**](DefaultApi.md#balance_post) | **POST** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. -[**block**](DefaultApi.md#block) | **GET** /api/v1/block | +[**block**](DefaultApi.md#block) | **GET** /api/v1/block | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. [**blockchain_metadata**](DefaultApi.md#blockchain_metadata) | **GET** /api/v1/blockchain/metadata | Returns the blockchain metadata. [**blockchain_progress**](DefaultApi.md#blockchain_progress) | **GET** /api/v1/blockchain/progress | Returns the blockchain sync progress. -[**blocks_get**](DefaultApi.md#blocks_get) | **GET** /api/v1/blocks | blocksHandler returns blocks between a start and end point, -[**blocks_post**](DefaultApi.md#blocks_post) | **POST** /api/v1/blocks | blocksHandler returns blocks between a start and end point, +[**blocks**](DefaultApi.md#blocks) | **GET** /api/v1/blocks | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. [**coin_supply**](DefaultApi.md#coin_supply) | **GET** /api/v1/coinSupply | [**csrf**](DefaultApi.md#csrf) | **GET** /api/v1/csrf | Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. +[**data_delete**](DefaultApi.md#data_delete) | **DELETE** /api/v2/data | +[**data_get**](DefaultApi.md#data_get) | **GET** /api/v2/data | +[**data_post**](DefaultApi.md#data_post) | **POST** /api/v2/data | [**default_connections**](DefaultApi.md#default_connections) | **GET** /api/v1/network/defaultConnections | defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. -[**explorer_address**](DefaultApi.md#explorer_address) | **GET** /api/v1/explorer/address | [**health**](DefaultApi.md#health) | **GET** /api/v1/health | Returns node health data. [**last_blocks**](DefaultApi.md#last_blocks) | **GET** /api/v1/last_blocks | [**network_connection**](DefaultApi.md#network_connection) | **GET** /api/v1/network/connection | This endpoint returns a specific connection. @@ -30,7 +33,9 @@ Method | HTTP request | Description [**resend_unconfirmed_txns**](DefaultApi.md#resend_unconfirmed_txns) | **POST** /api/v1/resendUnconfirmedTxns | [**richlist**](DefaultApi.md#richlist) | **GET** /api/v1/richlist | Returns the top skycoin holders. [**transaction**](DefaultApi.md#transaction) | **GET** /api/v1/transaction | -[**transaction_inject**](DefaultApi.md#transaction_inject) | **POST** /api/v2/transaction/inject | Broadcast a hex-encoded, serialized transaction to the network. +[**transaction_inject**](DefaultApi.md#transaction_inject) | **POST** /api/v1/injectTransaction | Broadcast a hex-encoded, serialized transaction to the network. +[**transaction_post**](DefaultApi.md#transaction_post) | **POST** /api/v2/transaction | +[**transaction_post_unspent**](DefaultApi.md#transaction_post_unspent) | **POST** /api/v2/transaction/unspent | [**transaction_raw**](DefaultApi.md#transaction_raw) | **GET** /api/v2/transaction/raw | Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. [**transaction_verify**](DefaultApi.md#transaction_verify) | **POST** /api/v2/transaction/verify | [**transactions_get**](DefaultApi.md#transactions_get) | **GET** /api/v1/transactions | Returns transactions that match the filters. @@ -49,8 +54,8 @@ Method | HTTP request | Description [**wallet_recover**](DefaultApi.md#wallet_recover) | **POST** /api/v2/wallet/recover | Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. [**wallet_seed**](DefaultApi.md#wallet_seed) | **POST** /api/v1/wallet/seed | This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. [**wallet_seed_verify**](DefaultApi.md#wallet_seed_verify) | **POST** /api/v2/wallet/seed/verify | Verifies a wallet seed. -[**wallet_spent**](DefaultApi.md#wallet_spent) | **POST** /api/v1/wallet/spend | -[**wallet_transaction**](DefaultApi.md#wallet_transaction) | **POST** /api/v1/wallet/transaction | +[**wallet_transaction**](DefaultApi.md#wallet_transaction) | **POST** /api/v1/wallet/transaction | Creates a signed transaction +[**wallet_transaction_sign**](DefaultApi.md#wallet_transaction_sign) | **POST** /api/v2/wallet/transaction/sign | Creates a signed transaction [**wallet_transactions**](DefaultApi.md#wallet_transactions) | **GET** /api/v1/wallet/transactions | [**wallet_unload**](DefaultApi.md#wallet_unload) | **POST** /api/v1/wallet/unload | Unloads wallet from the wallet service. [**wallet_update**](DefaultApi.md#wallet_update) | **POST** /api/v1/wallet/update | Update the wallet. @@ -58,11 +63,12 @@ Method | HTTP request | Description # **address_count** -> object address_count() +> InlineResponse200 address_count() Returns the total number of unique address that have coins. ### Example + ```python from __future__ import print_function import time @@ -86,7 +92,7 @@ This endpoint does not need any parameter. ### Return type -**object** +[**InlineResponse200**](InlineResponse200.md) ### Authorization @@ -95,18 +101,19 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **address_uxouts** -> list[InlineResponse200] address_uxouts(address) +> list[object] address_uxouts(address) Returns the historical, spent outputs associated with an address ### Example + ```python from __future__ import print_function import time @@ -133,7 +140,49 @@ Name | Type | Description | Notes ### Return type -[**list[InlineResponse200]**](InlineResponse200.md) +**list[object]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_v1_rawtx_get** +> str api_v1_rawtx_get() + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.api_v1_rawtx_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->api_v1_rawtx_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** ### Authorization @@ -142,7 +191,49 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_v2_metrics_get** +> str api_v2_metrics_get() + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.api_v2_metrics_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->api_v2_metrics_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -152,6 +243,7 @@ No authorization required Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. ### Example + ```python from __future__ import print_function import time @@ -188,7 +280,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -199,16 +291,15 @@ Returns the balance of one or more addresses, both confirmed and predicted. The ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -242,18 +333,17 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **block** -> object block(hash=hash, seq=seq) - +> list[BlockSchema] block(hash=hash, seq=seq) - -Returns a block by hash or seq. Note: only one of hash or seq is allowed +Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. ### Example + ```python from __future__ import print_function import time @@ -263,10 +353,11 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() -hash = 'hash_example' # str | (optional) -seq = 56 # int | (optional) +hash = 'hash_example' # str | get block by hash (optional) +seq = 56 # int | get block by sequence number (optional) try: + # Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. api_response = api_instance.block(hash=hash, seq=seq) pprint(api_response) except ApiException as e: @@ -277,12 +368,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **hash** | **str**| | [optional] - **seq** | **int**| | [optional] + **hash** | **str**| get block by hash | [optional] + **seq** | **int**| get block by sequence number | [optional] ### Return type -**object** +[**list[BlockSchema]**](BlockSchema.md) ### Authorization @@ -291,7 +382,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -301,6 +392,7 @@ No authorization required Returns the blockchain metadata. ### Example + ```python from __future__ import print_function import time @@ -333,7 +425,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -343,6 +435,7 @@ No authorization required Returns the blockchain sync progress. ### Example + ```python from __future__ import print_function import time @@ -375,18 +468,17 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **blocks_get** -> object blocks_get(start=start, end=end, seqs=seqs) - -blocksHandler returns blocks between a start and end point, +# **blocks** +> InlineResponse2001 blocks(start=start, end=end, seq=seq) -or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. +Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. ### Example + ```python from __future__ import print_function import time @@ -396,29 +488,29 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() -start = 56 # int | (optional) -end = 56 # int | (optional) -seqs = [56] # list[int] | (optional) +start = 56 # int | start seq (optional) +end = 56 # int | end seq (optional) +seq = [56] # list[int] | comma-separated list of block seqs (optional) try: - # blocksHandler returns blocks between a start and end point, - api_response = api_instance.blocks_get(start=start, end=end, seqs=seqs) + # Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + api_response = api_instance.blocks(start=start, end=end, seq=seq) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->blocks_get: %s\n" % e) + print("Exception when calling DefaultApi->blocks: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start** | **int**| | [optional] - **end** | **int**| | [optional] - **seqs** | [**list[int]**](int.md)| | [optional] + **start** | **int**| start seq | [optional] + **end** | **int**| end seq | [optional] + **seq** | [**list[int]**](int.md)| comma-separated list of block seqs | [optional] ### Return type -**object** +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization @@ -427,20 +519,19 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **blocks_post** -> object blocks_post(start=start, end=end, seqs=seqs) +# **coin_supply** +> InlineResponse2002 coin_supply() + -blocksHandler returns blocks between a start and end point, -or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose +coinSupplyHandler returns coin distribution supply stats ### Example -* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time @@ -448,57 +539,41 @@ import skyapi from skyapi.rest import ApiException from pprint import pprint -# Configure API key authorization: csrfAuth -configuration = skyapi.Configuration() -configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' - # create an instance of the API class -api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) -start = 56 # int | (optional) -end = 56 # int | (optional) -seqs = [56] # list[int] | (optional) +api_instance = skyapi.DefaultApi() try: - # blocksHandler returns blocks between a start and end point, - api_response = api_instance.blocks_post(start=start, end=end, seqs=seqs) + api_response = api_instance.coin_supply() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->blocks_post: %s\n" % e) + print("Exception when calling DefaultApi->coin_supply: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **int**| | [optional] - **end** | **int**| | [optional] - **seqs** | [**list[int]**](int.md)| | [optional] +This endpoint does not need any parameter. ### Return type -**object** +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization -[csrfAuth](../README.md#csrfAuth) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **coin_supply** -> coin_supply() - - +# **csrf** +> InlineResponse2003 csrf() -coinSupplyHandler returns coin distribution supply stats +Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. ### Example + ```python from __future__ import print_function import time @@ -510,9 +585,11 @@ from pprint import pprint api_instance = skyapi.DefaultApi() try: - api_instance.coin_supply() + # Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + api_response = api_instance.csrf() + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->coin_supply: %s\n" % e) + print("Exception when calling DefaultApi->csrf: %s\n" % e) ``` ### Parameters @@ -520,7 +597,7 @@ This endpoint does not need any parameter. ### Return type -void (empty response body) +[**InlineResponse2003**](InlineResponse2003.md) ### Authorization @@ -529,16 +606,17 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **csrf** -> InlineResponse2001 csrf() +# **data_delete** +> data_delete(type=type, key=key) + -Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. ### Example + ```python from __future__ import print_function import time @@ -548,21 +626,25 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() +type = 'type_example' # str | storage type. (optional) +key = 'key_example' # str | key of the specific value to get. (optional) try: - # Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. - api_response = api_instance.csrf() - pprint(api_response) + api_instance.data_delete(type=type, key=key) except ApiException as e: - print("Exception when calling DefaultApi->csrf: %s\n" % e) + print("Exception when calling DefaultApi->data_delete: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| storage type. | [optional] + **key** | **str**| key of the specific value to get. | [optional] ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +void (empty response body) ### Authorization @@ -571,16 +653,17 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **default_connections** -> list[str] default_connections() +# **data_get** +> object data_get(type=type, key=key) + -defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. ### Example + ```python from __future__ import print_function import time @@ -590,21 +673,26 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() +type = 'type_example' # str | storage type. (optional) +key = 'key_example' # str | key of the specific value to get. (optional) try: - # defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. - api_response = api_instance.default_connections() + api_response = api_instance.data_get(type=type, key=key) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->default_connections: %s\n" % e) + print("Exception when calling DefaultApi->data_get: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| storage type. | [optional] + **key** | **str**| key of the specific value to get. | [optional] ### Return type -**list[str]** +**object** ### Authorization @@ -613,18 +701,17 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **explorer_address** -> list[InlineResponse2002] explorer_address(address=address) - +# **data_post** +> data_post(type=type, key=key, val=val) -Returns all transactions (confirmed and unconfirmed) for an address ### Example + ```python from __future__ import print_function import time @@ -634,24 +721,27 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() -address = 'address_example' # str | tags to filter by (optional) +type = 'type_example' # str | storage type. (optional) +key = 'key_example' # str | key of the specific value to get. (optional) +val = 'val_example' # str | additional value. (optional) try: - api_response = api_instance.explorer_address(address=address) - pprint(api_response) + api_instance.data_post(type=type, key=key, val=val) except ApiException as e: - print("Exception when calling DefaultApi->explorer_address: %s\n" % e) + print("Exception when calling DefaultApi->data_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **address** | **str**| tags to filter by | [optional] + **type** | **str**| storage type. | [optional] + **key** | **str**| key of the specific value to get. | [optional] + **val** | **str**| additional value. | [optional] ### Return type -[**list[InlineResponse2002]**](InlineResponse2002.md) +void (empty response body) ### Authorization @@ -660,7 +750,50 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **default_connections** +> list[str] default_connections() + +defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + api_response = api_instance.default_connections() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->default_connections: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**list[str]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -670,6 +803,7 @@ No authorization required Returns node health data. ### Example + ```python from __future__ import print_function import time @@ -702,7 +836,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -714,6 +848,7 @@ No authorization required Returns the most recent N blocks on the blockchain ### Example + ```python from __future__ import print_function import time @@ -723,7 +858,7 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() -num = 56 # int | +num = 56 # int | Num of blockss try: api_response = api_instance.last_blocks(num) @@ -736,7 +871,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **num** | **int**| | + **num** | **int**| Num of blockss | ### Return type @@ -749,16 +884,17 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **network_connection** -> InlineResponse2003 network_connection(addr) +> NetworkConnectionSchema network_connection(addr) This endpoint returns a specific connection. ### Example + ```python from __future__ import print_function import time @@ -786,7 +922,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2003**](InlineResponse2003.md) +[**NetworkConnectionSchema**](NetworkConnectionSchema.md) ### Authorization @@ -795,27 +931,26 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **network_connections** -> list[InlineResponse2003] network_connections(states=states, direction=direction) +> InlineResponse2004 network_connections(states=states, direction=direction) This endpoint returns all outgoings connections. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -842,7 +977,7 @@ Name | Type | Description | Notes ### Return type -[**list[InlineResponse2003]**](InlineResponse2003.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization @@ -851,7 +986,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -864,16 +999,15 @@ This endpoint disconnects a connection by ID or address ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -905,7 +1039,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -917,6 +1051,7 @@ void (empty response body) This endpoint returns all connections found through peer exchange ### Example + ```python from __future__ import print_function import time @@ -948,7 +1083,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -959,7 +1094,6 @@ trustConnectionsHandler returns all trusted connections.\\n They are not necessa ### Example -* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time @@ -967,14 +1101,8 @@ import skyapi from skyapi.rest import ApiException from pprint import pprint -# Configure API key authorization: csrfAuth -configuration = skyapi.Configuration() -configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' - # create an instance of the API class -api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +api_instance = skyapi.DefaultApi() try: # trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. @@ -993,12 +1121,12 @@ This endpoint does not need any parameter. ### Authorization -[csrfAuth](../README.md#csrfAuth) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1008,6 +1136,7 @@ This endpoint does not need any parameter. If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. ### Example + ```python from __future__ import print_function import time @@ -1046,7 +1175,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1057,16 +1186,15 @@ If neither addrs nor hashes are specificed, return all unspent outputs. If only ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1102,18 +1230,17 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **pending_txs** -> list[InlineResponse2004] pending_txs() - +> list[InlineResponse20010] pending_txs() -Returns pending (unconfirmed) transactions without verbose ### Example + ```python from __future__ import print_function import time @@ -1136,7 +1263,7 @@ This endpoint does not need any parameter. ### Return type -[**list[InlineResponse2004]**](InlineResponse2004.md) +[**list[InlineResponse20010]**](InlineResponse20010.md) ### Authorization @@ -1145,12 +1272,12 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resend_unconfirmed_txns** -> resend_unconfirmed_txns() +> object resend_unconfirmed_txns() @@ -1158,16 +1285,15 @@ Broadcasts all unconfirmed transactions from the unconfirmed transaction pool ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1176,7 +1302,8 @@ configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) try: - api_instance.resend_unconfirmed_txns() + api_response = api_instance.resend_unconfirmed_txns() + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->resend_unconfirmed_txns: %s\n" % e) ``` @@ -1186,7 +1313,7 @@ This endpoint does not need any parameter. ### Return type -void (empty response body) +**object** ### Authorization @@ -1195,7 +1322,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application-json, application/json, application/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1205,6 +1332,7 @@ void (empty response body) Returns the top skycoin holders. ### Example + ```python from __future__ import print_function import time @@ -1243,18 +1371,19 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **transaction** -> object transaction(txid, encoded=encoded) +> Transaction transaction(txid) Returns a transaction identified by its txid hash with just id ### Example + ```python from __future__ import print_function import time @@ -1264,11 +1393,10 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() -txid = 'txid_example' # str | transaction hash -encoded = True # bool | return as a raw encoded transaction. (optional) +txid = 'txid_example' # str | transaction Id try: - api_response = api_instance.transaction(txid, encoded=encoded) + api_response = api_instance.transaction(txid) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->transaction: %s\n" % e) @@ -1278,12 +1406,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **txid** | **str**| transaction hash | - **encoded** | **bool**| return as a raw encoded transaction. | [optional] + **txid** | **str**| transaction Id | ### Return type -**object** +[**Transaction**](Transaction.md) ### Authorization @@ -1292,27 +1419,26 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **transaction_inject** -> object transaction_inject(rawtx) +> str transaction_inject(rawtx) Broadcast a hex-encoded, serialized transaction to the network. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1337,7 +1463,7 @@ Name | Type | Description | Notes ### Return type -**object** +**str** ### Authorization @@ -1346,7 +1472,111 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: text/plain, application/json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_post** +> InlineResponse2008 transaction_post(transaction_v2_params_address=transaction_v2_params_address) + + + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +transaction_v2_params_address = skyapi.TransactionV2ParamsAddress() # TransactionV2ParamsAddress | (optional) + +try: + api_response = api_instance.transaction_post(transaction_v2_params_address=transaction_v2_params_address) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transaction_v2_params_address** | [**TransactionV2ParamsAddress**](TransactionV2ParamsAddress.md)| | [optional] + +### Return type + +[**InlineResponse2008**](InlineResponse2008.md) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_post_unspent** +> InlineResponse2008 transaction_post_unspent(transaction_v2_params_unspent) + + + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +transaction_v2_params_unspent = skyapi.TransactionV2ParamsUnspent() # TransactionV2ParamsUnspent | Unspent parameters + +try: + api_response = api_instance.transaction_post_unspent(transaction_v2_params_unspent) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_post_unspent: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transaction_v2_params_unspent** | [**TransactionV2ParamsUnspent**](TransactionV2ParamsUnspent.md)| Unspent parameters | + +### Return type + +[**InlineResponse2008**](InlineResponse2008.md) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1356,6 +1586,7 @@ Name | Type | Description | Notes Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. ### Example + ```python from __future__ import print_function import time @@ -1392,12 +1623,12 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **transaction_verify** -> object transaction_verify() +> object transaction_verify(transaction_verify_request) @@ -1405,32 +1636,35 @@ Decode and verify an encoded transaction ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +transaction_verify_request = skyapi.TransactionVerifyRequest() # TransactionVerifyRequest | try: - api_response = api_instance.transaction_verify() + api_response = api_instance.transaction_verify(transaction_verify_request) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->transaction_verify: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transaction_verify_request** | [**TransactionVerifyRequest**](TransactionVerifyRequest.md)| | ### Return type @@ -1442,8 +1676,8 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1453,6 +1687,7 @@ This endpoint does not need any parameter. Returns transactions that match the filters. ### Example + ```python from __future__ import print_function import time @@ -1491,7 +1726,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1502,16 +1737,15 @@ Returns transactions that match the filters. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1547,7 +1781,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1557,6 +1791,7 @@ Name | Type | Description | Notes Returns an unspent output by ID. ### Example + ```python from __future__ import print_function import time @@ -1593,34 +1828,33 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **verify_address** -> InlineResponse2007 verify_address(address) +> object verify_address(address) Verifies a Skycoin address. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) -address = 'address_example' # str | Address id. +address = None # object | Address id. try: # Verifies a Skycoin address. @@ -1634,11 +1868,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **address** | **str**| Address id. | + **address** | [**object**](.md)| Address id. | ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +**object** ### Authorization @@ -1647,18 +1881,19 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **version** -> version() +> InlineResponse2005 version() versionHandler returns the application version info ### Example + ```python from __future__ import print_function import time @@ -1670,7 +1905,8 @@ from pprint import pprint api_instance = skyapi.DefaultApi() try: - api_instance.version() + api_response = api_instance.version() + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->version: %s\n" % e) ``` @@ -1680,7 +1916,7 @@ This endpoint does not need any parameter. ### Return type -void (empty response body) +[**InlineResponse2005**](InlineResponse2005.md) ### Authorization @@ -1689,7 +1925,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1699,6 +1935,7 @@ No authorization required Returns a wallet by id. ### Example + ```python from __future__ import print_function import time @@ -1735,7 +1972,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1745,6 +1982,7 @@ No authorization required Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. ### Example + ```python from __future__ import print_function import time @@ -1781,7 +2019,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1794,16 +2032,15 @@ Loads wallet from seed, will scan ahead N address and load addresses till the la ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1844,7 +2081,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1855,16 +2092,15 @@ Decrypts wallet. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1900,7 +2136,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1911,16 +2147,15 @@ Encrypt wallet. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -1956,18 +2191,19 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **wallet_folder** -> InlineResponse2006 wallet_folder(addr) +> InlineResponse2007 wallet_folder(addr) Returns the wallet directory path ### Example + ```python from __future__ import print_function import time @@ -1994,7 +2230,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**InlineResponse2007**](InlineResponse2007.md) ### Authorization @@ -2003,7 +2239,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2016,16 +2252,15 @@ Generates new addresses ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -2062,7 +2297,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2074,6 +2309,7 @@ Name | Type | Description | Notes Returns the wallet directory path ### Example + ```python from __future__ import print_function import time @@ -2109,7 +2345,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2120,16 +2356,15 @@ Recovers an encrypted wallet by providing the seed. The first address will be ge ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -2167,7 +2402,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2178,16 +2413,15 @@ This endpoint only works for encrypted wallets. If the wallet is unencrypted, Th ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -2223,7 +2457,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2234,16 +2468,15 @@ Verifies a wallet seed. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -2277,55 +2510,47 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **wallet_spent** -> object wallet_spent(id, dst, coins, password) - - +# **wallet_transaction** +> object wallet_transaction(wallet_transaction_request) -Creates and broadcasts a transaction sending money from one of our wallets to destination address. +Creates a signed transaction ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) -id = 'id_example' # str | Wallet id -dst = 'dst_example' # str | Recipient address -coins = 'coins_example' # str | Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. -password = 'password_example' # str | Wallet password. +wallet_transaction_request = skyapi.WalletTransactionRequest() # WalletTransactionRequest | try: - api_response = api_instance.wallet_spent(id, dst, coins, password) + # Creates a signed transaction + api_response = api_instance.wallet_transaction(wallet_transaction_request) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->wallet_spent: %s\n" % e) + print("Exception when calling DefaultApi->wallet_transaction: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| Wallet id | - **dst** | **str**| Recipient address | - **coins** | **str**| Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. | - **password** | **str**| Wallet password. | + **wallet_transaction_request** | [**WalletTransactionRequest**](WalletTransactionRequest.md)| | ### Return type @@ -2337,54 +2562,52 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **wallet_transaction** -> object wallet_transaction(inline_object=inline_object) - - +# **wallet_transaction_sign** +> InlineResponse2009 wallet_transaction_sign(wallet_transaction_sign_request) Creates a signed transaction ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) -inline_object = skyapi.InlineObject() # InlineObject | (optional) +wallet_transaction_sign_request = skyapi.WalletTransactionSignRequest() # WalletTransactionSignRequest | try: - api_response = api_instance.wallet_transaction(inline_object=inline_object) + # Creates a signed transaction + api_response = api_instance.wallet_transaction_sign(wallet_transaction_sign_request) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->wallet_transaction: %s\n" % e) + print("Exception when calling DefaultApi->wallet_transaction_sign: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **inline_object** | [**InlineObject**](InlineObject.md)| | [optional] + **wallet_transaction_sign_request** | [**WalletTransactionSignRequest**](WalletTransactionSignRequest.md)| | ### Return type -**object** +[**InlineResponse2009**](InlineResponse2009.md) ### Authorization @@ -2392,19 +2615,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, application/xml - - **Accept**: application/json + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **wallet_transactions** -> object wallet_transactions(id) - +> InlineResponse2006 wallet_transactions(id) -Returns returns all unconfirmed transactions for all addresses in a given wallet verbose ### Example + ```python from __future__ import print_function import time @@ -2414,7 +2636,7 @@ from pprint import pprint # create an instance of the API class api_instance = skyapi.DefaultApi() -id = 'id_example' # str | Wallet id. +id = 'id_example' # str | Wallet Id. try: api_response = api_instance.wallet_transactions(id) @@ -2427,11 +2649,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| Wallet id. | + **id** | **str**| Wallet Id. | ### Return type -**object** +[**InlineResponse2006**](InlineResponse2006.md) ### Authorization @@ -2440,7 +2662,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2451,16 +2673,15 @@ Unloads wallet from the wallet service. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -2493,27 +2714,26 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **wallet_update** -> wallet_update(id, label) +> str wallet_update(id, label) Update the wallet. ### Example -* Api Key Authentication (csrfAuth): +* Api Key Authentication (csrfAuth): ```python from __future__ import print_function import time import skyapi from skyapi.rest import ApiException from pprint import pprint - -# Configure API key authorization: csrfAuth configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' @@ -2525,7 +2745,8 @@ label = 'label_example' # str | The label the wallet will be updated to. try: # Update the wallet. - api_instance.wallet_update(id, label) + api_response = api_instance.wallet_update(id, label) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->wallet_update: %s\n" % e) ``` @@ -2539,7 +2760,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**str** ### Authorization @@ -2548,18 +2769,19 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: text/plain, application/json, application/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **wallets** -> list[InlineResponse2005] wallets() +> list[object] wallets() Returns all loaded wallets ### Example + ```python from __future__ import print_function import time @@ -2582,7 +2804,7 @@ This endpoint does not need any parameter. ### Return type -[**list[InlineResponse2005]**](InlineResponse2005.md) +**list[object]** ### Authorization @@ -2591,7 +2813,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/xml, [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse200.md b/lib/skyapi/docs/InlineResponse200.md index 2c467671..fce873fa 100644 --- a/lib/skyapi/docs/InlineResponse200.md +++ b/lib/skyapi/docs/InlineResponse200.md @@ -3,15 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hours** | **int** | | [optional] -**coins** | **int** | | [optional] -**uxid** | **str** | | [optional] -**owner_address** | **str** | | [optional] -**spent_block_seq** | **int** | | [optional] -**spent_tx** | **str** | | [optional] -**time** | **int** | | [optional] -**src_block_seq** | **int** | | [optional] -**src_tx** | **str** | | [optional] +**count** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2001.md b/lib/skyapi/docs/InlineResponse2001.md index 003d55d3..7e848c3e 100644 --- a/lib/skyapi/docs/InlineResponse2001.md +++ b/lib/skyapi/docs/InlineResponse2001.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**csrf_token** | **str** | | [optional] +**blocks** | [**list[BlockSchema]**](BlockSchema.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse20010.md b/lib/skyapi/docs/InlineResponse20010.md new file mode 100644 index 00000000..ec26547d --- /dev/null +++ b/lib/skyapi/docs/InlineResponse20010.md @@ -0,0 +1,14 @@ +# InlineResponse20010 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction** | [**ApiV1PendingTxsTransaction**](ApiV1PendingTxsTransaction.md) | | [optional] +**received** | **str** | | [optional] +**checked** | **str** | | [optional] +**announced** | **str** | | [optional] +**is_valid** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/InlineResponse2002.md b/lib/skyapi/docs/InlineResponse2002.md index 88ee3bc4..a7f2b8d2 100644 --- a/lib/skyapi/docs/InlineResponse2002.md +++ b/lib/skyapi/docs/InlineResponse2002.md @@ -3,16 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**outputs** | [**list[Apiv1exploreraddressOutputs]**](Apiv1exploreraddressOutputs.md) | | [optional] -**inner_hash** | **str** | | [optional] -**inputs** | [**list[Apiv1exploreraddressInputs]**](Apiv1exploreraddressInputs.md) | | [optional] -**fee** | **int** | | [optional] -**sigs** | **list[str]** | | [optional] -**length** | **int** | | [optional] -**txid** | **str** | | [optional] -**type** | **int** | | [optional] -**status** | [**Apiv1exploreraddressStatus**](Apiv1exploreraddressStatus.md) | | [optional] -**timestamp** | **int** | | [optional] +**current_coinhour_supply** | **str** | CurrentCoinHourSupply is coins hours in non distribution addresses. | [optional] +**current_supply** | **str** | Coins distributed beyond the project. | [optional] +**locked_distribution_addresses** | **list[str]** | Distribution addresses which are locked and do not count towards total supply. | [optional] +**max_supply** | **str** | MaxSupply is the maximum number of coins to be distributed ever. | [optional] +**total_coinhour_supply** | **str** | TotalCoinHourSupply is coin hours in all addresses including unlocked distribution addresses. | [optional] +**total_supply** | **str** | TotalSupply is CurrentSupply plus coins held by the distribution addresses that are spendable. | [optional] +**unlocked_distribution_addresses** | **list[str]** | Distribution addresses which count towards total supply. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2003.md b/lib/skyapi/docs/InlineResponse2003.md index 49c13820..6e3cc436 100644 --- a/lib/skyapi/docs/InlineResponse2003.md +++ b/lib/skyapi/docs/InlineResponse2003.md @@ -3,19 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_received** | **int** | | [optional] -**last_sent** | **int** | | [optional] -**outgoing** | **bool** | | [optional] -**mirror** | **int** | | [optional] -**address** | **str** | | [optional] -**listen_port** | **int** | | [optional] -**is_trusted_peer** | **bool** | | [optional] -**connected_at** | **int** | | [optional] -**unconfirmed_verify_transaction** | [**InlineResponse2003UnconfirmedVerifyTransaction**](InlineResponse2003UnconfirmedVerifyTransaction.md) | | [optional] -**id** | **int** | | [optional] -**state** | **str** | | [optional] -**user_agent** | **str** | | [optional] -**height** | **int** | | [optional] +**csrf_token** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2004.md b/lib/skyapi/docs/InlineResponse2004.md index 8626c010..63b79086 100644 --- a/lib/skyapi/docs/InlineResponse2004.md +++ b/lib/skyapi/docs/InlineResponse2004.md @@ -3,11 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**announced** | **str** | | [optional] -**is_valid** | **bool** | | [optional] -**checked** | **str** | | [optional] -**received** | **str** | | [optional] -**transaction** | [**Apiv1pendingTxsTransaction**](Apiv1pendingTxsTransaction.md) | | [optional] +**connections** | [**list[NetworkConnectionSchema]**](NetworkConnectionSchema.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2005.md b/lib/skyapi/docs/InlineResponse2005.md index 911db166..646bfe52 100644 --- a/lib/skyapi/docs/InlineResponse2005.md +++ b/lib/skyapi/docs/InlineResponse2005.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**entries** | [**list[Apiv1walletsEntries]**](Apiv1walletsEntries.md) | | [optional] -**meta** | [**Apiv1walletsMeta**](Apiv1walletsMeta.md) | | [optional] +**branch** | **str** | git branch name | [optional] +**commit** | **str** | git commit id | [optional] +**version** | **str** | version number | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2006.md b/lib/skyapi/docs/InlineResponse2006.md index 845f9d17..60399f81 100644 --- a/lib/skyapi/docs/InlineResponse2006.md +++ b/lib/skyapi/docs/InlineResponse2006.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | **str** | | [optional] +**transactions** | [**list[TransactionEncoded]**](TransactionEncoded.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2007.md b/lib/skyapi/docs/InlineResponse2007.md index 42c3c027..2bf1563b 100644 --- a/lib/skyapi/docs/InlineResponse2007.md +++ b/lib/skyapi/docs/InlineResponse2007.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**InlineResponse2007Data**](InlineResponse2007Data.md) | | [optional] -**error** | [**object**](.md) | | [optional] +**address** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/InlineResponse2008.md b/lib/skyapi/docs/InlineResponse2008.md new file mode 100644 index 00000000..62065573 --- /dev/null +++ b/lib/skyapi/docs/InlineResponse2008.md @@ -0,0 +1,10 @@ +# InlineResponse2008 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**InlineResponse2008Data**](InlineResponse2008Data.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/InlineResponse2008Data.md b/lib/skyapi/docs/InlineResponse2008Data.md new file mode 100644 index 00000000..756ebfe6 --- /dev/null +++ b/lib/skyapi/docs/InlineResponse2008Data.md @@ -0,0 +1,10 @@ +# InlineResponse2008Data + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction** | [**Transaction**](Transaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/InlineResponse2009.md b/lib/skyapi/docs/InlineResponse2009.md new file mode 100644 index 00000000..d9e65f5e --- /dev/null +++ b/lib/skyapi/docs/InlineResponse2009.md @@ -0,0 +1,10 @@ +# InlineResponse2009 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/NetworkConnectionSchema.md b/lib/skyapi/docs/NetworkConnectionSchema.md new file mode 100644 index 00000000..9dd8774f --- /dev/null +++ b/lib/skyapi/docs/NetworkConnectionSchema.md @@ -0,0 +1,22 @@ +# NetworkConnectionSchema + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | [optional] +**connected_at** | **int** | | [optional] +**height** | **int** | | [optional] +**id** | **int** | | [optional] +**is_trusted_peer** | **bool** | | [optional] +**last_received** | **int** | | [optional] +**last_sent** | **int** | | [optional] +**listen_port** | **int** | | [optional] +**mirror** | **int** | | [optional] +**outgoing** | **bool** | | [optional] +**state** | **str** | | [optional] +**unconfirmed_verify_transaction** | [**NetworkConnectionSchemaUnconfirmedVerifyTransaction**](NetworkConnectionSchemaUnconfirmedVerifyTransaction.md) | | [optional] +**user_agent** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md b/lib/skyapi/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md similarity index 88% rename from lib/skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md rename to lib/skyapi/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md index a5254d47..aaddd118 100644 --- a/lib/skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md +++ b/lib/skyapi/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md @@ -1,11 +1,11 @@ -# InlineResponse2003UnconfirmedVerifyTransaction +# NetworkConnectionSchemaUnconfirmedVerifyTransaction ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **burn_factor** | **int** | | [optional] -**max_transaction_size** | **int** | | [optional] **max_decimals** | **int** | | [optional] +**max_transaction_size** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/Apiv1exploreraddressStatus.md b/lib/skyapi/docs/Transaction.md similarity index 58% rename from lib/skyapi/docs/Apiv1exploreraddressStatus.md rename to lib/skyapi/docs/Transaction.md index f8cafdf9..5a8a3c91 100644 --- a/lib/skyapi/docs/Apiv1exploreraddressStatus.md +++ b/lib/skyapi/docs/Transaction.md @@ -1,12 +1,11 @@ -# Apiv1exploreraddressStatus +# Transaction ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**unconfirmed** | **bool** | | [optional] -**block_seq** | **int** | | [optional] -**label** | **int** | | [optional] -**confirmed** | **bool** | | [optional] +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**txn** | [**TransactionTxn**](TransactionTxn.md) | | [optional] +**time** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/TransactionEncoded.md b/lib/skyapi/docs/TransactionEncoded.md new file mode 100644 index 00000000..5f972c78 --- /dev/null +++ b/lib/skyapi/docs/TransactionEncoded.md @@ -0,0 +1,14 @@ +# TransactionEncoded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction** | [**ApiV1PendingTxsTransaction**](ApiV1PendingTxsTransaction.md) | | [optional] +**received** | **str** | | [optional] +**checked** | **str** | | [optional] +**announced** | **str** | | [optional] +**is_valid** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/TransactionEncodedS.md b/lib/skyapi/docs/TransactionEncodedS.md new file mode 100644 index 00000000..4ddfd699 --- /dev/null +++ b/lib/skyapi/docs/TransactionEncodedS.md @@ -0,0 +1,12 @@ +# TransactionEncodedS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **int** | | [optional] +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**encoded_transaction** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/TransactionStatus.md b/lib/skyapi/docs/TransactionStatus.md new file mode 100644 index 00000000..69ecb1ec --- /dev/null +++ b/lib/skyapi/docs/TransactionStatus.md @@ -0,0 +1,13 @@ +# TransactionStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_seq** | **int** | If confirmed, the sequence of the block in which the transaction was executed | [optional] +**confirmed** | **bool** | | [optional] +**height** | **int** | If confirmed, how many blocks deep in the chain it is. Will be at least 1 if confirmed | [optional] +**unconfirmed** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/Apiv1pendingTxsTransaction.md b/lib/skyapi/docs/TransactionTxn.md similarity index 80% rename from lib/skyapi/docs/Apiv1pendingTxsTransaction.md rename to lib/skyapi/docs/TransactionTxn.md index e752fd51..f2327fb5 100644 --- a/lib/skyapi/docs/Apiv1pendingTxsTransaction.md +++ b/lib/skyapi/docs/TransactionTxn.md @@ -1,16 +1,16 @@ -# Apiv1pendingTxsTransaction +# TransactionTxn ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**outputs** | [**list[Apiv1exploreraddressOutputs]**](Apiv1exploreraddressOutputs.md) | | [optional] **inner_hash** | **str** | | [optional] **inputs** | **list[str]** | | [optional] -**sigs** | **list[str]** | | [optional] **length** | **int** | | [optional] +**outputs** | **list[object]** | | [optional] +**sigs** | **list[str]** | | [optional] +**timestamp** | **int** | | [optional] **txid** | **str** | | [optional] **type** | **int** | | [optional] -**timestamp** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/TransactionV2ParamsAddress.md b/lib/skyapi/docs/TransactionV2ParamsAddress.md new file mode 100644 index 00000000..2a9f4fb9 --- /dev/null +++ b/lib/skyapi/docs/TransactionV2ParamsAddress.md @@ -0,0 +1,10 @@ +# TransactionV2ParamsAddress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hours_selection** | [**TransactionV2ParamsAddressHoursSelection**](TransactionV2ParamsAddressHoursSelection.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/TransactionV2ParamsAddressHoursSelection.md b/lib/skyapi/docs/TransactionV2ParamsAddressHoursSelection.md new file mode 100644 index 00000000..361de396 --- /dev/null +++ b/lib/skyapi/docs/TransactionV2ParamsAddressHoursSelection.md @@ -0,0 +1,10 @@ +# TransactionV2ParamsAddressHoursSelection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/TransactionV2ParamsUnspent.md b/lib/skyapi/docs/TransactionV2ParamsUnspent.md new file mode 100644 index 00000000..53b9bcdf --- /dev/null +++ b/lib/skyapi/docs/TransactionV2ParamsUnspent.md @@ -0,0 +1,13 @@ +# TransactionV2ParamsUnspent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hours_selection** | [**TransactionV2ParamsUnspentHoursSelection**](TransactionV2ParamsUnspentHoursSelection.md) | | [optional] +**unspents** | **list[str]** | | [optional] +**change_address** | **str** | | [optional] +**to** | [**list[TransactionV2ParamsUnspentTo]**](TransactionV2ParamsUnspentTo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/TransactionV2ParamsUnspentHoursSelection.md b/lib/skyapi/docs/TransactionV2ParamsUnspentHoursSelection.md new file mode 100644 index 00000000..688d39fc --- /dev/null +++ b/lib/skyapi/docs/TransactionV2ParamsUnspentHoursSelection.md @@ -0,0 +1,12 @@ +# TransactionV2ParamsUnspentHoursSelection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**mode** | **str** | | [optional] +**share_factor** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/Apiv1walletsEntries.md b/lib/skyapi/docs/TransactionV2ParamsUnspentTo.md similarity index 82% rename from lib/skyapi/docs/Apiv1walletsEntries.md rename to lib/skyapi/docs/TransactionV2ParamsUnspentTo.md index 839490ed..8e5a2b46 100644 --- a/lib/skyapi/docs/Apiv1walletsEntries.md +++ b/lib/skyapi/docs/TransactionV2ParamsUnspentTo.md @@ -1,10 +1,10 @@ -# Apiv1walletsEntries +# TransactionV2ParamsUnspentTo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**public_key** | **str** | | [optional] **address** | **str** | | [optional] +**coins** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/TransactionVerbose.md b/lib/skyapi/docs/TransactionVerbose.md new file mode 100644 index 00000000..13a7ed5c --- /dev/null +++ b/lib/skyapi/docs/TransactionVerbose.md @@ -0,0 +1,12 @@ +# TransactionVerbose + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **int** | | [optional] +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**txn** | [**TransactionVerboseTxn**](TransactionVerboseTxn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/TransactionVerboseTxn.md b/lib/skyapi/docs/TransactionVerboseTxn.md new file mode 100644 index 00000000..14859aa4 --- /dev/null +++ b/lib/skyapi/docs/TransactionVerboseTxn.md @@ -0,0 +1,19 @@ +# TransactionVerboseTxn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**fee** | **int** | | [optional] +**inner_hash** | **str** | | [optional] +**inputs** | [**list[TransactionVerboseTxnInputs]**](TransactionVerboseTxnInputs.md) | | [optional] +**length** | **int** | | [optional] +**outputs** | **list[object]** | | [optional] +**sigs** | **list[str]** | | [optional] +**timestamp** | **int** | | [optional] +**txid** | **str** | | [optional] +**type** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/Apiv1exploreraddressInputs.md b/lib/skyapi/docs/TransactionVerboseTxnInputs.md similarity index 94% rename from lib/skyapi/docs/Apiv1exploreraddressInputs.md rename to lib/skyapi/docs/TransactionVerboseTxnInputs.md index 139c04ae..a6380b17 100644 --- a/lib/skyapi/docs/Apiv1exploreraddressInputs.md +++ b/lib/skyapi/docs/TransactionVerboseTxnInputs.md @@ -1,13 +1,13 @@ -# Apiv1exploreraddressInputs +# TransactionVerboseTxnInputs ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**uxid** | **str** | | [optional] **owner** | **str** | | [optional] +**coins** | **str** | | [optional] **hours** | **int** | | [optional] **calculated_hours** | **int** | | [optional] -**coins** | **str** | | [optional] -**uxid** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/TransactionVerifyRequest.md b/lib/skyapi/docs/TransactionVerifyRequest.md new file mode 100644 index 00000000..8f7a9818 --- /dev/null +++ b/lib/skyapi/docs/TransactionVerifyRequest.md @@ -0,0 +1,11 @@ +# TransactionVerifyRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**unsigned** | **bool** | | [optional] +**encoded_transaction** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/docs/InlineObject.md b/lib/skyapi/docs/WalletTransactionRequest.md similarity index 53% rename from lib/skyapi/docs/InlineObject.md rename to lib/skyapi/docs/WalletTransactionRequest.md index a4b44b2a..e1183534 100644 --- a/lib/skyapi/docs/InlineObject.md +++ b/lib/skyapi/docs/WalletTransactionRequest.md @@ -1,13 +1,13 @@ -# InlineObject +# WalletTransactionRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **change_address** | **str** | | [optional] -**hours_selection** | [**Apiv1wallettransactionHoursSelection**](Apiv1wallettransactionHoursSelection.md) | | [optional] +**hours_selection** | [**WalletTransactionRequestHoursSelection**](WalletTransactionRequestHoursSelection.md) | | [optional] **ignore_unconfirmed** | **bool** | | [optional] -**to** | [**list[Apiv1wallettransactionTo]**](Apiv1wallettransactionTo.md) | | [optional] -**wallet** | [**Apiv1wallettransactionWallet**](Apiv1wallettransactionWallet.md) | | [optional] +**to** | **list[object]** | | [optional] +**wallet** | [**WalletTransactionRequestWallet**](WalletTransactionRequestWallet.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/Apiv1wallettransactionHoursSelection.md b/lib/skyapi/docs/WalletTransactionRequestHoursSelection.md similarity index 90% rename from lib/skyapi/docs/Apiv1wallettransactionHoursSelection.md rename to lib/skyapi/docs/WalletTransactionRequestHoursSelection.md index 164b319e..954b56ad 100644 --- a/lib/skyapi/docs/Apiv1wallettransactionHoursSelection.md +++ b/lib/skyapi/docs/WalletTransactionRequestHoursSelection.md @@ -1,4 +1,4 @@ -# Apiv1wallettransactionHoursSelection +# WalletTransactionRequestHoursSelection ## Properties Name | Type | Description | Notes diff --git a/lib/skyapi/docs/Apiv1wallettransactionWallet.md b/lib/skyapi/docs/WalletTransactionRequestWallet.md similarity index 93% rename from lib/skyapi/docs/Apiv1wallettransactionWallet.md rename to lib/skyapi/docs/WalletTransactionRequestWallet.md index 3efe79b9..7f311c26 100644 --- a/lib/skyapi/docs/Apiv1wallettransactionWallet.md +++ b/lib/skyapi/docs/WalletTransactionRequestWallet.md @@ -1,12 +1,12 @@ -# Apiv1wallettransactionWallet +# WalletTransactionRequestWallet ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**unspents** | **list[str]** | | [optional] **addresses** | **list[str]** | | [optional] -**password** | **str** | | [optional] **id** | **str** | | [optional] +**password** | **str** | | [optional] +**unspents** | **list[str]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/skyapi/docs/WalletTransactionSignRequest.md b/lib/skyapi/docs/WalletTransactionSignRequest.md new file mode 100644 index 00000000..078517de --- /dev/null +++ b/lib/skyapi/docs/WalletTransactionSignRequest.md @@ -0,0 +1,13 @@ +# WalletTransactionSignRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wallet_id** | **str** | | [optional] +**password** | **str** | | [optional] +**encoded_transaction** | **str** | | [optional] +**sign_indexes** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/git_push.sh b/lib/skyapi/git_push.sh deleted file mode 100644 index 8442b80b..00000000 --- a/lib/skyapi/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/lib/skyapi/setup.py b/lib/skyapi/setup.py index 3c36646b..8753376b 100644 --- a/lib/skyapi/setup.py +++ b/lib/skyapi/setup.py @@ -5,16 +5,18 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ from setuptools import setup, find_packages # noqa: H301 +from codecs import open +from os import path NAME = "skyapi" -VERSION = "1.0.0" +VERSION = "0.26.0.dev1" # To install the library, run the following # # python setup.py install @@ -24,17 +26,24 @@ REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] +script_dirname = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(script_dirname, "README.md"), encoding="utf-8") as f: + long_description = f.read() + setup( name=NAME, version=VERSION, description="Skycoin REST API.", author_email="contact@skycoin.net", url="", - keywords=["OpenAPI", "OpenAPI-Generator", "Skycoin REST API."], + keywords="skycoin crypto coin currency blockchain REST API", + setup_requires=["pytest-runner"], + tests_require=REQUIRES, install_requires=REQUIRES, packages=find_packages(), include_package_data=True, - long_description="""\ - Skycoin is a next-generation cryptocurrency. # noqa: E501 - """ + long_description=long_description, + long_description_content_type="text/markdown" ) diff --git a/lib/skyapi/skyapi/__init__.py b/lib/skyapi/skyapi/__init__.py index 8c1a463b..b58645d6 100644 --- a/lib/skyapi/skyapi/__init__.py +++ b/lib/skyapi/skyapi/__init__.py @@ -7,7 +7,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -23,25 +23,51 @@ # import ApiClient from skyapi.api_client import ApiClient from skyapi.configuration import Configuration +from skyapi.exceptions import OpenApiException +from skyapi.exceptions import ApiTypeError +from skyapi.exceptions import ApiValueError +from skyapi.exceptions import ApiKeyError +from skyapi.exceptions import ApiException # import models into sdk package -from skyapi.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs -from skyapi.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs -from skyapi.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus -from skyapi.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction -from skyapi.models.apiv1wallets_entries import Apiv1walletsEntries -from skyapi.models.apiv1wallets_meta import Apiv1walletsMeta -from skyapi.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection -from skyapi.models.apiv1wallettransaction_to import Apiv1wallettransactionTo -from skyapi.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet -from skyapi.models.inline_object import InlineObject +from skyapi.models.address import Address +from skyapi.models.api_v1_pending_txs_transaction import ApiV1PendingTxsTransaction +from skyapi.models.api_v1_pending_txs_transaction_outputs import ApiV1PendingTxsTransactionOutputs +from skyapi.models.block_schema import BlockSchema +from skyapi.models.block_schema_body import BlockSchemaBody +from skyapi.models.block_verbose_schema import BlockVerboseSchema +from skyapi.models.block_verbose_schema_body import BlockVerboseSchemaBody +from skyapi.models.block_verbose_schema_header import BlockVerboseSchemaHeader from skyapi.models.inline_response200 import InlineResponse200 from skyapi.models.inline_response2001 import InlineResponse2001 +from skyapi.models.inline_response20010 import InlineResponse20010 from skyapi.models.inline_response2002 import InlineResponse2002 from skyapi.models.inline_response2003 import InlineResponse2003 -from skyapi.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction from skyapi.models.inline_response2004 import InlineResponse2004 from skyapi.models.inline_response2005 import InlineResponse2005 from skyapi.models.inline_response2006 import InlineResponse2006 from skyapi.models.inline_response2007 import InlineResponse2007 -from skyapi.models.inline_response2007_data import InlineResponse2007Data +from skyapi.models.inline_response2008 import InlineResponse2008 +from skyapi.models.inline_response2008_data import InlineResponse2008Data +from skyapi.models.inline_response2009 import InlineResponse2009 from skyapi.models.inline_response_default import InlineResponseDefault +from skyapi.models.network_connection_schema import NetworkConnectionSchema +from skyapi.models.network_connection_schema_unconfirmed_verify_transaction import NetworkConnectionSchemaUnconfirmedVerifyTransaction +from skyapi.models.transaction import Transaction +from skyapi.models.transaction_encoded import TransactionEncoded +from skyapi.models.transaction_encoded_s import TransactionEncodedS +from skyapi.models.transaction_status import TransactionStatus +from skyapi.models.transaction_txn import TransactionTxn +from skyapi.models.transaction_v2_params_address import TransactionV2ParamsAddress +from skyapi.models.transaction_v2_params_address_hours_selection import TransactionV2ParamsAddressHoursSelection +from skyapi.models.transaction_v2_params_unspent import TransactionV2ParamsUnspent +from skyapi.models.transaction_v2_params_unspent_hours_selection import TransactionV2ParamsUnspentHoursSelection +from skyapi.models.transaction_v2_params_unspent_to import TransactionV2ParamsUnspentTo +from skyapi.models.transaction_verbose import TransactionVerbose +from skyapi.models.transaction_verbose_txn import TransactionVerboseTxn +from skyapi.models.transaction_verbose_txn_inputs import TransactionVerboseTxnInputs +from skyapi.models.transaction_verify_request import TransactionVerifyRequest +from skyapi.models.wallet_transaction_request import WalletTransactionRequest +from skyapi.models.wallet_transaction_request_hours_selection import WalletTransactionRequestHoursSelection +from skyapi.models.wallet_transaction_request_wallet import WalletTransactionRequestWallet +from skyapi.models.wallet_transaction_sign_request import WalletTransactionSignRequest + diff --git a/lib/skyapi/skyapi/api/default_api.py b/lib/skyapi/skyapi/api/default_api.py index 2f69e514..5fb5a587 100644 --- a/lib/skyapi/skyapi/api/default_api.py +++ b/lib/skyapi/skyapi/api/default_api.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -19,6 +19,10 @@ import six from skyapi.api_client import ApiClient +from skyapi.exceptions import ( + ApiTypeError, + ApiValueError +) class DefaultApi(object): @@ -42,7 +46,7 @@ def address_count(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -62,7 +66,7 @@ def address_count_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -77,7 +81,7 @@ def address_count_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method address_count" % key ) @@ -98,7 +102,7 @@ def address_count_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -111,7 +115,7 @@ def address_count_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse200', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -130,7 +134,7 @@ def address_uxouts(self, address, **kwargs): # noqa: E501 :param async_req bool :param str address: address to filter by (required) - :return: list[InlineResponse200] + :return: list[object] If the method is called asynchronously, returns the request thread. """ @@ -152,7 +156,7 @@ def address_uxouts_with_http_info(self, address, **kwargs): # noqa: E501 :param async_req bool :param str address: address to filter by (required) - :return: list[InlineResponse200] + :return: list[object] If the method is called asynchronously, returns the request thread. """ @@ -167,7 +171,7 @@ def address_uxouts_with_http_info(self, address, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method address_uxouts" % key ) @@ -176,7 +180,7 @@ def address_uxouts_with_http_info(self, address, **kwargs): # noqa: E501 # verify the required parameter 'address' is set if ('address' not in local_var_params or local_var_params['address'] is None): - raise ValueError("Missing the required parameter `address` when calling `address_uxouts`") # noqa: E501 + raise ApiValueError("Missing the required parameter `address` when calling `address_uxouts`") # noqa: E501 collection_formats = {} @@ -194,7 +198,7 @@ def address_uxouts_with_http_info(self, address, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -207,7 +211,179 @@ def address_uxouts_with_http_info(self, address, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse200]', # noqa: E501 + response_type='list[object]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_v1_rawtx_get(self, **kwargs): # noqa: E501 + """api_v1_rawtx_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v1_rawtx_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.api_v1_rawtx_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.api_v1_rawtx_get_with_http_info(**kwargs) # noqa: E501 + return data + + def api_v1_rawtx_get_with_http_info(self, **kwargs): # noqa: E501 + """api_v1_rawtx_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v1_rawtx_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_v1_rawtx_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/rawtx', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_v2_metrics_get(self, **kwargs): # noqa: E501 + """api_v2_metrics_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v2_metrics_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.api_v2_metrics_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.api_v2_metrics_get_with_http_info(**kwargs) # noqa: E501 + return data + + def api_v2_metrics_get_with_http_info(self, **kwargs): # noqa: E501 + """api_v2_metrics_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v2_metrics_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_v2_metrics_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/metrics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -261,7 +437,7 @@ def balance_get_with_http_info(self, addrs, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method balance_get" % key ) @@ -270,7 +446,7 @@ def balance_get_with_http_info(self, addrs, **kwargs): # noqa: E501 # verify the required parameter 'addrs' is set if ('addrs' not in local_var_params or local_var_params['addrs'] is None): - raise ValueError("Missing the required parameter `addrs` when calling `balance_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `addrs` when calling `balance_get`") # noqa: E501 collection_formats = {} @@ -288,7 +464,7 @@ def balance_get_with_http_info(self, addrs, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -355,7 +531,7 @@ def balance_post_with_http_info(self, addrs, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method balance_post" % key ) @@ -364,7 +540,7 @@ def balance_post_with_http_info(self, addrs, **kwargs): # noqa: E501 # verify the required parameter 'addrs' is set if ('addrs' not in local_var_params or local_var_params['addrs'] is None): - raise ValueError("Missing the required parameter `addrs` when calling `balance_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `addrs` when calling `balance_post`") # noqa: E501 collection_formats = {} @@ -382,7 +558,7 @@ def balance_post_with_http_info(self, addrs, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -404,18 +580,17 @@ def balance_post_with_http_info(self, addrs, **kwargs): # noqa: E501 collection_formats=collection_formats) def block(self, **kwargs): # noqa: E501 - """block # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 - Returns a block by hash or seq. Note: only one of hash or seq is allowed # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.block(async_req=True) >>> result = thread.get() :param async_req bool - :param str hash: - :param int seq: - :return: object + :param str hash: get block by hash + :param int seq: get block by sequence number + :return: list[BlockSchema] If the method is called asynchronously, returns the request thread. """ @@ -427,18 +602,17 @@ def block(self, **kwargs): # noqa: E501 return data def block_with_http_info(self, **kwargs): # noqa: E501 - """block # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 - Returns a block by hash or seq. Note: only one of hash or seq is allowed # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.block_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param str hash: - :param int seq: - :return: object + :param str hash: get block by hash + :param int seq: get block by sequence number + :return: list[BlockSchema] If the method is called asynchronously, returns the request thread. """ @@ -453,7 +627,7 @@ def block_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method block" % key ) @@ -478,7 +652,7 @@ def block_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -491,7 +665,7 @@ def block_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='list[BlockSchema]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -543,7 +717,7 @@ def blockchain_metadata_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method blockchain_metadata" % key ) @@ -564,7 +738,7 @@ def blockchain_metadata_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -629,7 +803,7 @@ def blockchain_progress_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method blockchain_progress" % key ) @@ -650,7 +824,7 @@ def blockchain_progress_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -671,51 +845,49 @@ def blockchain_progress_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def blocks_get(self, **kwargs): # noqa: E501 - """blocksHandler returns blocks between a start and end point, # noqa: E501 + def blocks(self, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 - or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.blocks_get(async_req=True) + >>> thread = api.blocks(async_req=True) >>> result = thread.get() :param async_req bool - :param int start: - :param int end: - :param list[int] seqs: - :return: object + :param int start: start seq + :param int end: end seq + :param list[int] seq: comma-separated list of block seqs + :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.blocks_get_with_http_info(**kwargs) # noqa: E501 + return self.blocks_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.blocks_get_with_http_info(**kwargs) # noqa: E501 + (data) = self.blocks_with_http_info(**kwargs) # noqa: E501 return data - def blocks_get_with_http_info(self, **kwargs): # noqa: E501 - """blocksHandler returns blocks between a start and end point, # noqa: E501 + def blocks_with_http_info(self, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 - or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.blocks_get_with_http_info(async_req=True) + >>> thread = api.blocks_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param int start: - :param int end: - :param list[int] seqs: - :return: object + :param int start: start seq + :param int end: end seq + :param list[int] seq: comma-separated list of block seqs + :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['start', 'end', 'seqs'] # noqa: E501 + all_params = ['start', 'end', 'seq'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -723,9 +895,9 @@ def blocks_get_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method blocks_get" % key + " to method blocks" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -739,9 +911,9 @@ def blocks_get_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('start', local_var_params['start'])) # noqa: E501 if 'end' in local_var_params: query_params.append(('end', local_var_params['end'])) # noqa: E501 - if 'seqs' in local_var_params: - query_params.append(('seqs', local_var_params['seqs'])) # noqa: E501 - collection_formats['seqs'] = 'csv' # noqa: E501 + if 'seq' in local_var_params: + query_params.append(('seq', local_var_params['seq'])) # noqa: E501 + collection_formats['seq'] = 'multi' # noqa: E501 header_params = {} @@ -751,7 +923,7 @@ def blocks_get_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -764,7 +936,7 @@ def blocks_get_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2001', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -772,51 +944,45 @@ def blocks_get_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def blocks_post(self, **kwargs): # noqa: E501 - """blocksHandler returns blocks between a start and end point, # noqa: E501 + def coin_supply(self, **kwargs): # noqa: E501 + """coin_supply # noqa: E501 - or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose # noqa: E501 + coinSupplyHandler returns coin distribution supply stats # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.blocks_post(async_req=True) + >>> thread = api.coin_supply(async_req=True) >>> result = thread.get() :param async_req bool - :param int start: - :param int end: - :param list[int] seqs: - :return: object + :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.blocks_post_with_http_info(**kwargs) # noqa: E501 + return self.coin_supply_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.blocks_post_with_http_info(**kwargs) # noqa: E501 + (data) = self.coin_supply_with_http_info(**kwargs) # noqa: E501 return data - def blocks_post_with_http_info(self, **kwargs): # noqa: E501 - """blocksHandler returns blocks between a start and end point, # noqa: E501 + def coin_supply_with_http_info(self, **kwargs): # noqa: E501 + """coin_supply # noqa: E501 - or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose # noqa: E501 + coinSupplyHandler returns coin distribution supply stats # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.blocks_post_with_http_info(async_req=True) + >>> thread = api.coin_supply_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param int start: - :param int end: - :param list[int] seqs: - :return: object + :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['start', 'end', 'seqs'] # noqa: E501 + all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -824,9 +990,9 @@ def blocks_post_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method blocks_post" % key + " to method coin_supply" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -836,13 +1002,6 @@ def blocks_post_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'start' in local_var_params: - query_params.append(('start', local_var_params['start'])) # noqa: E501 - if 'end' in local_var_params: - query_params.append(('end', local_var_params['end'])) # noqa: E501 - if 'seqs' in local_var_params: - query_params.append(('seqs', local_var_params['seqs'])) # noqa: E501 - collection_formats['seqs'] = 'csv' # noqa: E501 header_params = {} @@ -852,20 +1011,20 @@ def blocks_post_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting - auth_settings = ['csrfAuth'] # noqa: E501 + auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v1/blocks', 'POST', + '/api/v1/coinSupply', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2002', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -873,37 +1032,125 @@ def blocks_post_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def coin_supply(self, **kwargs): # noqa: E501 - """coin_supply # noqa: E501 + def csrf(self, **kwargs): # noqa: E501 + """Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 - coinSupplyHandler returns coin distribution supply stats # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.coin_supply(async_req=True) + >>> thread = api.csrf(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: InlineResponse2003 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.csrf_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.csrf_with_http_info(**kwargs) # noqa: E501 + return data + + def csrf_with_http_info(self, **kwargs): # noqa: E501 + """Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.csrf_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: InlineResponse2003 + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method csrf" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/csrf', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2003', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def data_delete(self, **kwargs): # noqa: E501 + """data_delete # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_delete(async_req=True) >>> result = thread.get() :param async_req bool + :param str type: storage type. + :param str key: key of the specific value to get. :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.coin_supply_with_http_info(**kwargs) # noqa: E501 + return self.data_delete_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.coin_supply_with_http_info(**kwargs) # noqa: E501 + (data) = self.data_delete_with_http_info(**kwargs) # noqa: E501 return data - def coin_supply_with_http_info(self, **kwargs): # noqa: E501 - """coin_supply # noqa: E501 + def data_delete_with_http_info(self, **kwargs): # noqa: E501 + """data_delete # noqa: E501 - coinSupplyHandler returns coin distribution supply stats # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.coin_supply_with_http_info(async_req=True) + >>> thread = api.data_delete_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param str type: storage type. + :param str key: key of the specific value to get. :return: None If the method is called asynchronously, returns the request thread. @@ -911,7 +1158,7 @@ def coin_supply_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() - all_params = [] # noqa: E501 + all_params = ['type', 'key'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -919,9 +1166,9 @@ def coin_supply_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method coin_supply" % key + " to method data_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -933,6 +1180,10 @@ def coin_supply_with_http_info(self, **kwargs): # noqa: E501 query_params = [] header_params = {} + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'key' in local_var_params: + header_params['key'] = local_var_params['key'] # noqa: E501 form_params = [] local_var_files = {} @@ -940,13 +1191,13 @@ def coin_supply_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v1/coinSupply', 'GET', + '/api/v2/data', 'DELETE', path_params, query_params, header_params, @@ -961,43 +1212,47 @@ def coin_supply_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def csrf(self, **kwargs): # noqa: E501 - """Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 + def data_get(self, **kwargs): # noqa: E501 + """data_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.csrf(async_req=True) + >>> thread = api.data_get(async_req=True) >>> result = thread.get() :param async_req bool - :return: InlineResponse2001 + :param str type: storage type. + :param str key: key of the specific value to get. + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.csrf_with_http_info(**kwargs) # noqa: E501 + return self.data_get_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.csrf_with_http_info(**kwargs) # noqa: E501 + (data) = self.data_get_with_http_info(**kwargs) # noqa: E501 return data - def csrf_with_http_info(self, **kwargs): # noqa: E501 - """Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 + def data_get_with_http_info(self, **kwargs): # noqa: E501 + """data_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.csrf_with_http_info(async_req=True) + >>> thread = api.data_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :return: InlineResponse2001 + :param str type: storage type. + :param str key: key of the specific value to get. + :return: object If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 + all_params = ['type', 'key'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1005,9 +1260,9 @@ def csrf_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method csrf" % key + " to method data_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -1019,6 +1274,10 @@ def csrf_with_http_info(self, **kwargs): # noqa: E501 query_params = [] header_params = {} + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'key' in local_var_params: + header_params['key'] = local_var_params['key'] # noqa: E501 form_params = [] local_var_files = {} @@ -1026,20 +1285,20 @@ def csrf_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v1/csrf', 'GET', + '/api/v2/data', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2001', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1047,43 +1306,49 @@ def csrf_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def default_connections(self, **kwargs): # noqa: E501 - """defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 + def data_post(self, **kwargs): # noqa: E501 + """data_post # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.default_connections(async_req=True) + >>> thread = api.data_post(async_req=True) >>> result = thread.get() :param async_req bool - :return: list[str] + :param str type: storage type. + :param str key: key of the specific value to get. + :param str val: additional value. + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.default_connections_with_http_info(**kwargs) # noqa: E501 + return self.data_post_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.default_connections_with_http_info(**kwargs) # noqa: E501 + (data) = self.data_post_with_http_info(**kwargs) # noqa: E501 return data - def default_connections_with_http_info(self, **kwargs): # noqa: E501 - """defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 + def data_post_with_http_info(self, **kwargs): # noqa: E501 + """data_post # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.default_connections_with_http_info(async_req=True) + >>> thread = api.data_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :return: list[str] + :param str type: storage type. + :param str key: key of the specific value to get. + :param str val: additional value. + :return: None If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 + all_params = ['type', 'key', 'val'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1091,9 +1356,9 @@ def default_connections_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method default_connections" % key + " to method data_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -1105,6 +1370,12 @@ def default_connections_with_http_info(self, **kwargs): # noqa: E501 query_params = [] header_params = {} + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'key' in local_var_params: + header_params['key'] = local_var_params['key'] # noqa: E501 + if 'val' in local_var_params: + header_params['val'] = local_var_params['val'] # noqa: E501 form_params = [] local_var_files = {} @@ -1112,20 +1383,20 @@ def default_connections_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v1/network/defaultConnections', 'GET', + '/api/v2/data', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[str]', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1133,47 +1404,43 @@ def default_connections_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def explorer_address(self, **kwargs): # noqa: E501 - """explorer_address # noqa: E501 + def default_connections(self, **kwargs): # noqa: E501 + """defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 - Returns all transactions (confirmed and unconfirmed) for an address # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.explorer_address(async_req=True) + >>> thread = api.default_connections(async_req=True) >>> result = thread.get() :param async_req bool - :param str address: tags to filter by - :return: list[InlineResponse2002] + :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.explorer_address_with_http_info(**kwargs) # noqa: E501 + return self.default_connections_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.explorer_address_with_http_info(**kwargs) # noqa: E501 + (data) = self.default_connections_with_http_info(**kwargs) # noqa: E501 return data - def explorer_address_with_http_info(self, **kwargs): # noqa: E501 - """explorer_address # noqa: E501 + def default_connections_with_http_info(self, **kwargs): # noqa: E501 + """defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 - Returns all transactions (confirmed and unconfirmed) for an address # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.explorer_address_with_http_info(async_req=True) + >>> thread = api.default_connections_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param str address: tags to filter by - :return: list[InlineResponse2002] + :return: list[str] If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['address'] # noqa: E501 + all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1181,9 +1448,9 @@ def explorer_address_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method explorer_address" % key + " to method default_connections" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -1193,8 +1460,6 @@ def explorer_address_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'address' in local_var_params: - query_params.append(('address', local_var_params['address'])) # noqa: E501 header_params = {} @@ -1204,20 +1469,20 @@ def explorer_address_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v1/explorer/address', 'GET', + '/api/v1/network/defaultConnections', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse2002]', # noqa: E501 + response_type='list[str]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1269,7 +1534,7 @@ def health_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method health" % key ) @@ -1290,7 +1555,7 @@ def health_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -1321,7 +1586,7 @@ def last_blocks(self, num, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param int num: (required) + :param int num: Num of blockss (required) :return: object If the method is called asynchronously, returns the request thread. @@ -1343,7 +1608,7 @@ def last_blocks_with_http_info(self, num, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param int num: (required) + :param int num: Num of blockss (required) :return: object If the method is called asynchronously, returns the request thread. @@ -1359,7 +1624,7 @@ def last_blocks_with_http_info(self, num, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method last_blocks" % key ) @@ -1368,7 +1633,7 @@ def last_blocks_with_http_info(self, num, **kwargs): # noqa: E501 # verify the required parameter 'num' is set if ('num' not in local_var_params or local_var_params['num'] is None): - raise ValueError("Missing the required parameter `num` when calling `last_blocks`") # noqa: E501 + raise ApiValueError("Missing the required parameter `num` when calling `last_blocks`") # noqa: E501 collection_formats = {} @@ -1386,7 +1651,7 @@ def last_blocks_with_http_info(self, num, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -1417,7 +1682,7 @@ def network_connection(self, addr, **kwargs): # noqa: E501 :param async_req bool :param str addr: Address port (required) - :return: InlineResponse2003 + :return: NetworkConnectionSchema If the method is called asynchronously, returns the request thread. """ @@ -1438,7 +1703,7 @@ def network_connection_with_http_info(self, addr, **kwargs): # noqa: E501 :param async_req bool :param str addr: Address port (required) - :return: InlineResponse2003 + :return: NetworkConnectionSchema If the method is called asynchronously, returns the request thread. """ @@ -1453,7 +1718,7 @@ def network_connection_with_http_info(self, addr, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method network_connection" % key ) @@ -1462,7 +1727,7 @@ def network_connection_with_http_info(self, addr, **kwargs): # noqa: E501 # verify the required parameter 'addr' is set if ('addr' not in local_var_params or local_var_params['addr'] is None): - raise ValueError("Missing the required parameter `addr` when calling `network_connection`") # noqa: E501 + raise ApiValueError("Missing the required parameter `addr` when calling `network_connection`") # noqa: E501 collection_formats = {} @@ -1480,7 +1745,7 @@ def network_connection_with_http_info(self, addr, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -1493,7 +1758,7 @@ def network_connection_with_http_info(self, addr, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2003', # noqa: E501 + response_type='NetworkConnectionSchema', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1512,7 +1777,7 @@ def network_connections(self, **kwargs): # noqa: E501 :param async_req bool :param str states: Connection status. :param str direction: Direction of the connection. - :return: list[InlineResponse2003] + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ @@ -1534,7 +1799,7 @@ def network_connections_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param str states: Connection status. :param str direction: Direction of the connection. - :return: list[InlineResponse2003] + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ @@ -1549,7 +1814,7 @@ def network_connections_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method network_connections" % key ) @@ -1574,7 +1839,7 @@ def network_connections_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -1587,7 +1852,7 @@ def network_connections_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse2003]', # noqa: E501 + response_type='InlineResponse2004', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1643,7 +1908,7 @@ def network_connections_disconnect_with_http_info(self, id, **kwargs): # noqa: for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method network_connections_disconnect" % key ) @@ -1652,7 +1917,7 @@ def network_connections_disconnect_with_http_info(self, id, **kwargs): # noqa: # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `network_connections_disconnect`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `network_connections_disconnect`") # noqa: E501 collection_formats = {} @@ -1670,7 +1935,7 @@ def network_connections_disconnect_with_http_info(self, id, **kwargs): # noqa: body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -1737,7 +2002,7 @@ def network_connections_exchange_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method network_connections_exchange" % key ) @@ -1758,7 +2023,7 @@ def network_connections_exchange_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -1823,7 +2088,7 @@ def network_connections_trust_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method network_connections_trust" % key ) @@ -1844,10 +2109,10 @@ def network_connections_trust_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting - auth_settings = ['csrfAuth'] # noqa: E501 + auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/network/connections/trust', 'GET', @@ -1913,7 +2178,7 @@ def outputs_get_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method outputs_get" % key ) @@ -1927,10 +2192,10 @@ def outputs_get_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'address' in local_var_params: query_params.append(('address', local_var_params['address'])) # noqa: E501 - collection_formats['address'] = 'csv' # noqa: E501 + collection_formats['address'] = 'multi' # noqa: E501 if 'hash' in local_var_params: query_params.append(('hash', local_var_params['hash'])) # noqa: E501 - collection_formats['hash'] = 'csv' # noqa: E501 + collection_formats['hash'] = 'multi' # noqa: E501 header_params = {} @@ -1940,7 +2205,7 @@ def outputs_get_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2009,7 +2274,7 @@ def outputs_post_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method outputs_post" % key ) @@ -2034,7 +2299,7 @@ def outputs_post_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -2058,14 +2323,13 @@ def outputs_post_with_http_info(self, **kwargs): # noqa: E501 def pending_txs(self, **kwargs): # noqa: E501 """pending_txs # noqa: E501 - Returns pending (unconfirmed) transactions without verbose # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.pending_txs(async_req=True) >>> result = thread.get() :param async_req bool - :return: list[InlineResponse2004] + :return: list[InlineResponse20010] If the method is called asynchronously, returns the request thread. """ @@ -2079,14 +2343,13 @@ def pending_txs(self, **kwargs): # noqa: E501 def pending_txs_with_http_info(self, **kwargs): # noqa: E501 """pending_txs # noqa: E501 - Returns pending (unconfirmed) transactions without verbose # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.pending_txs_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :return: list[InlineResponse2004] + :return: list[InlineResponse20010] If the method is called asynchronously, returns the request thread. """ @@ -2101,7 +2364,7 @@ def pending_txs_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method pending_txs" % key ) @@ -2122,7 +2385,7 @@ def pending_txs_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2135,7 +2398,7 @@ def pending_txs_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse2004]', # noqa: E501 + response_type='list[InlineResponse20010]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2153,7 +2416,7 @@ def resend_unconfirmed_txns(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: None + :return: object If the method is called asynchronously, returns the request thread. """ @@ -2174,7 +2437,7 @@ def resend_unconfirmed_txns_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: None + :return: object If the method is called asynchronously, returns the request thread. """ @@ -2189,7 +2452,7 @@ def resend_unconfirmed_txns_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method resend_unconfirmed_txns" % key ) @@ -2210,7 +2473,7 @@ def resend_unconfirmed_txns_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application-json', 'application/json', 'application/xml']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -2223,7 +2486,7 @@ def resend_unconfirmed_txns_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2279,7 +2542,7 @@ def richlist_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method richlist" % key ) @@ -2304,7 +2567,7 @@ def richlist_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2335,9 +2598,8 @@ def transaction(self, txid, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str txid: transaction hash (required) - :param bool encoded: return as a raw encoded transaction. - :return: object + :param str txid: transaction Id (required) + :return: Transaction If the method is called asynchronously, returns the request thread. """ @@ -2358,16 +2620,15 @@ def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str txid: transaction hash (required) - :param bool encoded: return as a raw encoded transaction. - :return: object + :param str txid: transaction Id (required) + :return: Transaction If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['txid', 'encoded'] # noqa: E501 + all_params = ['txid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2375,7 +2636,7 @@ def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method transaction" % key ) @@ -2384,7 +2645,7 @@ def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 # verify the required parameter 'txid' is set if ('txid' not in local_var_params or local_var_params['txid'] is None): - raise ValueError("Missing the required parameter `txid` when calling `transaction`") # noqa: E501 + raise ApiValueError("Missing the required parameter `txid` when calling `transaction`") # noqa: E501 collection_formats = {} @@ -2393,8 +2654,6 @@ def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 query_params = [] if 'txid' in local_var_params: query_params.append(('txid', local_var_params['txid'])) # noqa: E501 - if 'encoded' in local_var_params: - query_params.append(('encoded', local_var_params['encoded'])) # noqa: E501 header_params = {} @@ -2404,7 +2663,7 @@ def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2417,7 +2676,7 @@ def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='Transaction', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2435,7 +2694,7 @@ def transaction_inject(self, rawtx, **kwargs): # noqa: E501 :param async_req bool :param str rawtx: hex-encoded serialized transaction string. (required) - :return: object + :return: str If the method is called asynchronously, returns the request thread. """ @@ -2456,7 +2715,7 @@ def transaction_inject_with_http_info(self, rawtx, **kwargs): # noqa: E501 :param async_req bool :param str rawtx: hex-encoded serialized transaction string. (required) - :return: object + :return: str If the method is called asynchronously, returns the request thread. """ @@ -2471,7 +2730,7 @@ def transaction_inject_with_http_info(self, rawtx, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method transaction_inject" % key ) @@ -2480,7 +2739,7 @@ def transaction_inject_with_http_info(self, rawtx, **kwargs): # noqa: E501 # verify the required parameter 'rawtx' is set if ('rawtx' not in local_var_params or local_var_params['rawtx'] is None): - raise ValueError("Missing the required parameter `rawtx` when calling `transaction_inject`") # noqa: E501 + raise ApiValueError("Missing the required parameter `rawtx` when calling `transaction_inject`") # noqa: E501 collection_formats = {} @@ -2498,20 +2757,212 @@ def transaction_inject_with_http_info(self, rawtx, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/injectTransaction', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_post(self, **kwargs): # noqa: E501 + """transaction_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TransactionV2ParamsAddress transaction_v2_params_address: + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.transaction_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.transaction_post_with_http_info(**kwargs) # noqa: E501 + return data + + def transaction_post_with_http_info(self, **kwargs): # noqa: E501 + """transaction_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TransactionV2ParamsAddress transaction_v2_params_address: + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['transaction_v2_params_address'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'transaction_v2_params_address' in local_var_params: + body_params = local_var_params['transaction_v2_params_address'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 return self.api_client.call_api( - '/api/v2/transaction/inject', 'POST', + '/api/v2/transaction', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2008', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_post_unspent(self, transaction_v2_params_unspent, **kwargs): # noqa: E501 + """transaction_post_unspent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post_unspent(transaction_v2_params_unspent, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TransactionV2ParamsUnspent transaction_v2_params_unspent: Unspent parameters (required) + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.transaction_post_unspent_with_http_info(transaction_v2_params_unspent, **kwargs) # noqa: E501 + else: + (data) = self.transaction_post_unspent_with_http_info(transaction_v2_params_unspent, **kwargs) # noqa: E501 + return data + + def transaction_post_unspent_with_http_info(self, transaction_v2_params_unspent, **kwargs): # noqa: E501 + """transaction_post_unspent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post_unspent_with_http_info(transaction_v2_params_unspent, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TransactionV2ParamsUnspent transaction_v2_params_unspent: Unspent parameters (required) + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['transaction_v2_params_unspent'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_post_unspent" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'transaction_v2_params_unspent' is set + if ('transaction_v2_params_unspent' not in local_var_params or + local_var_params['transaction_v2_params_unspent'] is None): + raise ApiValueError("Missing the required parameter `transaction_v2_params_unspent` when calling `transaction_post_unspent`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'transaction_v2_params_unspent' in local_var_params: + body_params = local_var_params['transaction_v2_params_unspent'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/transaction/unspent', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2008', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2565,7 +3016,7 @@ def transaction_raw_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method transaction_raw" % key ) @@ -2588,7 +3039,7 @@ def transaction_raw_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2609,37 +3060,39 @@ def transaction_raw_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def transaction_verify(self, **kwargs): # noqa: E501 + def transaction_verify(self, transaction_verify_request, **kwargs): # noqa: E501 """transaction_verify # noqa: E501 Decode and verify an encoded transaction # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.transaction_verify(async_req=True) + >>> thread = api.transaction_verify(transaction_verify_request, async_req=True) >>> result = thread.get() :param async_req bool + :param TransactionVerifyRequest transaction_verify_request: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.transaction_verify_with_http_info(**kwargs) # noqa: E501 + return self.transaction_verify_with_http_info(transaction_verify_request, **kwargs) # noqa: E501 else: - (data) = self.transaction_verify_with_http_info(**kwargs) # noqa: E501 + (data) = self.transaction_verify_with_http_info(transaction_verify_request, **kwargs) # noqa: E501 return data - def transaction_verify_with_http_info(self, **kwargs): # noqa: E501 + def transaction_verify_with_http_info(self, transaction_verify_request, **kwargs): # noqa: E501 """transaction_verify # noqa: E501 Decode and verify an encoded transaction # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.transaction_verify_with_http_info(async_req=True) + >>> thread = api.transaction_verify_with_http_info(transaction_verify_request, async_req=True) >>> result = thread.get() :param async_req bool + :param TransactionVerifyRequest transaction_verify_request: (required) :return: object If the method is called asynchronously, returns the request thread. @@ -2647,7 +3100,7 @@ def transaction_verify_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() - all_params = [] # noqa: E501 + all_params = ['transaction_verify_request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2655,12 +3108,16 @@ def transaction_verify_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method transaction_verify" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'transaction_verify_request' is set + if ('transaction_verify_request' not in local_var_params or + local_var_params['transaction_verify_request'] is None): + raise ApiValueError("Missing the required parameter `transaction_verify_request` when calling `transaction_verify`") # noqa: E501 collection_formats = {} @@ -2674,8 +3131,14 @@ def transaction_verify_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None + if 'transaction_verify_request' in local_var_params: + body_params = local_var_params['transaction_verify_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting @@ -2745,7 +3208,7 @@ def transactions_get_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method transactions_get" % key ) @@ -2770,7 +3233,7 @@ def transactions_get_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2839,7 +3302,7 @@ def transactions_post_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method transactions_post" % key ) @@ -2864,7 +3327,7 @@ def transactions_post_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -2931,7 +3394,7 @@ def uxout_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method uxout" % key ) @@ -2954,7 +3417,7 @@ def uxout_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -2984,8 +3447,8 @@ def verify_address(self, address, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str address: Address id. (required) - :return: InlineResponse2007 + :param object address: Address id. (required) + :return: object If the method is called asynchronously, returns the request thread. """ @@ -3005,8 +3468,8 @@ def verify_address_with_http_info(self, address, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str address: Address id. (required) - :return: InlineResponse2007 + :param object address: Address id. (required) + :return: object If the method is called asynchronously, returns the request thread. """ @@ -3021,7 +3484,7 @@ def verify_address_with_http_info(self, address, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method verify_address" % key ) @@ -3030,7 +3493,7 @@ def verify_address_with_http_info(self, address, **kwargs): # noqa: E501 # verify the required parameter 'address' is set if ('address' not in local_var_params or local_var_params['address'] is None): - raise ValueError("Missing the required parameter `address` when calling `verify_address`") # noqa: E501 + raise ApiValueError("Missing the required parameter `address` when calling `verify_address`") # noqa: E501 collection_formats = {} @@ -3048,7 +3511,7 @@ def verify_address_with_http_info(self, address, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -3061,7 +3524,7 @@ def verify_address_with_http_info(self, address, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2007', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -3079,7 +3542,7 @@ def version(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: None + :return: InlineResponse2005 If the method is called asynchronously, returns the request thread. """ @@ -3100,7 +3563,7 @@ def version_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: None + :return: InlineResponse2005 If the method is called asynchronously, returns the request thread. """ @@ -3115,7 +3578,7 @@ def version_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method version" % key ) @@ -3136,7 +3599,7 @@ def version_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -3149,7 +3612,7 @@ def version_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='InlineResponse2005', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -3203,7 +3666,7 @@ def wallet_with_http_info(self, id, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet" % key ) @@ -3212,7 +3675,7 @@ def wallet_with_http_info(self, id, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet`") # noqa: E501 collection_formats = {} @@ -3230,7 +3693,7 @@ def wallet_with_http_info(self, id, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -3297,7 +3760,7 @@ def wallet_balance_with_http_info(self, id, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_balance" % key ) @@ -3306,7 +3769,7 @@ def wallet_balance_with_http_info(self, id, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_balance`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_balance`") # noqa: E501 collection_formats = {} @@ -3324,7 +3787,7 @@ def wallet_balance_with_http_info(self, id, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -3401,7 +3864,7 @@ def wallet_create_with_http_info(self, seed, label, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_create" % key ) @@ -3410,14 +3873,14 @@ def wallet_create_with_http_info(self, seed, label, **kwargs): # noqa: E501 # verify the required parameter 'seed' is set if ('seed' not in local_var_params or local_var_params['seed'] is None): - raise ValueError("Missing the required parameter `seed` when calling `wallet_create`") # noqa: E501 + raise ApiValueError("Missing the required parameter `seed` when calling `wallet_create`") # noqa: E501 # verify the required parameter 'label' is set if ('label' not in local_var_params or local_var_params['label'] is None): - raise ValueError("Missing the required parameter `label` when calling `wallet_create`") # noqa: E501 + raise ApiValueError("Missing the required parameter `label` when calling `wallet_create`") # noqa: E501 if 'scan' in local_var_params and local_var_params['scan'] < 1: # noqa: E501 - raise ValueError("Invalid value for parameter `scan` when calling `wallet_create`, must be a value greater than or equal to `1`") # noqa: E501 + raise ApiValueError("Invalid value for parameter `scan` when calling `wallet_create`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} @@ -3442,7 +3905,7 @@ def wallet_create_with_http_info(self, seed, label, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -3511,7 +3974,7 @@ def wallet_decrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_decrypt" % key ) @@ -3520,11 +3983,11 @@ def wallet_decrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_decrypt`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_decrypt`") # noqa: E501 # verify the required parameter 'password' is set if ('password' not in local_var_params or local_var_params['password'] is None): - raise ValueError("Missing the required parameter `password` when calling `wallet_decrypt`") # noqa: E501 + raise ApiValueError("Missing the required parameter `password` when calling `wallet_decrypt`") # noqa: E501 collection_formats = {} @@ -3544,7 +4007,7 @@ def wallet_decrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -3613,7 +4076,7 @@ def wallet_encrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_encrypt" % key ) @@ -3622,11 +4085,11 @@ def wallet_encrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_encrypt`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_encrypt`") # noqa: E501 # verify the required parameter 'password' is set if ('password' not in local_var_params or local_var_params['password'] is None): - raise ValueError("Missing the required parameter `password` when calling `wallet_encrypt`") # noqa: E501 + raise ApiValueError("Missing the required parameter `password` when calling `wallet_encrypt`") # noqa: E501 collection_formats = {} @@ -3646,7 +4109,7 @@ def wallet_encrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -3678,7 +4141,7 @@ def wallet_folder(self, addr, **kwargs): # noqa: E501 :param async_req bool :param str addr: Address port (required) - :return: InlineResponse2006 + :return: InlineResponse2007 If the method is called asynchronously, returns the request thread. """ @@ -3700,7 +4163,7 @@ def wallet_folder_with_http_info(self, addr, **kwargs): # noqa: E501 :param async_req bool :param str addr: Address port (required) - :return: InlineResponse2006 + :return: InlineResponse2007 If the method is called asynchronously, returns the request thread. """ @@ -3715,7 +4178,7 @@ def wallet_folder_with_http_info(self, addr, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_folder" % key ) @@ -3724,7 +4187,7 @@ def wallet_folder_with_http_info(self, addr, **kwargs): # noqa: E501 # verify the required parameter 'addr' is set if ('addr' not in local_var_params or local_var_params['addr'] is None): - raise ValueError("Missing the required parameter `addr` when calling `wallet_folder`") # noqa: E501 + raise ApiValueError("Missing the required parameter `addr` when calling `wallet_folder`") # noqa: E501 collection_formats = {} @@ -3742,7 +4205,7 @@ def wallet_folder_with_http_info(self, addr, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -3755,7 +4218,7 @@ def wallet_folder_with_http_info(self, addr, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2006', # noqa: E501 + response_type='InlineResponse2007', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -3815,7 +4278,7 @@ def wallet_new_address_with_http_info(self, id, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_new_address" % key ) @@ -3824,7 +4287,7 @@ def wallet_new_address_with_http_info(self, id, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_new_address`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_new_address`") # noqa: E501 collection_formats = {} @@ -3846,7 +4309,7 @@ def wallet_new_address_with_http_info(self, id, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -3915,7 +4378,7 @@ def wallet_new_seed_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_new_seed" % key ) @@ -3938,7 +4401,7 @@ def wallet_new_seed_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -4009,7 +4472,7 @@ def wallet_recover_with_http_info(self, id, seed, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_recover" % key ) @@ -4018,11 +4481,11 @@ def wallet_recover_with_http_info(self, id, seed, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_recover`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_recover`") # noqa: E501 # verify the required parameter 'seed' is set if ('seed' not in local_var_params or local_var_params['seed'] is None): - raise ValueError("Missing the required parameter `seed` when calling `wallet_recover`") # noqa: E501 + raise ApiValueError("Missing the required parameter `seed` when calling `wallet_recover`") # noqa: E501 collection_formats = {} @@ -4044,7 +4507,7 @@ def wallet_recover_with_http_info(self, id, seed, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -4113,7 +4576,7 @@ def wallet_seed_with_http_info(self, id, password, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_seed" % key ) @@ -4122,11 +4585,11 @@ def wallet_seed_with_http_info(self, id, password, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_seed`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_seed`") # noqa: E501 # verify the required parameter 'password' is set if ('password' not in local_var_params or local_var_params['password'] is None): - raise ValueError("Missing the required parameter `password` when calling `wallet_seed`") # noqa: E501 + raise ApiValueError("Missing the required parameter `password` when calling `wallet_seed`") # noqa: E501 collection_formats = {} @@ -4146,7 +4609,7 @@ def wallet_seed_with_http_info(self, id, password, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -4213,7 +4676,7 @@ def wallet_seed_verify_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_seed_verify" % key ) @@ -4236,7 +4699,7 @@ def wallet_seed_verify_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -4257,45 +4720,37 @@ def wallet_seed_verify_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def wallet_spent(self, id, dst, coins, password, **kwargs): # noqa: E501 - """wallet_spent # noqa: E501 + def wallet_transaction(self, wallet_transaction_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 - Creates and broadcasts a transaction sending money from one of our wallets to destination address. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.wallet_spent(id, dst, coins, password, async_req=True) + >>> thread = api.wallet_transaction(wallet_transaction_request, async_req=True) >>> result = thread.get() :param async_req bool - :param str id: Wallet id (required) - :param str dst: Recipient address (required) - :param str coins: Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. (required) - :param str password: Wallet password. (required) + :param WalletTransactionRequest wallet_transaction_request: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.wallet_spent_with_http_info(id, dst, coins, password, **kwargs) # noqa: E501 + return self.wallet_transaction_with_http_info(wallet_transaction_request, **kwargs) # noqa: E501 else: - (data) = self.wallet_spent_with_http_info(id, dst, coins, password, **kwargs) # noqa: E501 + (data) = self.wallet_transaction_with_http_info(wallet_transaction_request, **kwargs) # noqa: E501 return data - def wallet_spent_with_http_info(self, id, dst, coins, password, **kwargs): # noqa: E501 - """wallet_spent # noqa: E501 + def wallet_transaction_with_http_info(self, wallet_transaction_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 - Creates and broadcasts a transaction sending money from one of our wallets to destination address. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.wallet_spent_with_http_info(id, dst, coins, password, async_req=True) + >>> thread = api.wallet_transaction_with_http_info(wallet_transaction_request, async_req=True) >>> result = thread.get() :param async_req bool - :param str id: Wallet id (required) - :param str dst: Recipient address (required) - :param str coins: Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. (required) - :param str password: Wallet password. (required) + :param WalletTransactionRequest wallet_transaction_request: (required) :return: object If the method is called asynchronously, returns the request thread. @@ -4303,7 +4758,7 @@ def wallet_spent_with_http_info(self, id, dst, coins, password, **kwargs): # no local_var_params = locals() - all_params = ['id', 'dst', 'coins', 'password'] # noqa: E501 + all_params = ['wallet_transaction_request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4311,28 +4766,16 @@ def wallet_spent_with_http_info(self, id, dst, coins, password, **kwargs): # no for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method wallet_spent" % key + " to method wallet_transaction" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in local_var_params or - local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_spent`") # noqa: E501 - # verify the required parameter 'dst' is set - if ('dst' not in local_var_params or - local_var_params['dst'] is None): - raise ValueError("Missing the required parameter `dst` when calling `wallet_spent`") # noqa: E501 - # verify the required parameter 'coins' is set - if ('coins' not in local_var_params or - local_var_params['coins'] is None): - raise ValueError("Missing the required parameter `coins` when calling `wallet_spent`") # noqa: E501 - # verify the required parameter 'password' is set - if ('password' not in local_var_params or - local_var_params['password'] is None): - raise ValueError("Missing the required parameter `password` when calling `wallet_spent`") # noqa: E501 + # verify the required parameter 'wallet_transaction_request' is set + if ('wallet_transaction_request' not in local_var_params or + local_var_params['wallet_transaction_request'] is None): + raise ApiValueError("Missing the required parameter `wallet_transaction_request` when calling `wallet_transaction`") # noqa: E501 collection_formats = {} @@ -4341,28 +4784,26 @@ def wallet_spent_with_http_info(self, id, dst, coins, password, **kwargs): # no query_params = [] header_params = {} - if 'id' in local_var_params: - header_params['id'] = local_var_params['id'] # noqa: E501 - if 'dst' in local_var_params: - header_params['dst'] = local_var_params['dst'] # noqa: E501 - if 'coins' in local_var_params: - header_params['coins'] = local_var_params['coins'] # noqa: E501 - if 'password' in local_var_params: - header_params['password'] = local_var_params['password'] # noqa: E501 form_params = [] local_var_files = {} body_params = None + if 'wallet_transaction_request' in local_var_params: + body_params = local_var_params['wallet_transaction_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 return self.api_client.call_api( - '/api/v1/wallet/spend', 'POST', + '/api/v1/wallet/transaction', 'POST', path_params, query_params, header_params, @@ -4377,47 +4818,45 @@ def wallet_spent_with_http_info(self, id, dst, coins, password, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def wallet_transaction(self, **kwargs): # noqa: E501 - """wallet_transaction # noqa: E501 + def wallet_transaction_sign(self, wallet_transaction_sign_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 - Creates a signed transaction # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.wallet_transaction(async_req=True) + >>> thread = api.wallet_transaction_sign(wallet_transaction_sign_request, async_req=True) >>> result = thread.get() :param async_req bool - :param InlineObject inline_object: - :return: object + :param WalletTransactionSignRequest wallet_transaction_sign_request: (required) + :return: InlineResponse2009 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.wallet_transaction_with_http_info(**kwargs) # noqa: E501 + return self.wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, **kwargs) # noqa: E501 else: - (data) = self.wallet_transaction_with_http_info(**kwargs) # noqa: E501 + (data) = self.wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, **kwargs) # noqa: E501 return data - def wallet_transaction_with_http_info(self, **kwargs): # noqa: E501 - """wallet_transaction # noqa: E501 + def wallet_transaction_sign_with_http_info(self, wallet_transaction_sign_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 - Creates a signed transaction # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.wallet_transaction_with_http_info(async_req=True) + >>> thread = api.wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, async_req=True) >>> result = thread.get() :param async_req bool - :param InlineObject inline_object: - :return: object + :param WalletTransactionSignRequest wallet_transaction_sign_request: (required) + :return: InlineResponse2009 If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['inline_object'] # noqa: E501 + all_params = ['wallet_transaction_sign_request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4425,12 +4864,16 @@ def wallet_transaction_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method wallet_transaction" % key + " to method wallet_transaction_sign" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'wallet_transaction_sign_request' is set + if ('wallet_transaction_sign_request' not in local_var_params or + local_var_params['wallet_transaction_sign_request'] is None): + raise ApiValueError("Missing the required parameter `wallet_transaction_sign_request` when calling `wallet_transaction_sign`") # noqa: E501 collection_formats = {} @@ -4444,28 +4887,28 @@ def wallet_transaction_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'inline_object' in local_var_params: - body_params = local_var_params['inline_object'] + if 'wallet_transaction_sign_request' in local_var_params: + body_params = local_var_params['wallet_transaction_sign_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json', 'application/xml']) # noqa: E501 + ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 return self.api_client.call_api( - '/api/v1/wallet/transaction', 'POST', + '/api/v2/wallet/transaction/sign', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2009', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4476,15 +4919,14 @@ def wallet_transaction_with_http_info(self, **kwargs): # noqa: E501 def wallet_transactions(self, id, **kwargs): # noqa: E501 """wallet_transactions # noqa: E501 - Returns returns all unconfirmed transactions for all addresses in a given wallet verbose # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.wallet_transactions(id, async_req=True) >>> result = thread.get() :param async_req bool - :param str id: Wallet id. (required) - :return: object + :param str id: Wallet Id. (required) + :return: InlineResponse2006 If the method is called asynchronously, returns the request thread. """ @@ -4498,15 +4940,14 @@ def wallet_transactions(self, id, **kwargs): # noqa: E501 def wallet_transactions_with_http_info(self, id, **kwargs): # noqa: E501 """wallet_transactions # noqa: E501 - Returns returns all unconfirmed transactions for all addresses in a given wallet verbose # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.wallet_transactions_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool - :param str id: Wallet id. (required) - :return: object + :param str id: Wallet Id. (required) + :return: InlineResponse2006 If the method is called asynchronously, returns the request thread. """ @@ -4521,7 +4962,7 @@ def wallet_transactions_with_http_info(self, id, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_transactions" % key ) @@ -4530,7 +4971,7 @@ def wallet_transactions_with_http_info(self, id, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_transactions`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_transactions`") # noqa: E501 collection_formats = {} @@ -4548,7 +4989,7 @@ def wallet_transactions_with_http_info(self, id, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -4561,7 +5002,7 @@ def wallet_transactions_with_http_info(self, id, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2006', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4615,7 +5056,7 @@ def wallet_unload_with_http_info(self, id, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_unload" % key ) @@ -4624,7 +5065,7 @@ def wallet_unload_with_http_info(self, id, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_unload`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_unload`") # noqa: E501 collection_formats = {} @@ -4642,7 +5083,7 @@ def wallet_unload_with_http_info(self, id, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -4674,7 +5115,7 @@ def wallet_update(self, id, label, **kwargs): # noqa: E501 :param async_req bool :param str id: Wallet Id. (required) :param str label: The label the wallet will be updated to. (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -4696,7 +5137,7 @@ def wallet_update_with_http_info(self, id, label, **kwargs): # noqa: E501 :param async_req bool :param str id: Wallet Id. (required) :param str label: The label the wallet will be updated to. (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -4711,7 +5152,7 @@ def wallet_update_with_http_info(self, id, label, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallet_update" % key ) @@ -4720,11 +5161,11 @@ def wallet_update_with_http_info(self, id, label, **kwargs): # noqa: E501 # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `wallet_update`") # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `wallet_update`") # noqa: E501 # verify the required parameter 'label' is set if ('label' not in local_var_params or local_var_params['label'] is None): - raise ValueError("Missing the required parameter `label` when calling `wallet_update`") # noqa: E501 + raise ApiValueError("Missing the required parameter `label` when calling `wallet_update`") # noqa: E501 collection_formats = {} @@ -4744,7 +5185,7 @@ def wallet_update_with_http_info(self, id, label, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['text/plain', 'application/json', 'application/xml']) # noqa: E501 # Authentication setting auth_settings = ['csrfAuth'] # noqa: E501 @@ -4757,7 +5198,7 @@ def wallet_update_with_http_info(self, id, label, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4775,7 +5216,7 @@ def wallets(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: list[InlineResponse2005] + :return: list[object] If the method is called asynchronously, returns the request thread. """ @@ -4796,7 +5237,7 @@ def wallets_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :return: list[InlineResponse2005] + :return: list[object] If the method is called asynchronously, returns the request thread. """ @@ -4811,7 +5252,7 @@ def wallets_with_http_info(self, **kwargs): # noqa: E501 for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method wallets" % key ) @@ -4832,7 +5273,7 @@ def wallets_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'application/xml', ]) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -4845,7 +5286,7 @@ def wallets_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse2005]', # noqa: E501 + response_type='list[object]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/lib/skyapi/skyapi/api_client.py b/lib/skyapi/skyapi/api_client.py index 2256be53..0f3bf7de 100644 --- a/lib/skyapi/skyapi/api_client.py +++ b/lib/skyapi/skyapi/api_client.py @@ -4,7 +4,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -26,6 +26,7 @@ from skyapi.configuration import Configuration import skyapi.models from skyapi import rest +from skyapi.exceptions import ApiValueError class ApiClient(object): @@ -64,7 +65,7 @@ class ApiClient(object): _pool = None def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None, pool_threads=None): + cookie=None, pool_threads=1): if configuration is None: configuration = Configuration() self.configuration = configuration @@ -110,7 +111,7 @@ def __call_api( query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, _host=None): config = self.configuration @@ -157,7 +158,11 @@ def __call_api( body = self.sanitize_for_serialization(body) # request url - url = self.configuration.host + resource_path + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path # perform request and return response response_data = self.request( @@ -290,7 +295,7 @@ def call_api(self, resource_path, method, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, _host=None): """Makes the HTTP request (synchronous) and returns deserialized data. To make an async_req request, set the async_req parameter. @@ -333,7 +338,7 @@ def call_api(self, resource_path, method, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, - _preload_content, _request_timeout) + _preload_content, _request_timeout, _host) else: thread = self.pool.apply_async(self.__call_api, (resource_path, method, path_params, query_params, @@ -342,7 +347,9 @@ def call_api(self, resource_path, method, response_type, auth_settings, _return_http_data_only, collection_formats, - _preload_content, _request_timeout)) + _preload_content, + _request_timeout, + _host)) return thread def request(self, method, url, query_params=None, headers=None, @@ -401,7 +408,7 @@ def request(self, method, url, query_params=None, headers=None, _request_timeout=_request_timeout, body=body) else: - raise ValueError( + raise ApiValueError( "http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`." ) @@ -511,12 +518,14 @@ def update_params_for_auth(self, headers, querys, auth_settings): if auth_setting: if not auth_setting['value']: continue + elif auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': querys.append((auth_setting['key'], auth_setting['value'])) else: - raise ValueError( + raise ApiValueError( 'Authentication token must be in `query` or `header`' ) diff --git a/lib/skyapi/skyapi/configuration.py b/lib/skyapi/skyapi/configuration.py index 476174ed..c0db6d03 100644 --- a/lib/skyapi/skyapi/configuration.py +++ b/lib/skyapi/skyapi/configuration.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -60,7 +60,6 @@ def __init__(self): self.username = "" # Password for HTTP basic authentication self.password = "" - # Logging Settings self.logger = {} self.logger["package_logger"] = logging.getLogger("skyapi") @@ -98,8 +97,12 @@ def __init__(self): # Proxy URL self.proxy = None + # Proxy headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None @property def logger_file(self): @@ -220,7 +223,6 @@ def auth_settings(self): 'key': 'X-CSRF-TOKEN', 'value': self.get_api_key_with_prefix('X-CSRF-TOKEN') }, - } def to_debug_report(self): @@ -231,6 +233,65 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.25.1\n"\ + "Version of the API: 0.26.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "http://127.0.0.1:6420", + 'description': "No description provided", + }, + { + 'url': "https://skycoin.net", + 'description': "No description provided", + }, + { + 'url': "https://staging.node.skycoin.net", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables={}): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :return: URL based on host settings + """ + + servers = self.get_host_settings() + + # check array index out of bound + if index < 0 or index >= len(servers): + raise ValueError( + "Invalid index {} when selecting the host settings. Must be less than {}" # noqa: E501 + .format(index, len(servers))) + + server = servers[index] + url = server['url'] + + # go through variable and assign a value + for variable_name in server['variables']: + if variable_name in variables: + if variables[variable_name] in server['variables'][ + variable_name]['enum_values']: + url = url.replace("{" + variable_name + "}", + variables[variable_name]) + else: + raise ValueError( + "The variable `{}` in the host URL has invalid value {}. Must be {}." # noqa: E501 + .format( + variable_name, variables[variable_name], + server['variables'][variable_name]['enum_values'])) + else: + # use default value + url = url.replace( + "{" + variable_name + "}", + server['variables'][variable_name]['default_value']) + + return url diff --git a/lib/skyapi/skyapi/exceptions.py b/lib/skyapi/skyapi/exceptions.py new file mode 100644 index 00000000..6874383d --- /dev/null +++ b/lib/skyapi/skyapi/exceptions.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import six + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, six.integer_types): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/lib/skyapi/skyapi/models/__init__.py b/lib/skyapi/skyapi/models/__init__.py index 6b11544a..213859d7 100644 --- a/lib/skyapi/skyapi/models/__init__.py +++ b/lib/skyapi/skyapi/models/__init__.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,24 +15,44 @@ from __future__ import absolute_import # import models into model package -from skyapi.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs -from skyapi.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs -from skyapi.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus -from skyapi.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction -from skyapi.models.apiv1wallets_entries import Apiv1walletsEntries -from skyapi.models.apiv1wallets_meta import Apiv1walletsMeta -from skyapi.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection -from skyapi.models.apiv1wallettransaction_to import Apiv1wallettransactionTo -from skyapi.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet -from skyapi.models.inline_object import InlineObject +from skyapi.models.address import Address +from skyapi.models.api_v1_pending_txs_transaction import ApiV1PendingTxsTransaction +from skyapi.models.api_v1_pending_txs_transaction_outputs import ApiV1PendingTxsTransactionOutputs +from skyapi.models.block_schema import BlockSchema +from skyapi.models.block_schema_body import BlockSchemaBody +from skyapi.models.block_verbose_schema import BlockVerboseSchema +from skyapi.models.block_verbose_schema_body import BlockVerboseSchemaBody +from skyapi.models.block_verbose_schema_header import BlockVerboseSchemaHeader from skyapi.models.inline_response200 import InlineResponse200 from skyapi.models.inline_response2001 import InlineResponse2001 +from skyapi.models.inline_response20010 import InlineResponse20010 from skyapi.models.inline_response2002 import InlineResponse2002 from skyapi.models.inline_response2003 import InlineResponse2003 -from skyapi.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction from skyapi.models.inline_response2004 import InlineResponse2004 from skyapi.models.inline_response2005 import InlineResponse2005 from skyapi.models.inline_response2006 import InlineResponse2006 from skyapi.models.inline_response2007 import InlineResponse2007 -from skyapi.models.inline_response2007_data import InlineResponse2007Data +from skyapi.models.inline_response2008 import InlineResponse2008 +from skyapi.models.inline_response2008_data import InlineResponse2008Data +from skyapi.models.inline_response2009 import InlineResponse2009 from skyapi.models.inline_response_default import InlineResponseDefault +from skyapi.models.network_connection_schema import NetworkConnectionSchema +from skyapi.models.network_connection_schema_unconfirmed_verify_transaction import NetworkConnectionSchemaUnconfirmedVerifyTransaction +from skyapi.models.transaction import Transaction +from skyapi.models.transaction_encoded import TransactionEncoded +from skyapi.models.transaction_encoded_s import TransactionEncodedS +from skyapi.models.transaction_status import TransactionStatus +from skyapi.models.transaction_txn import TransactionTxn +from skyapi.models.transaction_v2_params_address import TransactionV2ParamsAddress +from skyapi.models.transaction_v2_params_address_hours_selection import TransactionV2ParamsAddressHoursSelection +from skyapi.models.transaction_v2_params_unspent import TransactionV2ParamsUnspent +from skyapi.models.transaction_v2_params_unspent_hours_selection import TransactionV2ParamsUnspentHoursSelection +from skyapi.models.transaction_v2_params_unspent_to import TransactionV2ParamsUnspentTo +from skyapi.models.transaction_verbose import TransactionVerbose +from skyapi.models.transaction_verbose_txn import TransactionVerboseTxn +from skyapi.models.transaction_verbose_txn_inputs import TransactionVerboseTxnInputs +from skyapi.models.transaction_verify_request import TransactionVerifyRequest +from skyapi.models.wallet_transaction_request import WalletTransactionRequest +from skyapi.models.wallet_transaction_request_hours_selection import WalletTransactionRequestHoursSelection +from skyapi.models.wallet_transaction_request_wallet import WalletTransactionRequestWallet +from skyapi.models.wallet_transaction_sign_request import WalletTransactionSignRequest diff --git a/lib/skyapi/skyapi/models/apiv1wallettransaction_to.py b/lib/skyapi/skyapi/models/address.py similarity index 54% rename from lib/skyapi/skyapi/models/apiv1wallettransaction_to.py rename to lib/skyapi/skyapi/models/address.py index 6993ada5..18f86791 100644 --- a/lib/skyapi/skyapi/models/apiv1wallettransaction_to.py +++ b/lib/skyapi/skyapi/models/address.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1wallettransactionTo(object): +class Address(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,95 +32,44 @@ class Apiv1wallettransactionTo(object): and the value is json key in definition. """ openapi_types = { - 'hours': 'int', - 'address': 'str', - 'coins': 'int' + 'address': 'str' } attribute_map = { - 'hours': 'hours', - 'address': 'address', - 'coins': 'coins' + 'address': 'address' } - def __init__(self, hours=None, address=None, coins=None): # noqa: E501 - """Apiv1wallettransactionTo - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, address=None): # noqa: E501 + """Address - a model defined in OpenAPI""" # noqa: E501 - self._hours = None self._address = None - self._coins = None self.discriminator = None - if hours is not None: - self.hours = hours - if address is not None: - self.address = address - if coins is not None: - self.coins = coins - - @property - def hours(self): - """Gets the hours of this Apiv1wallettransactionTo. # noqa: E501 - - - :return: The hours of this Apiv1wallettransactionTo. # noqa: E501 - :rtype: int - """ - return self._hours - - @hours.setter - def hours(self, hours): - """Sets the hours of this Apiv1wallettransactionTo. - - - :param hours: The hours of this Apiv1wallettransactionTo. # noqa: E501 - :type: int - """ - - self._hours = hours + self.address = address @property def address(self): - """Gets the address of this Apiv1wallettransactionTo. # noqa: E501 + """Gets the address of this Address. # noqa: E501 - :return: The address of this Apiv1wallettransactionTo. # noqa: E501 + :return: The address of this Address. # noqa: E501 :rtype: str """ return self._address @address.setter def address(self, address): - """Sets the address of this Apiv1wallettransactionTo. + """Sets the address of this Address. - :param address: The address of this Apiv1wallettransactionTo. # noqa: E501 + :param address: The address of this Address. # noqa: E501 :type: str """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 self._address = address - @property - def coins(self): - """Gets the coins of this Apiv1wallettransactionTo. # noqa: E501 - - - :return: The coins of this Apiv1wallettransactionTo. # noqa: E501 - :rtype: int - """ - return self._coins - - @coins.setter - def coins(self, coins): - """Sets the coins of this Apiv1wallettransactionTo. - - - :param coins: The coins of this Apiv1wallettransactionTo. # noqa: E501 - :type: int - """ - - self._coins = coins - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -155,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1wallettransactionTo): + if not isinstance(other, Address): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/api_v1_pending_txs_transaction.py b/lib/skyapi/skyapi/models/api_v1_pending_txs_transaction.py new file mode 100644 index 00000000..65057240 --- /dev/null +++ b/lib/skyapi/skyapi/models/api_v1_pending_txs_transaction.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiV1PendingTxsTransaction(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'length': 'int', + 'type': 'int', + 'txid': 'str', + 'inner_hash': 'str', + 'sigs': 'list[str]', + 'inputs': 'list[str]', + 'outputs': 'list[ApiV1PendingTxsTransactionOutputs]' + } + + attribute_map = { + 'length': 'length', + 'type': 'type', + 'txid': 'txid', + 'inner_hash': 'inner_hash', + 'sigs': 'sigs', + 'inputs': 'inputs', + 'outputs': 'outputs' + } + + def __init__(self, length=None, type=None, txid=None, inner_hash=None, sigs=None, inputs=None, outputs=None): # noqa: E501 + """ApiV1PendingTxsTransaction - a model defined in OpenAPI""" # noqa: E501 + + self._length = None + self._type = None + self._txid = None + self._inner_hash = None + self._sigs = None + self._inputs = None + self._outputs = None + self.discriminator = None + + if length is not None: + self.length = length + if type is not None: + self.type = type + if txid is not None: + self.txid = txid + if inner_hash is not None: + self.inner_hash = inner_hash + if sigs is not None: + self.sigs = sigs + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + + @property + def length(self): + """Gets the length of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The length of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this ApiV1PendingTxsTransaction. + + + :param length: The length of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def type(self): + """Gets the type of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The type of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ApiV1PendingTxsTransaction. + + + :param type: The type of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: int + """ + + self._type = type + + @property + def txid(self): + """Gets the txid of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The txid of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: str + """ + return self._txid + + @txid.setter + def txid(self, txid): + """Sets the txid of this ApiV1PendingTxsTransaction. + + + :param txid: The txid of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: str + """ + + self._txid = txid + + @property + def inner_hash(self): + """Gets the inner_hash of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The inner_hash of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: str + """ + return self._inner_hash + + @inner_hash.setter + def inner_hash(self, inner_hash): + """Sets the inner_hash of this ApiV1PendingTxsTransaction. + + + :param inner_hash: The inner_hash of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: str + """ + + self._inner_hash = inner_hash + + @property + def sigs(self): + """Gets the sigs of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The sigs of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: list[str] + """ + return self._sigs + + @sigs.setter + def sigs(self, sigs): + """Sets the sigs of this ApiV1PendingTxsTransaction. + + + :param sigs: The sigs of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: list[str] + """ + + self._sigs = sigs + + @property + def inputs(self): + """Gets the inputs of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The inputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: list[str] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this ApiV1PendingTxsTransaction. + + + :param inputs: The inputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: list[str] + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The outputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: list[ApiV1PendingTxsTransactionOutputs] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this ApiV1PendingTxsTransaction. + + + :param outputs: The outputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: list[ApiV1PendingTxsTransactionOutputs] + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiV1PendingTxsTransaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/apiv1exploreraddress_outputs.py b/lib/skyapi/skyapi/models/api_v1_pending_txs_transaction_outputs.py similarity index 67% rename from lib/skyapi/skyapi/models/apiv1exploreraddress_outputs.py rename to lib/skyapi/skyapi/models/api_v1_pending_txs_transaction_outputs.py index 2b560124..5d68af48 100644 --- a/lib/skyapi/skyapi/models/apiv1exploreraddress_outputs.py +++ b/lib/skyapi/skyapi/models/api_v1_pending_txs_transaction_outputs.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1exploreraddressOutputs(object): +class ApiV1PendingTxsTransactionOutputs(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,74 +32,74 @@ class Apiv1exploreraddressOutputs(object): and the value is json key in definition. """ openapi_types = { - 'hours': 'int', + 'uxid': 'str', 'dst': 'str', 'coins': 'str', - 'uxid': 'str' + 'hours': 'int' } attribute_map = { - 'hours': 'hours', + 'uxid': 'uxid', 'dst': 'dst', 'coins': 'coins', - 'uxid': 'uxid' + 'hours': 'hours' } - def __init__(self, hours=None, dst=None, coins=None, uxid=None): # noqa: E501 - """Apiv1exploreraddressOutputs - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, uxid=None, dst=None, coins=None, hours=None): # noqa: E501 + """ApiV1PendingTxsTransactionOutputs - a model defined in OpenAPI""" # noqa: E501 - self._hours = None + self._uxid = None self._dst = None self._coins = None - self._uxid = None + self._hours = None self.discriminator = None - if hours is not None: - self.hours = hours + if uxid is not None: + self.uxid = uxid if dst is not None: self.dst = dst if coins is not None: self.coins = coins - if uxid is not None: - self.uxid = uxid + if hours is not None: + self.hours = hours @property - def hours(self): - """Gets the hours of this Apiv1exploreraddressOutputs. # noqa: E501 + def uxid(self): + """Gets the uxid of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 - :return: The hours of this Apiv1exploreraddressOutputs. # noqa: E501 - :rtype: int + :return: The uxid of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :rtype: str """ - return self._hours + return self._uxid - @hours.setter - def hours(self, hours): - """Sets the hours of this Apiv1exploreraddressOutputs. + @uxid.setter + def uxid(self, uxid): + """Sets the uxid of this ApiV1PendingTxsTransactionOutputs. - :param hours: The hours of this Apiv1exploreraddressOutputs. # noqa: E501 - :type: int + :param uxid: The uxid of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :type: str """ - self._hours = hours + self._uxid = uxid @property def dst(self): - """Gets the dst of this Apiv1exploreraddressOutputs. # noqa: E501 + """Gets the dst of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 - :return: The dst of this Apiv1exploreraddressOutputs. # noqa: E501 + :return: The dst of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 :rtype: str """ return self._dst @dst.setter def dst(self, dst): - """Sets the dst of this Apiv1exploreraddressOutputs. + """Sets the dst of this ApiV1PendingTxsTransactionOutputs. - :param dst: The dst of this Apiv1exploreraddressOutputs. # noqa: E501 + :param dst: The dst of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 :type: str """ @@ -107,45 +107,45 @@ def dst(self, dst): @property def coins(self): - """Gets the coins of this Apiv1exploreraddressOutputs. # noqa: E501 + """Gets the coins of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 - :return: The coins of this Apiv1exploreraddressOutputs. # noqa: E501 + :return: The coins of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 :rtype: str """ return self._coins @coins.setter def coins(self, coins): - """Sets the coins of this Apiv1exploreraddressOutputs. + """Sets the coins of this ApiV1PendingTxsTransactionOutputs. - :param coins: The coins of this Apiv1exploreraddressOutputs. # noqa: E501 + :param coins: The coins of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 :type: str """ self._coins = coins @property - def uxid(self): - """Gets the uxid of this Apiv1exploreraddressOutputs. # noqa: E501 + def hours(self): + """Gets the hours of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 - :return: The uxid of this Apiv1exploreraddressOutputs. # noqa: E501 - :rtype: str + :return: The hours of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :rtype: int """ - return self._uxid + return self._hours - @uxid.setter - def uxid(self, uxid): - """Sets the uxid of this Apiv1exploreraddressOutputs. + @hours.setter + def hours(self, hours): + """Sets the hours of this ApiV1PendingTxsTransactionOutputs. - :param uxid: The uxid of this Apiv1exploreraddressOutputs. # noqa: E501 - :type: str + :param hours: The hours of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :type: int """ - self._uxid = uxid + self._hours = hours def to_dict(self): """Returns the model properties as a dict""" @@ -181,7 +181,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1exploreraddressOutputs): + if not isinstance(other, ApiV1PendingTxsTransactionOutputs): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/apiv1wallets_meta.py b/lib/skyapi/skyapi/models/apiv1wallets_meta.py deleted file mode 100644 index dd9741ba..00000000 --- a/lib/skyapi/skyapi/models/apiv1wallets_meta.py +++ /dev/null @@ -1,295 +0,0 @@ -# coding: utf-8 - -""" - Skycoin REST API. - - Skycoin is a next-generation cryptocurrency. # noqa: E501 - - OpenAPI spec version: 0.25.1 - Contact: contact@skycoin.net - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Apiv1walletsMeta(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'filename': 'str', - 'encrypted': 'bool', - 'crypto_type': 'str', - 'label': 'str', - 'type': 'str', - 'version': 'str', - 'coin': 'str', - 'timestamp': 'int' - } - - attribute_map = { - 'filename': 'filename', - 'encrypted': 'encrypted', - 'crypto_type': 'crypto_type', - 'label': 'label', - 'type': 'type', - 'version': 'version', - 'coin': 'coin', - 'timestamp': 'timestamp' - } - - def __init__(self, filename=None, encrypted=None, crypto_type=None, label=None, type=None, version=None, coin=None, timestamp=None): # noqa: E501 - """Apiv1walletsMeta - a model defined in OpenAPI""" # noqa: E501 - - self._filename = None - self._encrypted = None - self._crypto_type = None - self._label = None - self._type = None - self._version = None - self._coin = None - self._timestamp = None - self.discriminator = None - - if filename is not None: - self.filename = filename - if encrypted is not None: - self.encrypted = encrypted - if crypto_type is not None: - self.crypto_type = crypto_type - if label is not None: - self.label = label - if type is not None: - self.type = type - if version is not None: - self.version = version - if coin is not None: - self.coin = coin - if timestamp is not None: - self.timestamp = timestamp - - @property - def filename(self): - """Gets the filename of this Apiv1walletsMeta. # noqa: E501 - - - :return: The filename of this Apiv1walletsMeta. # noqa: E501 - :rtype: str - """ - return self._filename - - @filename.setter - def filename(self, filename): - """Sets the filename of this Apiv1walletsMeta. - - - :param filename: The filename of this Apiv1walletsMeta. # noqa: E501 - :type: str - """ - - self._filename = filename - - @property - def encrypted(self): - """Gets the encrypted of this Apiv1walletsMeta. # noqa: E501 - - - :return: The encrypted of this Apiv1walletsMeta. # noqa: E501 - :rtype: bool - """ - return self._encrypted - - @encrypted.setter - def encrypted(self, encrypted): - """Sets the encrypted of this Apiv1walletsMeta. - - - :param encrypted: The encrypted of this Apiv1walletsMeta. # noqa: E501 - :type: bool - """ - - self._encrypted = encrypted - - @property - def crypto_type(self): - """Gets the crypto_type of this Apiv1walletsMeta. # noqa: E501 - - - :return: The crypto_type of this Apiv1walletsMeta. # noqa: E501 - :rtype: str - """ - return self._crypto_type - - @crypto_type.setter - def crypto_type(self, crypto_type): - """Sets the crypto_type of this Apiv1walletsMeta. - - - :param crypto_type: The crypto_type of this Apiv1walletsMeta. # noqa: E501 - :type: str - """ - - self._crypto_type = crypto_type - - @property - def label(self): - """Gets the label of this Apiv1walletsMeta. # noqa: E501 - - - :return: The label of this Apiv1walletsMeta. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this Apiv1walletsMeta. - - - :param label: The label of this Apiv1walletsMeta. # noqa: E501 - :type: str - """ - - self._label = label - - @property - def type(self): - """Gets the type of this Apiv1walletsMeta. # noqa: E501 - - - :return: The type of this Apiv1walletsMeta. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this Apiv1walletsMeta. - - - :param type: The type of this Apiv1walletsMeta. # noqa: E501 - :type: str - """ - - self._type = type - - @property - def version(self): - """Gets the version of this Apiv1walletsMeta. # noqa: E501 - - - :return: The version of this Apiv1walletsMeta. # noqa: E501 - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """Sets the version of this Apiv1walletsMeta. - - - :param version: The version of this Apiv1walletsMeta. # noqa: E501 - :type: str - """ - - self._version = version - - @property - def coin(self): - """Gets the coin of this Apiv1walletsMeta. # noqa: E501 - - - :return: The coin of this Apiv1walletsMeta. # noqa: E501 - :rtype: str - """ - return self._coin - - @coin.setter - def coin(self, coin): - """Sets the coin of this Apiv1walletsMeta. - - - :param coin: The coin of this Apiv1walletsMeta. # noqa: E501 - :type: str - """ - - self._coin = coin - - @property - def timestamp(self): - """Gets the timestamp of this Apiv1walletsMeta. # noqa: E501 - - - :return: The timestamp of this Apiv1walletsMeta. # noqa: E501 - :rtype: int - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this Apiv1walletsMeta. - - - :param timestamp: The timestamp of this Apiv1walletsMeta. # noqa: E501 - :type: int - """ - - self._timestamp = timestamp - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Apiv1walletsMeta): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/lib/skyapi/skyapi/models/block_schema.py b/lib/skyapi/skyapi/models/block_schema.py new file mode 100644 index 00000000..328022cf --- /dev/null +++ b/lib/skyapi/skyapi/models/block_schema.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockSchema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'header': 'BlockVerboseSchemaHeader', + 'body': 'BlockSchemaBody', + 'size': 'int' + } + + attribute_map = { + 'header': 'header', + 'body': 'body', + 'size': 'size' + } + + def __init__(self, header=None, body=None, size=None): # noqa: E501 + """BlockSchema - a model defined in OpenAPI""" # noqa: E501 + + self._header = None + self._body = None + self._size = None + self.discriminator = None + + if header is not None: + self.header = header + if body is not None: + self.body = body + if size is not None: + self.size = size + + @property + def header(self): + """Gets the header of this BlockSchema. # noqa: E501 + + + :return: The header of this BlockSchema. # noqa: E501 + :rtype: BlockVerboseSchemaHeader + """ + return self._header + + @header.setter + def header(self, header): + """Sets the header of this BlockSchema. + + + :param header: The header of this BlockSchema. # noqa: E501 + :type: BlockVerboseSchemaHeader + """ + + self._header = header + + @property + def body(self): + """Gets the body of this BlockSchema. # noqa: E501 + + + :return: The body of this BlockSchema. # noqa: E501 + :rtype: BlockSchemaBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BlockSchema. + + + :param body: The body of this BlockSchema. # noqa: E501 + :type: BlockSchemaBody + """ + + self._body = body + + @property + def size(self): + """Gets the size of this BlockSchema. # noqa: E501 + + + :return: The size of this BlockSchema. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BlockSchema. + + + :param size: The size of this BlockSchema. # noqa: E501 + :type: int + """ + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/block_schema_body.py b/lib/skyapi/skyapi/models/block_schema_body.py new file mode 100644 index 00000000..d227e192 --- /dev/null +++ b/lib/skyapi/skyapi/models/block_schema_body.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockSchemaBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'txns': 'list[object]' + } + + attribute_map = { + 'txns': 'txns' + } + + def __init__(self, txns=None): # noqa: E501 + """BlockSchemaBody - a model defined in OpenAPI""" # noqa: E501 + + self._txns = None + self.discriminator = None + + if txns is not None: + self.txns = txns + + @property + def txns(self): + """Gets the txns of this BlockSchemaBody. # noqa: E501 + + + :return: The txns of this BlockSchemaBody. # noqa: E501 + :rtype: list[object] + """ + return self._txns + + @txns.setter + def txns(self, txns): + """Sets the txns of this BlockSchemaBody. + + + :param txns: The txns of this BlockSchemaBody. # noqa: E501 + :type: list[object] + """ + + self._txns = txns + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockSchemaBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/block_verbose_schema.py b/lib/skyapi/skyapi/models/block_verbose_schema.py new file mode 100644 index 00000000..d87a695a --- /dev/null +++ b/lib/skyapi/skyapi/models/block_verbose_schema.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockVerboseSchema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'header': 'BlockVerboseSchemaHeader', + 'body': 'BlockVerboseSchemaBody', + 'size': 'int' + } + + attribute_map = { + 'header': 'header', + 'body': 'body', + 'size': 'size' + } + + def __init__(self, header=None, body=None, size=None): # noqa: E501 + """BlockVerboseSchema - a model defined in OpenAPI""" # noqa: E501 + + self._header = None + self._body = None + self._size = None + self.discriminator = None + + if header is not None: + self.header = header + if body is not None: + self.body = body + if size is not None: + self.size = size + + @property + def header(self): + """Gets the header of this BlockVerboseSchema. # noqa: E501 + + + :return: The header of this BlockVerboseSchema. # noqa: E501 + :rtype: BlockVerboseSchemaHeader + """ + return self._header + + @header.setter + def header(self, header): + """Sets the header of this BlockVerboseSchema. + + + :param header: The header of this BlockVerboseSchema. # noqa: E501 + :type: BlockVerboseSchemaHeader + """ + + self._header = header + + @property + def body(self): + """Gets the body of this BlockVerboseSchema. # noqa: E501 + + + :return: The body of this BlockVerboseSchema. # noqa: E501 + :rtype: BlockVerboseSchemaBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BlockVerboseSchema. + + + :param body: The body of this BlockVerboseSchema. # noqa: E501 + :type: BlockVerboseSchemaBody + """ + + self._body = body + + @property + def size(self): + """Gets the size of this BlockVerboseSchema. # noqa: E501 + + + :return: The size of this BlockVerboseSchema. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BlockVerboseSchema. + + + :param size: The size of this BlockVerboseSchema. # noqa: E501 + :type: int + """ + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockVerboseSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response2007_data.py b/lib/skyapi/skyapi/models/block_verbose_schema_body.py similarity index 71% rename from lib/skyapi/skyapi/models/inline_response2007_data.py rename to lib/skyapi/skyapi/models/block_verbose_schema_body.py index 62f95baf..0154edb1 100644 --- a/lib/skyapi/skyapi/models/inline_response2007_data.py +++ b/lib/skyapi/skyapi/models/block_verbose_schema_body.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class InlineResponse2007Data(object): +class BlockVerboseSchemaBody(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,42 +32,42 @@ class InlineResponse2007Data(object): and the value is json key in definition. """ openapi_types = { - 'version': 'int' + 'txns': 'list[object]' } attribute_map = { - 'version': 'version' + 'txns': 'txns' } - def __init__(self, version=None): # noqa: E501 - """InlineResponse2007Data - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, txns=None): # noqa: E501 + """BlockVerboseSchemaBody - a model defined in OpenAPI""" # noqa: E501 - self._version = None + self._txns = None self.discriminator = None - if version is not None: - self.version = version + if txns is not None: + self.txns = txns @property - def version(self): - """Gets the version of this InlineResponse2007Data. # noqa: E501 + def txns(self): + """Gets the txns of this BlockVerboseSchemaBody. # noqa: E501 - :return: The version of this InlineResponse2007Data. # noqa: E501 - :rtype: int + :return: The txns of this BlockVerboseSchemaBody. # noqa: E501 + :rtype: list[object] """ - return self._version + return self._txns - @version.setter - def version(self, version): - """Sets the version of this InlineResponse2007Data. + @txns.setter + def txns(self, txns): + """Sets the txns of this BlockVerboseSchemaBody. - :param version: The version of this InlineResponse2007Data. # noqa: E501 - :type: int + :param txns: The txns of this BlockVerboseSchemaBody. # noqa: E501 + :type: list[object] """ - self._version = version + self._txns = txns def to_dict(self): """Returns the model properties as a dict""" @@ -103,7 +103,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2007Data): + if not isinstance(other, BlockVerboseSchemaBody): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/block_verbose_schema_header.py b/lib/skyapi/skyapi/models/block_verbose_schema_header.py new file mode 100644 index 00000000..6630aef5 --- /dev/null +++ b/lib/skyapi/skyapi/models/block_verbose_schema_header.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockVerboseSchemaHeader(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'seq': 'int', + 'timestamp': 'int', + 'fee': 'int', + 'version': 'int', + 'block_hash': 'str', + 'previous_block_hash': 'str', + 'tx_body_hash': 'str', + 'ux_hash': 'str' + } + + attribute_map = { + 'seq': 'seq', + 'timestamp': 'timestamp', + 'fee': 'fee', + 'version': 'version', + 'block_hash': 'block_hash', + 'previous_block_hash': 'previous_block_hash', + 'tx_body_hash': 'tx_body_hash', + 'ux_hash': 'ux_hash' + } + + def __init__(self, seq=None, timestamp=None, fee=None, version=None, block_hash=None, previous_block_hash=None, tx_body_hash=None, ux_hash=None): # noqa: E501 + """BlockVerboseSchemaHeader - a model defined in OpenAPI""" # noqa: E501 + + self._seq = None + self._timestamp = None + self._fee = None + self._version = None + self._block_hash = None + self._previous_block_hash = None + self._tx_body_hash = None + self._ux_hash = None + self.discriminator = None + + if seq is not None: + self.seq = seq + if timestamp is not None: + self.timestamp = timestamp + if fee is not None: + self.fee = fee + if version is not None: + self.version = version + if block_hash is not None: + self.block_hash = block_hash + if previous_block_hash is not None: + self.previous_block_hash = previous_block_hash + if tx_body_hash is not None: + self.tx_body_hash = tx_body_hash + if ux_hash is not None: + self.ux_hash = ux_hash + + @property + def seq(self): + """Gets the seq of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The seq of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._seq + + @seq.setter + def seq(self, seq): + """Sets the seq of this BlockVerboseSchemaHeader. + + + :param seq: The seq of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._seq = seq + + @property + def timestamp(self): + """Gets the timestamp of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The timestamp of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this BlockVerboseSchemaHeader. + + + :param timestamp: The timestamp of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._timestamp = timestamp + + @property + def fee(self): + """Gets the fee of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The fee of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._fee + + @fee.setter + def fee(self, fee): + """Sets the fee of this BlockVerboseSchemaHeader. + + + :param fee: The fee of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._fee = fee + + @property + def version(self): + """Gets the version of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The version of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this BlockVerboseSchemaHeader. + + + :param version: The version of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._version = version + + @property + def block_hash(self): + """Gets the block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._block_hash + + @block_hash.setter + def block_hash(self, block_hash): + """Sets the block_hash of this BlockVerboseSchemaHeader. + + + :param block_hash: The block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._block_hash = block_hash + + @property + def previous_block_hash(self): + """Gets the previous_block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The previous_block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._previous_block_hash + + @previous_block_hash.setter + def previous_block_hash(self, previous_block_hash): + """Sets the previous_block_hash of this BlockVerboseSchemaHeader. + + + :param previous_block_hash: The previous_block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._previous_block_hash = previous_block_hash + + @property + def tx_body_hash(self): + """Gets the tx_body_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The tx_body_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._tx_body_hash + + @tx_body_hash.setter + def tx_body_hash(self, tx_body_hash): + """Sets the tx_body_hash of this BlockVerboseSchemaHeader. + + + :param tx_body_hash: The tx_body_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._tx_body_hash = tx_body_hash + + @property + def ux_hash(self): + """Gets the ux_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The ux_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._ux_hash + + @ux_hash.setter + def ux_hash(self, ux_hash): + """Sets the ux_hash of this BlockVerboseSchemaHeader. + + + :param ux_hash: The ux_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._ux_hash = ux_hash + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockVerboseSchemaHeader): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response200.py b/lib/skyapi/skyapi/models/inline_response200.py index 7af9b498..aed0baa7 100644 --- a/lib/skyapi/skyapi/models/inline_response200.py +++ b/lib/skyapi/skyapi/models/inline_response200.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,250 +32,42 @@ class InlineResponse200(object): and the value is json key in definition. """ openapi_types = { - 'hours': 'int', - 'coins': 'int', - 'uxid': 'str', - 'owner_address': 'str', - 'spent_block_seq': 'int', - 'spent_tx': 'str', - 'time': 'int', - 'src_block_seq': 'int', - 'src_tx': 'str' + 'count': 'int' } attribute_map = { - 'hours': 'hours', - 'coins': 'coins', - 'uxid': 'uxid', - 'owner_address': 'owner_address', - 'spent_block_seq': 'spent_block_seq', - 'spent_tx': 'spent_tx', - 'time': 'time', - 'src_block_seq': 'src_block_seq', - 'src_tx': 'src_tx' + 'count': 'count' } - def __init__(self, hours=None, coins=None, uxid=None, owner_address=None, spent_block_seq=None, spent_tx=None, time=None, src_block_seq=None, src_tx=None): # noqa: E501 + def __init__(self, count=None): # noqa: E501 """InlineResponse200 - a model defined in OpenAPI""" # noqa: E501 - self._hours = None - self._coins = None - self._uxid = None - self._owner_address = None - self._spent_block_seq = None - self._spent_tx = None - self._time = None - self._src_block_seq = None - self._src_tx = None + self._count = None self.discriminator = None - if hours is not None: - self.hours = hours - if coins is not None: - self.coins = coins - if uxid is not None: - self.uxid = uxid - if owner_address is not None: - self.owner_address = owner_address - if spent_block_seq is not None: - self.spent_block_seq = spent_block_seq - if spent_tx is not None: - self.spent_tx = spent_tx - if time is not None: - self.time = time - if src_block_seq is not None: - self.src_block_seq = src_block_seq - if src_tx is not None: - self.src_tx = src_tx + if count is not None: + self.count = count @property - def hours(self): - """Gets the hours of this InlineResponse200. # noqa: E501 + def count(self): + """Gets the count of this InlineResponse200. # noqa: E501 - :return: The hours of this InlineResponse200. # noqa: E501 + :return: The count of this InlineResponse200. # noqa: E501 :rtype: int """ - return self._hours + return self._count - @hours.setter - def hours(self, hours): - """Sets the hours of this InlineResponse200. + @count.setter + def count(self, count): + """Sets the count of this InlineResponse200. - :param hours: The hours of this InlineResponse200. # noqa: E501 + :param count: The count of this InlineResponse200. # noqa: E501 :type: int """ - self._hours = hours - - @property - def coins(self): - """Gets the coins of this InlineResponse200. # noqa: E501 - - - :return: The coins of this InlineResponse200. # noqa: E501 - :rtype: int - """ - return self._coins - - @coins.setter - def coins(self, coins): - """Sets the coins of this InlineResponse200. - - - :param coins: The coins of this InlineResponse200. # noqa: E501 - :type: int - """ - - self._coins = coins - - @property - def uxid(self): - """Gets the uxid of this InlineResponse200. # noqa: E501 - - - :return: The uxid of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._uxid - - @uxid.setter - def uxid(self, uxid): - """Sets the uxid of this InlineResponse200. - - - :param uxid: The uxid of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._uxid = uxid - - @property - def owner_address(self): - """Gets the owner_address of this InlineResponse200. # noqa: E501 - - - :return: The owner_address of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._owner_address - - @owner_address.setter - def owner_address(self, owner_address): - """Sets the owner_address of this InlineResponse200. - - - :param owner_address: The owner_address of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._owner_address = owner_address - - @property - def spent_block_seq(self): - """Gets the spent_block_seq of this InlineResponse200. # noqa: E501 - - - :return: The spent_block_seq of this InlineResponse200. # noqa: E501 - :rtype: int - """ - return self._spent_block_seq - - @spent_block_seq.setter - def spent_block_seq(self, spent_block_seq): - """Sets the spent_block_seq of this InlineResponse200. - - - :param spent_block_seq: The spent_block_seq of this InlineResponse200. # noqa: E501 - :type: int - """ - - self._spent_block_seq = spent_block_seq - - @property - def spent_tx(self): - """Gets the spent_tx of this InlineResponse200. # noqa: E501 - - - :return: The spent_tx of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._spent_tx - - @spent_tx.setter - def spent_tx(self, spent_tx): - """Sets the spent_tx of this InlineResponse200. - - - :param spent_tx: The spent_tx of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._spent_tx = spent_tx - - @property - def time(self): - """Gets the time of this InlineResponse200. # noqa: E501 - - - :return: The time of this InlineResponse200. # noqa: E501 - :rtype: int - """ - return self._time - - @time.setter - def time(self, time): - """Sets the time of this InlineResponse200. - - - :param time: The time of this InlineResponse200. # noqa: E501 - :type: int - """ - - self._time = time - - @property - def src_block_seq(self): - """Gets the src_block_seq of this InlineResponse200. # noqa: E501 - - - :return: The src_block_seq of this InlineResponse200. # noqa: E501 - :rtype: int - """ - return self._src_block_seq - - @src_block_seq.setter - def src_block_seq(self, src_block_seq): - """Sets the src_block_seq of this InlineResponse200. - - - :param src_block_seq: The src_block_seq of this InlineResponse200. # noqa: E501 - :type: int - """ - - self._src_block_seq = src_block_seq - - @property - def src_tx(self): - """Gets the src_tx of this InlineResponse200. # noqa: E501 - - - :return: The src_tx of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._src_tx - - @src_tx.setter - def src_tx(self, src_tx): - """Sets the src_tx of this InlineResponse200. - - - :param src_tx: The src_tx of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._src_tx = src_tx + self._count = count def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2001.py b/lib/skyapi/skyapi/models/inline_response2001.py index 02108c38..4c8debe5 100644 --- a/lib/skyapi/skyapi/models/inline_response2001.py +++ b/lib/skyapi/skyapi/models/inline_response2001.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,42 +32,42 @@ class InlineResponse2001(object): and the value is json key in definition. """ openapi_types = { - 'csrf_token': 'str' + 'blocks': 'list[BlockSchema]' } attribute_map = { - 'csrf_token': 'csrf_token' + 'blocks': 'blocks' } - def __init__(self, csrf_token=None): # noqa: E501 + def __init__(self, blocks=None): # noqa: E501 """InlineResponse2001 - a model defined in OpenAPI""" # noqa: E501 - self._csrf_token = None + self._blocks = None self.discriminator = None - if csrf_token is not None: - self.csrf_token = csrf_token + if blocks is not None: + self.blocks = blocks @property - def csrf_token(self): - """Gets the csrf_token of this InlineResponse2001. # noqa: E501 + def blocks(self): + """Gets the blocks of this InlineResponse2001. # noqa: E501 - :return: The csrf_token of this InlineResponse2001. # noqa: E501 - :rtype: str + :return: The blocks of this InlineResponse2001. # noqa: E501 + :rtype: list[BlockSchema] """ - return self._csrf_token + return self._blocks - @csrf_token.setter - def csrf_token(self, csrf_token): - """Sets the csrf_token of this InlineResponse2001. + @blocks.setter + def blocks(self, blocks): + """Sets the blocks of this InlineResponse2001. - :param csrf_token: The csrf_token of this InlineResponse2001. # noqa: E501 - :type: str + :param blocks: The blocks of this InlineResponse2001. # noqa: E501 + :type: list[BlockSchema] """ - self._csrf_token = csrf_token + self._blocks = blocks def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response20010.py b/lib/skyapi/skyapi/models/inline_response20010.py new file mode 100644 index 00000000..2a1988ac --- /dev/null +++ b/lib/skyapi/skyapi/models/inline_response20010.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse20010(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transaction': 'ApiV1PendingTxsTransaction', + 'received': 'str', + 'checked': 'str', + 'announced': 'str', + 'is_valid': 'bool' + } + + attribute_map = { + 'transaction': 'transaction', + 'received': 'received', + 'checked': 'checked', + 'announced': 'announced', + 'is_valid': 'is_valid' + } + + def __init__(self, transaction=None, received=None, checked=None, announced=None, is_valid=None): # noqa: E501 + """InlineResponse20010 - a model defined in OpenAPI""" # noqa: E501 + + self._transaction = None + self._received = None + self._checked = None + self._announced = None + self._is_valid = None + self.discriminator = None + + if transaction is not None: + self.transaction = transaction + if received is not None: + self.received = received + if checked is not None: + self.checked = checked + if announced is not None: + self.announced = announced + if is_valid is not None: + self.is_valid = is_valid + + @property + def transaction(self): + """Gets the transaction of this InlineResponse20010. # noqa: E501 + + + :return: The transaction of this InlineResponse20010. # noqa: E501 + :rtype: ApiV1PendingTxsTransaction + """ + return self._transaction + + @transaction.setter + def transaction(self, transaction): + """Sets the transaction of this InlineResponse20010. + + + :param transaction: The transaction of this InlineResponse20010. # noqa: E501 + :type: ApiV1PendingTxsTransaction + """ + + self._transaction = transaction + + @property + def received(self): + """Gets the received of this InlineResponse20010. # noqa: E501 + + + :return: The received of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._received + + @received.setter + def received(self, received): + """Sets the received of this InlineResponse20010. + + + :param received: The received of this InlineResponse20010. # noqa: E501 + :type: str + """ + + self._received = received + + @property + def checked(self): + """Gets the checked of this InlineResponse20010. # noqa: E501 + + + :return: The checked of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._checked + + @checked.setter + def checked(self, checked): + """Sets the checked of this InlineResponse20010. + + + :param checked: The checked of this InlineResponse20010. # noqa: E501 + :type: str + """ + + self._checked = checked + + @property + def announced(self): + """Gets the announced of this InlineResponse20010. # noqa: E501 + + + :return: The announced of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._announced + + @announced.setter + def announced(self, announced): + """Sets the announced of this InlineResponse20010. + + + :param announced: The announced of this InlineResponse20010. # noqa: E501 + :type: str + """ + + self._announced = announced + + @property + def is_valid(self): + """Gets the is_valid of this InlineResponse20010. # noqa: E501 + + + :return: The is_valid of this InlineResponse20010. # noqa: E501 + :rtype: bool + """ + return self._is_valid + + @is_valid.setter + def is_valid(self, is_valid): + """Sets the is_valid of this InlineResponse20010. + + + :param is_valid: The is_valid of this InlineResponse20010. # noqa: E501 + :type: bool + """ + + self._is_valid = is_valid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20010): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response2002.py b/lib/skyapi/skyapi/models/inline_response2002.py index a55b17d6..c9b7b999 100644 --- a/lib/skyapi/skyapi/models/inline_response2002.py +++ b/lib/skyapi/skyapi/models/inline_response2002.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,276 +32,212 @@ class InlineResponse2002(object): and the value is json key in definition. """ openapi_types = { - 'outputs': 'list[Apiv1exploreraddressOutputs]', - 'inner_hash': 'str', - 'inputs': 'list[Apiv1exploreraddressInputs]', - 'fee': 'int', - 'sigs': 'list[str]', - 'length': 'int', - 'txid': 'str', - 'type': 'int', - 'status': 'Apiv1exploreraddressStatus', - 'timestamp': 'int' + 'current_coinhour_supply': 'str', + 'current_supply': 'str', + 'locked_distribution_addresses': 'list[str]', + 'max_supply': 'str', + 'total_coinhour_supply': 'str', + 'total_supply': 'str', + 'unlocked_distribution_addresses': 'list[str]' } attribute_map = { - 'outputs': 'outputs', - 'inner_hash': 'inner_hash', - 'inputs': 'inputs', - 'fee': 'fee', - 'sigs': 'sigs', - 'length': 'length', - 'txid': 'txid', - 'type': 'type', - 'status': 'status', - 'timestamp': 'timestamp' + 'current_coinhour_supply': 'current_coinhour_supply', + 'current_supply': 'current_supply', + 'locked_distribution_addresses': 'locked_distribution_addresses', + 'max_supply': 'max_supply', + 'total_coinhour_supply': 'total_coinhour_supply', + 'total_supply': 'total_supply', + 'unlocked_distribution_addresses': 'unlocked_distribution_addresses' } - def __init__(self, outputs=None, inner_hash=None, inputs=None, fee=None, sigs=None, length=None, txid=None, type=None, status=None, timestamp=None): # noqa: E501 + def __init__(self, current_coinhour_supply=None, current_supply=None, locked_distribution_addresses=None, max_supply=None, total_coinhour_supply=None, total_supply=None, unlocked_distribution_addresses=None): # noqa: E501 """InlineResponse2002 - a model defined in OpenAPI""" # noqa: E501 - self._outputs = None - self._inner_hash = None - self._inputs = None - self._fee = None - self._sigs = None - self._length = None - self._txid = None - self._type = None - self._status = None - self._timestamp = None + self._current_coinhour_supply = None + self._current_supply = None + self._locked_distribution_addresses = None + self._max_supply = None + self._total_coinhour_supply = None + self._total_supply = None + self._unlocked_distribution_addresses = None self.discriminator = None - if outputs is not None: - self.outputs = outputs - if inner_hash is not None: - self.inner_hash = inner_hash - if inputs is not None: - self.inputs = inputs - if fee is not None: - self.fee = fee - if sigs is not None: - self.sigs = sigs - if length is not None: - self.length = length - if txid is not None: - self.txid = txid - if type is not None: - self.type = type - if status is not None: - self.status = status - if timestamp is not None: - self.timestamp = timestamp + if current_coinhour_supply is not None: + self.current_coinhour_supply = current_coinhour_supply + if current_supply is not None: + self.current_supply = current_supply + if locked_distribution_addresses is not None: + self.locked_distribution_addresses = locked_distribution_addresses + if max_supply is not None: + self.max_supply = max_supply + if total_coinhour_supply is not None: + self.total_coinhour_supply = total_coinhour_supply + if total_supply is not None: + self.total_supply = total_supply + if unlocked_distribution_addresses is not None: + self.unlocked_distribution_addresses = unlocked_distribution_addresses @property - def outputs(self): - """Gets the outputs of this InlineResponse2002. # noqa: E501 + def current_coinhour_supply(self): + """Gets the current_coinhour_supply of this InlineResponse2002. # noqa: E501 + CurrentCoinHourSupply is coins hours in non distribution addresses. # noqa: E501 - :return: The outputs of this InlineResponse2002. # noqa: E501 - :rtype: list[Apiv1exploreraddressOutputs] - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this InlineResponse2002. - - - :param outputs: The outputs of this InlineResponse2002. # noqa: E501 - :type: list[Apiv1exploreraddressOutputs] - """ - - self._outputs = outputs - - @property - def inner_hash(self): - """Gets the inner_hash of this InlineResponse2002. # noqa: E501 - - - :return: The inner_hash of this InlineResponse2002. # noqa: E501 + :return: The current_coinhour_supply of this InlineResponse2002. # noqa: E501 :rtype: str """ - return self._inner_hash + return self._current_coinhour_supply - @inner_hash.setter - def inner_hash(self, inner_hash): - """Sets the inner_hash of this InlineResponse2002. + @current_coinhour_supply.setter + def current_coinhour_supply(self, current_coinhour_supply): + """Sets the current_coinhour_supply of this InlineResponse2002. + CurrentCoinHourSupply is coins hours in non distribution addresses. # noqa: E501 - :param inner_hash: The inner_hash of this InlineResponse2002. # noqa: E501 + :param current_coinhour_supply: The current_coinhour_supply of this InlineResponse2002. # noqa: E501 :type: str """ - self._inner_hash = inner_hash - - @property - def inputs(self): - """Gets the inputs of this InlineResponse2002. # noqa: E501 - - - :return: The inputs of this InlineResponse2002. # noqa: E501 - :rtype: list[Apiv1exploreraddressInputs] - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this InlineResponse2002. - - - :param inputs: The inputs of this InlineResponse2002. # noqa: E501 - :type: list[Apiv1exploreraddressInputs] - """ - - self._inputs = inputs + self._current_coinhour_supply = current_coinhour_supply @property - def fee(self): - """Gets the fee of this InlineResponse2002. # noqa: E501 + def current_supply(self): + """Gets the current_supply of this InlineResponse2002. # noqa: E501 + Coins distributed beyond the project. # noqa: E501 - :return: The fee of this InlineResponse2002. # noqa: E501 - :rtype: int + :return: The current_supply of this InlineResponse2002. # noqa: E501 + :rtype: str """ - return self._fee + return self._current_supply - @fee.setter - def fee(self, fee): - """Sets the fee of this InlineResponse2002. + @current_supply.setter + def current_supply(self, current_supply): + """Sets the current_supply of this InlineResponse2002. + Coins distributed beyond the project. # noqa: E501 - :param fee: The fee of this InlineResponse2002. # noqa: E501 - :type: int + :param current_supply: The current_supply of this InlineResponse2002. # noqa: E501 + :type: str """ - self._fee = fee + self._current_supply = current_supply @property - def sigs(self): - """Gets the sigs of this InlineResponse2002. # noqa: E501 + def locked_distribution_addresses(self): + """Gets the locked_distribution_addresses of this InlineResponse2002. # noqa: E501 + Distribution addresses which are locked and do not count towards total supply. # noqa: E501 - :return: The sigs of this InlineResponse2002. # noqa: E501 + :return: The locked_distribution_addresses of this InlineResponse2002. # noqa: E501 :rtype: list[str] """ - return self._sigs + return self._locked_distribution_addresses - @sigs.setter - def sigs(self, sigs): - """Sets the sigs of this InlineResponse2002. + @locked_distribution_addresses.setter + def locked_distribution_addresses(self, locked_distribution_addresses): + """Sets the locked_distribution_addresses of this InlineResponse2002. + Distribution addresses which are locked and do not count towards total supply. # noqa: E501 - :param sigs: The sigs of this InlineResponse2002. # noqa: E501 + :param locked_distribution_addresses: The locked_distribution_addresses of this InlineResponse2002. # noqa: E501 :type: list[str] """ - self._sigs = sigs + self._locked_distribution_addresses = locked_distribution_addresses @property - def length(self): - """Gets the length of this InlineResponse2002. # noqa: E501 - - - :return: The length of this InlineResponse2002. # noqa: E501 - :rtype: int - """ - return self._length - - @length.setter - def length(self, length): - """Sets the length of this InlineResponse2002. - - - :param length: The length of this InlineResponse2002. # noqa: E501 - :type: int - """ + def max_supply(self): + """Gets the max_supply of this InlineResponse2002. # noqa: E501 - self._length = length + MaxSupply is the maximum number of coins to be distributed ever. # noqa: E501 - @property - def txid(self): - """Gets the txid of this InlineResponse2002. # noqa: E501 - - - :return: The txid of this InlineResponse2002. # noqa: E501 + :return: The max_supply of this InlineResponse2002. # noqa: E501 :rtype: str """ - return self._txid + return self._max_supply - @txid.setter - def txid(self, txid): - """Sets the txid of this InlineResponse2002. + @max_supply.setter + def max_supply(self, max_supply): + """Sets the max_supply of this InlineResponse2002. + MaxSupply is the maximum number of coins to be distributed ever. # noqa: E501 - :param txid: The txid of this InlineResponse2002. # noqa: E501 + :param max_supply: The max_supply of this InlineResponse2002. # noqa: E501 :type: str """ - self._txid = txid + self._max_supply = max_supply @property - def type(self): - """Gets the type of this InlineResponse2002. # noqa: E501 + def total_coinhour_supply(self): + """Gets the total_coinhour_supply of this InlineResponse2002. # noqa: E501 + TotalCoinHourSupply is coin hours in all addresses including unlocked distribution addresses. # noqa: E501 - :return: The type of this InlineResponse2002. # noqa: E501 - :rtype: int + :return: The total_coinhour_supply of this InlineResponse2002. # noqa: E501 + :rtype: str """ - return self._type + return self._total_coinhour_supply - @type.setter - def type(self, type): - """Sets the type of this InlineResponse2002. + @total_coinhour_supply.setter + def total_coinhour_supply(self, total_coinhour_supply): + """Sets the total_coinhour_supply of this InlineResponse2002. + TotalCoinHourSupply is coin hours in all addresses including unlocked distribution addresses. # noqa: E501 - :param type: The type of this InlineResponse2002. # noqa: E501 - :type: int + :param total_coinhour_supply: The total_coinhour_supply of this InlineResponse2002. # noqa: E501 + :type: str """ - self._type = type + self._total_coinhour_supply = total_coinhour_supply @property - def status(self): - """Gets the status of this InlineResponse2002. # noqa: E501 + def total_supply(self): + """Gets the total_supply of this InlineResponse2002. # noqa: E501 + TotalSupply is CurrentSupply plus coins held by the distribution addresses that are spendable. # noqa: E501 - :return: The status of this InlineResponse2002. # noqa: E501 - :rtype: Apiv1exploreraddressStatus + :return: The total_supply of this InlineResponse2002. # noqa: E501 + :rtype: str """ - return self._status + return self._total_supply - @status.setter - def status(self, status): - """Sets the status of this InlineResponse2002. + @total_supply.setter + def total_supply(self, total_supply): + """Sets the total_supply of this InlineResponse2002. + TotalSupply is CurrentSupply plus coins held by the distribution addresses that are spendable. # noqa: E501 - :param status: The status of this InlineResponse2002. # noqa: E501 - :type: Apiv1exploreraddressStatus + :param total_supply: The total_supply of this InlineResponse2002. # noqa: E501 + :type: str """ - self._status = status + self._total_supply = total_supply @property - def timestamp(self): - """Gets the timestamp of this InlineResponse2002. # noqa: E501 + def unlocked_distribution_addresses(self): + """Gets the unlocked_distribution_addresses of this InlineResponse2002. # noqa: E501 + Distribution addresses which count towards total supply. # noqa: E501 - :return: The timestamp of this InlineResponse2002. # noqa: E501 - :rtype: int + :return: The unlocked_distribution_addresses of this InlineResponse2002. # noqa: E501 + :rtype: list[str] """ - return self._timestamp + return self._unlocked_distribution_addresses - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this InlineResponse2002. + @unlocked_distribution_addresses.setter + def unlocked_distribution_addresses(self, unlocked_distribution_addresses): + """Sets the unlocked_distribution_addresses of this InlineResponse2002. + Distribution addresses which count towards total supply. # noqa: E501 - :param timestamp: The timestamp of this InlineResponse2002. # noqa: E501 - :type: int + :param unlocked_distribution_addresses: The unlocked_distribution_addresses of this InlineResponse2002. # noqa: E501 + :type: list[str] """ - self._timestamp = timestamp + self._unlocked_distribution_addresses = unlocked_distribution_addresses def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2003.py b/lib/skyapi/skyapi/models/inline_response2003.py index da81cb31..90bd35cd 100644 --- a/lib/skyapi/skyapi/models/inline_response2003.py +++ b/lib/skyapi/skyapi/models/inline_response2003.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,360 +32,42 @@ class InlineResponse2003(object): and the value is json key in definition. """ openapi_types = { - 'last_received': 'int', - 'last_sent': 'int', - 'outgoing': 'bool', - 'mirror': 'int', - 'address': 'str', - 'listen_port': 'int', - 'is_trusted_peer': 'bool', - 'connected_at': 'int', - 'unconfirmed_verify_transaction': 'InlineResponse2003UnconfirmedVerifyTransaction', - 'id': 'int', - 'state': 'str', - 'user_agent': 'str', - 'height': 'int' + 'csrf_token': 'str' } attribute_map = { - 'last_received': 'last_received', - 'last_sent': 'last_sent', - 'outgoing': 'outgoing', - 'mirror': 'mirror', - 'address': 'address', - 'listen_port': 'listen_port', - 'is_trusted_peer': 'is_trusted_peer', - 'connected_at': 'connected_at', - 'unconfirmed_verify_transaction': 'unconfirmed_verify_transaction', - 'id': 'id', - 'state': 'state', - 'user_agent': 'user_agent', - 'height': 'height' + 'csrf_token': 'csrf_token' } - def __init__(self, last_received=None, last_sent=None, outgoing=None, mirror=None, address=None, listen_port=None, is_trusted_peer=None, connected_at=None, unconfirmed_verify_transaction=None, id=None, state=None, user_agent=None, height=None): # noqa: E501 + def __init__(self, csrf_token=None): # noqa: E501 """InlineResponse2003 - a model defined in OpenAPI""" # noqa: E501 - self._last_received = None - self._last_sent = None - self._outgoing = None - self._mirror = None - self._address = None - self._listen_port = None - self._is_trusted_peer = None - self._connected_at = None - self._unconfirmed_verify_transaction = None - self._id = None - self._state = None - self._user_agent = None - self._height = None + self._csrf_token = None self.discriminator = None - if last_received is not None: - self.last_received = last_received - if last_sent is not None: - self.last_sent = last_sent - if outgoing is not None: - self.outgoing = outgoing - if mirror is not None: - self.mirror = mirror - if address is not None: - self.address = address - if listen_port is not None: - self.listen_port = listen_port - if is_trusted_peer is not None: - self.is_trusted_peer = is_trusted_peer - if connected_at is not None: - self.connected_at = connected_at - if unconfirmed_verify_transaction is not None: - self.unconfirmed_verify_transaction = unconfirmed_verify_transaction - if id is not None: - self.id = id - if state is not None: - self.state = state - if user_agent is not None: - self.user_agent = user_agent - if height is not None: - self.height = height + if csrf_token is not None: + self.csrf_token = csrf_token @property - def last_received(self): - """Gets the last_received of this InlineResponse2003. # noqa: E501 + def csrf_token(self): + """Gets the csrf_token of this InlineResponse2003. # noqa: E501 - :return: The last_received of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._last_received - - @last_received.setter - def last_received(self, last_received): - """Sets the last_received of this InlineResponse2003. - - - :param last_received: The last_received of this InlineResponse2003. # noqa: E501 - :type: int - """ - - self._last_received = last_received - - @property - def last_sent(self): - """Gets the last_sent of this InlineResponse2003. # noqa: E501 - - - :return: The last_sent of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._last_sent - - @last_sent.setter - def last_sent(self, last_sent): - """Sets the last_sent of this InlineResponse2003. - - - :param last_sent: The last_sent of this InlineResponse2003. # noqa: E501 - :type: int - """ - - self._last_sent = last_sent - - @property - def outgoing(self): - """Gets the outgoing of this InlineResponse2003. # noqa: E501 - - - :return: The outgoing of this InlineResponse2003. # noqa: E501 - :rtype: bool - """ - return self._outgoing - - @outgoing.setter - def outgoing(self, outgoing): - """Sets the outgoing of this InlineResponse2003. - - - :param outgoing: The outgoing of this InlineResponse2003. # noqa: E501 - :type: bool - """ - - self._outgoing = outgoing - - @property - def mirror(self): - """Gets the mirror of this InlineResponse2003. # noqa: E501 - - - :return: The mirror of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._mirror - - @mirror.setter - def mirror(self, mirror): - """Sets the mirror of this InlineResponse2003. - - - :param mirror: The mirror of this InlineResponse2003. # noqa: E501 - :type: int - """ - - self._mirror = mirror - - @property - def address(self): - """Gets the address of this InlineResponse2003. # noqa: E501 - - - :return: The address of this InlineResponse2003. # noqa: E501 - :rtype: str - """ - return self._address - - @address.setter - def address(self, address): - """Sets the address of this InlineResponse2003. - - - :param address: The address of this InlineResponse2003. # noqa: E501 - :type: str - """ - - self._address = address - - @property - def listen_port(self): - """Gets the listen_port of this InlineResponse2003. # noqa: E501 - - - :return: The listen_port of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._listen_port - - @listen_port.setter - def listen_port(self, listen_port): - """Sets the listen_port of this InlineResponse2003. - - - :param listen_port: The listen_port of this InlineResponse2003. # noqa: E501 - :type: int - """ - - self._listen_port = listen_port - - @property - def is_trusted_peer(self): - """Gets the is_trusted_peer of this InlineResponse2003. # noqa: E501 - - - :return: The is_trusted_peer of this InlineResponse2003. # noqa: E501 - :rtype: bool - """ - return self._is_trusted_peer - - @is_trusted_peer.setter - def is_trusted_peer(self, is_trusted_peer): - """Sets the is_trusted_peer of this InlineResponse2003. - - - :param is_trusted_peer: The is_trusted_peer of this InlineResponse2003. # noqa: E501 - :type: bool - """ - - self._is_trusted_peer = is_trusted_peer - - @property - def connected_at(self): - """Gets the connected_at of this InlineResponse2003. # noqa: E501 - - - :return: The connected_at of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._connected_at - - @connected_at.setter - def connected_at(self, connected_at): - """Sets the connected_at of this InlineResponse2003. - - - :param connected_at: The connected_at of this InlineResponse2003. # noqa: E501 - :type: int - """ - - self._connected_at = connected_at - - @property - def unconfirmed_verify_transaction(self): - """Gets the unconfirmed_verify_transaction of this InlineResponse2003. # noqa: E501 - - - :return: The unconfirmed_verify_transaction of this InlineResponse2003. # noqa: E501 - :rtype: InlineResponse2003UnconfirmedVerifyTransaction - """ - return self._unconfirmed_verify_transaction - - @unconfirmed_verify_transaction.setter - def unconfirmed_verify_transaction(self, unconfirmed_verify_transaction): - """Sets the unconfirmed_verify_transaction of this InlineResponse2003. - - - :param unconfirmed_verify_transaction: The unconfirmed_verify_transaction of this InlineResponse2003. # noqa: E501 - :type: InlineResponse2003UnconfirmedVerifyTransaction - """ - - self._unconfirmed_verify_transaction = unconfirmed_verify_transaction - - @property - def id(self): - """Gets the id of this InlineResponse2003. # noqa: E501 - - - :return: The id of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this InlineResponse2003. - - - :param id: The id of this InlineResponse2003. # noqa: E501 - :type: int - """ - - self._id = id - - @property - def state(self): - """Gets the state of this InlineResponse2003. # noqa: E501 - - - :return: The state of this InlineResponse2003. # noqa: E501 + :return: The csrf_token of this InlineResponse2003. # noqa: E501 :rtype: str """ - return self._state + return self._csrf_token - @state.setter - def state(self, state): - """Sets the state of this InlineResponse2003. + @csrf_token.setter + def csrf_token(self, csrf_token): + """Sets the csrf_token of this InlineResponse2003. - :param state: The state of this InlineResponse2003. # noqa: E501 + :param csrf_token: The csrf_token of this InlineResponse2003. # noqa: E501 :type: str """ - allowed_values = ["pending", "connected", "introduced"] # noqa: E501 - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 - .format(state, allowed_values) - ) - - self._state = state - - @property - def user_agent(self): - """Gets the user_agent of this InlineResponse2003. # noqa: E501 - - - :return: The user_agent of this InlineResponse2003. # noqa: E501 - :rtype: str - """ - return self._user_agent - - @user_agent.setter - def user_agent(self, user_agent): - """Sets the user_agent of this InlineResponse2003. - - - :param user_agent: The user_agent of this InlineResponse2003. # noqa: E501 - :type: str - """ - - self._user_agent = user_agent - - @property - def height(self): - """Gets the height of this InlineResponse2003. # noqa: E501 - - - :return: The height of this InlineResponse2003. # noqa: E501 - :rtype: int - """ - return self._height - - @height.setter - def height(self, height): - """Sets the height of this InlineResponse2003. - - - :param height: The height of this InlineResponse2003. # noqa: E501 - :type: int - """ - self._height = height + self._csrf_token = csrf_token def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2004.py b/lib/skyapi/skyapi/models/inline_response2004.py index dd9386d3..e6c5feb9 100644 --- a/lib/skyapi/skyapi/models/inline_response2004.py +++ b/lib/skyapi/skyapi/models/inline_response2004.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,146 +32,42 @@ class InlineResponse2004(object): and the value is json key in definition. """ openapi_types = { - 'announced': 'str', - 'is_valid': 'bool', - 'checked': 'str', - 'received': 'str', - 'transaction': 'Apiv1pendingTxsTransaction' + 'connections': 'list[NetworkConnectionSchema]' } attribute_map = { - 'announced': 'announced', - 'is_valid': 'is_valid', - 'checked': 'checked', - 'received': 'received', - 'transaction': 'transaction' + 'connections': 'connections' } - def __init__(self, announced=None, is_valid=None, checked=None, received=None, transaction=None): # noqa: E501 + def __init__(self, connections=None): # noqa: E501 """InlineResponse2004 - a model defined in OpenAPI""" # noqa: E501 - self._announced = None - self._is_valid = None - self._checked = None - self._received = None - self._transaction = None + self._connections = None self.discriminator = None - if announced is not None: - self.announced = announced - if is_valid is not None: - self.is_valid = is_valid - if checked is not None: - self.checked = checked - if received is not None: - self.received = received - if transaction is not None: - self.transaction = transaction + if connections is not None: + self.connections = connections @property - def announced(self): - """Gets the announced of this InlineResponse2004. # noqa: E501 + def connections(self): + """Gets the connections of this InlineResponse2004. # noqa: E501 - :return: The announced of this InlineResponse2004. # noqa: E501 - :rtype: str + :return: The connections of this InlineResponse2004. # noqa: E501 + :rtype: list[NetworkConnectionSchema] """ - return self._announced + return self._connections - @announced.setter - def announced(self, announced): - """Sets the announced of this InlineResponse2004. + @connections.setter + def connections(self, connections): + """Sets the connections of this InlineResponse2004. - :param announced: The announced of this InlineResponse2004. # noqa: E501 - :type: str + :param connections: The connections of this InlineResponse2004. # noqa: E501 + :type: list[NetworkConnectionSchema] """ - self._announced = announced - - @property - def is_valid(self): - """Gets the is_valid of this InlineResponse2004. # noqa: E501 - - - :return: The is_valid of this InlineResponse2004. # noqa: E501 - :rtype: bool - """ - return self._is_valid - - @is_valid.setter - def is_valid(self, is_valid): - """Sets the is_valid of this InlineResponse2004. - - - :param is_valid: The is_valid of this InlineResponse2004. # noqa: E501 - :type: bool - """ - - self._is_valid = is_valid - - @property - def checked(self): - """Gets the checked of this InlineResponse2004. # noqa: E501 - - - :return: The checked of this InlineResponse2004. # noqa: E501 - :rtype: str - """ - return self._checked - - @checked.setter - def checked(self, checked): - """Sets the checked of this InlineResponse2004. - - - :param checked: The checked of this InlineResponse2004. # noqa: E501 - :type: str - """ - - self._checked = checked - - @property - def received(self): - """Gets the received of this InlineResponse2004. # noqa: E501 - - - :return: The received of this InlineResponse2004. # noqa: E501 - :rtype: str - """ - return self._received - - @received.setter - def received(self, received): - """Sets the received of this InlineResponse2004. - - - :param received: The received of this InlineResponse2004. # noqa: E501 - :type: str - """ - - self._received = received - - @property - def transaction(self): - """Gets the transaction of this InlineResponse2004. # noqa: E501 - - - :return: The transaction of this InlineResponse2004. # noqa: E501 - :rtype: Apiv1pendingTxsTransaction - """ - return self._transaction - - @transaction.setter - def transaction(self, transaction): - """Sets the transaction of this InlineResponse2004. - - - :param transaction: The transaction of this InlineResponse2004. # noqa: E501 - :type: Apiv1pendingTxsTransaction - """ - - self._transaction = transaction + self._connections = connections def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2005.py b/lib/skyapi/skyapi/models/inline_response2005.py index 2cd43ff9..44281f36 100644 --- a/lib/skyapi/skyapi/models/inline_response2005.py +++ b/lib/skyapi/skyapi/models/inline_response2005.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,68 +32,100 @@ class InlineResponse2005(object): and the value is json key in definition. """ openapi_types = { - 'entries': 'list[Apiv1walletsEntries]', - 'meta': 'Apiv1walletsMeta' + 'branch': 'str', + 'commit': 'str', + 'version': 'str' } attribute_map = { - 'entries': 'entries', - 'meta': 'meta' + 'branch': 'branch', + 'commit': 'commit', + 'version': 'version' } - def __init__(self, entries=None, meta=None): # noqa: E501 + def __init__(self, branch=None, commit=None, version=None): # noqa: E501 """InlineResponse2005 - a model defined in OpenAPI""" # noqa: E501 - self._entries = None - self._meta = None + self._branch = None + self._commit = None + self._version = None self.discriminator = None - if entries is not None: - self.entries = entries - if meta is not None: - self.meta = meta + if branch is not None: + self.branch = branch + if commit is not None: + self.commit = commit + if version is not None: + self.version = version @property - def entries(self): - """Gets the entries of this InlineResponse2005. # noqa: E501 + def branch(self): + """Gets the branch of this InlineResponse2005. # noqa: E501 + git branch name # noqa: E501 - :return: The entries of this InlineResponse2005. # noqa: E501 - :rtype: list[Apiv1walletsEntries] + :return: The branch of this InlineResponse2005. # noqa: E501 + :rtype: str """ - return self._entries + return self._branch - @entries.setter - def entries(self, entries): - """Sets the entries of this InlineResponse2005. + @branch.setter + def branch(self, branch): + """Sets the branch of this InlineResponse2005. + git branch name # noqa: E501 - :param entries: The entries of this InlineResponse2005. # noqa: E501 - :type: list[Apiv1walletsEntries] + :param branch: The branch of this InlineResponse2005. # noqa: E501 + :type: str """ - self._entries = entries + self._branch = branch @property - def meta(self): - """Gets the meta of this InlineResponse2005. # noqa: E501 + def commit(self): + """Gets the commit of this InlineResponse2005. # noqa: E501 + git commit id # noqa: E501 - :return: The meta of this InlineResponse2005. # noqa: E501 - :rtype: Apiv1walletsMeta + :return: The commit of this InlineResponse2005. # noqa: E501 + :rtype: str """ - return self._meta + return self._commit - @meta.setter - def meta(self, meta): - """Sets the meta of this InlineResponse2005. + @commit.setter + def commit(self, commit): + """Sets the commit of this InlineResponse2005. + git commit id # noqa: E501 - :param meta: The meta of this InlineResponse2005. # noqa: E501 - :type: Apiv1walletsMeta + :param commit: The commit of this InlineResponse2005. # noqa: E501 + :type: str """ - self._meta = meta + self._commit = commit + + @property + def version(self): + """Gets the version of this InlineResponse2005. # noqa: E501 + + version number # noqa: E501 + + :return: The version of this InlineResponse2005. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this InlineResponse2005. + + version number # noqa: E501 + + :param version: The version of this InlineResponse2005. # noqa: E501 + :type: str + """ + + self._version = version def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2006.py b/lib/skyapi/skyapi/models/inline_response2006.py index a67f5dfd..a11ca9e1 100644 --- a/lib/skyapi/skyapi/models/inline_response2006.py +++ b/lib/skyapi/skyapi/models/inline_response2006.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,42 +32,42 @@ class InlineResponse2006(object): and the value is json key in definition. """ openapi_types = { - 'address': 'str' + 'transactions': 'list[TransactionEncoded]' } attribute_map = { - 'address': 'address' + 'transactions': 'transactions' } - def __init__(self, address=None): # noqa: E501 + def __init__(self, transactions=None): # noqa: E501 """InlineResponse2006 - a model defined in OpenAPI""" # noqa: E501 - self._address = None + self._transactions = None self.discriminator = None - if address is not None: - self.address = address + if transactions is not None: + self.transactions = transactions @property - def address(self): - """Gets the address of this InlineResponse2006. # noqa: E501 + def transactions(self): + """Gets the transactions of this InlineResponse2006. # noqa: E501 - :return: The address of this InlineResponse2006. # noqa: E501 - :rtype: str + :return: The transactions of this InlineResponse2006. # noqa: E501 + :rtype: list[TransactionEncoded] """ - return self._address + return self._transactions - @address.setter - def address(self, address): - """Sets the address of this InlineResponse2006. + @transactions.setter + def transactions(self, transactions): + """Sets the transactions of this InlineResponse2006. - :param address: The address of this InlineResponse2006. # noqa: E501 - :type: str + :param transactions: The transactions of this InlineResponse2006. # noqa: E501 + :type: list[TransactionEncoded] """ - self._address = address + self._transactions = transactions def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2007.py b/lib/skyapi/skyapi/models/inline_response2007.py index 1751f146..e75e4017 100644 --- a/lib/skyapi/skyapi/models/inline_response2007.py +++ b/lib/skyapi/skyapi/models/inline_response2007.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -32,68 +32,42 @@ class InlineResponse2007(object): and the value is json key in definition. """ openapi_types = { - 'data': 'InlineResponse2007Data', - 'error': 'object' + 'address': 'str' } attribute_map = { - 'data': 'data', - 'error': 'error' + 'address': 'address' } - def __init__(self, data=None, error=None): # noqa: E501 + def __init__(self, address=None): # noqa: E501 """InlineResponse2007 - a model defined in OpenAPI""" # noqa: E501 - self._data = None - self._error = None + self._address = None self.discriminator = None - if data is not None: - self.data = data - if error is not None: - self.error = error + if address is not None: + self.address = address @property - def data(self): - """Gets the data of this InlineResponse2007. # noqa: E501 + def address(self): + """Gets the address of this InlineResponse2007. # noqa: E501 - :return: The data of this InlineResponse2007. # noqa: E501 - :rtype: InlineResponse2007Data + :return: The address of this InlineResponse2007. # noqa: E501 + :rtype: str """ - return self._data + return self._address - @data.setter - def data(self, data): - """Sets the data of this InlineResponse2007. + @address.setter + def address(self, address): + """Sets the address of this InlineResponse2007. - :param data: The data of this InlineResponse2007. # noqa: E501 - :type: InlineResponse2007Data + :param address: The address of this InlineResponse2007. # noqa: E501 + :type: str """ - self._data = data - - @property - def error(self): - """Gets the error of this InlineResponse2007. # noqa: E501 - - - :return: The error of this InlineResponse2007. # noqa: E501 - :rtype: object - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this InlineResponse2007. - - - :param error: The error of this InlineResponse2007. # noqa: E501 - :type: object - """ - - self._error = error + self._address = address def to_dict(self): """Returns the model properties as a dict""" diff --git a/lib/skyapi/skyapi/models/inline_response2008.py b/lib/skyapi/skyapi/models/inline_response2008.py new file mode 100644 index 00000000..85110e3f --- /dev/null +++ b/lib/skyapi/skyapi/models/inline_response2008.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2008(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'InlineResponse2008Data' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """InlineResponse2008 - a model defined in OpenAPI""" # noqa: E501 + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this InlineResponse2008. # noqa: E501 + + + :return: The data of this InlineResponse2008. # noqa: E501 + :rtype: InlineResponse2008Data + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this InlineResponse2008. + + + :param data: The data of this InlineResponse2008. # noqa: E501 + :type: InlineResponse2008Data + """ + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2008): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response2008_data.py b/lib/skyapi/skyapi/models/inline_response2008_data.py new file mode 100644 index 00000000..e206f20a --- /dev/null +++ b/lib/skyapi/skyapi/models/inline_response2008_data.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2008Data(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transaction': 'Transaction' + } + + attribute_map = { + 'transaction': 'transaction' + } + + def __init__(self, transaction=None): # noqa: E501 + """InlineResponse2008Data - a model defined in OpenAPI""" # noqa: E501 + + self._transaction = None + self.discriminator = None + + if transaction is not None: + self.transaction = transaction + + @property + def transaction(self): + """Gets the transaction of this InlineResponse2008Data. # noqa: E501 + + + :return: The transaction of this InlineResponse2008Data. # noqa: E501 + :rtype: Transaction + """ + return self._transaction + + @transaction.setter + def transaction(self, transaction): + """Sets the transaction of this InlineResponse2008Data. + + + :param transaction: The transaction of this InlineResponse2008Data. # noqa: E501 + :type: Transaction + """ + + self._transaction = transaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2008Data): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response2009.py b/lib/skyapi/skyapi/models/inline_response2009.py new file mode 100644 index 00000000..610990f4 --- /dev/null +++ b/lib/skyapi/skyapi/models/inline_response2009.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2009(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'object' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """InlineResponse2009 - a model defined in OpenAPI""" # noqa: E501 + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this InlineResponse2009. # noqa: E501 + + + :return: The data of this InlineResponse2009. # noqa: E501 + :rtype: object + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this InlineResponse2009. + + + :param data: The data of this InlineResponse2009. # noqa: E501 + :type: object + """ + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2009): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response_default.py b/lib/skyapi/skyapi/models/inline_response_default.py index 28019ad0..9b77f72c 100644 --- a/lib/skyapi/skyapi/models/inline_response_default.py +++ b/lib/skyapi/skyapi/models/inline_response_default.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/skyapi/models/network_connection_schema.py b/lib/skyapi/skyapi/models/network_connection_schema.py new file mode 100644 index 00000000..bdec908d --- /dev/null +++ b/lib/skyapi/skyapi/models/network_connection_schema.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NetworkConnectionSchema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'address': 'str', + 'connected_at': 'int', + 'height': 'int', + 'id': 'int', + 'is_trusted_peer': 'bool', + 'last_received': 'int', + 'last_sent': 'int', + 'listen_port': 'int', + 'mirror': 'int', + 'outgoing': 'bool', + 'state': 'str', + 'unconfirmed_verify_transaction': 'NetworkConnectionSchemaUnconfirmedVerifyTransaction', + 'user_agent': 'str' + } + + attribute_map = { + 'address': 'address', + 'connected_at': 'connected_at', + 'height': 'height', + 'id': 'id', + 'is_trusted_peer': 'is_trusted_peer', + 'last_received': 'last_received', + 'last_sent': 'last_sent', + 'listen_port': 'listen_port', + 'mirror': 'mirror', + 'outgoing': 'outgoing', + 'state': 'state', + 'unconfirmed_verify_transaction': 'unconfirmed_verify_transaction', + 'user_agent': 'user_agent' + } + + def __init__(self, address=None, connected_at=None, height=None, id=None, is_trusted_peer=None, last_received=None, last_sent=None, listen_port=None, mirror=None, outgoing=None, state=None, unconfirmed_verify_transaction=None, user_agent=None): # noqa: E501 + """NetworkConnectionSchema - a model defined in OpenAPI""" # noqa: E501 + + self._address = None + self._connected_at = None + self._height = None + self._id = None + self._is_trusted_peer = None + self._last_received = None + self._last_sent = None + self._listen_port = None + self._mirror = None + self._outgoing = None + self._state = None + self._unconfirmed_verify_transaction = None + self._user_agent = None + self.discriminator = None + + if address is not None: + self.address = address + if connected_at is not None: + self.connected_at = connected_at + if height is not None: + self.height = height + if id is not None: + self.id = id + if is_trusted_peer is not None: + self.is_trusted_peer = is_trusted_peer + if last_received is not None: + self.last_received = last_received + if last_sent is not None: + self.last_sent = last_sent + if listen_port is not None: + self.listen_port = listen_port + if mirror is not None: + self.mirror = mirror + if outgoing is not None: + self.outgoing = outgoing + if state is not None: + self.state = state + if unconfirmed_verify_transaction is not None: + self.unconfirmed_verify_transaction = unconfirmed_verify_transaction + if user_agent is not None: + self.user_agent = user_agent + + @property + def address(self): + """Gets the address of this NetworkConnectionSchema. # noqa: E501 + + + :return: The address of this NetworkConnectionSchema. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this NetworkConnectionSchema. + + + :param address: The address of this NetworkConnectionSchema. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def connected_at(self): + """Gets the connected_at of this NetworkConnectionSchema. # noqa: E501 + + + :return: The connected_at of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._connected_at + + @connected_at.setter + def connected_at(self, connected_at): + """Sets the connected_at of this NetworkConnectionSchema. + + + :param connected_at: The connected_at of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._connected_at = connected_at + + @property + def height(self): + """Gets the height of this NetworkConnectionSchema. # noqa: E501 + + + :return: The height of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this NetworkConnectionSchema. + + + :param height: The height of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._height = height + + @property + def id(self): + """Gets the id of this NetworkConnectionSchema. # noqa: E501 + + + :return: The id of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NetworkConnectionSchema. + + + :param id: The id of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def is_trusted_peer(self): + """Gets the is_trusted_peer of this NetworkConnectionSchema. # noqa: E501 + + + :return: The is_trusted_peer of this NetworkConnectionSchema. # noqa: E501 + :rtype: bool + """ + return self._is_trusted_peer + + @is_trusted_peer.setter + def is_trusted_peer(self, is_trusted_peer): + """Sets the is_trusted_peer of this NetworkConnectionSchema. + + + :param is_trusted_peer: The is_trusted_peer of this NetworkConnectionSchema. # noqa: E501 + :type: bool + """ + + self._is_trusted_peer = is_trusted_peer + + @property + def last_received(self): + """Gets the last_received of this NetworkConnectionSchema. # noqa: E501 + + + :return: The last_received of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._last_received + + @last_received.setter + def last_received(self, last_received): + """Sets the last_received of this NetworkConnectionSchema. + + + :param last_received: The last_received of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._last_received = last_received + + @property + def last_sent(self): + """Gets the last_sent of this NetworkConnectionSchema. # noqa: E501 + + + :return: The last_sent of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._last_sent + + @last_sent.setter + def last_sent(self, last_sent): + """Sets the last_sent of this NetworkConnectionSchema. + + + :param last_sent: The last_sent of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._last_sent = last_sent + + @property + def listen_port(self): + """Gets the listen_port of this NetworkConnectionSchema. # noqa: E501 + + + :return: The listen_port of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._listen_port + + @listen_port.setter + def listen_port(self, listen_port): + """Sets the listen_port of this NetworkConnectionSchema. + + + :param listen_port: The listen_port of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._listen_port = listen_port + + @property + def mirror(self): + """Gets the mirror of this NetworkConnectionSchema. # noqa: E501 + + + :return: The mirror of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._mirror + + @mirror.setter + def mirror(self, mirror): + """Sets the mirror of this NetworkConnectionSchema. + + + :param mirror: The mirror of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._mirror = mirror + + @property + def outgoing(self): + """Gets the outgoing of this NetworkConnectionSchema. # noqa: E501 + + + :return: The outgoing of this NetworkConnectionSchema. # noqa: E501 + :rtype: bool + """ + return self._outgoing + + @outgoing.setter + def outgoing(self, outgoing): + """Sets the outgoing of this NetworkConnectionSchema. + + + :param outgoing: The outgoing of this NetworkConnectionSchema. # noqa: E501 + :type: bool + """ + + self._outgoing = outgoing + + @property + def state(self): + """Gets the state of this NetworkConnectionSchema. # noqa: E501 + + + :return: The state of this NetworkConnectionSchema. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this NetworkConnectionSchema. + + + :param state: The state of this NetworkConnectionSchema. # noqa: E501 + :type: str + """ + allowed_values = ["pending", "connected", "introduced"] # noqa: E501 + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 + .format(state, allowed_values) + ) + + self._state = state + + @property + def unconfirmed_verify_transaction(self): + """Gets the unconfirmed_verify_transaction of this NetworkConnectionSchema. # noqa: E501 + + + :return: The unconfirmed_verify_transaction of this NetworkConnectionSchema. # noqa: E501 + :rtype: NetworkConnectionSchemaUnconfirmedVerifyTransaction + """ + return self._unconfirmed_verify_transaction + + @unconfirmed_verify_transaction.setter + def unconfirmed_verify_transaction(self, unconfirmed_verify_transaction): + """Sets the unconfirmed_verify_transaction of this NetworkConnectionSchema. + + + :param unconfirmed_verify_transaction: The unconfirmed_verify_transaction of this NetworkConnectionSchema. # noqa: E501 + :type: NetworkConnectionSchemaUnconfirmedVerifyTransaction + """ + + self._unconfirmed_verify_transaction = unconfirmed_verify_transaction + + @property + def user_agent(self): + """Gets the user_agent of this NetworkConnectionSchema. # noqa: E501 + + + :return: The user_agent of this NetworkConnectionSchema. # noqa: E501 + :rtype: str + """ + return self._user_agent + + @user_agent.setter + def user_agent(self, user_agent): + """Sets the user_agent of this NetworkConnectionSchema. + + + :param user_agent: The user_agent of this NetworkConnectionSchema. # noqa: E501 + :type: str + """ + + self._user_agent = user_agent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworkConnectionSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_response2003_unconfirmed_verify_transaction.py b/lib/skyapi/skyapi/models/network_connection_schema_unconfirmed_verify_transaction.py similarity index 65% rename from lib/skyapi/skyapi/models/inline_response2003_unconfirmed_verify_transaction.py rename to lib/skyapi/skyapi/models/network_connection_schema_unconfirmed_verify_transaction.py index d7e08df4..7fe8cacd 100644 --- a/lib/skyapi/skyapi/models/inline_response2003_unconfirmed_verify_transaction.py +++ b/lib/skyapi/skyapi/models/network_connection_schema_unconfirmed_verify_transaction.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class InlineResponse2003UnconfirmedVerifyTransaction(object): +class NetworkConnectionSchemaUnconfirmedVerifyTransaction(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,93 +33,93 @@ class InlineResponse2003UnconfirmedVerifyTransaction(object): """ openapi_types = { 'burn_factor': 'int', - 'max_transaction_size': 'int', - 'max_decimals': 'int' + 'max_decimals': 'int', + 'max_transaction_size': 'int' } attribute_map = { 'burn_factor': 'burn_factor', - 'max_transaction_size': 'max_transaction_size', - 'max_decimals': 'max_decimals' + 'max_decimals': 'max_decimals', + 'max_transaction_size': 'max_transaction_size' } - def __init__(self, burn_factor=None, max_transaction_size=None, max_decimals=None): # noqa: E501 - """InlineResponse2003UnconfirmedVerifyTransaction - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, burn_factor=None, max_decimals=None, max_transaction_size=None): # noqa: E501 + """NetworkConnectionSchemaUnconfirmedVerifyTransaction - a model defined in OpenAPI""" # noqa: E501 self._burn_factor = None - self._max_transaction_size = None self._max_decimals = None + self._max_transaction_size = None self.discriminator = None if burn_factor is not None: self.burn_factor = burn_factor - if max_transaction_size is not None: - self.max_transaction_size = max_transaction_size if max_decimals is not None: self.max_decimals = max_decimals + if max_transaction_size is not None: + self.max_transaction_size = max_transaction_size @property def burn_factor(self): - """Gets the burn_factor of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + """Gets the burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 - :return: The burn_factor of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + :return: The burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 :rtype: int """ return self._burn_factor @burn_factor.setter def burn_factor(self, burn_factor): - """Sets the burn_factor of this InlineResponse2003UnconfirmedVerifyTransaction. + """Sets the burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. - :param burn_factor: The burn_factor of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + :param burn_factor: The burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 :type: int """ self._burn_factor = burn_factor @property - def max_transaction_size(self): - """Gets the max_transaction_size of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + def max_decimals(self): + """Gets the max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 - :return: The max_transaction_size of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + :return: The max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 :rtype: int """ - return self._max_transaction_size + return self._max_decimals - @max_transaction_size.setter - def max_transaction_size(self, max_transaction_size): - """Sets the max_transaction_size of this InlineResponse2003UnconfirmedVerifyTransaction. + @max_decimals.setter + def max_decimals(self, max_decimals): + """Sets the max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. - :param max_transaction_size: The max_transaction_size of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + :param max_decimals: The max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 :type: int """ - self._max_transaction_size = max_transaction_size + self._max_decimals = max_decimals @property - def max_decimals(self): - """Gets the max_decimals of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + def max_transaction_size(self): + """Gets the max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 - :return: The max_decimals of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + :return: The max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 :rtype: int """ - return self._max_decimals + return self._max_transaction_size - @max_decimals.setter - def max_decimals(self, max_decimals): - """Sets the max_decimals of this InlineResponse2003UnconfirmedVerifyTransaction. + @max_transaction_size.setter + def max_transaction_size(self, max_transaction_size): + """Sets the max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. - :param max_decimals: The max_decimals of this InlineResponse2003UnconfirmedVerifyTransaction. # noqa: E501 + :param max_transaction_size: The max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 :type: int """ - self._max_decimals = max_decimals + self._max_transaction_size = max_transaction_size def to_dict(self): """Returns the model properties as a dict""" @@ -155,7 +155,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2003UnconfirmedVerifyTransaction): + if not isinstance(other, NetworkConnectionSchemaUnconfirmedVerifyTransaction): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/transaction.py b/lib/skyapi/skyapi/models/transaction.py new file mode 100644 index 00000000..af1d3de1 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Transaction(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'status': 'TransactionStatus', + 'txn': 'TransactionTxn', + 'time': 'int' + } + + attribute_map = { + 'status': 'status', + 'txn': 'txn', + 'time': 'time' + } + + def __init__(self, status=None, txn=None, time=None): # noqa: E501 + """Transaction - a model defined in OpenAPI""" # noqa: E501 + + self._status = None + self._txn = None + self._time = None + self.discriminator = None + + if status is not None: + self.status = status + if txn is not None: + self.txn = txn + if time is not None: + self.time = time + + @property + def status(self): + """Gets the status of this Transaction. # noqa: E501 + + + :return: The status of this Transaction. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Transaction. + + + :param status: The status of this Transaction. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def txn(self): + """Gets the txn of this Transaction. # noqa: E501 + + + :return: The txn of this Transaction. # noqa: E501 + :rtype: TransactionTxn + """ + return self._txn + + @txn.setter + def txn(self, txn): + """Sets the txn of this Transaction. + + + :param txn: The txn of this Transaction. # noqa: E501 + :type: TransactionTxn + """ + + self._txn = txn + + @property + def time(self): + """Gets the time of this Transaction. # noqa: E501 + + + :return: The time of this Transaction. # noqa: E501 + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this Transaction. + + + :param time: The time of this Transaction. # noqa: E501 + :type: int + """ + + self._time = time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Transaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/transaction_encoded.py b/lib/skyapi/skyapi/models/transaction_encoded.py new file mode 100644 index 00000000..08d7d077 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_encoded.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionEncoded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transaction': 'ApiV1PendingTxsTransaction', + 'received': 'str', + 'checked': 'str', + 'announced': 'str', + 'is_valid': 'bool' + } + + attribute_map = { + 'transaction': 'transaction', + 'received': 'received', + 'checked': 'checked', + 'announced': 'announced', + 'is_valid': 'is_valid' + } + + def __init__(self, transaction=None, received=None, checked=None, announced=None, is_valid=None): # noqa: E501 + """TransactionEncoded - a model defined in OpenAPI""" # noqa: E501 + + self._transaction = None + self._received = None + self._checked = None + self._announced = None + self._is_valid = None + self.discriminator = None + + if transaction is not None: + self.transaction = transaction + if received is not None: + self.received = received + if checked is not None: + self.checked = checked + if announced is not None: + self.announced = announced + if is_valid is not None: + self.is_valid = is_valid + + @property + def transaction(self): + """Gets the transaction of this TransactionEncoded. # noqa: E501 + + + :return: The transaction of this TransactionEncoded. # noqa: E501 + :rtype: ApiV1PendingTxsTransaction + """ + return self._transaction + + @transaction.setter + def transaction(self, transaction): + """Sets the transaction of this TransactionEncoded. + + + :param transaction: The transaction of this TransactionEncoded. # noqa: E501 + :type: ApiV1PendingTxsTransaction + """ + + self._transaction = transaction + + @property + def received(self): + """Gets the received of this TransactionEncoded. # noqa: E501 + + + :return: The received of this TransactionEncoded. # noqa: E501 + :rtype: str + """ + return self._received + + @received.setter + def received(self, received): + """Sets the received of this TransactionEncoded. + + + :param received: The received of this TransactionEncoded. # noqa: E501 + :type: str + """ + + self._received = received + + @property + def checked(self): + """Gets the checked of this TransactionEncoded. # noqa: E501 + + + :return: The checked of this TransactionEncoded. # noqa: E501 + :rtype: str + """ + return self._checked + + @checked.setter + def checked(self, checked): + """Sets the checked of this TransactionEncoded. + + + :param checked: The checked of this TransactionEncoded. # noqa: E501 + :type: str + """ + + self._checked = checked + + @property + def announced(self): + """Gets the announced of this TransactionEncoded. # noqa: E501 + + + :return: The announced of this TransactionEncoded. # noqa: E501 + :rtype: str + """ + return self._announced + + @announced.setter + def announced(self, announced): + """Sets the announced of this TransactionEncoded. + + + :param announced: The announced of this TransactionEncoded. # noqa: E501 + :type: str + """ + + self._announced = announced + + @property + def is_valid(self): + """Gets the is_valid of this TransactionEncoded. # noqa: E501 + + + :return: The is_valid of this TransactionEncoded. # noqa: E501 + :rtype: bool + """ + return self._is_valid + + @is_valid.setter + def is_valid(self, is_valid): + """Sets the is_valid of this TransactionEncoded. + + + :param is_valid: The is_valid of this TransactionEncoded. # noqa: E501 + :type: bool + """ + + self._is_valid = is_valid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionEncoded): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/transaction_encoded_s.py b/lib/skyapi/skyapi/models/transaction_encoded_s.py new file mode 100644 index 00000000..f6540c1b --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_encoded_s.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionEncodedS(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'time': 'int', + 'status': 'TransactionStatus', + 'encoded_transaction': 'str' + } + + attribute_map = { + 'time': 'time', + 'status': 'status', + 'encoded_transaction': 'encoded_transaction' + } + + def __init__(self, time=None, status=None, encoded_transaction=None): # noqa: E501 + """TransactionEncodedS - a model defined in OpenAPI""" # noqa: E501 + + self._time = None + self._status = None + self._encoded_transaction = None + self.discriminator = None + + if time is not None: + self.time = time + if status is not None: + self.status = status + if encoded_transaction is not None: + self.encoded_transaction = encoded_transaction + + @property + def time(self): + """Gets the time of this TransactionEncodedS. # noqa: E501 + + + :return: The time of this TransactionEncodedS. # noqa: E501 + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TransactionEncodedS. + + + :param time: The time of this TransactionEncodedS. # noqa: E501 + :type: int + """ + + self._time = time + + @property + def status(self): + """Gets the status of this TransactionEncodedS. # noqa: E501 + + + :return: The status of this TransactionEncodedS. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransactionEncodedS. + + + :param status: The status of this TransactionEncodedS. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def encoded_transaction(self): + """Gets the encoded_transaction of this TransactionEncodedS. # noqa: E501 + + + :return: The encoded_transaction of this TransactionEncodedS. # noqa: E501 + :rtype: str + """ + return self._encoded_transaction + + @encoded_transaction.setter + def encoded_transaction(self, encoded_transaction): + """Sets the encoded_transaction of this TransactionEncodedS. + + + :param encoded_transaction: The encoded_transaction of this TransactionEncodedS. # noqa: E501 + :type: str + """ + + self._encoded_transaction = encoded_transaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionEncodedS): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/apiv1exploreraddress_status.py b/lib/skyapi/skyapi/models/transaction_status.py similarity index 60% rename from lib/skyapi/skyapi/models/apiv1exploreraddress_status.py rename to lib/skyapi/skyapi/models/transaction_status.py index eb20d229..7e7377a5 100644 --- a/lib/skyapi/skyapi/models/apiv1exploreraddress_status.py +++ b/lib/skyapi/skyapi/models/transaction_status.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1exploreraddressStatus(object): +class TransactionStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,120 +32,124 @@ class Apiv1exploreraddressStatus(object): and the value is json key in definition. """ openapi_types = { - 'unconfirmed': 'bool', 'block_seq': 'int', - 'label': 'int', - 'confirmed': 'bool' + 'confirmed': 'bool', + 'height': 'int', + 'unconfirmed': 'bool' } attribute_map = { - 'unconfirmed': 'unconfirmed', 'block_seq': 'block_seq', - 'label': 'label', - 'confirmed': 'confirmed' + 'confirmed': 'confirmed', + 'height': 'height', + 'unconfirmed': 'unconfirmed' } - def __init__(self, unconfirmed=None, block_seq=None, label=None, confirmed=None): # noqa: E501 - """Apiv1exploreraddressStatus - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, block_seq=None, confirmed=None, height=None, unconfirmed=None): # noqa: E501 + """TransactionStatus - a model defined in OpenAPI""" # noqa: E501 - self._unconfirmed = None self._block_seq = None - self._label = None self._confirmed = None + self._height = None + self._unconfirmed = None self.discriminator = None - if unconfirmed is not None: - self.unconfirmed = unconfirmed if block_seq is not None: self.block_seq = block_seq - if label is not None: - self.label = label if confirmed is not None: self.confirmed = confirmed + if height is not None: + self.height = height + if unconfirmed is not None: + self.unconfirmed = unconfirmed @property - def unconfirmed(self): - """Gets the unconfirmed of this Apiv1exploreraddressStatus. # noqa: E501 + def block_seq(self): + """Gets the block_seq of this TransactionStatus. # noqa: E501 + If confirmed, the sequence of the block in which the transaction was executed # noqa: E501 - :return: The unconfirmed of this Apiv1exploreraddressStatus. # noqa: E501 - :rtype: bool + :return: The block_seq of this TransactionStatus. # noqa: E501 + :rtype: int """ - return self._unconfirmed + return self._block_seq - @unconfirmed.setter - def unconfirmed(self, unconfirmed): - """Sets the unconfirmed of this Apiv1exploreraddressStatus. + @block_seq.setter + def block_seq(self, block_seq): + """Sets the block_seq of this TransactionStatus. + If confirmed, the sequence of the block in which the transaction was executed # noqa: E501 - :param unconfirmed: The unconfirmed of this Apiv1exploreraddressStatus. # noqa: E501 - :type: bool + :param block_seq: The block_seq of this TransactionStatus. # noqa: E501 + :type: int """ - self._unconfirmed = unconfirmed + self._block_seq = block_seq @property - def block_seq(self): - """Gets the block_seq of this Apiv1exploreraddressStatus. # noqa: E501 + def confirmed(self): + """Gets the confirmed of this TransactionStatus. # noqa: E501 - :return: The block_seq of this Apiv1exploreraddressStatus. # noqa: E501 - :rtype: int + :return: The confirmed of this TransactionStatus. # noqa: E501 + :rtype: bool """ - return self._block_seq + return self._confirmed - @block_seq.setter - def block_seq(self, block_seq): - """Sets the block_seq of this Apiv1exploreraddressStatus. + @confirmed.setter + def confirmed(self, confirmed): + """Sets the confirmed of this TransactionStatus. - :param block_seq: The block_seq of this Apiv1exploreraddressStatus. # noqa: E501 - :type: int + :param confirmed: The confirmed of this TransactionStatus. # noqa: E501 + :type: bool """ - self._block_seq = block_seq + self._confirmed = confirmed @property - def label(self): - """Gets the label of this Apiv1exploreraddressStatus. # noqa: E501 + def height(self): + """Gets the height of this TransactionStatus. # noqa: E501 + If confirmed, how many blocks deep in the chain it is. Will be at least 1 if confirmed # noqa: E501 - :return: The label of this Apiv1exploreraddressStatus. # noqa: E501 + :return: The height of this TransactionStatus. # noqa: E501 :rtype: int """ - return self._label + return self._height - @label.setter - def label(self, label): - """Sets the label of this Apiv1exploreraddressStatus. + @height.setter + def height(self, height): + """Sets the height of this TransactionStatus. + If confirmed, how many blocks deep in the chain it is. Will be at least 1 if confirmed # noqa: E501 - :param label: The label of this Apiv1exploreraddressStatus. # noqa: E501 + :param height: The height of this TransactionStatus. # noqa: E501 :type: int """ - self._label = label + self._height = height @property - def confirmed(self): - """Gets the confirmed of this Apiv1exploreraddressStatus. # noqa: E501 + def unconfirmed(self): + """Gets the unconfirmed of this TransactionStatus. # noqa: E501 - :return: The confirmed of this Apiv1exploreraddressStatus. # noqa: E501 + :return: The unconfirmed of this TransactionStatus. # noqa: E501 :rtype: bool """ - return self._confirmed + return self._unconfirmed - @confirmed.setter - def confirmed(self, confirmed): - """Sets the confirmed of this Apiv1exploreraddressStatus. + @unconfirmed.setter + def unconfirmed(self, unconfirmed): + """Sets the unconfirmed of this TransactionStatus. - :param confirmed: The confirmed of this Apiv1exploreraddressStatus. # noqa: E501 + :param unconfirmed: The unconfirmed of this TransactionStatus. # noqa: E501 :type: bool """ - self._confirmed = confirmed + self._unconfirmed = unconfirmed def to_dict(self): """Returns the model properties as a dict""" @@ -181,7 +185,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1exploreraddressStatus): + if not isinstance(other, TransactionStatus): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/apiv1pending_txs_transaction.py b/lib/skyapi/skyapi/models/transaction_txn.py similarity index 61% rename from lib/skyapi/skyapi/models/apiv1pending_txs_transaction.py rename to lib/skyapi/skyapi/models/transaction_txn.py index 9300d99c..8f8f29b8 100644 --- a/lib/skyapi/skyapi/models/apiv1pending_txs_transaction.py +++ b/lib/skyapi/skyapi/models/transaction_txn.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1pendingTxsTransaction(object): +class TransactionTxn(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,94 +32,73 @@ class Apiv1pendingTxsTransaction(object): and the value is json key in definition. """ openapi_types = { - 'outputs': 'list[Apiv1exploreraddressOutputs]', 'inner_hash': 'str', 'inputs': 'list[str]', - 'sigs': 'list[str]', 'length': 'int', + 'outputs': 'list[object]', + 'sigs': 'list[str]', + 'timestamp': 'int', 'txid': 'str', - 'type': 'int', - 'timestamp': 'int' + 'type': 'int' } attribute_map = { - 'outputs': 'outputs', 'inner_hash': 'inner_hash', 'inputs': 'inputs', - 'sigs': 'sigs', 'length': 'length', + 'outputs': 'outputs', + 'sigs': 'sigs', + 'timestamp': 'timestamp', 'txid': 'txid', - 'type': 'type', - 'timestamp': 'timestamp' + 'type': 'type' } - def __init__(self, outputs=None, inner_hash=None, inputs=None, sigs=None, length=None, txid=None, type=None, timestamp=None): # noqa: E501 - """Apiv1pendingTxsTransaction - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, inner_hash=None, inputs=None, length=None, outputs=None, sigs=None, timestamp=None, txid=None, type=None): # noqa: E501 + """TransactionTxn - a model defined in OpenAPI""" # noqa: E501 - self._outputs = None self._inner_hash = None self._inputs = None - self._sigs = None self._length = None + self._outputs = None + self._sigs = None + self._timestamp = None self._txid = None self._type = None - self._timestamp = None self.discriminator = None - if outputs is not None: - self.outputs = outputs if inner_hash is not None: self.inner_hash = inner_hash if inputs is not None: self.inputs = inputs - if sigs is not None: - self.sigs = sigs if length is not None: self.length = length + if outputs is not None: + self.outputs = outputs + if sigs is not None: + self.sigs = sigs + if timestamp is not None: + self.timestamp = timestamp if txid is not None: self.txid = txid if type is not None: self.type = type - if timestamp is not None: - self.timestamp = timestamp - - @property - def outputs(self): - """Gets the outputs of this Apiv1pendingTxsTransaction. # noqa: E501 - - - :return: The outputs of this Apiv1pendingTxsTransaction. # noqa: E501 - :rtype: list[Apiv1exploreraddressOutputs] - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this Apiv1pendingTxsTransaction. - - - :param outputs: The outputs of this Apiv1pendingTxsTransaction. # noqa: E501 - :type: list[Apiv1exploreraddressOutputs] - """ - - self._outputs = outputs @property def inner_hash(self): - """Gets the inner_hash of this Apiv1pendingTxsTransaction. # noqa: E501 + """Gets the inner_hash of this TransactionTxn. # noqa: E501 - :return: The inner_hash of this Apiv1pendingTxsTransaction. # noqa: E501 + :return: The inner_hash of this TransactionTxn. # noqa: E501 :rtype: str """ return self._inner_hash @inner_hash.setter def inner_hash(self, inner_hash): - """Sets the inner_hash of this Apiv1pendingTxsTransaction. + """Sets the inner_hash of this TransactionTxn. - :param inner_hash: The inner_hash of this Apiv1pendingTxsTransaction. # noqa: E501 + :param inner_hash: The inner_hash of this TransactionTxn. # noqa: E501 :type: str """ @@ -127,83 +106,125 @@ def inner_hash(self, inner_hash): @property def inputs(self): - """Gets the inputs of this Apiv1pendingTxsTransaction. # noqa: E501 + """Gets the inputs of this TransactionTxn. # noqa: E501 - :return: The inputs of this Apiv1pendingTxsTransaction. # noqa: E501 + :return: The inputs of this TransactionTxn. # noqa: E501 :rtype: list[str] """ return self._inputs @inputs.setter def inputs(self, inputs): - """Sets the inputs of this Apiv1pendingTxsTransaction. + """Sets the inputs of this TransactionTxn. - :param inputs: The inputs of this Apiv1pendingTxsTransaction. # noqa: E501 + :param inputs: The inputs of this TransactionTxn. # noqa: E501 :type: list[str] """ self._inputs = inputs + @property + def length(self): + """Gets the length of this TransactionTxn. # noqa: E501 + + + :return: The length of this TransactionTxn. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this TransactionTxn. + + + :param length: The length of this TransactionTxn. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def outputs(self): + """Gets the outputs of this TransactionTxn. # noqa: E501 + + + :return: The outputs of this TransactionTxn. # noqa: E501 + :rtype: list[object] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this TransactionTxn. + + + :param outputs: The outputs of this TransactionTxn. # noqa: E501 + :type: list[object] + """ + + self._outputs = outputs + @property def sigs(self): - """Gets the sigs of this Apiv1pendingTxsTransaction. # noqa: E501 + """Gets the sigs of this TransactionTxn. # noqa: E501 - :return: The sigs of this Apiv1pendingTxsTransaction. # noqa: E501 + :return: The sigs of this TransactionTxn. # noqa: E501 :rtype: list[str] """ return self._sigs @sigs.setter def sigs(self, sigs): - """Sets the sigs of this Apiv1pendingTxsTransaction. + """Sets the sigs of this TransactionTxn. - :param sigs: The sigs of this Apiv1pendingTxsTransaction. # noqa: E501 + :param sigs: The sigs of this TransactionTxn. # noqa: E501 :type: list[str] """ self._sigs = sigs @property - def length(self): - """Gets the length of this Apiv1pendingTxsTransaction. # noqa: E501 + def timestamp(self): + """Gets the timestamp of this TransactionTxn. # noqa: E501 - :return: The length of this Apiv1pendingTxsTransaction. # noqa: E501 + :return: The timestamp of this TransactionTxn. # noqa: E501 :rtype: int """ - return self._length + return self._timestamp - @length.setter - def length(self, length): - """Sets the length of this Apiv1pendingTxsTransaction. + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this TransactionTxn. - :param length: The length of this Apiv1pendingTxsTransaction. # noqa: E501 + :param timestamp: The timestamp of this TransactionTxn. # noqa: E501 :type: int """ - self._length = length + self._timestamp = timestamp @property def txid(self): - """Gets the txid of this Apiv1pendingTxsTransaction. # noqa: E501 + """Gets the txid of this TransactionTxn. # noqa: E501 - :return: The txid of this Apiv1pendingTxsTransaction. # noqa: E501 + :return: The txid of this TransactionTxn. # noqa: E501 :rtype: str """ return self._txid @txid.setter def txid(self, txid): - """Sets the txid of this Apiv1pendingTxsTransaction. + """Sets the txid of this TransactionTxn. - :param txid: The txid of this Apiv1pendingTxsTransaction. # noqa: E501 + :param txid: The txid of this TransactionTxn. # noqa: E501 :type: str """ @@ -211,46 +232,25 @@ def txid(self, txid): @property def type(self): - """Gets the type of this Apiv1pendingTxsTransaction. # noqa: E501 + """Gets the type of this TransactionTxn. # noqa: E501 - :return: The type of this Apiv1pendingTxsTransaction. # noqa: E501 + :return: The type of this TransactionTxn. # noqa: E501 :rtype: int """ return self._type @type.setter def type(self, type): - """Sets the type of this Apiv1pendingTxsTransaction. + """Sets the type of this TransactionTxn. - :param type: The type of this Apiv1pendingTxsTransaction. # noqa: E501 + :param type: The type of this TransactionTxn. # noqa: E501 :type: int """ self._type = type - @property - def timestamp(self): - """Gets the timestamp of this Apiv1pendingTxsTransaction. # noqa: E501 - - - :return: The timestamp of this Apiv1pendingTxsTransaction. # noqa: E501 - :rtype: int - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this Apiv1pendingTxsTransaction. - - - :param timestamp: The timestamp of this Apiv1pendingTxsTransaction. # noqa: E501 - :type: int - """ - - self._timestamp = timestamp - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -285,7 +285,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1pendingTxsTransaction): + if not isinstance(other, TransactionTxn): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/transaction_v2_params_address.py b/lib/skyapi/skyapi/models/transaction_v2_params_address.py new file mode 100644 index 00000000..c7fd1dc7 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_v2_params_address.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsAddress(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hours_selection': 'TransactionV2ParamsAddressHoursSelection' + } + + attribute_map = { + 'hours_selection': 'hours_selection' + } + + def __init__(self, hours_selection=None): # noqa: E501 + """TransactionV2ParamsAddress - a model defined in OpenAPI""" # noqa: E501 + + self._hours_selection = None + self.discriminator = None + + if hours_selection is not None: + self.hours_selection = hours_selection + + @property + def hours_selection(self): + """Gets the hours_selection of this TransactionV2ParamsAddress. # noqa: E501 + + + :return: The hours_selection of this TransactionV2ParamsAddress. # noqa: E501 + :rtype: TransactionV2ParamsAddressHoursSelection + """ + return self._hours_selection + + @hours_selection.setter + def hours_selection(self, hours_selection): + """Sets the hours_selection of this TransactionV2ParamsAddress. + + + :param hours_selection: The hours_selection of this TransactionV2ParamsAddress. # noqa: E501 + :type: TransactionV2ParamsAddressHoursSelection + """ + + self._hours_selection = hours_selection + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsAddress): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/transaction_v2_params_address_hours_selection.py b/lib/skyapi/skyapi/models/transaction_v2_params_address_hours_selection.py new file mode 100644 index 00000000..d391eb74 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_v2_params_address_hours_selection.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsAddressHoursSelection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): # noqa: E501 + """TransactionV2ParamsAddressHoursSelection - a model defined in OpenAPI""" # noqa: E501 + + self._type = None + self.discriminator = None + + if type is not None: + self.type = type + + @property + def type(self): + """Gets the type of this TransactionV2ParamsAddressHoursSelection. # noqa: E501 + + + :return: The type of this TransactionV2ParamsAddressHoursSelection. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionV2ParamsAddressHoursSelection. + + + :param type: The type of this TransactionV2ParamsAddressHoursSelection. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsAddressHoursSelection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/transaction_v2_params_unspent.py b/lib/skyapi/skyapi/models/transaction_v2_params_unspent.py new file mode 100644 index 00000000..6ea2c796 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_v2_params_unspent.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsUnspent(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hours_selection': 'TransactionV2ParamsUnspentHoursSelection', + 'unspents': 'list[str]', + 'change_address': 'str', + 'to': 'list[TransactionV2ParamsUnspentTo]' + } + + attribute_map = { + 'hours_selection': 'hours_selection', + 'unspents': 'unspents', + 'change_address': 'change_address', + 'to': 'to' + } + + def __init__(self, hours_selection=None, unspents=None, change_address=None, to=None): # noqa: E501 + """TransactionV2ParamsUnspent - a model defined in OpenAPI""" # noqa: E501 + + self._hours_selection = None + self._unspents = None + self._change_address = None + self._to = None + self.discriminator = None + + if hours_selection is not None: + self.hours_selection = hours_selection + if unspents is not None: + self.unspents = unspents + if change_address is not None: + self.change_address = change_address + if to is not None: + self.to = to + + @property + def hours_selection(self): + """Gets the hours_selection of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The hours_selection of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: TransactionV2ParamsUnspentHoursSelection + """ + return self._hours_selection + + @hours_selection.setter + def hours_selection(self, hours_selection): + """Sets the hours_selection of this TransactionV2ParamsUnspent. + + + :param hours_selection: The hours_selection of this TransactionV2ParamsUnspent. # noqa: E501 + :type: TransactionV2ParamsUnspentHoursSelection + """ + + self._hours_selection = hours_selection + + @property + def unspents(self): + """Gets the unspents of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The unspents of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: list[str] + """ + return self._unspents + + @unspents.setter + def unspents(self, unspents): + """Sets the unspents of this TransactionV2ParamsUnspent. + + + :param unspents: The unspents of this TransactionV2ParamsUnspent. # noqa: E501 + :type: list[str] + """ + + self._unspents = unspents + + @property + def change_address(self): + """Gets the change_address of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The change_address of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: str + """ + return self._change_address + + @change_address.setter + def change_address(self, change_address): + """Sets the change_address of this TransactionV2ParamsUnspent. + + + :param change_address: The change_address of this TransactionV2ParamsUnspent. # noqa: E501 + :type: str + """ + + self._change_address = change_address + + @property + def to(self): + """Gets the to of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The to of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: list[TransactionV2ParamsUnspentTo] + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this TransactionV2ParamsUnspent. + + + :param to: The to of this TransactionV2ParamsUnspent. # noqa: E501 + :type: list[TransactionV2ParamsUnspentTo] + """ + + self._to = to + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsUnspent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/transaction_v2_params_unspent_hours_selection.py b/lib/skyapi/skyapi/models/transaction_v2_params_unspent_hours_selection.py new file mode 100644 index 00000000..342cc354 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_v2_params_unspent_hours_selection.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsUnspentHoursSelection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'mode': 'str', + 'share_factor': 'str' + } + + attribute_map = { + 'type': 'type', + 'mode': 'mode', + 'share_factor': 'share_factor' + } + + def __init__(self, type=None, mode=None, share_factor=None): # noqa: E501 + """TransactionV2ParamsUnspentHoursSelection - a model defined in OpenAPI""" # noqa: E501 + + self._type = None + self._mode = None + self._share_factor = None + self.discriminator = None + + if type is not None: + self.type = type + if mode is not None: + self.mode = mode + if share_factor is not None: + self.share_factor = share_factor + + @property + def type(self): + """Gets the type of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + + + :return: The type of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionV2ParamsUnspentHoursSelection. + + + :param type: The type of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def mode(self): + """Gets the mode of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + + + :return: The mode of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this TransactionV2ParamsUnspentHoursSelection. + + + :param mode: The mode of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :type: str + """ + + self._mode = mode + + @property + def share_factor(self): + """Gets the share_factor of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + + + :return: The share_factor of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :rtype: str + """ + return self._share_factor + + @share_factor.setter + def share_factor(self, share_factor): + """Sets the share_factor of this TransactionV2ParamsUnspentHoursSelection. + + + :param share_factor: The share_factor of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :type: str + """ + + self._share_factor = share_factor + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsUnspentHoursSelection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/apiv1wallets_entries.py b/lib/skyapi/skyapi/models/transaction_v2_params_unspent_to.py similarity index 67% rename from lib/skyapi/skyapi/models/apiv1wallets_entries.py rename to lib/skyapi/skyapi/models/transaction_v2_params_unspent_to.py index da67f1eb..c305ac25 100644 --- a/lib/skyapi/skyapi/models/apiv1wallets_entries.py +++ b/lib/skyapi/skyapi/models/transaction_v2_params_unspent_to.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1walletsEntries(object): +class TransactionV2ParamsUnspentTo(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,68 +32,68 @@ class Apiv1walletsEntries(object): and the value is json key in definition. """ openapi_types = { - 'public_key': 'str', - 'address': 'str' + 'address': 'str', + 'coins': 'str' } attribute_map = { - 'public_key': 'public_key', - 'address': 'address' + 'address': 'address', + 'coins': 'coins' } - def __init__(self, public_key=None, address=None): # noqa: E501 - """Apiv1walletsEntries - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, address=None, coins=None): # noqa: E501 + """TransactionV2ParamsUnspentTo - a model defined in OpenAPI""" # noqa: E501 - self._public_key = None self._address = None + self._coins = None self.discriminator = None - if public_key is not None: - self.public_key = public_key if address is not None: self.address = address + if coins is not None: + self.coins = coins @property - def public_key(self): - """Gets the public_key of this Apiv1walletsEntries. # noqa: E501 + def address(self): + """Gets the address of this TransactionV2ParamsUnspentTo. # noqa: E501 - :return: The public_key of this Apiv1walletsEntries. # noqa: E501 + :return: The address of this TransactionV2ParamsUnspentTo. # noqa: E501 :rtype: str """ - return self._public_key + return self._address - @public_key.setter - def public_key(self, public_key): - """Sets the public_key of this Apiv1walletsEntries. + @address.setter + def address(self, address): + """Sets the address of this TransactionV2ParamsUnspentTo. - :param public_key: The public_key of this Apiv1walletsEntries. # noqa: E501 + :param address: The address of this TransactionV2ParamsUnspentTo. # noqa: E501 :type: str """ - self._public_key = public_key + self._address = address @property - def address(self): - """Gets the address of this Apiv1walletsEntries. # noqa: E501 + def coins(self): + """Gets the coins of this TransactionV2ParamsUnspentTo. # noqa: E501 - :return: The address of this Apiv1walletsEntries. # noqa: E501 + :return: The coins of this TransactionV2ParamsUnspentTo. # noqa: E501 :rtype: str """ - return self._address + return self._coins - @address.setter - def address(self, address): - """Sets the address of this Apiv1walletsEntries. + @coins.setter + def coins(self, coins): + """Sets the coins of this TransactionV2ParamsUnspentTo. - :param address: The address of this Apiv1walletsEntries. # noqa: E501 + :param coins: The coins of this TransactionV2ParamsUnspentTo. # noqa: E501 :type: str """ - self._address = address + self._coins = coins def to_dict(self): """Returns the model properties as a dict""" @@ -129,7 +129,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1walletsEntries): + if not isinstance(other, TransactionV2ParamsUnspentTo): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/transaction_verbose.py b/lib/skyapi/skyapi/models/transaction_verbose.py new file mode 100644 index 00000000..4d704485 --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_verbose.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerbose(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'time': 'int', + 'status': 'TransactionStatus', + 'txn': 'TransactionVerboseTxn' + } + + attribute_map = { + 'time': 'time', + 'status': 'status', + 'txn': 'txn' + } + + def __init__(self, time=None, status=None, txn=None): # noqa: E501 + """TransactionVerbose - a model defined in OpenAPI""" # noqa: E501 + + self._time = None + self._status = None + self._txn = None + self.discriminator = None + + if time is not None: + self.time = time + if status is not None: + self.status = status + if txn is not None: + self.txn = txn + + @property + def time(self): + """Gets the time of this TransactionVerbose. # noqa: E501 + + + :return: The time of this TransactionVerbose. # noqa: E501 + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TransactionVerbose. + + + :param time: The time of this TransactionVerbose. # noqa: E501 + :type: int + """ + + self._time = time + + @property + def status(self): + """Gets the status of this TransactionVerbose. # noqa: E501 + + + :return: The status of this TransactionVerbose. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransactionVerbose. + + + :param status: The status of this TransactionVerbose. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def txn(self): + """Gets the txn of this TransactionVerbose. # noqa: E501 + + + :return: The txn of this TransactionVerbose. # noqa: E501 + :rtype: TransactionVerboseTxn + """ + return self._txn + + @txn.setter + def txn(self, txn): + """Sets the txn of this TransactionVerbose. + + + :param txn: The txn of this TransactionVerbose. # noqa: E501 + :type: TransactionVerboseTxn + """ + + self._txn = txn + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerbose): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/transaction_verbose_txn.py b/lib/skyapi/skyapi/models/transaction_verbose_txn.py new file mode 100644 index 00000000..085134dc --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_verbose_txn.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerboseTxn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'status': 'TransactionStatus', + 'fee': 'int', + 'inner_hash': 'str', + 'inputs': 'list[TransactionVerboseTxnInputs]', + 'length': 'int', + 'outputs': 'list[object]', + 'sigs': 'list[str]', + 'timestamp': 'int', + 'txid': 'str', + 'type': 'int' + } + + attribute_map = { + 'status': 'status', + 'fee': 'fee', + 'inner_hash': 'inner_hash', + 'inputs': 'inputs', + 'length': 'length', + 'outputs': 'outputs', + 'sigs': 'sigs', + 'timestamp': 'timestamp', + 'txid': 'txid', + 'type': 'type' + } + + def __init__(self, status=None, fee=None, inner_hash=None, inputs=None, length=None, outputs=None, sigs=None, timestamp=None, txid=None, type=None): # noqa: E501 + """TransactionVerboseTxn - a model defined in OpenAPI""" # noqa: E501 + + self._status = None + self._fee = None + self._inner_hash = None + self._inputs = None + self._length = None + self._outputs = None + self._sigs = None + self._timestamp = None + self._txid = None + self._type = None + self.discriminator = None + + if status is not None: + self.status = status + if fee is not None: + self.fee = fee + if inner_hash is not None: + self.inner_hash = inner_hash + if inputs is not None: + self.inputs = inputs + if length is not None: + self.length = length + if outputs is not None: + self.outputs = outputs + if sigs is not None: + self.sigs = sigs + if timestamp is not None: + self.timestamp = timestamp + if txid is not None: + self.txid = txid + if type is not None: + self.type = type + + @property + def status(self): + """Gets the status of this TransactionVerboseTxn. # noqa: E501 + + + :return: The status of this TransactionVerboseTxn. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransactionVerboseTxn. + + + :param status: The status of this TransactionVerboseTxn. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def fee(self): + """Gets the fee of this TransactionVerboseTxn. # noqa: E501 + + + :return: The fee of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._fee + + @fee.setter + def fee(self, fee): + """Sets the fee of this TransactionVerboseTxn. + + + :param fee: The fee of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._fee = fee + + @property + def inner_hash(self): + """Gets the inner_hash of this TransactionVerboseTxn. # noqa: E501 + + + :return: The inner_hash of this TransactionVerboseTxn. # noqa: E501 + :rtype: str + """ + return self._inner_hash + + @inner_hash.setter + def inner_hash(self, inner_hash): + """Sets the inner_hash of this TransactionVerboseTxn. + + + :param inner_hash: The inner_hash of this TransactionVerboseTxn. # noqa: E501 + :type: str + """ + + self._inner_hash = inner_hash + + @property + def inputs(self): + """Gets the inputs of this TransactionVerboseTxn. # noqa: E501 + + + :return: The inputs of this TransactionVerboseTxn. # noqa: E501 + :rtype: list[TransactionVerboseTxnInputs] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this TransactionVerboseTxn. + + + :param inputs: The inputs of this TransactionVerboseTxn. # noqa: E501 + :type: list[TransactionVerboseTxnInputs] + """ + + self._inputs = inputs + + @property + def length(self): + """Gets the length of this TransactionVerboseTxn. # noqa: E501 + + + :return: The length of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this TransactionVerboseTxn. + + + :param length: The length of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def outputs(self): + """Gets the outputs of this TransactionVerboseTxn. # noqa: E501 + + + :return: The outputs of this TransactionVerboseTxn. # noqa: E501 + :rtype: list[object] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this TransactionVerboseTxn. + + + :param outputs: The outputs of this TransactionVerboseTxn. # noqa: E501 + :type: list[object] + """ + + self._outputs = outputs + + @property + def sigs(self): + """Gets the sigs of this TransactionVerboseTxn. # noqa: E501 + + + :return: The sigs of this TransactionVerboseTxn. # noqa: E501 + :rtype: list[str] + """ + return self._sigs + + @sigs.setter + def sigs(self, sigs): + """Sets the sigs of this TransactionVerboseTxn. + + + :param sigs: The sigs of this TransactionVerboseTxn. # noqa: E501 + :type: list[str] + """ + + self._sigs = sigs + + @property + def timestamp(self): + """Gets the timestamp of this TransactionVerboseTxn. # noqa: E501 + + + :return: The timestamp of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this TransactionVerboseTxn. + + + :param timestamp: The timestamp of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._timestamp = timestamp + + @property + def txid(self): + """Gets the txid of this TransactionVerboseTxn. # noqa: E501 + + + :return: The txid of this TransactionVerboseTxn. # noqa: E501 + :rtype: str + """ + return self._txid + + @txid.setter + def txid(self, txid): + """Sets the txid of this TransactionVerboseTxn. + + + :param txid: The txid of this TransactionVerboseTxn. # noqa: E501 + :type: str + """ + + self._txid = txid + + @property + def type(self): + """Gets the type of this TransactionVerboseTxn. # noqa: E501 + + + :return: The type of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionVerboseTxn. + + + :param type: The type of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerboseTxn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/apiv1exploreraddress_inputs.py b/lib/skyapi/skyapi/models/transaction_verbose_txn_inputs.py similarity index 66% rename from lib/skyapi/skyapi/models/apiv1exploreraddress_inputs.py rename to lib/skyapi/skyapi/models/transaction_verbose_txn_inputs.py index ea29d32d..9e81437b 100644 --- a/lib/skyapi/skyapi/models/apiv1exploreraddress_inputs.py +++ b/lib/skyapi/skyapi/models/transaction_verbose_txn_inputs.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1exploreraddressInputs(object): +class TransactionVerboseTxnInputs(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,146 +32,146 @@ class Apiv1exploreraddressInputs(object): and the value is json key in definition. """ openapi_types = { + 'uxid': 'str', 'owner': 'str', - 'hours': 'int', - 'calculated_hours': 'int', 'coins': 'str', - 'uxid': 'str' + 'hours': 'int', + 'calculated_hours': 'int' } attribute_map = { + 'uxid': 'uxid', 'owner': 'owner', - 'hours': 'hours', - 'calculated_hours': 'calculated_hours', 'coins': 'coins', - 'uxid': 'uxid' + 'hours': 'hours', + 'calculated_hours': 'calculated_hours' } - def __init__(self, owner=None, hours=None, calculated_hours=None, coins=None, uxid=None): # noqa: E501 - """Apiv1exploreraddressInputs - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, uxid=None, owner=None, coins=None, hours=None, calculated_hours=None): # noqa: E501 + """TransactionVerboseTxnInputs - a model defined in OpenAPI""" # noqa: E501 + self._uxid = None self._owner = None + self._coins = None self._hours = None self._calculated_hours = None - self._coins = None - self._uxid = None self.discriminator = None + if uxid is not None: + self.uxid = uxid if owner is not None: self.owner = owner + if coins is not None: + self.coins = coins if hours is not None: self.hours = hours if calculated_hours is not None: self.calculated_hours = calculated_hours - if coins is not None: - self.coins = coins - if uxid is not None: - self.uxid = uxid @property - def owner(self): - """Gets the owner of this Apiv1exploreraddressInputs. # noqa: E501 + def uxid(self): + """Gets the uxid of this TransactionVerboseTxnInputs. # noqa: E501 - :return: The owner of this Apiv1exploreraddressInputs. # noqa: E501 + :return: The uxid of this TransactionVerboseTxnInputs. # noqa: E501 :rtype: str """ - return self._owner + return self._uxid - @owner.setter - def owner(self, owner): - """Sets the owner of this Apiv1exploreraddressInputs. + @uxid.setter + def uxid(self, uxid): + """Sets the uxid of this TransactionVerboseTxnInputs. - :param owner: The owner of this Apiv1exploreraddressInputs. # noqa: E501 + :param uxid: The uxid of this TransactionVerboseTxnInputs. # noqa: E501 :type: str """ - self._owner = owner + self._uxid = uxid @property - def hours(self): - """Gets the hours of this Apiv1exploreraddressInputs. # noqa: E501 + def owner(self): + """Gets the owner of this TransactionVerboseTxnInputs. # noqa: E501 - :return: The hours of this Apiv1exploreraddressInputs. # noqa: E501 - :rtype: int + :return: The owner of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: str """ - return self._hours + return self._owner - @hours.setter - def hours(self, hours): - """Sets the hours of this Apiv1exploreraddressInputs. + @owner.setter + def owner(self, owner): + """Sets the owner of this TransactionVerboseTxnInputs. - :param hours: The hours of this Apiv1exploreraddressInputs. # noqa: E501 - :type: int + :param owner: The owner of this TransactionVerboseTxnInputs. # noqa: E501 + :type: str """ - self._hours = hours + self._owner = owner @property - def calculated_hours(self): - """Gets the calculated_hours of this Apiv1exploreraddressInputs. # noqa: E501 + def coins(self): + """Gets the coins of this TransactionVerboseTxnInputs. # noqa: E501 - :return: The calculated_hours of this Apiv1exploreraddressInputs. # noqa: E501 - :rtype: int + :return: The coins of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: str """ - return self._calculated_hours + return self._coins - @calculated_hours.setter - def calculated_hours(self, calculated_hours): - """Sets the calculated_hours of this Apiv1exploreraddressInputs. + @coins.setter + def coins(self, coins): + """Sets the coins of this TransactionVerboseTxnInputs. - :param calculated_hours: The calculated_hours of this Apiv1exploreraddressInputs. # noqa: E501 - :type: int + :param coins: The coins of this TransactionVerboseTxnInputs. # noqa: E501 + :type: str """ - self._calculated_hours = calculated_hours + self._coins = coins @property - def coins(self): - """Gets the coins of this Apiv1exploreraddressInputs. # noqa: E501 + def hours(self): + """Gets the hours of this TransactionVerboseTxnInputs. # noqa: E501 - :return: The coins of this Apiv1exploreraddressInputs. # noqa: E501 - :rtype: str + :return: The hours of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: int """ - return self._coins + return self._hours - @coins.setter - def coins(self, coins): - """Sets the coins of this Apiv1exploreraddressInputs. + @hours.setter + def hours(self, hours): + """Sets the hours of this TransactionVerboseTxnInputs. - :param coins: The coins of this Apiv1exploreraddressInputs. # noqa: E501 - :type: str + :param hours: The hours of this TransactionVerboseTxnInputs. # noqa: E501 + :type: int """ - self._coins = coins + self._hours = hours @property - def uxid(self): - """Gets the uxid of this Apiv1exploreraddressInputs. # noqa: E501 + def calculated_hours(self): + """Gets the calculated_hours of this TransactionVerboseTxnInputs. # noqa: E501 - :return: The uxid of this Apiv1exploreraddressInputs. # noqa: E501 - :rtype: str + :return: The calculated_hours of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: int """ - return self._uxid + return self._calculated_hours - @uxid.setter - def uxid(self, uxid): - """Sets the uxid of this Apiv1exploreraddressInputs. + @calculated_hours.setter + def calculated_hours(self, calculated_hours): + """Sets the calculated_hours of this TransactionVerboseTxnInputs. - :param uxid: The uxid of this Apiv1exploreraddressInputs. # noqa: E501 - :type: str + :param calculated_hours: The calculated_hours of this TransactionVerboseTxnInputs. # noqa: E501 + :type: int """ - self._uxid = uxid + self._calculated_hours = calculated_hours def to_dict(self): """Returns the model properties as a dict""" @@ -207,7 +207,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1exploreraddressInputs): + if not isinstance(other, TransactionVerboseTxnInputs): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/transaction_verify_request.py b/lib/skyapi/skyapi/models/transaction_verify_request.py new file mode 100644 index 00000000..6a5dea4b --- /dev/null +++ b/lib/skyapi/skyapi/models/transaction_verify_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerifyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'unsigned': 'bool', + 'encoded_transaction': 'str' + } + + attribute_map = { + 'unsigned': 'unsigned', + 'encoded_transaction': 'encoded_transaction' + } + + def __init__(self, unsigned=None, encoded_transaction=None): # noqa: E501 + """TransactionVerifyRequest - a model defined in OpenAPI""" # noqa: E501 + + self._unsigned = None + self._encoded_transaction = None + self.discriminator = None + + if unsigned is not None: + self.unsigned = unsigned + if encoded_transaction is not None: + self.encoded_transaction = encoded_transaction + + @property + def unsigned(self): + """Gets the unsigned of this TransactionVerifyRequest. # noqa: E501 + + + :return: The unsigned of this TransactionVerifyRequest. # noqa: E501 + :rtype: bool + """ + return self._unsigned + + @unsigned.setter + def unsigned(self, unsigned): + """Sets the unsigned of this TransactionVerifyRequest. + + + :param unsigned: The unsigned of this TransactionVerifyRequest. # noqa: E501 + :type: bool + """ + + self._unsigned = unsigned + + @property + def encoded_transaction(self): + """Gets the encoded_transaction of this TransactionVerifyRequest. # noqa: E501 + + + :return: The encoded_transaction of this TransactionVerifyRequest. # noqa: E501 + :rtype: str + """ + return self._encoded_transaction + + @encoded_transaction.setter + def encoded_transaction(self, encoded_transaction): + """Sets the encoded_transaction of this TransactionVerifyRequest. + + + :param encoded_transaction: The encoded_transaction of this TransactionVerifyRequest. # noqa: E501 + :type: str + """ + + self._encoded_transaction = encoded_transaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerifyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/models/inline_object.py b/lib/skyapi/skyapi/models/wallet_transaction_request.py similarity index 66% rename from lib/skyapi/skyapi/models/inline_object.py rename to lib/skyapi/skyapi/models/wallet_transaction_request.py index 45ff58d5..8553a5b3 100644 --- a/lib/skyapi/skyapi/models/inline_object.py +++ b/lib/skyapi/skyapi/models/wallet_transaction_request.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class InlineObject(object): +class WalletTransactionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,10 +33,10 @@ class InlineObject(object): """ openapi_types = { 'change_address': 'str', - 'hours_selection': 'Apiv1wallettransactionHoursSelection', + 'hours_selection': 'WalletTransactionRequestHoursSelection', 'ignore_unconfirmed': 'bool', - 'to': 'list[Apiv1wallettransactionTo]', - 'wallet': 'Apiv1wallettransactionWallet' + 'to': 'list[object]', + 'wallet': 'WalletTransactionRequestWallet' } attribute_map = { @@ -48,7 +48,7 @@ class InlineObject(object): } def __init__(self, change_address=None, hours_selection=None, ignore_unconfirmed=None, to=None, wallet=None): # noqa: E501 - """InlineObject - a model defined in OpenAPI""" # noqa: E501 + """WalletTransactionRequest - a model defined in OpenAPI""" # noqa: E501 self._change_address = None self._hours_selection = None @@ -70,20 +70,20 @@ def __init__(self, change_address=None, hours_selection=None, ignore_unconfirmed @property def change_address(self): - """Gets the change_address of this InlineObject. # noqa: E501 + """Gets the change_address of this WalletTransactionRequest. # noqa: E501 - :return: The change_address of this InlineObject. # noqa: E501 + :return: The change_address of this WalletTransactionRequest. # noqa: E501 :rtype: str """ return self._change_address @change_address.setter def change_address(self, change_address): - """Sets the change_address of this InlineObject. + """Sets the change_address of this WalletTransactionRequest. - :param change_address: The change_address of this InlineObject. # noqa: E501 + :param change_address: The change_address of this WalletTransactionRequest. # noqa: E501 :type: str """ @@ -91,41 +91,41 @@ def change_address(self, change_address): @property def hours_selection(self): - """Gets the hours_selection of this InlineObject. # noqa: E501 + """Gets the hours_selection of this WalletTransactionRequest. # noqa: E501 - :return: The hours_selection of this InlineObject. # noqa: E501 - :rtype: Apiv1wallettransactionHoursSelection + :return: The hours_selection of this WalletTransactionRequest. # noqa: E501 + :rtype: WalletTransactionRequestHoursSelection """ return self._hours_selection @hours_selection.setter def hours_selection(self, hours_selection): - """Sets the hours_selection of this InlineObject. + """Sets the hours_selection of this WalletTransactionRequest. - :param hours_selection: The hours_selection of this InlineObject. # noqa: E501 - :type: Apiv1wallettransactionHoursSelection + :param hours_selection: The hours_selection of this WalletTransactionRequest. # noqa: E501 + :type: WalletTransactionRequestHoursSelection """ self._hours_selection = hours_selection @property def ignore_unconfirmed(self): - """Gets the ignore_unconfirmed of this InlineObject. # noqa: E501 + """Gets the ignore_unconfirmed of this WalletTransactionRequest. # noqa: E501 - :return: The ignore_unconfirmed of this InlineObject. # noqa: E501 + :return: The ignore_unconfirmed of this WalletTransactionRequest. # noqa: E501 :rtype: bool """ return self._ignore_unconfirmed @ignore_unconfirmed.setter def ignore_unconfirmed(self, ignore_unconfirmed): - """Sets the ignore_unconfirmed of this InlineObject. + """Sets the ignore_unconfirmed of this WalletTransactionRequest. - :param ignore_unconfirmed: The ignore_unconfirmed of this InlineObject. # noqa: E501 + :param ignore_unconfirmed: The ignore_unconfirmed of this WalletTransactionRequest. # noqa: E501 :type: bool """ @@ -133,42 +133,42 @@ def ignore_unconfirmed(self, ignore_unconfirmed): @property def to(self): - """Gets the to of this InlineObject. # noqa: E501 + """Gets the to of this WalletTransactionRequest. # noqa: E501 - :return: The to of this InlineObject. # noqa: E501 - :rtype: list[Apiv1wallettransactionTo] + :return: The to of this WalletTransactionRequest. # noqa: E501 + :rtype: list[object] """ return self._to @to.setter def to(self, to): - """Sets the to of this InlineObject. + """Sets the to of this WalletTransactionRequest. - :param to: The to of this InlineObject. # noqa: E501 - :type: list[Apiv1wallettransactionTo] + :param to: The to of this WalletTransactionRequest. # noqa: E501 + :type: list[object] """ self._to = to @property def wallet(self): - """Gets the wallet of this InlineObject. # noqa: E501 + """Gets the wallet of this WalletTransactionRequest. # noqa: E501 - :return: The wallet of this InlineObject. # noqa: E501 - :rtype: Apiv1wallettransactionWallet + :return: The wallet of this WalletTransactionRequest. # noqa: E501 + :rtype: WalletTransactionRequestWallet """ return self._wallet @wallet.setter def wallet(self, wallet): - """Sets the wallet of this InlineObject. + """Sets the wallet of this WalletTransactionRequest. - :param wallet: The wallet of this InlineObject. # noqa: E501 - :type: Apiv1wallettransactionWallet + :param wallet: The wallet of this WalletTransactionRequest. # noqa: E501 + :type: WalletTransactionRequestWallet """ self._wallet = wallet @@ -207,7 +207,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineObject): + if not isinstance(other, WalletTransactionRequest): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/apiv1wallettransaction_hours_selection.py b/lib/skyapi/skyapi/models/wallet_transaction_request_hours_selection.py similarity index 71% rename from lib/skyapi/skyapi/models/apiv1wallettransaction_hours_selection.py rename to lib/skyapi/skyapi/models/wallet_transaction_request_hours_selection.py index 0799b83f..7f8810a8 100644 --- a/lib/skyapi/skyapi/models/apiv1wallettransaction_hours_selection.py +++ b/lib/skyapi/skyapi/models/wallet_transaction_request_hours_selection.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1wallettransactionHoursSelection(object): +class WalletTransactionRequestHoursSelection(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -44,7 +44,7 @@ class Apiv1wallettransactionHoursSelection(object): } def __init__(self, mode=None, share_factor=None, type=None): # noqa: E501 - """Apiv1wallettransactionHoursSelection - a model defined in OpenAPI""" # noqa: E501 + """WalletTransactionRequestHoursSelection - a model defined in OpenAPI""" # noqa: E501 self._mode = None self._share_factor = None @@ -60,20 +60,20 @@ def __init__(self, mode=None, share_factor=None, type=None): # noqa: E501 @property def mode(self): - """Gets the mode of this Apiv1wallettransactionHoursSelection. # noqa: E501 + """Gets the mode of this WalletTransactionRequestHoursSelection. # noqa: E501 - :return: The mode of this Apiv1wallettransactionHoursSelection. # noqa: E501 + :return: The mode of this WalletTransactionRequestHoursSelection. # noqa: E501 :rtype: str """ return self._mode @mode.setter def mode(self, mode): - """Sets the mode of this Apiv1wallettransactionHoursSelection. + """Sets the mode of this WalletTransactionRequestHoursSelection. - :param mode: The mode of this Apiv1wallettransactionHoursSelection. # noqa: E501 + :param mode: The mode of this WalletTransactionRequestHoursSelection. # noqa: E501 :type: str """ @@ -81,20 +81,20 @@ def mode(self, mode): @property def share_factor(self): - """Gets the share_factor of this Apiv1wallettransactionHoursSelection. # noqa: E501 + """Gets the share_factor of this WalletTransactionRequestHoursSelection. # noqa: E501 - :return: The share_factor of this Apiv1wallettransactionHoursSelection. # noqa: E501 + :return: The share_factor of this WalletTransactionRequestHoursSelection. # noqa: E501 :rtype: str """ return self._share_factor @share_factor.setter def share_factor(self, share_factor): - """Sets the share_factor of this Apiv1wallettransactionHoursSelection. + """Sets the share_factor of this WalletTransactionRequestHoursSelection. - :param share_factor: The share_factor of this Apiv1wallettransactionHoursSelection. # noqa: E501 + :param share_factor: The share_factor of this WalletTransactionRequestHoursSelection. # noqa: E501 :type: str """ @@ -102,20 +102,20 @@ def share_factor(self, share_factor): @property def type(self): - """Gets the type of this Apiv1wallettransactionHoursSelection. # noqa: E501 + """Gets the type of this WalletTransactionRequestHoursSelection. # noqa: E501 - :return: The type of this Apiv1wallettransactionHoursSelection. # noqa: E501 + :return: The type of this WalletTransactionRequestHoursSelection. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """Sets the type of this Apiv1wallettransactionHoursSelection. + """Sets the type of this WalletTransactionRequestHoursSelection. - :param type: The type of this Apiv1wallettransactionHoursSelection. # noqa: E501 + :param type: The type of this WalletTransactionRequestHoursSelection. # noqa: E501 :type: str """ @@ -155,7 +155,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1wallettransactionHoursSelection): + if not isinstance(other, WalletTransactionRequestHoursSelection): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/apiv1wallettransaction_wallet.py b/lib/skyapi/skyapi/models/wallet_transaction_request_wallet.py similarity index 67% rename from lib/skyapi/skyapi/models/apiv1wallettransaction_wallet.py rename to lib/skyapi/skyapi/models/wallet_transaction_request_wallet.py index 5d02c9ac..5abfd912 100644 --- a/lib/skyapi/skyapi/models/apiv1wallettransaction_wallet.py +++ b/lib/skyapi/skyapi/models/wallet_transaction_request_wallet.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -17,7 +17,7 @@ import six -class Apiv1wallettransactionWallet(object): +class WalletTransactionRequestWallet(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,120 +32,120 @@ class Apiv1wallettransactionWallet(object): and the value is json key in definition. """ openapi_types = { - 'unspents': 'list[str]', 'addresses': 'list[str]', + 'id': 'str', 'password': 'str', - 'id': 'str' + 'unspents': 'list[str]' } attribute_map = { - 'unspents': 'unspents', 'addresses': 'addresses', + 'id': 'id', 'password': 'password', - 'id': 'id' + 'unspents': 'unspents' } - def __init__(self, unspents=None, addresses=None, password=None, id=None): # noqa: E501 - """Apiv1wallettransactionWallet - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, addresses=None, id=None, password=None, unspents=None): # noqa: E501 + """WalletTransactionRequestWallet - a model defined in OpenAPI""" # noqa: E501 - self._unspents = None self._addresses = None - self._password = None self._id = None + self._password = None + self._unspents = None self.discriminator = None - if unspents is not None: - self.unspents = unspents if addresses is not None: self.addresses = addresses - if password is not None: - self.password = password if id is not None: self.id = id + if password is not None: + self.password = password + if unspents is not None: + self.unspents = unspents @property - def unspents(self): - """Gets the unspents of this Apiv1wallettransactionWallet. # noqa: E501 + def addresses(self): + """Gets the addresses of this WalletTransactionRequestWallet. # noqa: E501 - :return: The unspents of this Apiv1wallettransactionWallet. # noqa: E501 + :return: The addresses of this WalletTransactionRequestWallet. # noqa: E501 :rtype: list[str] """ - return self._unspents + return self._addresses - @unspents.setter - def unspents(self, unspents): - """Sets the unspents of this Apiv1wallettransactionWallet. + @addresses.setter + def addresses(self, addresses): + """Sets the addresses of this WalletTransactionRequestWallet. - :param unspents: The unspents of this Apiv1wallettransactionWallet. # noqa: E501 + :param addresses: The addresses of this WalletTransactionRequestWallet. # noqa: E501 :type: list[str] """ - self._unspents = unspents + self._addresses = addresses @property - def addresses(self): - """Gets the addresses of this Apiv1wallettransactionWallet. # noqa: E501 + def id(self): + """Gets the id of this WalletTransactionRequestWallet. # noqa: E501 - :return: The addresses of this Apiv1wallettransactionWallet. # noqa: E501 - :rtype: list[str] + :return: The id of this WalletTransactionRequestWallet. # noqa: E501 + :rtype: str """ - return self._addresses + return self._id - @addresses.setter - def addresses(self, addresses): - """Sets the addresses of this Apiv1wallettransactionWallet. + @id.setter + def id(self, id): + """Sets the id of this WalletTransactionRequestWallet. - :param addresses: The addresses of this Apiv1wallettransactionWallet. # noqa: E501 - :type: list[str] + :param id: The id of this WalletTransactionRequestWallet. # noqa: E501 + :type: str """ - self._addresses = addresses + self._id = id @property def password(self): - """Gets the password of this Apiv1wallettransactionWallet. # noqa: E501 + """Gets the password of this WalletTransactionRequestWallet. # noqa: E501 - :return: The password of this Apiv1wallettransactionWallet. # noqa: E501 + :return: The password of this WalletTransactionRequestWallet. # noqa: E501 :rtype: str """ return self._password @password.setter def password(self, password): - """Sets the password of this Apiv1wallettransactionWallet. + """Sets the password of this WalletTransactionRequestWallet. - :param password: The password of this Apiv1wallettransactionWallet. # noqa: E501 + :param password: The password of this WalletTransactionRequestWallet. # noqa: E501 :type: str """ self._password = password @property - def id(self): - """Gets the id of this Apiv1wallettransactionWallet. # noqa: E501 + def unspents(self): + """Gets the unspents of this WalletTransactionRequestWallet. # noqa: E501 - :return: The id of this Apiv1wallettransactionWallet. # noqa: E501 - :rtype: str + :return: The unspents of this WalletTransactionRequestWallet. # noqa: E501 + :rtype: list[str] """ - return self._id + return self._unspents - @id.setter - def id(self, id): - """Sets the id of this Apiv1wallettransactionWallet. + @unspents.setter + def unspents(self, unspents): + """Sets the unspents of this WalletTransactionRequestWallet. - :param id: The id of this Apiv1wallettransactionWallet. # noqa: E501 - :type: str + :param unspents: The unspents of this WalletTransactionRequestWallet. # noqa: E501 + :type: list[str] """ - self._id = id + self._unspents = unspents def to_dict(self): """Returns the model properties as a dict""" @@ -181,7 +181,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Apiv1wallettransactionWallet): + if not isinstance(other, WalletTransactionRequestWallet): return False return self.__dict__ == other.__dict__ diff --git a/lib/skyapi/skyapi/models/wallet_transaction_sign_request.py b/lib/skyapi/skyapi/models/wallet_transaction_sign_request.py new file mode 100644 index 00000000..4541b7f7 --- /dev/null +++ b/lib/skyapi/skyapi/models/wallet_transaction_sign_request.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WalletTransactionSignRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'wallet_id': 'str', + 'password': 'str', + 'encoded_transaction': 'str', + 'sign_indexes': 'list[int]' + } + + attribute_map = { + 'wallet_id': 'wallet_id', + 'password': 'password', + 'encoded_transaction': 'encoded_transaction', + 'sign_indexes': 'sign_indexes' + } + + def __init__(self, wallet_id=None, password=None, encoded_transaction=None, sign_indexes=None): # noqa: E501 + """WalletTransactionSignRequest - a model defined in OpenAPI""" # noqa: E501 + + self._wallet_id = None + self._password = None + self._encoded_transaction = None + self._sign_indexes = None + self.discriminator = None + + if wallet_id is not None: + self.wallet_id = wallet_id + if password is not None: + self.password = password + if encoded_transaction is not None: + self.encoded_transaction = encoded_transaction + if sign_indexes is not None: + self.sign_indexes = sign_indexes + + @property + def wallet_id(self): + """Gets the wallet_id of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The wallet_id of this WalletTransactionSignRequest. # noqa: E501 + :rtype: str + """ + return self._wallet_id + + @wallet_id.setter + def wallet_id(self, wallet_id): + """Sets the wallet_id of this WalletTransactionSignRequest. + + + :param wallet_id: The wallet_id of this WalletTransactionSignRequest. # noqa: E501 + :type: str + """ + + self._wallet_id = wallet_id + + @property + def password(self): + """Gets the password of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The password of this WalletTransactionSignRequest. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this WalletTransactionSignRequest. + + + :param password: The password of this WalletTransactionSignRequest. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def encoded_transaction(self): + """Gets the encoded_transaction of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The encoded_transaction of this WalletTransactionSignRequest. # noqa: E501 + :rtype: str + """ + return self._encoded_transaction + + @encoded_transaction.setter + def encoded_transaction(self, encoded_transaction): + """Sets the encoded_transaction of this WalletTransactionSignRequest. + + + :param encoded_transaction: The encoded_transaction of this WalletTransactionSignRequest. # noqa: E501 + :type: str + """ + + self._encoded_transaction = encoded_transaction + + @property + def sign_indexes(self): + """Gets the sign_indexes of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The sign_indexes of this WalletTransactionSignRequest. # noqa: E501 + :rtype: list[int] + """ + return self._sign_indexes + + @sign_indexes.setter + def sign_indexes(self, sign_indexes): + """Sets the sign_indexes of this WalletTransactionSignRequest. + + + :param sign_indexes: The sign_indexes of this WalletTransactionSignRequest. # noqa: E501 + :type: list[int] + """ + + self._sign_indexes = sign_indexes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WalletTransactionSignRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/rest.py b/lib/skyapi/skyapi/rest.py index 53b8e28e..56271a14 100644 --- a/lib/skyapi/skyapi/rest.py +++ b/lib/skyapi/skyapi/rest.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -23,11 +23,9 @@ # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode +import urllib3 -try: - import urllib3 -except ImportError: - raise ImportError('OpenAPI Python client requires urllib3.') +from skyapi.exceptions import ApiException, ApiValueError logger = logging.getLogger(__name__) @@ -76,6 +74,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): if configuration.assert_hostname is not None: addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + if maxsize is None: if configuration.connection_pool_maxsize is not None: maxsize = configuration.connection_pool_maxsize @@ -92,6 +93,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: @@ -131,7 +133,7 @@ def request(self, method, url, query_params=None, headers=None, 'PATCH', 'OPTIONS'] if post_params and body: - raise ValueError( + raise ApiValueError( "body parameter cannot be used with post_params parameter." ) @@ -188,7 +190,7 @@ def request(self, method, url, query_params=None, headers=None, # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form - elif isinstance(body, str): + elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( method, url, @@ -293,31 +295,3 @@ def PATCH(self, url, headers=None, query_params=None, post_params=None, _preload_content=_preload_content, _request_timeout=_request_timeout, body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/lib/skyapi/test/test_inline_object.py b/lib/skyapi/test/test_address.py similarity index 61% rename from lib/skyapi/test/test_inline_object.py rename to lib/skyapi/test/test_address.py index a09e4014..ddebeaf2 100644 --- a/lib/skyapi/test/test_inline_object.py +++ b/lib/skyapi/test/test_address.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.inline_object import InlineObject # noqa: E501 +from skyapi.models.address import Address # noqa: E501 from skyapi.rest import ApiException -class TestInlineObject(unittest.TestCase): - """InlineObject unit test stubs""" +class TestAddress(unittest.TestCase): + """Address unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testInlineObject(self): - """Test InlineObject""" + def testAddress(self): + """Test Address""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.inline_object.InlineObject() # noqa: E501 + # model = skyapi.models.address.Address() # noqa: E501 pass diff --git a/lib/skyapi/test/test_apiv1exploreraddress_status.py b/lib/skyapi/test/test_api_v1_pending_txs_transaction.py similarity index 54% rename from lib/skyapi/test/test_apiv1exploreraddress_status.py rename to lib/skyapi/test/test_api_v1_pending_txs_transaction.py index 3a1be205..6cb0f300 100644 --- a/lib/skyapi/test/test_apiv1exploreraddress_status.py +++ b/lib/skyapi/test/test_api_v1_pending_txs_transaction.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus # noqa: E501 +from skyapi.models.api_v1_pending_txs_transaction import ApiV1PendingTxsTransaction # noqa: E501 from skyapi.rest import ApiException -class TestApiv1exploreraddressStatus(unittest.TestCase): - """Apiv1exploreraddressStatus unit test stubs""" +class TestApiV1PendingTxsTransaction(unittest.TestCase): + """ApiV1PendingTxsTransaction unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1exploreraddressStatus(self): - """Test Apiv1exploreraddressStatus""" + def testApiV1PendingTxsTransaction(self): + """Test ApiV1PendingTxsTransaction""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1exploreraddress_status.Apiv1exploreraddressStatus() # noqa: E501 + # model = skyapi.models.api_v1_pending_txs_transaction.ApiV1PendingTxsTransaction() # noqa: E501 pass diff --git a/lib/skyapi/test/test_api_v1_pending_txs_transaction_outputs.py b/lib/skyapi/test/test_api_v1_pending_txs_transaction_outputs.py new file mode 100644 index 00000000..a30bf73b --- /dev/null +++ b/lib/skyapi/test/test_api_v1_pending_txs_transaction_outputs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.api_v1_pending_txs_transaction_outputs import ApiV1PendingTxsTransactionOutputs # noqa: E501 +from skyapi.rest import ApiException + + +class TestApiV1PendingTxsTransactionOutputs(unittest.TestCase): + """ApiV1PendingTxsTransactionOutputs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiV1PendingTxsTransactionOutputs(self): + """Test ApiV1PendingTxsTransactionOutputs""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.api_v1_pending_txs_transaction_outputs.ApiV1PendingTxsTransactionOutputs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_apiv1wallettransaction_hours_selection.py b/lib/skyapi/test/test_apiv1wallettransaction_hours_selection.py deleted file mode 100644 index 4a45835f..00000000 --- a/lib/skyapi/test/test_apiv1wallettransaction_hours_selection.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Skycoin REST API. - - Skycoin is a next-generation cryptocurrency. # noqa: E501 - - OpenAPI spec version: 0.25.1 - Contact: contact@skycoin.net - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import skyapi -from skyapi.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection # noqa: E501 -from skyapi.rest import ApiException - - -class TestApiv1wallettransactionHoursSelection(unittest.TestCase): - """Apiv1wallettransactionHoursSelection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiv1wallettransactionHoursSelection(self): - """Test Apiv1wallettransactionHoursSelection""" - # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1wallettransaction_hours_selection.Apiv1wallettransactionHoursSelection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/lib/skyapi/test/test_apiv1wallettransaction_wallet.py b/lib/skyapi/test/test_apiv1wallettransaction_wallet.py deleted file mode 100644 index a1f1e3db..00000000 --- a/lib/skyapi/test/test_apiv1wallettransaction_wallet.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Skycoin REST API. - - Skycoin is a next-generation cryptocurrency. # noqa: E501 - - OpenAPI spec version: 0.25.1 - Contact: contact@skycoin.net - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import skyapi -from skyapi.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet # noqa: E501 -from skyapi.rest import ApiException - - -class TestApiv1wallettransactionWallet(unittest.TestCase): - """Apiv1wallettransactionWallet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiv1wallettransactionWallet(self): - """Test Apiv1wallettransactionWallet""" - # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1wallettransaction_wallet.Apiv1wallettransactionWallet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/lib/skyapi/test/test_apiv1wallets_meta.py b/lib/skyapi/test/test_block_schema.py similarity index 59% rename from lib/skyapi/test/test_apiv1wallets_meta.py rename to lib/skyapi/test/test_block_schema.py index c4c38656..f8e94ddd 100644 --- a/lib/skyapi/test/test_apiv1wallets_meta.py +++ b/lib/skyapi/test/test_block_schema.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1wallets_meta import Apiv1walletsMeta # noqa: E501 +from skyapi.models.block_schema import BlockSchema # noqa: E501 from skyapi.rest import ApiException -class TestApiv1walletsMeta(unittest.TestCase): - """Apiv1walletsMeta unit test stubs""" +class TestBlockSchema(unittest.TestCase): + """BlockSchema unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1walletsMeta(self): - """Test Apiv1walletsMeta""" + def testBlockSchema(self): + """Test BlockSchema""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1wallets_meta.Apiv1walletsMeta() # noqa: E501 + # model = skyapi.models.block_schema.BlockSchema() # noqa: E501 pass diff --git a/lib/skyapi/test/test_apiv1wallets_entries.py b/lib/skyapi/test/test_block_schema_body.py similarity index 58% rename from lib/skyapi/test/test_apiv1wallets_entries.py rename to lib/skyapi/test/test_block_schema_body.py index 0b658cb8..9b433a20 100644 --- a/lib/skyapi/test/test_apiv1wallets_entries.py +++ b/lib/skyapi/test/test_block_schema_body.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1wallets_entries import Apiv1walletsEntries # noqa: E501 +from skyapi.models.block_schema_body import BlockSchemaBody # noqa: E501 from skyapi.rest import ApiException -class TestApiv1walletsEntries(unittest.TestCase): - """Apiv1walletsEntries unit test stubs""" +class TestBlockSchemaBody(unittest.TestCase): + """BlockSchemaBody unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1walletsEntries(self): - """Test Apiv1walletsEntries""" + def testBlockSchemaBody(self): + """Test BlockSchemaBody""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1wallets_entries.Apiv1walletsEntries() # noqa: E501 + # model = skyapi.models.block_schema_body.BlockSchemaBody() # noqa: E501 pass diff --git a/lib/skyapi/test/test_inline_response2007_data.py b/lib/skyapi/test/test_block_verbose_schema.py similarity index 56% rename from lib/skyapi/test/test_inline_response2007_data.py rename to lib/skyapi/test/test_block_verbose_schema.py index 3a31771d..f9025f76 100644 --- a/lib/skyapi/test/test_inline_response2007_data.py +++ b/lib/skyapi/test/test_block_verbose_schema.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.inline_response2007_data import InlineResponse2007Data # noqa: E501 +from skyapi.models.block_verbose_schema import BlockVerboseSchema # noqa: E501 from skyapi.rest import ApiException -class TestInlineResponse2007Data(unittest.TestCase): - """InlineResponse2007Data unit test stubs""" +class TestBlockVerboseSchema(unittest.TestCase): + """BlockVerboseSchema unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2007Data(self): - """Test InlineResponse2007Data""" + def testBlockVerboseSchema(self): + """Test BlockVerboseSchema""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.inline_response2007_data.InlineResponse2007Data() # noqa: E501 + # model = skyapi.models.block_verbose_schema.BlockVerboseSchema() # noqa: E501 pass diff --git a/lib/skyapi/test/test_block_verbose_schema_body.py b/lib/skyapi/test/test_block_verbose_schema_body.py new file mode 100644 index 00000000..e6a7af92 --- /dev/null +++ b/lib/skyapi/test/test_block_verbose_schema_body.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_verbose_schema_body import BlockVerboseSchemaBody # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockVerboseSchemaBody(unittest.TestCase): + """BlockVerboseSchemaBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockVerboseSchemaBody(self): + """Test BlockVerboseSchemaBody""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_verbose_schema_body.BlockVerboseSchemaBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_block_verbose_schema_header.py b/lib/skyapi/test/test_block_verbose_schema_header.py new file mode 100644 index 00000000..7be72ab2 --- /dev/null +++ b/lib/skyapi/test/test_block_verbose_schema_header.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_verbose_schema_header import BlockVerboseSchemaHeader # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockVerboseSchemaHeader(unittest.TestCase): + """BlockVerboseSchemaHeader unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockVerboseSchemaHeader(self): + """Test BlockVerboseSchemaHeader""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_verbose_schema_header.BlockVerboseSchemaHeader() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_default_api.py b/lib/skyapi/test/test_default_api.py index 6e1f2130..5d22045b 100644 --- a/lib/skyapi/test/test_default_api.py +++ b/lib/skyapi/test/test_default_api.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -42,6 +42,18 @@ def test_address_uxouts(self): """ pass + def test_api_v1_rawtx_get(self): + """Test case for api_v1_rawtx_get + + """ + pass + + def test_api_v2_metrics_get(self): + """Test case for api_v2_metrics_get + + """ + pass + def test_balance_get(self): """Test case for balance_get @@ -59,6 +71,7 @@ def test_balance_post(self): def test_block(self): """Test case for block + Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 """ pass @@ -76,17 +89,10 @@ def test_blockchain_progress(self): """ pass - def test_blocks_get(self): - """Test case for blocks_get - - blocksHandler returns blocks between a start and end point, # noqa: E501 - """ - pass - - def test_blocks_post(self): - """Test case for blocks_post + def test_blocks(self): + """Test case for blocks - blocksHandler returns blocks between a start and end point, # noqa: E501 + Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 """ pass @@ -103,16 +109,28 @@ def test_csrf(self): """ pass - def test_default_connections(self): - """Test case for default_connections + def test_data_delete(self): + """Test case for data_delete + + """ + pass + + def test_data_get(self): + """Test case for data_get + + """ + pass + + def test_data_post(self): + """Test case for data_post - defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 """ pass - def test_explorer_address(self): - """Test case for explorer_address + def test_default_connections(self): + """Test case for default_connections + defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 """ pass @@ -208,6 +226,18 @@ def test_transaction_inject(self): """ pass + def test_transaction_post(self): + """Test case for transaction_post + + """ + pass + + def test_transaction_post_unspent(self): + """Test case for transaction_post_unspent + + """ + pass + def test_transaction_raw(self): """Test case for transaction_raw @@ -328,15 +358,17 @@ def test_wallet_seed_verify(self): """ pass - def test_wallet_spent(self): - """Test case for wallet_spent + def test_wallet_transaction(self): + """Test case for wallet_transaction + Creates a signed transaction # noqa: E501 """ pass - def test_wallet_transaction(self): - """Test case for wallet_transaction + def test_wallet_transaction_sign(self): + """Test case for wallet_transaction_sign + Creates a signed transaction # noqa: E501 """ pass diff --git a/lib/skyapi/test/test_inline_response200.py b/lib/skyapi/test/test_inline_response200.py index a23ed842..a9ce630e 100644 --- a/lib/skyapi/test/test_inline_response200.py +++ b/lib/skyapi/test/test_inline_response200.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2001.py b/lib/skyapi/test/test_inline_response2001.py index 2509f7ea..61d8eadb 100644 --- a/lib/skyapi/test/test_inline_response2001.py +++ b/lib/skyapi/test/test_inline_response2001.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response20010.py b/lib/skyapi/test/test_inline_response20010.py new file mode 100644 index 00000000..0578e034 --- /dev/null +++ b/lib/skyapi/test/test_inline_response20010.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response20010 import InlineResponse20010 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse20010(unittest.TestCase): + """InlineResponse20010 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20010(self): + """Test InlineResponse20010""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response20010.InlineResponse20010() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_inline_response2002.py b/lib/skyapi/test/test_inline_response2002.py index b6a216cb..340b2472 100644 --- a/lib/skyapi/test/test_inline_response2002.py +++ b/lib/skyapi/test/test_inline_response2002.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2003.py b/lib/skyapi/test/test_inline_response2003.py index 9c8dc5ec..2b12d6df 100644 --- a/lib/skyapi/test/test_inline_response2003.py +++ b/lib/skyapi/test/test_inline_response2003.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py b/lib/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py deleted file mode 100644 index 212ea07f..00000000 --- a/lib/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Skycoin REST API. - - Skycoin is a next-generation cryptocurrency. # noqa: E501 - - OpenAPI spec version: 0.25.1 - Contact: contact@skycoin.net - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import skyapi -from skyapi.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction # noqa: E501 -from skyapi.rest import ApiException - - -class TestInlineResponse2003UnconfirmedVerifyTransaction(unittest.TestCase): - """InlineResponse2003UnconfirmedVerifyTransaction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2003UnconfirmedVerifyTransaction(self): - """Test InlineResponse2003UnconfirmedVerifyTransaction""" - # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.inline_response2003_unconfirmed_verify_transaction.InlineResponse2003UnconfirmedVerifyTransaction() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/lib/skyapi/test/test_inline_response2004.py b/lib/skyapi/test/test_inline_response2004.py index 744cd73f..dcefe86f 100644 --- a/lib/skyapi/test/test_inline_response2004.py +++ b/lib/skyapi/test/test_inline_response2004.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2005.py b/lib/skyapi/test/test_inline_response2005.py index fb7cdb80..beda5117 100644 --- a/lib/skyapi/test/test_inline_response2005.py +++ b/lib/skyapi/test/test_inline_response2005.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2006.py b/lib/skyapi/test/test_inline_response2006.py index bcc7f073..35d7ba7e 100644 --- a/lib/skyapi/test/test_inline_response2006.py +++ b/lib/skyapi/test/test_inline_response2006.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2007.py b/lib/skyapi/test/test_inline_response2007.py index 394a5921..e126163a 100644 --- a/lib/skyapi/test/test_inline_response2007.py +++ b/lib/skyapi/test/test_inline_response2007.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_inline_response2008.py b/lib/skyapi/test/test_inline_response2008.py new file mode 100644 index 00000000..232ce4e6 --- /dev/null +++ b/lib/skyapi/test/test_inline_response2008.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2008 import InlineResponse2008 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2008(unittest.TestCase): + """InlineResponse2008 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2008(self): + """Test InlineResponse2008""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2008.InlineResponse2008() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_inline_response2008_data.py b/lib/skyapi/test/test_inline_response2008_data.py new file mode 100644 index 00000000..988ff2a1 --- /dev/null +++ b/lib/skyapi/test/test_inline_response2008_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2008_data import InlineResponse2008Data # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2008Data(unittest.TestCase): + """InlineResponse2008Data unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2008Data(self): + """Test InlineResponse2008Data""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2008_data.InlineResponse2008Data() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_inline_response2009.py b/lib/skyapi/test/test_inline_response2009.py new file mode 100644 index 00000000..ec05e5ad --- /dev/null +++ b/lib/skyapi/test/test_inline_response2009.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2009 import InlineResponse2009 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2009(unittest.TestCase): + """InlineResponse2009 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2009(self): + """Test InlineResponse2009""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2009.InlineResponse2009() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_inline_response_default.py b/lib/skyapi/test/test_inline_response_default.py index 5a006804..f3b38588 100644 --- a/lib/skyapi/test/test_inline_response_default.py +++ b/lib/skyapi/test/test_inline_response_default.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/lib/skyapi/test/test_network_connection_schema.py b/lib/skyapi/test/test_network_connection_schema.py new file mode 100644 index 00000000..619b0b76 --- /dev/null +++ b/lib/skyapi/test/test_network_connection_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.network_connection_schema import NetworkConnectionSchema # noqa: E501 +from skyapi.rest import ApiException + + +class TestNetworkConnectionSchema(unittest.TestCase): + """NetworkConnectionSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkConnectionSchema(self): + """Test NetworkConnectionSchema""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.network_connection_schema.NetworkConnectionSchema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_network_connection_schema_unconfirmed_verify_transaction.py b/lib/skyapi/test/test_network_connection_schema_unconfirmed_verify_transaction.py new file mode 100644 index 00000000..1e231927 --- /dev/null +++ b/lib/skyapi/test/test_network_connection_schema_unconfirmed_verify_transaction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.network_connection_schema_unconfirmed_verify_transaction import NetworkConnectionSchemaUnconfirmedVerifyTransaction # noqa: E501 +from skyapi.rest import ApiException + + +class TestNetworkConnectionSchemaUnconfirmedVerifyTransaction(unittest.TestCase): + """NetworkConnectionSchemaUnconfirmedVerifyTransaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkConnectionSchemaUnconfirmedVerifyTransaction(self): + """Test NetworkConnectionSchemaUnconfirmedVerifyTransaction""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.network_connection_schema_unconfirmed_verify_transaction.NetworkConnectionSchemaUnconfirmedVerifyTransaction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction.py b/lib/skyapi/test/test_transaction.py new file mode 100644 index 00000000..327d537a --- /dev/null +++ b/lib/skyapi/test/test_transaction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction import Transaction # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransaction(unittest.TestCase): + """Transaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransaction(self): + """Test Transaction""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction.Transaction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_encoded.py b/lib/skyapi/test/test_transaction_encoded.py new file mode 100644 index 00000000..334f38e0 --- /dev/null +++ b/lib/skyapi/test/test_transaction_encoded.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_encoded import TransactionEncoded # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionEncoded(unittest.TestCase): + """TransactionEncoded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionEncoded(self): + """Test TransactionEncoded""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_encoded.TransactionEncoded() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_encoded_s.py b/lib/skyapi/test/test_transaction_encoded_s.py new file mode 100644 index 00000000..092ac9f1 --- /dev/null +++ b/lib/skyapi/test/test_transaction_encoded_s.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_encoded_s import TransactionEncodedS # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionEncodedS(unittest.TestCase): + """TransactionEncodedS unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionEncodedS(self): + """Test TransactionEncodedS""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_encoded_s.TransactionEncodedS() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_status.py b/lib/skyapi/test/test_transaction_status.py new file mode 100644 index 00000000..9e8da8d6 --- /dev/null +++ b/lib/skyapi/test/test_transaction_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_status import TransactionStatus # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionStatus(unittest.TestCase): + """TransactionStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionStatus(self): + """Test TransactionStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_status.TransactionStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_txn.py b/lib/skyapi/test/test_transaction_txn.py new file mode 100644 index 00000000..08d9afea --- /dev/null +++ b/lib/skyapi/test/test_transaction_txn.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_txn import TransactionTxn # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionTxn(unittest.TestCase): + """TransactionTxn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionTxn(self): + """Test TransactionTxn""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_txn.TransactionTxn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_apiv1pending_txs_transaction.py b/lib/skyapi/test/test_transaction_v2_params_address.py similarity index 54% rename from lib/skyapi/test/test_apiv1pending_txs_transaction.py rename to lib/skyapi/test/test_transaction_v2_params_address.py index 72ed3161..8f2efb4f 100644 --- a/lib/skyapi/test/test_apiv1pending_txs_transaction.py +++ b/lib/skyapi/test/test_transaction_v2_params_address.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction # noqa: E501 +from skyapi.models.transaction_v2_params_address import TransactionV2ParamsAddress # noqa: E501 from skyapi.rest import ApiException -class TestApiv1pendingTxsTransaction(unittest.TestCase): - """Apiv1pendingTxsTransaction unit test stubs""" +class TestTransactionV2ParamsAddress(unittest.TestCase): + """TransactionV2ParamsAddress unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1pendingTxsTransaction(self): - """Test Apiv1pendingTxsTransaction""" + def testTransactionV2ParamsAddress(self): + """Test TransactionV2ParamsAddress""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1pending_txs_transaction.Apiv1pendingTxsTransaction() # noqa: E501 + # model = skyapi.models.transaction_v2_params_address.TransactionV2ParamsAddress() # noqa: E501 pass diff --git a/lib/skyapi/test/test_transaction_v2_params_address_hours_selection.py b/lib/skyapi/test/test_transaction_v2_params_address_hours_selection.py new file mode 100644 index 00000000..0dc88dbc --- /dev/null +++ b/lib/skyapi/test/test_transaction_v2_params_address_hours_selection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_address_hours_selection import TransactionV2ParamsAddressHoursSelection # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsAddressHoursSelection(unittest.TestCase): + """TransactionV2ParamsAddressHoursSelection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsAddressHoursSelection(self): + """Test TransactionV2ParamsAddressHoursSelection""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_address_hours_selection.TransactionV2ParamsAddressHoursSelection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_apiv1exploreraddress_inputs.py b/lib/skyapi/test/test_transaction_v2_params_unspent.py similarity index 54% rename from lib/skyapi/test/test_apiv1exploreraddress_inputs.py rename to lib/skyapi/test/test_transaction_v2_params_unspent.py index 0ce52299..33adaabd 100644 --- a/lib/skyapi/test/test_apiv1exploreraddress_inputs.py +++ b/lib/skyapi/test/test_transaction_v2_params_unspent.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs # noqa: E501 +from skyapi.models.transaction_v2_params_unspent import TransactionV2ParamsUnspent # noqa: E501 from skyapi.rest import ApiException -class TestApiv1exploreraddressInputs(unittest.TestCase): - """Apiv1exploreraddressInputs unit test stubs""" +class TestTransactionV2ParamsUnspent(unittest.TestCase): + """TransactionV2ParamsUnspent unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1exploreraddressInputs(self): - """Test Apiv1exploreraddressInputs""" + def testTransactionV2ParamsUnspent(self): + """Test TransactionV2ParamsUnspent""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1exploreraddress_inputs.Apiv1exploreraddressInputs() # noqa: E501 + # model = skyapi.models.transaction_v2_params_unspent.TransactionV2ParamsUnspent() # noqa: E501 pass diff --git a/lib/skyapi/test/test_transaction_v2_params_unspent_hours_selection.py b/lib/skyapi/test/test_transaction_v2_params_unspent_hours_selection.py new file mode 100644 index 00000000..5d8818ee --- /dev/null +++ b/lib/skyapi/test/test_transaction_v2_params_unspent_hours_selection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_unspent_hours_selection import TransactionV2ParamsUnspentHoursSelection # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsUnspentHoursSelection(unittest.TestCase): + """TransactionV2ParamsUnspentHoursSelection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsUnspentHoursSelection(self): + """Test TransactionV2ParamsUnspentHoursSelection""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_unspent_hours_selection.TransactionV2ParamsUnspentHoursSelection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_v2_params_unspent_to.py b/lib/skyapi/test/test_transaction_v2_params_unspent_to.py new file mode 100644 index 00000000..9a01c4a0 --- /dev/null +++ b/lib/skyapi/test/test_transaction_v2_params_unspent_to.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_unspent_to import TransactionV2ParamsUnspentTo # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsUnspentTo(unittest.TestCase): + """TransactionV2ParamsUnspentTo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsUnspentTo(self): + """Test TransactionV2ParamsUnspentTo""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_unspent_to.TransactionV2ParamsUnspentTo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_verbose.py b/lib/skyapi/test/test_transaction_verbose.py new file mode 100644 index 00000000..9cf63f60 --- /dev/null +++ b/lib/skyapi/test/test_transaction_verbose.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_verbose import TransactionVerbose # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionVerbose(unittest.TestCase): + """TransactionVerbose unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionVerbose(self): + """Test TransactionVerbose""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_verbose.TransactionVerbose() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_transaction_verbose_txn.py b/lib/skyapi/test/test_transaction_verbose_txn.py new file mode 100644 index 00000000..b90d985a --- /dev/null +++ b/lib/skyapi/test/test_transaction_verbose_txn.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_verbose_txn import TransactionVerboseTxn # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionVerboseTxn(unittest.TestCase): + """TransactionVerboseTxn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionVerboseTxn(self): + """Test TransactionVerboseTxn""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_verbose_txn.TransactionVerboseTxn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_apiv1exploreraddress_outputs.py b/lib/skyapi/test/test_transaction_verbose_txn_inputs.py similarity index 53% rename from lib/skyapi/test/test_apiv1exploreraddress_outputs.py rename to lib/skyapi/test/test_transaction_verbose_txn_inputs.py index 7e5031d2..f1078c18 100644 --- a/lib/skyapi/test/test_apiv1exploreraddress_outputs.py +++ b/lib/skyapi/test/test_transaction_verbose_txn_inputs.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs # noqa: E501 +from skyapi.models.transaction_verbose_txn_inputs import TransactionVerboseTxnInputs # noqa: E501 from skyapi.rest import ApiException -class TestApiv1exploreraddressOutputs(unittest.TestCase): - """Apiv1exploreraddressOutputs unit test stubs""" +class TestTransactionVerboseTxnInputs(unittest.TestCase): + """TransactionVerboseTxnInputs unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1exploreraddressOutputs(self): - """Test Apiv1exploreraddressOutputs""" + def testTransactionVerboseTxnInputs(self): + """Test TransactionVerboseTxnInputs""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1exploreraddress_outputs.Apiv1exploreraddressOutputs() # noqa: E501 + # model = skyapi.models.transaction_verbose_txn_inputs.TransactionVerboseTxnInputs() # noqa: E501 pass diff --git a/lib/skyapi/test/test_apiv1wallettransaction_to.py b/lib/skyapi/test/test_transaction_verify_request.py similarity index 55% rename from lib/skyapi/test/test_apiv1wallettransaction_to.py rename to lib/skyapi/test/test_transaction_verify_request.py index 5eb858f3..effe2c97 100644 --- a/lib/skyapi/test/test_apiv1wallettransaction_to.py +++ b/lib/skyapi/test/test_transaction_verify_request.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 - OpenAPI spec version: 0.25.1 + OpenAPI spec version: 0.26.0 Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -16,12 +16,12 @@ import unittest import skyapi -from skyapi.models.apiv1wallettransaction_to import Apiv1wallettransactionTo # noqa: E501 +from skyapi.models.transaction_verify_request import TransactionVerifyRequest # noqa: E501 from skyapi.rest import ApiException -class TestApiv1wallettransactionTo(unittest.TestCase): - """Apiv1wallettransactionTo unit test stubs""" +class TestTransactionVerifyRequest(unittest.TestCase): + """TransactionVerifyRequest unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testApiv1wallettransactionTo(self): - """Test Apiv1wallettransactionTo""" + def testTransactionVerifyRequest(self): + """Test TransactionVerifyRequest""" # FIXME: construct object with mandatory attributes with example values - # model = skyapi.models.apiv1wallettransaction_to.Apiv1wallettransactionTo() # noqa: E501 + # model = skyapi.models.transaction_verify_request.TransactionVerifyRequest() # noqa: E501 pass diff --git a/lib/skyapi/test/test_wallet_transaction_request.py b/lib/skyapi/test/test_wallet_transaction_request.py new file mode 100644 index 00000000..4a2f6540 --- /dev/null +++ b/lib/skyapi/test/test_wallet_transaction_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_request import WalletTransactionRequest # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionRequest(unittest.TestCase): + """WalletTransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionRequest(self): + """Test WalletTransactionRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_request.WalletTransactionRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_wallet_transaction_request_hours_selection.py b/lib/skyapi/test/test_wallet_transaction_request_hours_selection.py new file mode 100644 index 00000000..8de9f58e --- /dev/null +++ b/lib/skyapi/test/test_wallet_transaction_request_hours_selection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_request_hours_selection import WalletTransactionRequestHoursSelection # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionRequestHoursSelection(unittest.TestCase): + """WalletTransactionRequestHoursSelection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionRequestHoursSelection(self): + """Test WalletTransactionRequestHoursSelection""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_request_hours_selection.WalletTransactionRequestHoursSelection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_wallet_transaction_request_wallet.py b/lib/skyapi/test/test_wallet_transaction_request_wallet.py new file mode 100644 index 00000000..db2bdb4a --- /dev/null +++ b/lib/skyapi/test/test_wallet_transaction_request_wallet.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_request_wallet import WalletTransactionRequestWallet # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionRequestWallet(unittest.TestCase): + """WalletTransactionRequestWallet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionRequestWallet(self): + """Test WalletTransactionRequestWallet""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_request_wallet.WalletTransactionRequestWallet() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/test/test_wallet_transaction_sign_request.py b/lib/skyapi/test/test_wallet_transaction_sign_request.py new file mode 100644 index 00000000..5cd134d8 --- /dev/null +++ b/lib/skyapi/test/test_wallet_transaction_sign_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.26.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_sign_request import WalletTransactionSignRequest # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionSignRequest(unittest.TestCase): + """WalletTransactionSignRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionSignRequest(self): + """Test WalletTransactionSignRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_sign_request.WalletTransactionSignRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/swig/MANIFEST.in b/lib/swig/MANIFEST.in index 1a486257..926d4cf5 100644 --- a/lib/swig/MANIFEST.in +++ b/lib/swig/MANIFEST.in @@ -1,5 +1,5 @@ # Include all README -recursive-include . *.md +global-include *.md # Include the license file include LICENSE.txt @@ -8,25 +8,35 @@ include requirements.txt include requirements.dev.txt include Makefile -include gopath/src/github.com/skycoin/skycoin/Makefile -recursive-exclude . *.a -include skycoin.py +include gopath/src/github.com/fibercrypto/libskyfiber/Makefile +global-exclude *.a +global-exclude skycoin.py +prune tests -recursive-include . *.s -recursive-include . *.go -recursive-include . *.i -recursive-include swig/include *.h -recursive-include gopath/src/github.com/skycoin/skycoin/include *.h +global-include *.s +global-include *.go +global-include *.i +graft swig/include +graft gopath/src/github.com/fibercrypto/libskyfiber/include -recursive-include docker * -recursive-include swig/include * -recursive-include gopath/src/github.com/skycoin/skycoin/include * +prune docker +graft swig/include * +graft gopath/src/github.com/fibercrypto/libskyfiber/include -recursive-exclude . *.orig -exclude .github -exclude .travis -exclude .pytest_cache -recursive-exclude .github * -recursive-exclude .travis * -recursive-exclude .pytest_cache * +global-exclude __pycache__ +global-exclude .github +global-exclude .travis +global-exclude *.py[co] +global-exclude *.orig +prune lib +prune pytest_cache +prune .github +prune .tox +prune .travis +prune .pytest_cache +prune .circleci +global-exclude Dockerfile +global-exclude Dockerfile-armv7 +global-exclude pyskycoin_wrap.c +prune lib/skyapi diff --git a/lib/swig/README.md b/lib/swig/README.md index c294c0ee..2764b6fb 100644 --- a/lib/swig/README.md +++ b/lib/swig/README.md @@ -1,6 +1,6 @@ -# PySkycoin +# PySkyfiber -[![Build Status](https://travis-ci.org/skycoin/pyskycoin.svg?branch=develop)](https://travis-ci.org/skycoin/pyskycoin) +[![Build Status](https://travis-ci.com/fibercrypto/pyskyfiber.svg?branch=develop)](https://travis-ci.com/fibercrypto/pyskyfiber) Python extension for Skycoin API. A Python extension generated with SWIG to access Skycoin API from Python. @@ -24,13 +24,16 @@ A Python extension generated with SWIG to access Skycoin API from Python. - [Releases](#releases) - [Update the version](#update-the-version) - [Pre-release testing](#pre-release-testing) + - [Release signing](#release-signing) + - [Alternative signing keys](#alternative-signing-keys) - [Creating release builds](#creating-release-builds) - - [Python wrapper for Skycoin Api](#python-wrapper-for-skycoin-api) + - [Creating release builds to manylinux](#creating-release-builds-to-manylinux) +- [Python wrapper for Skycoin Api](#python-wrapper-for-skycoin-api) ## Installation -Download the repository from http://github.com/simelo/pyskycoin.git. +Download the repository from http://github.com/fibercrypto/pyskyfiber.git. Execute (`python setup.py install`) to install the library. Although executing (python setup.py develop) is a better choice for making changes to the library. However, when using tox these commands are not required at all because calling tox will make any necessary installation and execute the tests. ## Usage @@ -84,8 +87,8 @@ Will be called like this: ```python encrypt_settings = skycoin.encrypt__ScryptChacha20poly1305() -data = "Data to encrypt" #It will be passed as a parameter of type []byte -pwd = "password" #As []byte too +data = b"Data to encrypt" #It will be passed as a parameter of type []byte +pwd = b"password" #As []byte too err, encrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt_settings, data, pwd) if err == skycoin.SKY_OK: print encrypted #Encrypted is string @@ -123,7 +126,7 @@ This is how it is used in Python: ```python #Generates random seed err, data = skycoin.SKY_cipher_RandByte(32) -assert err == error["SKY_OK"] +assert err == skycoin.SKY_OK pubkey = skycoin.cipher_PubKey() seckey = skycoin.cipher_SecKey() err = skycoin.SKY_cipher_GenerateDeterministicKeyPair(data, pubkey, seckey) @@ -159,9 +162,19 @@ for seckey in seckeys: pubkey = skycoin.cipher_PubKey() skycoin.SKY_cipher_PubKeyFromSecKey(seckey, pubkey) err = skycoin.SKY_cipher_PubKey_Verify(pubkey) - assert err == error["SKY_OK"] + assert err == skycoin.SKY_OK ``` +## Example of how to verify address + +```python +def addressIsValid(addr): + addres = skycoin.cipher__Address() + err = skycoin.SKY_cipher_DecodeBase58Address(addr, addres) + return err != skycoin.SKY_OK +``` + + ### Memory Management Memory management is transparent to the user. Any object allocated inside the library is left to be managed by Python garbage collector. @@ -189,18 +202,18 @@ details. The project has two branches: `master` and `develop`. - `develop` is the default branch and will always have the latest code. - The submodule at `gopath/src/github.com/skycoin/skycoin` has to be - in sync with `skycoin/skycoin` `develop` branch. + The submodule at `gopath/src/github.com/fibercrypto/libskyfiber` has to be + in sync with `SkycoinProject/skycoin` `develop` branch. - `master` will always be equal to the current stable release on the website, and should correspond with the latest release tag. - The submodule at `gopath/src/github.com/skycoin/skycoin` has to be - in sync with `skycoin/skycoin` `master` branch. + The submodule at `gopath/src/github.com/fibercrypto/libskyfiber` has to be + in sync with `SkycoinProject/skycoin` `master` branch. Separate stable development branches will be created to work on releases for supporting the most recent stable version of Skycoin. The name of these branches should be the Skycoin major and minor version numbers followed by `dev` suffix e.g. `0.25dev`. These branches may be forked out of either `master` or `develop` branches, and -the submodule at `gopath/src/github.com/skycoin/skycoin` has to be -in sync with the corresponding tag of `skycoin/skycoin` official repository. +the submodule at `gopath/src/github.com/fibercrypto/libskyfiber` has to be +in sync with the corresponding tag of `fibercrypto/libskyfiber` official repository. Stable development branches are created most of the time for the following reasons: @@ -221,14 +234,14 @@ $ make test 0. If the `master` branch has commits that are not in `develop` (e.g. due to a hotfix applied to `master`), merge `master` into `develop` (and fix any build or test failures) 0. Switch to a new release branch named `release-X.Y.Z` for preparing the release. -0. Ensure that the submodule at `gopath/src/github.com/skycoin/skycoin` is in sync with respect to the corresponding tag in https://github.com/skycoin/skycoin repository. +0. Ensure that the submodule at `gopath/src/github.com/fibercrypto/libskyfiber` is in sync with respect to the corresponding tag in https://github.com/fibercrypto/libskyfiber repository. 0. Update `__version__` in `skycoin/__init__.py` 0. Run `make build` to make sure that the code base is up to date 0. Update `CHANGELOG.md`: move the "unreleased" changes to the version and add the date. 0. Follow the steps in [pre-release testing](#pre-release-testing) 0. Make a PR merging the release branch into `master` 0. Review the PR and merge it -0. Update files in https://github.com/skycoin/repo-info/tree/master/repos/skycoin/remote for `simelotech/skycoindev-dotnet` Docker image, adding a new file for the new version and adjusting any configuration text that may have changed +0. Update files in https://github.com/SkycoinProject/repo-info/tree/master/repos/skycoin/remote for `simelotech/skycoindev-dotnet` Docker image, adding a new file for the new version and adjusting any configuration text that may have changed 0. Tag the `master` branch with the version number. Version tags start with `v`, e.g. `v0.20.0`. Sign the tag. If you have your GPG key in github, creating a release on the Github website will automatically tag the release. It can be tagged from the command line with `git tag -as v0.20.0 $COMMIT_ID`, but Github will not recognize it as a "release". 0. Release builds are created and uploaded by travis. To do it manually, checkout the master branch and follow the [create release builds instructions](#creating-release-builds). 0. Checkout `develop` branch and bump `__version__` to next [`dev` version number](https://www.python.org/dev/peps/pep-0440/#developmental-releases). @@ -238,9 +251,44 @@ $ make test Perform these actions before releasing: ```sh -make check -make integration-test +make test-ci +``` + +#### Release signing + +Releases are signed with this PGP key: + +`0x5801631BD27C7874` + +The fingerprint for this key is: + ``` +pub ed25519 2017-09-01 [SC] [expires: 2023-03-18] + 10A7 22B7 6F2F FE7B D238 0222 5801 631B D27C 7874 +uid GZ-C SKYCOIN +sub cv25519 2017-09-01 [E] [expires: 2023-03-18] +``` + +Keybase.io account: https://keybase.io/gzc + +##### Alternative signing keys: + +Keybase.io account: https://keybase.io/olemis + +The fingerprint for this key is: + +``` +pub rsa4096 2019-01-17 [SC] [expires: 2024-01-16] +uid Olemis Lang +sub rsa4096 2019-01-17 [E] [expires: 2024-01-16] +``` + +Follow the [Tor Project's instructions for verifying signatures](https://www.torproject.org/docs/verifying-signatures.html.en). + +Releases and their signatures can be found on the [releases page](https://github.com/fibercrypto/pyskycoin/releases). + +Instructions for generating a PGP key, publishing it, signing the tags and binaries: +https://gist.github.com/gz-c/de3f9c43343b2f1a27c640fe529b067c #### Creating release builds @@ -253,7 +301,35 @@ python3 -m pip install --user --upgrade twine twine upload --repository-url https://test.pypi.org/legacy/ dist/* ``` -#### Python wrapper for Skycoin Api +This is automatically done for `travis-ci` and `circle-ci`. + +#### Creating release builds to manylinux + +Release builds should be created from git tags . After [updating release version](#update-the-version) it is necessary to follow these steps + +For `64bits` builds: + +```sh +cd /path/to/pyskycoin +make bdist_manylinux +python3 -m pip install --user --upgrade twine +twine upload --repository-url https://test.pypi.org/legacy/ dist/* +``` + +In case `32bits` builds: + +```sh +cd /path/to/pyskycoin +make bdist_manylinux_i686 +python3 -m pip install --user --upgrade twine +twine upload --repository-url https://test.pypi.org/legacy/ dist/* +``` + +This is the same process that `skyapi` follows. + +This is done automatically in `travis-ci` and` circle-ci`, and even if there is an option to do it manually, this process should be automatic. + +## Python wrapper for Skycoin Api This wrapper is Auto generated by openapi-generator directly from `Skycoin Api` code for version v0.25.1. diff --git a/lib/swig/setup.cfg b/lib/swig/setup.cfg index bb550b74..de23e31d 100644 --- a/lib/swig/setup.cfg +++ b/lib/swig/setup.cfg @@ -9,7 +9,7 @@ license_file = LICENSE.txt # support. Removing this line (or setting universal to 0) will prevent # bdist_wheel from trying to make a universal wheel. For more see: # https://packaging.python.org/tutorials/distributing-packages/#wheels -universal=1 +universal=0 # FIXME: Change once libskycoin.a not included in sdist [check-manifest] @@ -32,6 +32,7 @@ ignore = gopath/* swig/include swig/include/* + Dockerfile [aliases] test=pytest diff --git a/lib/swig/setup.py b/lib/swig/setup.py index 1e86abc4..f5bb0c71 100644 --- a/lib/swig/setup.py +++ b/lib/swig/setup.py @@ -31,52 +31,35 @@ def build_extension(self, ext): # Handle unspecial extensions with the parent class' method super(skycoin_build_ext, self).build_extension(ext) else: - # Handle special extension - sources = ext.sources - if sources is None or not isinstance(sources, (list, tuple)): - raise DistutilsSetupError( - "in 'ext_modules' option (extension '%s'), " - "'sources' must be present and must be " - "a list of source filenames" % ext.name - ) - sources = list(sources) + files = os.listdir(script_dirname) + sys.stderr.write("files before: " + str(files)) + print("files before: " + str(files)) - if len(sources) > 1: - sources_path = os.path.commonprefix(sources) - else: - sources_path = os.path.dirname(sources[0]) - sources_path = os.path.realpath(sources_path) - if not sources_path.endswith(os.path.sep): - sources_path += os.path.sep + make_path = os.path.realpath(script_dirname) - if not os.path.exists(sources_path) or not os.path.isdir(sources_path): - raise DistutilsSetupError( - "in 'extensions' option (extension '%s'), " - "the supplied 'sources' base dir " - "must exist" % ext.name - ) - - make_path = os.path.realpath(os.path.join(sources_path, "..")) - - make_process = subprocess.Popen( - "make build-libc-swig", - cwd=make_path, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - shell=True, - ) + make_process = subprocess.Popen('make build-libc-swig', + cwd=make_path, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + shell=True) + sys.stderr.write("files after: " + str(files)) stdout, stderr = make_process.communicate() + print("stdout:") sys.stderr.write(str(stdout)) if len(stderr) > 0: - print("stderr:") - sys.stderr.write(str(stderr)) + print("stderr:") + sys.stderr.write(str(stderr)) + files = os.listdir(script_dirname) + sys.stderr.write("files after: " + str(files)) + print("files after: " + str(files)) + # After making the library build the c library's # python interface with the parent build_extension method super(skycoin_build_ext, self).build_extension(ext) -skypath = path.join(*("gopath/src/github.com/skycoin/skycoin".split("/"))) +skypath = path.join(*("gopath/src/github.com/fibercrypto/libskyfiber".split("/"))) lib_path = path.join(skypath, "build", "libskycoin") library_file = path.join(lib_path, "libskycoin.a") extra_link_args = [] @@ -85,29 +68,29 @@ def build_extension(self, ext): extra_link_args.append(library_file) setup( - name='pyskycoin', # Required + name='pyskyfiber', # Required version=__version__, # Required description="Skycoin Python Library", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/simelo/pyskycoin", + url="https://github.com/fibercrypto/pyskyfiber", author="Ratmil Torres", # Optional author_email="skycoin@simelo.tech", setup_requires=["pytest-runner"], - tests_require=["pytest"], + tests_require=["pytest", "urllib3", "certifi"], classifiers=[ # 3 - Alpha # 4 - Beta # 5 - Production/Stable "Development Status :: 3 - Alpha", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", + "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", ], keywords="skycoin crypto coin currency blockchain", # Optional py_modules=["skycoin"], diff --git a/lib/swig/skycoin/__init__.py b/lib/swig/skycoin/__init__.py index 21db169c..202f196a 100644 --- a/lib/swig/skycoin/__init__.py +++ b/lib/swig/skycoin/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.25.1.dev" +__version__ = "0.27.0.dev1" init_error = None def _print2stderr(msg): diff --git a/lib/swig/skycoin/skycoin.py b/lib/swig/skycoin/skycoin.py deleted file mode 100644 index 7d35c60d..00000000 --- a/lib/swig/skycoin/skycoin.py +++ /dev/null @@ -1,3047 +0,0 @@ -# This file was automatically generated by SWIG (http://www.swig.org). -# Version 3.0.12 -# -# Do not make changes to this file unless you know what you are doing--modify -# the SWIG interface file instead. - -from sys import version_info as _swig_python_version_info -if _swig_python_version_info >= (2, 7, 0): - def swig_import_helper(): - import importlib - pkg = __name__.rpartition('.')[0] - mname = '.'.join((pkg, '_skycoin')).lstrip('.') - try: - return importlib.import_module(mname) - except ImportError: - return importlib.import_module('_skycoin') - _skycoin = swig_import_helper() - del swig_import_helper -elif _swig_python_version_info >= (2, 6, 0): - def swig_import_helper(): - from os.path import dirname - import imp - fp = None - try: - fp, pathname, description = imp.find_module('_skycoin', [dirname(__file__)]) - except ImportError: - import _skycoin - return _skycoin - try: - _mod = imp.load_module('_skycoin', fp, pathname, description) - finally: - if fp is not None: - fp.close() - return _mod - _skycoin = swig_import_helper() - del swig_import_helper -else: - import _skycoin -del _swig_python_version_info - -try: - _swig_property = property -except NameError: - pass # Python < 2.2 doesn't have 'property'. - -try: - import builtins as __builtin__ -except ImportError: - import __builtin__ - -def _swig_setattr_nondynamic(self, class_type, name, value, static=1): - if (name == "thisown"): - return self.this.own(value) - if (name == "this"): - if type(value).__name__ == 'SwigPyObject': - self.__dict__[name] = value - return - method = class_type.__swig_setmethods__.get(name, None) - if method: - return method(self, value) - if (not static): - if _newclass: - object.__setattr__(self, name, value) - else: - self.__dict__[name] = value - else: - raise AttributeError("You cannot add attributes to %s" % self) - - -def _swig_setattr(self, class_type, name, value): - return _swig_setattr_nondynamic(self, class_type, name, value, 0) - - -def _swig_getattr(self, class_type, name): - if (name == "thisown"): - return self.this.own() - method = class_type.__swig_getmethods__.get(name, None) - if method: - return method(self) - raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) - - -def _swig_repr(self): - try: - strthis = "proxy of " + self.this.__repr__() - except __builtin__.Exception: - strthis = "" - return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) - -try: - _object = object - _newclass = 1 -except __builtin__.Exception: - class _object: - pass - _newclass = 0 - - -def equalSlices(slice1, slice2, elem_size): - return _skycoin.equalSlices(slice1, slice2, elem_size) -equalSlices = _skycoin.equalSlices - -def equalTransactions(t1, t2): - return _skycoin.equalTransactions(t1, t2) -equalTransactions = _skycoin.equalTransactions - -def equalTransactionsArrays(pTxs1, pTxs2): - return _skycoin.equalTransactionsArrays(pTxs1, pTxs2) -equalTransactionsArrays = _skycoin.equalTransactionsArrays - -def equalBlockHeaders(bh1, bh2): - return _skycoin.equalBlockHeaders(bh1, bh2) -equalBlockHeaders = _skycoin.equalBlockHeaders - -def destroy_cipher_SecKeys(p): - return _skycoin.destroy_cipher_SecKeys(p) -destroy_cipher_SecKeys = _skycoin.destroy_cipher_SecKeys - -def destroy_cipher_PubKeys(p): - return _skycoin.destroy_cipher_PubKeys(p) -destroy_cipher_PubKeys = _skycoin.destroy_cipher_PubKeys - -def wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n): - return _skycoin.wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n) -wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed - -def SKY_params_GetDistributionAddresses(): - return _skycoin.SKY_params_GetDistributionAddresses() -SKY_params_GetDistributionAddresses = _skycoin.SKY_params_GetDistributionAddresses - -def SKY_params_GetUnlockedDistributionAddresses(): - return _skycoin.SKY_params_GetUnlockedDistributionAddresses() -SKY_params_GetUnlockedDistributionAddresses = _skycoin.SKY_params_GetUnlockedDistributionAddresses - -def SKY_params_GetLockedDistributionAddresses(): - return _skycoin.SKY_params_GetLockedDistributionAddresses() -SKY_params_GetLockedDistributionAddresses = _skycoin.SKY_params_GetLockedDistributionAddresses -class cipher_PubKey(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_PubKey, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_PubKey, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher_PubKey___eq__(self, a) - - def compareToString(self, str): - return _skycoin.cipher_PubKey_compareToString(self, str) - - def toStr(self): - return _skycoin.cipher_PubKey_toStr(self) - - def assignFrom(self, data): - return _skycoin.cipher_PubKey_assignFrom(self, data) - - def assignTo(self, data): - return _skycoin.cipher_PubKey_assignTo(self, data) - __swig_setmethods__["data"] = _skycoin.cipher_PubKey_data_set - __swig_getmethods__["data"] = _skycoin.cipher_PubKey_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_PubKey_data_get, _skycoin.cipher_PubKey_data_set) - - def __init__(self): - this = _skycoin.new_cipher_PubKey() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_PubKey - __del__ = lambda self: None -cipher_PubKey_swigregister = _skycoin.cipher_PubKey_swigregister -cipher_PubKey_swigregister(cipher_PubKey) - -class cipher_SecKey(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SecKey, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SecKey, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher_SecKey___eq__(self, a) - - def compareToString(self, str): - return _skycoin.cipher_SecKey_compareToString(self, str) - - def toStr(self): - return _skycoin.cipher_SecKey_toStr(self) - - def assignFrom(self, data): - return _skycoin.cipher_SecKey_assignFrom(self, data) - - def assignTo(self, data): - return _skycoin.cipher_SecKey_assignTo(self, data) - __swig_setmethods__["data"] = _skycoin.cipher_SecKey_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SecKey_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SecKey_data_get, _skycoin.cipher_SecKey_data_set) - - def __init__(self): - this = _skycoin.new_cipher_SecKey() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SecKey - __del__ = lambda self: None -cipher_SecKey_swigregister = _skycoin.cipher_SecKey_swigregister -cipher_SecKey_swigregister(cipher_SecKey) - -class cipher_Ripemd160(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Ripemd160, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Ripemd160, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher_Ripemd160___eq__(self, a) - - def compareToString(self, str): - return _skycoin.cipher_Ripemd160_compareToString(self, str) - - def toStr(self): - return _skycoin.cipher_Ripemd160_toStr(self) - - def assignFrom(self, data): - return _skycoin.cipher_Ripemd160_assignFrom(self, data) - - def assignTo(self, data): - return _skycoin.cipher_Ripemd160_assignTo(self, data) - __swig_setmethods__["data"] = _skycoin.cipher_Ripemd160_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Ripemd160_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Ripemd160_data_get, _skycoin.cipher_Ripemd160_data_set) - - def __init__(self): - this = _skycoin.new_cipher_Ripemd160() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Ripemd160 - __del__ = lambda self: None -cipher_Ripemd160_swigregister = _skycoin.cipher_Ripemd160_swigregister -cipher_Ripemd160_swigregister(cipher_Ripemd160) - -class cipher_Sig(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Sig, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Sig, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher_Sig___eq__(self, a) - - def compareToString(self, str): - return _skycoin.cipher_Sig_compareToString(self, str) - - def toStr(self): - return _skycoin.cipher_Sig_toStr(self) - - def assignFrom(self, data): - return _skycoin.cipher_Sig_assignFrom(self, data) - - def assignTo(self, data): - return _skycoin.cipher_Sig_assignTo(self, data) - __swig_setmethods__["data"] = _skycoin.cipher_Sig_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Sig_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Sig_data_get, _skycoin.cipher_Sig_data_set) - - def __init__(self): - this = _skycoin.new_cipher_Sig() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Sig - __del__ = lambda self: None -cipher_Sig_swigregister = _skycoin.cipher_Sig_swigregister -cipher_Sig_swigregister(cipher_Sig) - -class cipher_SHA256(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SHA256, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SHA256, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher_SHA256___eq__(self, a) - - def compareToString(self, str): - return _skycoin.cipher_SHA256_compareToString(self, str) - - def toStr(self): - return _skycoin.cipher_SHA256_toStr(self) - - def assignFrom(self, data): - return _skycoin.cipher_SHA256_assignFrom(self, data) - - def assignTo(self, data): - return _skycoin.cipher_SHA256_assignTo(self, data) - __swig_setmethods__["data"] = _skycoin.cipher_SHA256_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SHA256_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SHA256_data_get, _skycoin.cipher_SHA256_data_set) - - def __init__(self): - this = _skycoin.new_cipher_SHA256() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SHA256 - __del__ = lambda self: None -cipher_SHA256_swigregister = _skycoin.cipher_SHA256_swigregister -cipher_SHA256_swigregister(cipher_SHA256) - -class cipher_Checksum(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Checksum, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Checksum, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher_Checksum___eq__(self, a) - - def compareToString(self, str): - return _skycoin.cipher_Checksum_compareToString(self, str) - - def toStr(self): - return _skycoin.cipher_Checksum_toStr(self) - - def assignFrom(self, data): - return _skycoin.cipher_Checksum_assignFrom(self, data) - - def assignTo(self, data): - return _skycoin.cipher_Checksum_assignTo(self, data) - __swig_setmethods__["data"] = _skycoin.cipher_Checksum_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Checksum_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Checksum_data_get, _skycoin.cipher_Checksum_data_set) - - def __init__(self): - this = _skycoin.new_cipher_Checksum() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Checksum - __del__ = lambda self: None -cipher_Checksum_swigregister = _skycoin.cipher_Checksum_swigregister -cipher_Checksum_swigregister(cipher_Checksum) - -class cipher_SecKeys(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SecKeys, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SecKeys, name) - __repr__ = _swig_repr - - def getAt(self, i): - return _skycoin.cipher_SecKeys_getAt(self, i) - - def setAt(self, i, seckey): - return _skycoin.cipher_SecKeys_setAt(self, i, seckey) - - def __eq__(self, a): - return _skycoin.cipher_SecKeys___eq__(self, a) - - def allocate(self, n): - return _skycoin.cipher_SecKeys_allocate(self, n) - - def release(self): - return _skycoin.cipher_SecKeys_release(self) - __swig_setmethods__["data"] = _skycoin.cipher_SecKeys_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SecKeys_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SecKeys_data_get, _skycoin.cipher_SecKeys_data_set) - __swig_setmethods__["count"] = _skycoin.cipher_SecKeys_count_set - __swig_getmethods__["count"] = _skycoin.cipher_SecKeys_count_get - if _newclass: - count = _swig_property(_skycoin.cipher_SecKeys_count_get, _skycoin.cipher_SecKeys_count_set) - - def __init__(self): - this = _skycoin.new_cipher_SecKeys() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SecKeys - __del__ = lambda self: None -cipher_SecKeys_swigregister = _skycoin.cipher_SecKeys_swigregister -cipher_SecKeys_swigregister(cipher_SecKeys) - -class cipher_PubKeys(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_PubKeys, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_PubKeys, name) - __repr__ = _swig_repr - - def getAt(self, i): - return _skycoin.cipher_PubKeys_getAt(self, i) - - def setAt(self, i, pubkey): - return _skycoin.cipher_PubKeys_setAt(self, i, pubkey) - - def __eq__(self, a): - return _skycoin.cipher_PubKeys___eq__(self, a) - - def allocate(self, n): - return _skycoin.cipher_PubKeys_allocate(self, n) - - def release(self): - return _skycoin.cipher_PubKeys_release(self) - __swig_setmethods__["data"] = _skycoin.cipher_PubKeys_data_set - __swig_getmethods__["data"] = _skycoin.cipher_PubKeys_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_PubKeys_data_get, _skycoin.cipher_PubKeys_data_set) - __swig_setmethods__["count"] = _skycoin.cipher_PubKeys_count_set - __swig_getmethods__["count"] = _skycoin.cipher_PubKeys_count_get - if _newclass: - count = _swig_property(_skycoin.cipher_PubKeys_count_get, _skycoin.cipher_PubKeys_count_set) - - def __init__(self): - this = _skycoin.new_cipher_PubKeys() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_PubKeys - __del__ = lambda self: None -cipher_PubKeys_swigregister = _skycoin.cipher_PubKeys_swigregister -cipher_PubKeys_swigregister(cipher_PubKeys) - -class cipher_SHA256s(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SHA256s, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SHA256s, name) - __repr__ = _swig_repr - - def getAt(self, i): - return _skycoin.cipher_SHA256s_getAt(self, i) - - def setAt(self, i, hash): - return _skycoin.cipher_SHA256s_setAt(self, i, hash) - - def __eq__(self, a): - return _skycoin.cipher_SHA256s___eq__(self, a) - - def allocate(self, n): - return _skycoin.cipher_SHA256s_allocate(self, n) - - def release(self): - return _skycoin.cipher_SHA256s_release(self) - __swig_setmethods__["data"] = _skycoin.cipher_SHA256s_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SHA256s_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SHA256s_data_get, _skycoin.cipher_SHA256s_data_set) - __swig_setmethods__["count"] = _skycoin.cipher_SHA256s_count_set - __swig_getmethods__["count"] = _skycoin.cipher_SHA256s_count_get - if _newclass: - count = _swig_property(_skycoin.cipher_SHA256s_count_get, _skycoin.cipher_SHA256s_count_set) - - def __init__(self): - this = _skycoin.new_cipher_SHA256s() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SHA256s - __del__ = lambda self: None -cipher_SHA256s_swigregister = _skycoin.cipher_SHA256s_swigregister -cipher_SHA256s_swigregister(cipher_SHA256s) - -class coin_UxOutArray(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin_UxOutArray, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin_UxOutArray, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.coin_UxOutArray_data_set - __swig_getmethods__["data"] = _skycoin.coin_UxOutArray_data_get - if _newclass: - data = _swig_property(_skycoin.coin_UxOutArray_data_get, _skycoin.coin_UxOutArray_data_set) - __swig_setmethods__["count"] = _skycoin.coin_UxOutArray_count_set - __swig_getmethods__["count"] = _skycoin.coin_UxOutArray_count_get - if _newclass: - count = _swig_property(_skycoin.coin_UxOutArray_count_get, _skycoin.coin_UxOutArray_count_set) - - def __init__(self): - this = _skycoin.new_coin_UxOutArray() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin_UxOutArray - __del__ = lambda self: None -coin_UxOutArray_swigregister = _skycoin.coin_UxOutArray_swigregister -coin_UxOutArray_swigregister(coin_UxOutArray) - -class cipher_Addresses(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Addresses, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Addresses, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_Addresses_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Addresses_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Addresses_data_get, _skycoin.cipher_Addresses_data_set) - __swig_setmethods__["count"] = _skycoin.cipher_Addresses_count_set - __swig_getmethods__["count"] = _skycoin.cipher_Addresses_count_get - if _newclass: - count = _swig_property(_skycoin.cipher_Addresses_count_get, _skycoin.cipher_Addresses_count_set) - - def __init__(self): - this = _skycoin.new_cipher_Addresses() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Addresses - __del__ = lambda self: None -cipher_Addresses_swigregister = _skycoin.cipher_Addresses_swigregister -cipher_Addresses_swigregister(cipher_Addresses) - -class Fee_Calculator(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, Fee_Calculator, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, Fee_Calculator, name) - __repr__ = _swig_repr - __swig_setmethods__["callback"] = _skycoin.Fee_Calculator_callback_set - __swig_getmethods__["callback"] = _skycoin.Fee_Calculator_callback_get - if _newclass: - callback = _swig_property(_skycoin.Fee_Calculator_callback_get, _skycoin.Fee_Calculator_callback_set) - __swig_setmethods__["context"] = _skycoin.Fee_Calculator_context_set - __swig_getmethods__["context"] = _skycoin.Fee_Calculator_context_get - if _newclass: - context = _swig_property(_skycoin.Fee_Calculator_context_get, _skycoin.Fee_Calculator_context_set) - - def __init__(self): - this = _skycoin.new_Fee_Calculator() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_Fee_Calculator - __del__ = lambda self: None -Fee_Calculator_swigregister = _skycoin.Fee_Calculator_swigregister -Fee_Calculator_swigregister(Fee_Calculator) - -class _GoString_(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, _GoString_, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, _GoString_, name) - __repr__ = _swig_repr - __swig_setmethods__["p"] = _skycoin._GoString__p_set - __swig_getmethods__["p"] = _skycoin._GoString__p_get - if _newclass: - p = _swig_property(_skycoin._GoString__p_get, _skycoin._GoString__p_set) - __swig_setmethods__["n"] = _skycoin._GoString__n_set - __swig_getmethods__["n"] = _skycoin._GoString__n_get - if _newclass: - n = _swig_property(_skycoin._GoString__n_get, _skycoin._GoString__n_set) - - def __init__(self): - this = _skycoin.new__GoString_() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete__GoString_ - __del__ = lambda self: None -_GoString__swigregister = _skycoin._GoString__swigregister -_GoString__swigregister(_GoString_) - -class GoInterface(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, GoInterface, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, GoInterface, name) - __repr__ = _swig_repr - __swig_setmethods__["t"] = _skycoin.GoInterface_t_set - __swig_getmethods__["t"] = _skycoin.GoInterface_t_get - if _newclass: - t = _swig_property(_skycoin.GoInterface_t_get, _skycoin.GoInterface_t_set) - __swig_setmethods__["v"] = _skycoin.GoInterface_v_set - __swig_getmethods__["v"] = _skycoin.GoInterface_v_get - if _newclass: - v = _swig_property(_skycoin.GoInterface_v_get, _skycoin.GoInterface_v_set) - - def __init__(self): - this = _skycoin.new_GoInterface() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_GoInterface - __del__ = lambda self: None -GoInterface_swigregister = _skycoin.GoInterface_swigregister -GoInterface_swigregister(GoInterface) - -class GoSlice(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, GoSlice, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, GoSlice, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.GoSlice_data_set - __swig_getmethods__["data"] = _skycoin.GoSlice_data_get - if _newclass: - data = _swig_property(_skycoin.GoSlice_data_get, _skycoin.GoSlice_data_set) - __swig_setmethods__["len"] = _skycoin.GoSlice_len_set - __swig_getmethods__["len"] = _skycoin.GoSlice_len_get - if _newclass: - len = _swig_property(_skycoin.GoSlice_len_get, _skycoin.GoSlice_len_set) - __swig_setmethods__["cap"] = _skycoin.GoSlice_cap_set - __swig_getmethods__["cap"] = _skycoin.GoSlice_cap_get - if _newclass: - cap = _swig_property(_skycoin.GoSlice_cap_get, _skycoin.GoSlice_cap_set) - - def __init__(self): - this = _skycoin.new_GoSlice() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_GoSlice - __del__ = lambda self: None -GoSlice_swigregister = _skycoin.GoSlice_swigregister -GoSlice_swigregister(GoSlice) - - -def SKY_cli_GenerateWallet(p0, p2): - return _skycoin.SKY_cli_GenerateWallet(p0, p2) -SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet - -def SKY_cli_MakeAlphanumericSeed(): - return _skycoin.SKY_cli_MakeAlphanumericSeed() -SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed - -def SKY_api_NewClient(p0): - return _skycoin.SKY_api_NewClient(p0) -SKY_api_NewClient = _skycoin.SKY_api_NewClient - -def SKY_api_Client_CSRF(p0): - return _skycoin.SKY_api_Client_CSRF(p0) -SKY_api_Client_CSRF = _skycoin.SKY_api_Client_CSRF - -def SKY_api_Client_Version(p0): - return _skycoin.SKY_api_Client_Version(p0) -SKY_api_Client_Version = _skycoin.SKY_api_Client_Version - -def SKY_api_Client_Outputs(p0): - return _skycoin.SKY_api_Client_Outputs(p0) -SKY_api_Client_Outputs = _skycoin.SKY_api_Client_Outputs - -def SKY_api_Client_OutputsForAddresses(p0, p1): - return _skycoin.SKY_api_Client_OutputsForAddresses(p0, p1) -SKY_api_Client_OutputsForAddresses = _skycoin.SKY_api_Client_OutputsForAddresses - -def SKY_api_Client_OutputsForHashes(p0, p1): - return _skycoin.SKY_api_Client_OutputsForHashes(p0, p1) -SKY_api_Client_OutputsForHashes = _skycoin.SKY_api_Client_OutputsForHashes - -def SKY_api_Client_CoinSupply(p0): - return _skycoin.SKY_api_Client_CoinSupply(p0) -SKY_api_Client_CoinSupply = _skycoin.SKY_api_Client_CoinSupply - -def SKY_api_Client_BlockByHash(p0, p1): - return _skycoin.SKY_api_Client_BlockByHash(p0, p1) -SKY_api_Client_BlockByHash = _skycoin.SKY_api_Client_BlockByHash - -def SKY_api_Client_BlockBySeq(p0, p1): - return _skycoin.SKY_api_Client_BlockBySeq(p0, p1) -SKY_api_Client_BlockBySeq = _skycoin.SKY_api_Client_BlockBySeq - -def SKY_api_Client_Blocks(p0, p1): - return _skycoin.SKY_api_Client_Blocks(p0, p1) -SKY_api_Client_Blocks = _skycoin.SKY_api_Client_Blocks - -def SKY_api_Client_LastBlocks(p0, p1): - return _skycoin.SKY_api_Client_LastBlocks(p0, p1) -SKY_api_Client_LastBlocks = _skycoin.SKY_api_Client_LastBlocks - -def SKY_api_Client_BlockchainMetadata(p0): - return _skycoin.SKY_api_Client_BlockchainMetadata(p0) -SKY_api_Client_BlockchainMetadata = _skycoin.SKY_api_Client_BlockchainMetadata - -def SKY_api_Client_BlockchainProgress(p0): - return _skycoin.SKY_api_Client_BlockchainProgress(p0) -SKY_api_Client_BlockchainProgress = _skycoin.SKY_api_Client_BlockchainProgress - -def SKY_api_Client_Balance(p0, p1, p2): - return _skycoin.SKY_api_Client_Balance(p0, p1, p2) -SKY_api_Client_Balance = _skycoin.SKY_api_Client_Balance - -def SKY_api_Client_UxOut(p0, p1): - return _skycoin.SKY_api_Client_UxOut(p0, p1) -SKY_api_Client_UxOut = _skycoin.SKY_api_Client_UxOut - -def SKY_api_Client_AddressUxOuts(p0, p1): - return _skycoin.SKY_api_Client_AddressUxOuts(p0, p1) -SKY_api_Client_AddressUxOuts = _skycoin.SKY_api_Client_AddressUxOuts - -def SKY_api_Client_Wallet(p0, p1): - return _skycoin.SKY_api_Client_Wallet(p0, p1) -SKY_api_Client_Wallet = _skycoin.SKY_api_Client_Wallet - -def SKY_api_Client_Wallets(p0): - return _skycoin.SKY_api_Client_Wallets(p0) -SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets - -def SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3): - return _skycoin.SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3) -SKY_api_Client_CreateUnencryptedWallet = _skycoin.SKY_api_Client_CreateUnencryptedWallet - -def SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4): - return _skycoin.SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4) -SKY_api_Client_CreateEncryptedWallet = _skycoin.SKY_api_Client_CreateEncryptedWallet - -def SKY_api_Client_NewWalletAddress(p0, p1, p2, p3): - return _skycoin.SKY_api_Client_NewWalletAddress(p0, p1, p2, p3) -SKY_api_Client_NewWalletAddress = _skycoin.SKY_api_Client_NewWalletAddress - -def SKY_api_Client_WalletBalance(p0, p1, p2): - return _skycoin.SKY_api_Client_WalletBalance(p0, p1, p2) -SKY_api_Client_WalletBalance = _skycoin.SKY_api_Client_WalletBalance - -def SKY_api_Client_Spend(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_api_Client_Spend(p0, p1, p2, p3, p4, p5) -SKY_api_Client_Spend = _skycoin.SKY_api_Client_Spend - -def SKY_api_Client_CreateTransaction(p0): - return _skycoin.SKY_api_Client_CreateTransaction(p0) -SKY_api_Client_CreateTransaction = _skycoin.SKY_api_Client_CreateTransaction - -def SKY_api_Client_UpdateWallet(p0, p1, p2): - return _skycoin.SKY_api_Client_UpdateWallet(p0, p1, p2) -SKY_api_Client_UpdateWallet = _skycoin.SKY_api_Client_UpdateWallet - -def SKY_api_Client_WalletFolderName(p0): - return _skycoin.SKY_api_Client_WalletFolderName(p0) -SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName - -def SKY_api_Client_NewSeed(p0, p1): - return _skycoin.SKY_api_Client_NewSeed(p0, p1) -SKY_api_Client_NewSeed = _skycoin.SKY_api_Client_NewSeed - -def SKY_api_Client_WalletSeed(p0, p1, p2): - return _skycoin.SKY_api_Client_WalletSeed(p0, p1, p2) -SKY_api_Client_WalletSeed = _skycoin.SKY_api_Client_WalletSeed - -def SKY_api_Client_NetworkConnection(p0, p1): - return _skycoin.SKY_api_Client_NetworkConnection(p0, p1) -SKY_api_Client_NetworkConnection = _skycoin.SKY_api_Client_NetworkConnection - -def SKY_api_Client_NetworkConnections(p0, p1): - return _skycoin.SKY_api_Client_NetworkConnections(p0, p1) -SKY_api_Client_NetworkConnections = _skycoin.SKY_api_Client_NetworkConnections - -def SKY_api_Client_NetworkDefaultPeers(p0): - return _skycoin.SKY_api_Client_NetworkDefaultPeers(p0) -SKY_api_Client_NetworkDefaultPeers = _skycoin.SKY_api_Client_NetworkDefaultPeers - -def SKY_api_Client_NetworkTrustedPeers(p0): - return _skycoin.SKY_api_Client_NetworkTrustedPeers(p0) -SKY_api_Client_NetworkTrustedPeers = _skycoin.SKY_api_Client_NetworkTrustedPeers - -def SKY_api_Client_NetworkExchangedPeers(p0): - return _skycoin.SKY_api_Client_NetworkExchangedPeers(p0) -SKY_api_Client_NetworkExchangedPeers = _skycoin.SKY_api_Client_NetworkExchangedPeers - -def SKY_api_Client_PendingTransactions(p0): - return _skycoin.SKY_api_Client_PendingTransactions(p0) -SKY_api_Client_PendingTransactions = _skycoin.SKY_api_Client_PendingTransactions - -def SKY_api_Client_Transaction(p0, p1): - return _skycoin.SKY_api_Client_Transaction(p0, p1) -SKY_api_Client_Transaction = _skycoin.SKY_api_Client_Transaction - -def SKY_api_Client_Transactions(p0, p1): - return _skycoin.SKY_api_Client_Transactions(p0, p1) -SKY_api_Client_Transactions = _skycoin.SKY_api_Client_Transactions - -def SKY_api_Client_ConfirmedTransactions(p0, p1): - return _skycoin.SKY_api_Client_ConfirmedTransactions(p0, p1) -SKY_api_Client_ConfirmedTransactions = _skycoin.SKY_api_Client_ConfirmedTransactions - -def SKY_api_Client_UnconfirmedTransactions(p0, p1): - return _skycoin.SKY_api_Client_UnconfirmedTransactions(p0, p1) -SKY_api_Client_UnconfirmedTransactions = _skycoin.SKY_api_Client_UnconfirmedTransactions - -def SKY_api_Client_InjectTransaction(p0, p1): - return _skycoin.SKY_api_Client_InjectTransaction(p0, p1) -SKY_api_Client_InjectTransaction = _skycoin.SKY_api_Client_InjectTransaction - -def SKY_api_Client_ResendUnconfirmedTransactions(p0): - return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) -SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions - -def SKY_api_Client_RawTransaction(p0, p1): - return _skycoin.SKY_api_Client_RawTransaction(p0, p1) -SKY_api_Client_RawTransaction = _skycoin.SKY_api_Client_RawTransaction - -def SKY_api_Client_AddressTransactions(p0, p1): - return _skycoin.SKY_api_Client_AddressTransactions(p0, p1) -SKY_api_Client_AddressTransactions = _skycoin.SKY_api_Client_AddressTransactions - -def SKY_api_Client_Richlist(p0, p1): - return _skycoin.SKY_api_Client_Richlist(p0, p1) -SKY_api_Client_Richlist = _skycoin.SKY_api_Client_Richlist - -def SKY_api_Client_AddressCount(p0): - return _skycoin.SKY_api_Client_AddressCount(p0) -SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount - -def SKY_api_Client_UnloadWallet(p0, p1): - return _skycoin.SKY_api_Client_UnloadWallet(p0, p1) -SKY_api_Client_UnloadWallet = _skycoin.SKY_api_Client_UnloadWallet - -def SKY_api_Client_Health(p0): - return _skycoin.SKY_api_Client_Health(p0) -SKY_api_Client_Health = _skycoin.SKY_api_Client_Health - -def SKY_api_Client_EncryptWallet(p0, p1, p2): - return _skycoin.SKY_api_Client_EncryptWallet(p0, p1, p2) -SKY_api_Client_EncryptWallet = _skycoin.SKY_api_Client_EncryptWallet - -def SKY_api_Client_DecryptWallet(p0, p1, p2): - return _skycoin.SKY_api_Client_DecryptWallet(p0, p1, p2) -SKY_api_Client_DecryptWallet = _skycoin.SKY_api_Client_DecryptWallet - -def SKY_api_NewCreateTransactionResponse(p0, p1): - return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) -SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse - -def SKY_api_NewCreatedTransaction(p0, p1): - return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) -SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction - -def SKY_api_CreatedTransaction_ToTransaction(p0): - return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) -SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction - -def SKY_api_NewCreatedTransactionOutput(p0, p1): - return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) -SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput - -def SKY_api_NewCreatedTransactionInput(p0): - return _skycoin.SKY_api_NewCreatedTransactionInput(p0) -SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput - -def SKY_api_NewWalletResponse(p0): - return _skycoin.SKY_api_NewWalletResponse(p0) -SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse - -def SKY_webrpc_NewClient(p0): - return _skycoin.SKY_webrpc_NewClient(p0) -SKY_webrpc_NewClient = _skycoin.SKY_webrpc_NewClient - -def SKY_webrpc_Client_CSRF(p0): - return _skycoin.SKY_webrpc_Client_CSRF(p0) -SKY_webrpc_Client_CSRF = _skycoin.SKY_webrpc_Client_CSRF - -def SKY_webrpc_Client_InjectTransaction(p0, p1): - return _skycoin.SKY_webrpc_Client_InjectTransaction(p0, p1) -SKY_webrpc_Client_InjectTransaction = _skycoin.SKY_webrpc_Client_InjectTransaction - -def SKY_webrpc_Client_GetStatus(p0, p1): - return _skycoin.SKY_webrpc_Client_GetStatus(p0, p1) -SKY_webrpc_Client_GetStatus = _skycoin.SKY_webrpc_Client_GetStatus - -def SKY_webrpc_Client_GetTransactionByID(p0, p1, p2): - return _skycoin.SKY_webrpc_Client_GetTransactionByID(p0, p1, p2) -SKY_webrpc_Client_GetTransactionByID = _skycoin.SKY_webrpc_Client_GetTransactionByID - -def SKY_webrpc_Client_GetAddressUxOuts(p0, p1): - return _skycoin.SKY_webrpc_Client_GetAddressUxOuts(p0, p1) -SKY_webrpc_Client_GetAddressUxOuts = _skycoin.SKY_webrpc_Client_GetAddressUxOuts - -def SKY_webrpc_Client_GetBlocksInRange(p0, p1, p2): - return _skycoin.SKY_webrpc_Client_GetBlocksInRange(p0, p1, p2) -SKY_webrpc_Client_GetBlocksInRange = _skycoin.SKY_webrpc_Client_GetBlocksInRange - -def SKY_webrpc_Client_GetBlocksBySeq(p0, p1): - return _skycoin.SKY_webrpc_Client_GetBlocksBySeq(p0, p1) -SKY_webrpc_Client_GetBlocksBySeq = _skycoin.SKY_webrpc_Client_GetBlocksBySeq - -def SKY_webrpc_Client_GetLastBlocks(p0, p1): - return _skycoin.SKY_webrpc_Client_GetLastBlocks(p0, p1) -SKY_webrpc_Client_GetLastBlocks = _skycoin.SKY_webrpc_Client_GetLastBlocks - -def SKY_cipher_DecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) -SKY_cipher_DecodeBase58Address = _skycoin.SKY_cipher_DecodeBase58Address - -def SKY_cipher_AddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_AddressFromBytes(p0, p1) -SKY_cipher_AddressFromBytes = _skycoin.SKY_cipher_AddressFromBytes - -def SKY_cipher_AddressFromPubKey(p0, p1): - return _skycoin.SKY_cipher_AddressFromPubKey(p0, p1) -SKY_cipher_AddressFromPubKey = _skycoin.SKY_cipher_AddressFromPubKey - -def SKY_cipher_AddressFromSecKey(p0, p1): - return _skycoin.SKY_cipher_AddressFromSecKey(p0, p1) -SKY_cipher_AddressFromSecKey = _skycoin.SKY_cipher_AddressFromSecKey - -def SKY_cipher_Address_Null(p0): - return _skycoin.SKY_cipher_Address_Null(p0) -SKY_cipher_Address_Null = _skycoin.SKY_cipher_Address_Null - -def SKY_cipher_Address_Bytes(p0): - return _skycoin.SKY_cipher_Address_Bytes(p0) -SKY_cipher_Address_Bytes = _skycoin.SKY_cipher_Address_Bytes - -def SKY_cipher_Address_Verify(p0, p1): - return _skycoin.SKY_cipher_Address_Verify(p0, p1) -SKY_cipher_Address_Verify = _skycoin.SKY_cipher_Address_Verify - -def SKY_cipher_Address_String(p0): - return _skycoin.SKY_cipher_Address_String(p0) -SKY_cipher_Address_String = _skycoin.SKY_cipher_Address_String - -def SKY_cipher_Address_Checksum(p0, p1): - return _skycoin.SKY_cipher_Address_Checksum(p0, p1) -SKY_cipher_Address_Checksum = _skycoin.SKY_cipher_Address_Checksum - -def SKY_base58_String2Hex(p0): - return _skycoin.SKY_base58_String2Hex(p0) -SKY_base58_String2Hex = _skycoin.SKY_base58_String2Hex - -def SKY_base58_Base58_ToInt(p0): - return _skycoin.SKY_base58_Base58_ToInt(p0) -SKY_base58_Base58_ToInt = _skycoin.SKY_base58_Base58_ToInt - -def SKY_base58_Base58_ToHex(p0): - return _skycoin.SKY_base58_Base58_ToHex(p0) -SKY_base58_Base58_ToHex = _skycoin.SKY_base58_Base58_ToHex - -def SKY_base58_Base58_Base582Int(p0): - return _skycoin.SKY_base58_Base58_Base582Int(p0) -SKY_base58_Base58_Base582Int = _skycoin.SKY_base58_Base58_Base582Int - -def SKY_base58_Base582Hex(p0): - return _skycoin.SKY_base58_Base582Hex(p0) -SKY_base58_Base582Hex = _skycoin.SKY_base58_Base582Hex - -def SKY_base58_Base58_BitHex(p0): - return _skycoin.SKY_base58_Base58_BitHex(p0) -SKY_base58_Base58_BitHex = _skycoin.SKY_base58_Base58_BitHex - -def SKY_base58_Int2Base58(p0): - return _skycoin.SKY_base58_Int2Base58(p0) -SKY_base58_Int2Base58 = _skycoin.SKY_base58_Int2Base58 - -def SKY_base58_Hex2Base58(p0): - return _skycoin.SKY_base58_Hex2Base58(p0) -SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 - -def SKY_base58_Hex2Base58String(p0): - return _skycoin.SKY_base58_Hex2Base58String(p0) -SKY_base58_Hex2Base58String = _skycoin.SKY_base58_Hex2Base58String - -def SKY_base58_Hex2Base58Str(p0): - return _skycoin.SKY_base58_Hex2Base58Str(p0) -SKY_base58_Hex2Base58Str = _skycoin.SKY_base58_Hex2Base58Str - -def SKY_cipher_DecodeBase58BitcoinAddress(p0, p1): - return _skycoin.SKY_cipher_DecodeBase58BitcoinAddress(p0, p1) -SKY_cipher_DecodeBase58BitcoinAddress = _skycoin.SKY_cipher_DecodeBase58BitcoinAddress - -def SKY_cipher_BitcoinAddressFromPubKey(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromPubKey(p0, p1) -SKY_cipher_BitcoinAddressFromPubKey = _skycoin.SKY_cipher_BitcoinAddressFromPubKey - -def SKY_cipher_BitcoinAddressFromSecKey(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromSecKey(p0, p1) -SKY_cipher_BitcoinAddressFromSecKey = _skycoin.SKY_cipher_BitcoinAddressFromSecKey - -def SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0): - return _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0) -SKY_cipher_BitcoinWalletImportFormatFromSeckey = _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey - -def SKY_cipher_BitcoinAddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromBytes(p0, p1) -SKY_cipher_BitcoinAddressFromBytes = _skycoin.SKY_cipher_BitcoinAddressFromBytes - -def SKY_cipher_SecKeyFromBitcoinWalletImportFormat(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(p0, p1) -SKY_cipher_SecKeyFromBitcoinWalletImportFormat = _skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat - -def SKY_cipher_BitcoinAddress_Null(p0): - return _skycoin.SKY_cipher_BitcoinAddress_Null(p0) -SKY_cipher_BitcoinAddress_Null = _skycoin.SKY_cipher_BitcoinAddress_Null - -def SKY_cipher_BitcoinAddress_Bytes(p0): - return _skycoin.SKY_cipher_BitcoinAddress_Bytes(p0) -SKY_cipher_BitcoinAddress_Bytes = _skycoin.SKY_cipher_BitcoinAddress_Bytes - -def SKY_cipher_BitcoinAddress_Verify(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddress_Verify(p0, p1) -SKY_cipher_BitcoinAddress_Verify = _skycoin.SKY_cipher_BitcoinAddress_Verify - -def SKY_cipher_BitcoinAddress_String(p0): - return _skycoin.SKY_cipher_BitcoinAddress_String(p0) -SKY_cipher_BitcoinAddress_String = _skycoin.SKY_cipher_BitcoinAddress_String - -def SKY_cipher_BitcoinAddress_Checksum(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddress_Checksum(p0, p1) -SKY_cipher_BitcoinAddress_Checksum = _skycoin.SKY_cipher_BitcoinAddress_Checksum - -def SKY_cipher_RandByte(p0): - return _skycoin.SKY_cipher_RandByte(p0) -SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte - -def SKY_cipher_NewPubKey(p0, p1): - return _skycoin.SKY_cipher_NewPubKey(p0, p1) -SKY_cipher_NewPubKey = _skycoin.SKY_cipher_NewPubKey - -def SKY_cipher_PubKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromHex(p0, p1) -SKY_cipher_PubKeyFromHex = _skycoin.SKY_cipher_PubKeyFromHex - -def SKY_cipher_PubKeyFromSecKey(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromSecKey(p0, p1) -SKY_cipher_PubKeyFromSecKey = _skycoin.SKY_cipher_PubKeyFromSecKey - -def SKY_cipher_PubKeyFromSig(p0, p1, p2): - return _skycoin.SKY_cipher_PubKeyFromSig(p0, p1, p2) -SKY_cipher_PubKeyFromSig = _skycoin.SKY_cipher_PubKeyFromSig - -def SKY_cipher_PubKey_Verify(p0): - return _skycoin.SKY_cipher_PubKey_Verify(p0) -SKY_cipher_PubKey_Verify = _skycoin.SKY_cipher_PubKey_Verify - -def SKY_cipher_PubKey_Hex(p0): - return _skycoin.SKY_cipher_PubKey_Hex(p0) -SKY_cipher_PubKey_Hex = _skycoin.SKY_cipher_PubKey_Hex - -def SKY_cipher_PubKeyRipemd160(p0, p1): - return _skycoin.SKY_cipher_PubKeyRipemd160(p0, p1) -SKY_cipher_PubKeyRipemd160 = _skycoin.SKY_cipher_PubKeyRipemd160 - -def SKY_cipher_NewSecKey(p0, p1): - return _skycoin.SKY_cipher_NewSecKey(p0, p1) -SKY_cipher_NewSecKey = _skycoin.SKY_cipher_NewSecKey - -def SKY_cipher_SecKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromHex(p0, p1) -SKY_cipher_SecKeyFromHex = _skycoin.SKY_cipher_SecKeyFromHex - -def SKY_cipher_SecKey_Verify(p0): - return _skycoin.SKY_cipher_SecKey_Verify(p0) -SKY_cipher_SecKey_Verify = _skycoin.SKY_cipher_SecKey_Verify - -def SKY_cipher_SecKey_Hex(p0): - return _skycoin.SKY_cipher_SecKey_Hex(p0) -SKY_cipher_SecKey_Hex = _skycoin.SKY_cipher_SecKey_Hex - -def SKY_cipher_ECDH(p0, p1): - return _skycoin.SKY_cipher_ECDH(p0, p1) -SKY_cipher_ECDH = _skycoin.SKY_cipher_ECDH - -def SKY_cipher_NewSig(p0, p1): - return _skycoin.SKY_cipher_NewSig(p0, p1) -SKY_cipher_NewSig = _skycoin.SKY_cipher_NewSig - -def SKY_cipher_SigFromHex(p0, p1): - return _skycoin.SKY_cipher_SigFromHex(p0, p1) -SKY_cipher_SigFromHex = _skycoin.SKY_cipher_SigFromHex - -def SKY_cipher_Sig_Hex(p0): - return _skycoin.SKY_cipher_Sig_Hex(p0) -SKY_cipher_Sig_Hex = _skycoin.SKY_cipher_Sig_Hex - -def SKY_cipher_SignHash(p0, p1, p2): - return _skycoin.SKY_cipher_SignHash(p0, p1, p2) -SKY_cipher_SignHash = _skycoin.SKY_cipher_SignHash - -def SKY_cipher_VerifyAddressSignedHash(p0, p1, p2): - return _skycoin.SKY_cipher_VerifyAddressSignedHash(p0, p1, p2) -SKY_cipher_VerifyAddressSignedHash = _skycoin.SKY_cipher_VerifyAddressSignedHash - -def SKY_cipher_VerifySignedHash(p0, p1): - return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) -SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash - -def SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2): - return _skycoin.SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2) -SKY_cipher_VerifyPubKeySignedHash = _skycoin.SKY_cipher_VerifyPubKeySignedHash - -def SKY_cipher_GenerateKeyPair(p0, p1): - return _skycoin.SKY_cipher_GenerateKeyPair(p0, p1) -SKY_cipher_GenerateKeyPair = _skycoin.SKY_cipher_GenerateKeyPair - -def SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2) -SKY_cipher_GenerateDeterministicKeyPair = _skycoin.SKY_cipher_GenerateDeterministicKeyPair - -def SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3): - return _skycoin.SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3) -SKY_cipher_DeterministicKeyPairIterator = _skycoin.SKY_cipher_DeterministicKeyPairIterator - -def SKY_cipher_GenerateDeterministicKeyPairs(*args): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairs(*args) -SKY_cipher_GenerateDeterministicKeyPairs = _skycoin.SKY_cipher_GenerateDeterministicKeyPairs - -def SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1) -SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed - -def SKY_cipher_CheckSecKey(p0): - return _skycoin.SKY_cipher_CheckSecKey(p0) -SKY_cipher_CheckSecKey = _skycoin.SKY_cipher_CheckSecKey - -def SKY_cipher_CheckSecKeyHash(p0, p1): - return _skycoin.SKY_cipher_CheckSecKeyHash(p0, p1) -SKY_cipher_CheckSecKeyHash = _skycoin.SKY_cipher_CheckSecKeyHash - -def SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2): - return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2) -SKY_encrypt_ScryptChacha20poly1305_Encrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt - -def SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2): - return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2) -SKY_encrypt_ScryptChacha20poly1305_Decrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt - -def SKY_bip39_NewDefaultMnemomic(): - return _skycoin.SKY_bip39_NewDefaultMnemomic() -SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic - -def SKY_bip39_NewEntropy(p0): - return _skycoin.SKY_bip39_NewEntropy(p0) -SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy - -def SKY_bip39_NewMnemonic(p0): - return _skycoin.SKY_bip39_NewMnemonic(p0) -SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic - -def SKY_bip39_MnemonicToByteArray(p0): - return _skycoin.SKY_bip39_MnemonicToByteArray(p0) -SKY_bip39_MnemonicToByteArray = _skycoin.SKY_bip39_MnemonicToByteArray - -def SKY_bip39_IsMnemonicValid(p0): - return _skycoin.SKY_bip39_IsMnemonicValid(p0) -SKY_bip39_IsMnemonicValid = _skycoin.SKY_bip39_IsMnemonicValid - -def SKY_cipher_Ripemd160_Set(p0, p1): - return _skycoin.SKY_cipher_Ripemd160_Set(p0, p1) -SKY_cipher_Ripemd160_Set = _skycoin.SKY_cipher_Ripemd160_Set - -def SKY_cipher_HashRipemd160(p0, p1): - return _skycoin.SKY_cipher_HashRipemd160(p0, p1) -SKY_cipher_HashRipemd160 = _skycoin.SKY_cipher_HashRipemd160 - -def SKY_cipher_SHA256_Set(p0, p1): - return _skycoin.SKY_cipher_SHA256_Set(p0, p1) -SKY_cipher_SHA256_Set = _skycoin.SKY_cipher_SHA256_Set - -def SKY_cipher_SHA256_Hex(p0): - return _skycoin.SKY_cipher_SHA256_Hex(p0) -SKY_cipher_SHA256_Hex = _skycoin.SKY_cipher_SHA256_Hex - -def SKY_cipher_SHA256_Xor(p0, p1, p2): - return _skycoin.SKY_cipher_SHA256_Xor(p0, p1, p2) -SKY_cipher_SHA256_Xor = _skycoin.SKY_cipher_SHA256_Xor - -def SKY_cipher_SumSHA256(p0, p1): - return _skycoin.SKY_cipher_SumSHA256(p0, p1) -SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 - -def SKY_cipher_SHA256FromHex(p0, p1): - return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) -SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex - -def SKY_cipher_DoubleSHA256(p0, p1): - return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) -SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 - -def SKY_cipher_AddSHA256(p0, p1, p2): - return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) -SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 - -def SKY_cipher_Merkle(p0, p1): - return _skycoin.SKY_cipher_Merkle(p0, p1) -SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle - -def SKY_cipher_SHA256_Null(p0): - return _skycoin.SKY_cipher_SHA256_Null(p0) -SKY_cipher_SHA256_Null = _skycoin.SKY_cipher_SHA256_Null - -def SKY_cli_AddPrivateKey(p0, p1): - return _skycoin.SKY_cli_AddPrivateKey(p0, p1) -SKY_cli_AddPrivateKey = _skycoin.SKY_cli_AddPrivateKey - -def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): - return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) -SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile - -def SKY_cli_CheckWalletBalance(p0, p1, p2): - return _skycoin.SKY_cli_CheckWalletBalance(p0, p1, p2) -SKY_cli_CheckWalletBalance = _skycoin.SKY_cli_CheckWalletBalance - -def SKY_cli_GetBalanceOfAddresses(p0, p1, p2): - return _skycoin.SKY_cli_GetBalanceOfAddresses(p0, p1, p2) -SKY_cli_GetBalanceOfAddresses = _skycoin.SKY_cli_GetBalanceOfAddresses - -def SKY_cli_LoadConfig(): - return _skycoin.SKY_cli_LoadConfig() -SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig - -def SKY_cli_Config_FullWalletPath(p0): - return _skycoin.SKY_cli_Config_FullWalletPath(p0) -SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath - -def SKY_cli_Config_FullDBPath(p0): - return _skycoin.SKY_cli_Config_FullDBPath(p0) -SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath - -def SKY_cli_NewApp(p0): - return _skycoin.SKY_cli_NewApp(p0) -SKY_cli_NewApp = _skycoin.SKY_cli_NewApp - -def SKY_cli_RPCClientFromContext(p0): - return _skycoin.SKY_cli_RPCClientFromContext(p0) -SKY_cli_RPCClientFromContext = _skycoin.SKY_cli_RPCClientFromContext - -def SKY_cli_ConfigFromContext(p0): - return _skycoin.SKY_cli_ConfigFromContext(p0) -SKY_cli_ConfigFromContext = _skycoin.SKY_cli_ConfigFromContext - -def SKY_cli_PasswordFromBytes_Password(): - return _skycoin.SKY_cli_PasswordFromBytes_Password() -SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password - -def SKY_cli_PasswordFromTerm_Password(): - return _skycoin.SKY_cli_PasswordFromTerm_Password() -SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password - -def SKY_cli_CreateRawTxFromWallet(p0, p1, p2, p3, p4): - return _skycoin.SKY_cli_CreateRawTxFromWallet(p0, p1, p2, p3, p4) -SKY_cli_CreateRawTxFromWallet = _skycoin.SKY_cli_CreateRawTxFromWallet - -def SKY_cli_CreateRawTxFromAddress(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_cli_CreateRawTxFromAddress(p0, p1, p2, p3, p4, p5) -SKY_cli_CreateRawTxFromAddress = _skycoin.SKY_cli_CreateRawTxFromAddress - -def SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5) -SKY_cli_CreateRawTx = _skycoin.SKY_cli_CreateRawTx - -def SKY_cli_NewTransaction(p0, p1, p2): - return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) -SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction - -def SKY_cli_GenerateAddressesInFile(p0, p1, p2): - return _skycoin.SKY_cli_GenerateAddressesInFile(p0, p1, p2) -SKY_cli_GenerateAddressesInFile = _skycoin.SKY_cli_GenerateAddressesInFile - -def SKY_cli_FormatAddressesAsJSON(p0): - return _skycoin.SKY_cli_FormatAddressesAsJSON(p0) -SKY_cli_FormatAddressesAsJSON = _skycoin.SKY_cli_FormatAddressesAsJSON - -def SKY_cli_FormatAddressesAsJoinedArray(p0): - return _skycoin.SKY_cli_FormatAddressesAsJoinedArray(p0) -SKY_cli_FormatAddressesAsJoinedArray = _skycoin.SKY_cli_FormatAddressesAsJoinedArray - -def SKY_cli_AddressesToStrings(p0): - return _skycoin.SKY_cli_AddressesToStrings(p0) -SKY_cli_AddressesToStrings = _skycoin.SKY_cli_AddressesToStrings - -def SKY_cli_GetWalletOutputsFromFile(p0, p1, p2): - return _skycoin.SKY_cli_GetWalletOutputsFromFile(p0, p1, p2) -SKY_cli_GetWalletOutputsFromFile = _skycoin.SKY_cli_GetWalletOutputsFromFile - -def SKY_cli_GetWalletOutputs(p0, p2): - return _skycoin.SKY_cli_GetWalletOutputs(p0, p2) -SKY_cli_GetWalletOutputs = _skycoin.SKY_cli_GetWalletOutputs - -def SKY_cli_App_Run(p0, p1): - return _skycoin.SKY_cli_App_Run(p0, p1) -SKY_cli_App_Run = _skycoin.SKY_cli_App_Run - -def SKY_cli_Config_GetCoin(p0): - return _skycoin.SKY_cli_Config_GetCoin(p0) -SKY_cli_Config_GetCoin = _skycoin.SKY_cli_Config_GetCoin - -def SKY_cli_Config_GetRPCAddress(p0): - return _skycoin.SKY_cli_Config_GetRPCAddress(p0) -SKY_cli_Config_GetRPCAddress = _skycoin.SKY_cli_Config_GetRPCAddress - -def SKY_cli_RPCClientFromApp(p0): - return _skycoin.SKY_cli_RPCClientFromApp(p0) -SKY_cli_RPCClientFromApp = _skycoin.SKY_cli_RPCClientFromApp - -def SKY_cli_Getenv(p0): - return _skycoin.SKY_cli_Getenv(p0) -SKY_cli_Getenv = _skycoin.SKY_cli_Getenv - -def SKY_cli_Setenv(p0, p1): - return _skycoin.SKY_cli_Setenv(p0, p1) -SKY_cli_Setenv = _skycoin.SKY_cli_Setenv - -def SKY_coin_NewBlock(p0, p1, p2, p3, p4): - return _skycoin.SKY_coin_NewBlock(p0, p1, p2, p3, p4) -SKY_coin_NewBlock = _skycoin.SKY_coin_NewBlock - -def SKY_coin_SignedBlock_VerifySignature(p0, p1): - return _skycoin.SKY_coin_SignedBlock_VerifySignature(p0, p1) -SKY_coin_SignedBlock_VerifySignature = _skycoin.SKY_coin_SignedBlock_VerifySignature - -def SKY_coin_NewGenesisBlock(p0, p1, p2): - return _skycoin.SKY_coin_NewGenesisBlock(p0, p1, p2) -SKY_coin_NewGenesisBlock = _skycoin.SKY_coin_NewGenesisBlock - -def SKY_coin_Block_HashHeader(p0, p1): - return _skycoin.SKY_coin_Block_HashHeader(p0, p1) -SKY_coin_Block_HashHeader = _skycoin.SKY_coin_Block_HashHeader - -def SKY_coin_Block_PreHashHeader(p0, p1): - return _skycoin.SKY_coin_Block_PreHashHeader(p0, p1) -SKY_coin_Block_PreHashHeader = _skycoin.SKY_coin_Block_PreHashHeader - -def SKY_coin_Block_Time(p0): - return _skycoin.SKY_coin_Block_Time(p0) -SKY_coin_Block_Time = _skycoin.SKY_coin_Block_Time - -def SKY_coin_Block_Seq(p0): - return _skycoin.SKY_coin_Block_Seq(p0) -SKY_coin_Block_Seq = _skycoin.SKY_coin_Block_Seq - -def SKY_coin_Block_HashBody(p0, p1): - return _skycoin.SKY_coin_Block_HashBody(p0, p1) -SKY_coin_Block_HashBody = _skycoin.SKY_coin_Block_HashBody - -def SKY_coin_Block_Size(p0): - return _skycoin.SKY_coin_Block_Size(p0) -SKY_coin_Block_Size = _skycoin.SKY_coin_Block_Size - -def SKY_coin_Block_String(p0): - return _skycoin.SKY_coin_Block_String(p0) -SKY_coin_Block_String = _skycoin.SKY_coin_Block_String - -def SKY_coin_Block_GetTransaction(p0, p1): - return _skycoin.SKY_coin_Block_GetTransaction(p0, p1) -SKY_coin_Block_GetTransaction = _skycoin.SKY_coin_Block_GetTransaction - -def SKY_coin_NewBlockHeader(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_coin_NewBlockHeader(p0, p1, p2, p3, p4, p5) -SKY_coin_NewBlockHeader = _skycoin.SKY_coin_NewBlockHeader - -def SKY_coin_BlockHeader_Hash(p0, p1): - return _skycoin.SKY_coin_BlockHeader_Hash(p0, p1) -SKY_coin_BlockHeader_Hash = _skycoin.SKY_coin_BlockHeader_Hash - -def SKY_coin_BlockHeader_Bytes(p0): - return _skycoin.SKY_coin_BlockHeader_Bytes(p0) -SKY_coin_BlockHeader_Bytes = _skycoin.SKY_coin_BlockHeader_Bytes - -def SKY_coin_BlockHeader_String(p0): - return _skycoin.SKY_coin_BlockHeader_String(p0) -SKY_coin_BlockHeader_String = _skycoin.SKY_coin_BlockHeader_String - -def SKY_coin_BlockBody_Hash(p0, p1): - return _skycoin.SKY_coin_BlockBody_Hash(p0, p1) -SKY_coin_BlockBody_Hash = _skycoin.SKY_coin_BlockBody_Hash - -def SKY_coin_BlockBody_Size(): - return _skycoin.SKY_coin_BlockBody_Size() -SKY_coin_BlockBody_Size = _skycoin.SKY_coin_BlockBody_Size - -def SKY_coin_BlockBody_Bytes(p0): - return _skycoin.SKY_coin_BlockBody_Bytes(p0) -SKY_coin_BlockBody_Bytes = _skycoin.SKY_coin_BlockBody_Bytes - -def SKY_coin_CreateUnspents(*args): - return _skycoin.SKY_coin_CreateUnspents(*args) -SKY_coin_CreateUnspents = _skycoin.SKY_coin_CreateUnspents - -def SKY_coin_CreateUnspent(p0, p1, p2, p3): - return _skycoin.SKY_coin_CreateUnspent(p0, p1, p2, p3) -SKY_coin_CreateUnspent = _skycoin.SKY_coin_CreateUnspent - -def SKY_coin_GetBlockObject(p0): - return _skycoin.SKY_coin_GetBlockObject(p0) -SKY_coin_GetBlockObject = _skycoin.SKY_coin_GetBlockObject - -def SKY_coin_GetBlockBody(p0): - return _skycoin.SKY_coin_GetBlockBody(p0) -SKY_coin_GetBlockBody = _skycoin.SKY_coin_GetBlockBody - -def SKY_coin_NewEmptyBlock(p0): - return _skycoin.SKY_coin_NewEmptyBlock(p0) -SKY_coin_NewEmptyBlock = _skycoin.SKY_coin_NewEmptyBlock - -def SKY_coin_AddUint64(p0, p1): - return _skycoin.SKY_coin_AddUint64(p0, p1) -SKY_coin_AddUint64 = _skycoin.SKY_coin_AddUint64 - -def SKY_coin_Uint64ToInt64(p0): - return _skycoin.SKY_coin_Uint64ToInt64(p0) -SKY_coin_Uint64ToInt64 = _skycoin.SKY_coin_Uint64ToInt64 - -def SKY_coin_Int64ToUint64(p0): - return _skycoin.SKY_coin_Int64ToUint64(p0) -SKY_coin_Int64ToUint64 = _skycoin.SKY_coin_Int64ToUint64 - -def SKY_coin_IntToUint32(p0): - return _skycoin.SKY_coin_IntToUint32(p0) -SKY_coin_IntToUint32 = _skycoin.SKY_coin_IntToUint32 - -def SKY_coin_UxOut_Hash(p0, p1): - return _skycoin.SKY_coin_UxOut_Hash(p0, p1) -SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash - -def SKY_coin_UxOut_SnapshotHash(p0, p1): - return _skycoin.SKY_coin_UxOut_SnapshotHash(p0, p1) -SKY_coin_UxOut_SnapshotHash = _skycoin.SKY_coin_UxOut_SnapshotHash - -def SKY_coin_UxBody_Hash(p0, p1): - return _skycoin.SKY_coin_UxBody_Hash(p0, p1) -SKY_coin_UxBody_Hash = _skycoin.SKY_coin_UxBody_Hash - -def SKY_coin_UxOut_CoinHours(p0, p1): - return _skycoin.SKY_coin_UxOut_CoinHours(p0, p1) -SKY_coin_UxOut_CoinHours = _skycoin.SKY_coin_UxOut_CoinHours - -def SKY_coin_UxArray_Hashes(*args): - return _skycoin.SKY_coin_UxArray_Hashes(*args) -SKY_coin_UxArray_Hashes = _skycoin.SKY_coin_UxArray_Hashes - -def SKY_coin_UxArray_HasDupes(*args): - return _skycoin.SKY_coin_UxArray_HasDupes(*args) -SKY_coin_UxArray_HasDupes = _skycoin.SKY_coin_UxArray_HasDupes - -def SKY_coin_UxArray_Sort(): - return _skycoin.SKY_coin_UxArray_Sort() -SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort - -def SKY_coin_UxArray_Len(): - return _skycoin.SKY_coin_UxArray_Len() -SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len - -def SKY_coin_UxArray_Less(*args): - return _skycoin.SKY_coin_UxArray_Less(*args) -SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less - -def SKY_coin_UxArray_Swap(*args): - return _skycoin.SKY_coin_UxArray_Swap(*args) -SKY_coin_UxArray_Swap = _skycoin.SKY_coin_UxArray_Swap - -def SKY_coin_UxArray_Coins(*args): - return _skycoin.SKY_coin_UxArray_Coins(*args) -SKY_coin_UxArray_Coins = _skycoin.SKY_coin_UxArray_Coins - -def SKY_coin_UxArray_CoinHours(*args): - return _skycoin.SKY_coin_UxArray_CoinHours(*args) -SKY_coin_UxArray_CoinHours = _skycoin.SKY_coin_UxArray_CoinHours - -def SKY_coin_UxArray_Sub(*args): - return _skycoin.SKY_coin_UxArray_Sub(*args) -SKY_coin_UxArray_Sub = _skycoin.SKY_coin_UxArray_Sub - -def SKY_coin_UxArray_Add(*args): - return _skycoin.SKY_coin_UxArray_Add(*args) -SKY_coin_UxArray_Add = _skycoin.SKY_coin_UxArray_Add - -def SKY_coin_NewAddressUxOuts(*args): - return _skycoin.SKY_coin_NewAddressUxOuts(*args) -SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts - -def SKY_coin_AddressUxOuts_Keys(*args): - return _skycoin.SKY_coin_AddressUxOuts_Keys(*args) -SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys - -def SKY_coin_AddressUxOuts_Flatten(*args): - return _skycoin.SKY_coin_AddressUxOuts_Flatten(*args) -SKY_coin_AddressUxOuts_Flatten = _skycoin.SKY_coin_AddressUxOuts_Flatten - -def SKY_coin_AddressUxOuts_Sub(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_Sub(p0, p1) -SKY_coin_AddressUxOuts_Sub = _skycoin.SKY_coin_AddressUxOuts_Sub - -def SKY_coin_AddressUxOuts_Add(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_Add(p0, p1) -SKY_coin_AddressUxOuts_Add = _skycoin.SKY_coin_AddressUxOuts_Add - -def SKY_coin_AddressUxOuts_Get(*args): - return _skycoin.SKY_coin_AddressUxOuts_Get(*args) -SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get - -def SKY_coin_AddressUxOuts_HasKey(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_HasKey(p0, p1) -SKY_coin_AddressUxOuts_HasKey = _skycoin.SKY_coin_AddressUxOuts_HasKey - -def SKY_coin_AddressUxOuts_GetOutputLength(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_GetOutputLength(p0, p1) -SKY_coin_AddressUxOuts_GetOutputLength = _skycoin.SKY_coin_AddressUxOuts_GetOutputLength - -def SKY_coin_AddressUxOuts_Length(p0): - return _skycoin.SKY_coin_AddressUxOuts_Length(p0) -SKY_coin_AddressUxOuts_Length = _skycoin.SKY_coin_AddressUxOuts_Length - -def SKY_coin_AddressUxOuts_Set(*args): - return _skycoin.SKY_coin_AddressUxOuts_Set(*args) -SKY_coin_AddressUxOuts_Set = _skycoin.SKY_coin_AddressUxOuts_Set - -def SKY_coin_Create_Transaction(): - return _skycoin.SKY_coin_Create_Transaction() -SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction - -def SKY_coin_Transaction_Copy(p0): - return _skycoin.SKY_coin_Transaction_Copy(p0) -SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy - -def SKY_coin_GetTransactionObject(p0): - return _skycoin.SKY_coin_GetTransactionObject(p0) -SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject - -def SKY_coin_Transaction_ResetInputs(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetInputs(p0, p1) -SKY_coin_Transaction_ResetInputs = _skycoin.SKY_coin_Transaction_ResetInputs - -def SKY_coin_Transaction_GetInputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) -SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount - -def SKY_coin_Transaction_GetInputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetInputAt(p0, p1, p2) -SKY_coin_Transaction_GetInputAt = _skycoin.SKY_coin_Transaction_GetInputAt - -def SKY_coin_Transaction_SetInputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetInputAt(p0, p1, p2) -SKY_coin_Transaction_SetInputAt = _skycoin.SKY_coin_Transaction_SetInputAt - -def SKY_coin_Transaction_GetOutputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) -SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount - -def SKY_coin_Transaction_GetOutputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetOutputAt(p0, p1, p2) -SKY_coin_Transaction_GetOutputAt = _skycoin.SKY_coin_Transaction_GetOutputAt - -def SKY_coin_Transaction_SetOutputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetOutputAt(p0, p1, p2) -SKY_coin_Transaction_SetOutputAt = _skycoin.SKY_coin_Transaction_SetOutputAt - -def SKY_coin_Transaction_GetSignaturesCount(p0): - return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) -SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount - -def SKY_coin_Transaction_GetSignatureAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetSignatureAt(p0, p1, p2) -SKY_coin_Transaction_GetSignatureAt = _skycoin.SKY_coin_Transaction_GetSignatureAt - -def SKY_coin_Transaction_SetSignatureAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetSignatureAt(p0, p1, p2) -SKY_coin_Transaction_SetSignatureAt = _skycoin.SKY_coin_Transaction_SetSignatureAt - -def SKY_coin_Transaction_PushSignature(p0, p1): - return _skycoin.SKY_coin_Transaction_PushSignature(p0, p1) -SKY_coin_Transaction_PushSignature = _skycoin.SKY_coin_Transaction_PushSignature - -def SKY_coin_Transaction_ResetOutputs(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetOutputs(p0, p1) -SKY_coin_Transaction_ResetOutputs = _skycoin.SKY_coin_Transaction_ResetOutputs - -def SKY_coin_Transaction_ResetSignatures(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetSignatures(p0, p1) -SKY_coin_Transaction_ResetSignatures = _skycoin.SKY_coin_Transaction_ResetSignatures - -def SKY_coin_Transaction_Verify(p0): - return _skycoin.SKY_coin_Transaction_Verify(p0) -SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify - -def SKY_coin_Transaction_VerifyInput(*args): - return _skycoin.SKY_coin_Transaction_VerifyInput(*args) -SKY_coin_Transaction_VerifyInput = _skycoin.SKY_coin_Transaction_VerifyInput - -def SKY_coin_Transaction_PushInput(p0, p1): - return _skycoin.SKY_coin_Transaction_PushInput(p0, p1) -SKY_coin_Transaction_PushInput = _skycoin.SKY_coin_Transaction_PushInput - -def SKY_coin_TransactionOutput_UxID(p0, p1, p2): - return _skycoin.SKY_coin_TransactionOutput_UxID(p0, p1, p2) -SKY_coin_TransactionOutput_UxID = _skycoin.SKY_coin_TransactionOutput_UxID - -def SKY_coin_Transaction_PushOutput(p0, p1, p2, p3): - return _skycoin.SKY_coin_Transaction_PushOutput(p0, p1, p2, p3) -SKY_coin_Transaction_PushOutput = _skycoin.SKY_coin_Transaction_PushOutput - -def SKY_coin_Transaction_SignInputs(*args): - return _skycoin.SKY_coin_Transaction_SignInputs(*args) -SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs - -def SKY_coin_Transaction_Size(p0): - return _skycoin.SKY_coin_Transaction_Size(p0) -SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size - -def SKY_coin_Transaction_Hash(p0, p1): - return _skycoin.SKY_coin_Transaction_Hash(p0, p1) -SKY_coin_Transaction_Hash = _skycoin.SKY_coin_Transaction_Hash - -def SKY_coin_Transaction_SizeHash(p0, p2): - return _skycoin.SKY_coin_Transaction_SizeHash(p0, p2) -SKY_coin_Transaction_SizeHash = _skycoin.SKY_coin_Transaction_SizeHash - -def SKY_coin_Transaction_TxID(p0): - return _skycoin.SKY_coin_Transaction_TxID(p0) -SKY_coin_Transaction_TxID = _skycoin.SKY_coin_Transaction_TxID - -def SKY_coin_Transaction_TxIDHex(p0): - return _skycoin.SKY_coin_Transaction_TxIDHex(p0) -SKY_coin_Transaction_TxIDHex = _skycoin.SKY_coin_Transaction_TxIDHex - -def SKY_coin_Transaction_UpdateHeader(p0): - return _skycoin.SKY_coin_Transaction_UpdateHeader(p0) -SKY_coin_Transaction_UpdateHeader = _skycoin.SKY_coin_Transaction_UpdateHeader - -def SKY_coin_Transaction_HashInner(p0, p1): - return _skycoin.SKY_coin_Transaction_HashInner(p0, p1) -SKY_coin_Transaction_HashInner = _skycoin.SKY_coin_Transaction_HashInner - -def SKY_coin_Transaction_Serialize(p0): - return _skycoin.SKY_coin_Transaction_Serialize(p0) -SKY_coin_Transaction_Serialize = _skycoin.SKY_coin_Transaction_Serialize - -def SKY_coin_TransactionDeserialize(p0): - return _skycoin.SKY_coin_TransactionDeserialize(p0) -SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize - -def SKY_coin_Transaction_OutputHours(p0): - return _skycoin.SKY_coin_Transaction_OutputHours(p0) -SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours - -def SKY_coin_Create_Transactions(): - return _skycoin.SKY_coin_Create_Transactions() -SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions - -def SKY_coin_GetTransactionsObject(p0, p1): - return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) -SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject - -def SKY_coin_Transactions_Length(p0): - return _skycoin.SKY_coin_Transactions_Length(p0) -SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length - -def SKY_coin_Transactions_Add(p0, p1): - return _skycoin.SKY_coin_Transactions_Add(p0, p1) -SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add - -def SKY_coin_Transactions_Fees(p0, p1): - return _skycoin.SKY_coin_Transactions_Fees(p0, p1) -SKY_coin_Transactions_Fees = _skycoin.SKY_coin_Transactions_Fees - -def SKY_coin_Transactions_GetAt(p0, p1): - return _skycoin.SKY_coin_Transactions_GetAt(p0, p1) -SKY_coin_Transactions_GetAt = _skycoin.SKY_coin_Transactions_GetAt - -def SKY_coin_Transactions_Hashes(*args): - return _skycoin.SKY_coin_Transactions_Hashes(*args) -SKY_coin_Transactions_Hashes = _skycoin.SKY_coin_Transactions_Hashes - -def SKY_coin_Transactions_Size(p0): - return _skycoin.SKY_coin_Transactions_Size(p0) -SKY_coin_Transactions_Size = _skycoin.SKY_coin_Transactions_Size - -def SKY_coin_Transactions_TruncateBytesTo(p0, p1): - return _skycoin.SKY_coin_Transactions_TruncateBytesTo(p0, p1) -SKY_coin_Transactions_TruncateBytesTo = _skycoin.SKY_coin_Transactions_TruncateBytesTo - -def SKY_coin_SortTransactions(p0, p1): - return _skycoin.SKY_coin_SortTransactions(p0, p1) -SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions - -def SKY_coin_NewSortableTransactions(p0, p1, p2): - return _skycoin.SKY_coin_NewSortableTransactions(p0, p1, p2) -SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions - -def SKY_coin_SortableTransactions_Sort(p0): - return _skycoin.SKY_coin_SortableTransactions_Sort(p0) -SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort - -def SKY_coin_SortableTransactions_Len(p0): - return _skycoin.SKY_coin_SortableTransactions_Len(p0) -SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len - -def SKY_coin_SortableTransactions_Less(p0, p1, p2): - return _skycoin.SKY_coin_SortableTransactions_Less(p0, p1, p2) -SKY_coin_SortableTransactions_Less = _skycoin.SKY_coin_SortableTransactions_Less - -def SKY_coin_SortableTransactions_Swap(p0, p1, p2): - return _skycoin.SKY_coin_SortableTransactions_Swap(p0, p1, p2) -SKY_coin_SortableTransactions_Swap = _skycoin.SKY_coin_SortableTransactions_Swap - -def SKY_coin_VerifyTransactionCoinsSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) -SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending - -def SKY_coin_VerifyTransactionHoursSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) -SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending - -def SKY_handle_close(p0): - return _skycoin.SKY_handle_close(p0) -SKY_handle_close = _skycoin.SKY_handle_close - -def SKY_handle_copy(p0): - return _skycoin.SKY_handle_copy(p0) -SKY_handle_copy = _skycoin.SKY_handle_copy - -def SKY_JsonEncode_Handle(p0): - return _skycoin.SKY_JsonEncode_Handle(p0) -SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle - -def SKY_Handle_Progress_GetCurrent(p0): - return _skycoin.SKY_Handle_Progress_GetCurrent(p0) -SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent - -def SKY_Handle_Block_GetHeadSeq(p0): - return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) -SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq - -def SKY_Handle_Block_GetHeadHash(p0): - return _skycoin.SKY_Handle_Block_GetHeadHash(p0) -SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash - -def SKY_Handle_Block_GetPreviousBlockHash(p0): - return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) -SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash - -def SKY_Handle_Blocks_GetAt(p0, p1): - return _skycoin.SKY_Handle_Blocks_GetAt(p0, p1) -SKY_Handle_Blocks_GetAt = _skycoin.SKY_Handle_Blocks_GetAt - -def SKY_Handle_Blocks_GetCount(p0): - return _skycoin.SKY_Handle_Blocks_GetCount(p0) -SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount - -def SKY_Handle_Connections_GetCount(p0): - return _skycoin.SKY_Handle_Connections_GetCount(p0) -SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount - -def SKY_Handle_Strings_GetCount(p0): - return _skycoin.SKY_Handle_Strings_GetCount(p0) -SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount - -def SKY_Handle_Strings_Sort(p0): - return _skycoin.SKY_Handle_Strings_Sort(p0) -SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort - -def SKY_Handle_Strings_GetAt(p0, p1): - return _skycoin.SKY_Handle_Strings_GetAt(p0, p1) -SKY_Handle_Strings_GetAt = _skycoin.SKY_Handle_Strings_GetAt - -def SKY_api_Handle_Client_GetWalletDir(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletDir(p0) -SKY_api_Handle_Client_GetWalletDir = _skycoin.SKY_api_Handle_Client_GetWalletDir - -def SKY_api_Handle_Client_GetWalletFileName(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletFileName(p0) -SKY_api_Handle_Client_GetWalletFileName = _skycoin.SKY_api_Handle_Client_GetWalletFileName - -def SKY_api_Handle_Client_GetWalletLabel(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletLabel(p0) -SKY_api_Handle_Client_GetWalletLabel = _skycoin.SKY_api_Handle_Client_GetWalletLabel - -def SKY_api_Handle_Client_GetWalletFullPath(p0, p1): - return _skycoin.SKY_api_Handle_Client_GetWalletFullPath(p0, p1) -SKY_api_Handle_Client_GetWalletFullPath = _skycoin.SKY_api_Handle_Client_GetWalletFullPath - -def SKY_api_Handle_GetWalletMeta(p0): - return _skycoin.SKY_api_Handle_GetWalletMeta(p0) -SKY_api_Handle_GetWalletMeta = _skycoin.SKY_api_Handle_GetWalletMeta - -def SKY_api_Handle_GetWalletEntriesCount(p0): - return _skycoin.SKY_api_Handle_GetWalletEntriesCount(p0) -SKY_api_Handle_GetWalletEntriesCount = _skycoin.SKY_api_Handle_GetWalletEntriesCount - -def SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0) -SKY_api_Handle_Client_GetWalletResponseEntriesCount = _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount - -def SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3): - return _skycoin.SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3) -SKY_api_Handle_WalletGetEntry = _skycoin.SKY_api_Handle_WalletGetEntry - -def SKY_api_Handle_WalletResponseGetEntry(p0, p1): - return _skycoin.SKY_api_Handle_WalletResponseGetEntry(p0, p1) -SKY_api_Handle_WalletResponseGetEntry = _skycoin.SKY_api_Handle_WalletResponseGetEntry - -def SKY_api_Handle_WalletResponseIsEncrypted(p0): - return _skycoin.SKY_api_Handle_WalletResponseIsEncrypted(p0) -SKY_api_Handle_WalletResponseIsEncrypted = _skycoin.SKY_api_Handle_WalletResponseIsEncrypted - -def SKY_api_Handle_WalletResponseGetCryptoType(p0): - return _skycoin.SKY_api_Handle_WalletResponseGetCryptoType(p0) -SKY_api_Handle_WalletResponseGetCryptoType = _skycoin.SKY_api_Handle_WalletResponseGetCryptoType - -def SKY_api_Handle_WalletsResponseGetCount(p0): - return _skycoin.SKY_api_Handle_WalletsResponseGetCount(p0) -SKY_api_Handle_WalletsResponseGetCount = _skycoin.SKY_api_Handle_WalletsResponseGetCount - -def SKY_api_Handle_WalletsResponseGetAt(p0, p1): - return _skycoin.SKY_api_Handle_WalletsResponseGetAt(p0, p1) -SKY_api_Handle_WalletsResponseGetAt = _skycoin.SKY_api_Handle_WalletsResponseGetAt - -def SKY_api_Handle_GetWalletFolderAddress(p0): - return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) -SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress - -def SKY_api_Handle_GetWalletSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletSeed(p0) -SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed - -def SKY_api_Handle_GetWalletLastSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) -SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed - -def SKY_api_Handle_GetBuildInfoData(p0): - return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) -SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData - -def SKY_map_Get(p1): - return _skycoin.SKY_map_Get(p1) -SKY_map_Get = _skycoin.SKY_map_Get - -def SKY_map_HasKey(p1): - return _skycoin.SKY_map_HasKey(p1) -SKY_map_HasKey = _skycoin.SKY_map_HasKey - -def SKY_map_Close(): - return _skycoin.SKY_map_Close() -SKY_map_Close = _skycoin.SKY_map_Close - -def SKY_testutil_MakeAddress(p0): - return _skycoin.SKY_testutil_MakeAddress(p0) -SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress - -def SKY_apputil_CatchInterruptPanic(): - return _skycoin.SKY_apputil_CatchInterruptPanic() -SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic - -def SKY_apputil_CatchDebug(): - return _skycoin.SKY_apputil_CatchDebug() -SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug - -def SKY_apputil_PrintProgramStatus(): - return _skycoin.SKY_apputil_PrintProgramStatus() -SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus - -def SKY_certutil_NewTLSCertPair(p0, p1, p2): - return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) -SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair - -def SKY_droplet_FromString(p0): - return _skycoin.SKY_droplet_FromString(p0) -SKY_droplet_FromString = _skycoin.SKY_droplet_FromString - -def SKY_droplet_ToString(p0): - return _skycoin.SKY_droplet_ToString(p0) -SKY_droplet_ToString = _skycoin.SKY_droplet_ToString - -def SKY_fee_VerifyTransactionFee(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1, p2) -SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee - -def SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2) -SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours - -def SKY_fee_RequiredFee(p0, p1): - return _skycoin.SKY_fee_RequiredFee(p0, p1) -SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee - -def SKY_fee_RemainingHours(p0, p1): - return _skycoin.SKY_fee_RemainingHours(p0, p1) -SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours - -def SKY_fee_TransactionFee(*args): - return _skycoin.SKY_fee_TransactionFee(*args) -SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee - -def SKY_file_InitDataDir(p0): - return _skycoin.SKY_file_InitDataDir(p0) -SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir - -def SKY_file_UserHome(): - return _skycoin.SKY_file_UserHome() -SKY_file_UserHome = _skycoin.SKY_file_UserHome - -def SKY_file_ResolveResourceDirectory(p0): - return _skycoin.SKY_file_ResolveResourceDirectory(p0) -SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory - -def SKY_file_DetermineResourcePath(p0, p1, p2): - return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) -SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath - -def SKY_httphelper_Address_UnmarshalJSON(p0, p1): - return _skycoin.SKY_httphelper_Address_UnmarshalJSON(p0, p1) -SKY_httphelper_Address_UnmarshalJSON = _skycoin.SKY_httphelper_Address_UnmarshalJSON - -def SKY_httphelper_Address_MarshalJSON(p0): - return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) -SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON - -def SKY_httphelper_Coins_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) -SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON - -def SKY_httphelper_Coins_MarshalJSON(): - return _skycoin.SKY_httphelper_Coins_MarshalJSON() -SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON - -def SKY_httphelper_Coins_Value(): - return _skycoin.SKY_httphelper_Coins_Value() -SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value - -def SKY_httphelper_Hours_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) -SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON - -def SKY_httphelper_Hours_MarshalJSON(): - return _skycoin.SKY_httphelper_Hours_MarshalJSON() -SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON - -def SKY_httphelper_Hours_Value(): - return _skycoin.SKY_httphelper_Hours_Value() -SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value - -def SKY_iputil_LocalhostIP(): - return _skycoin.SKY_iputil_LocalhostIP() -SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP - -def SKY_iputil_IsLocalhost(p0): - return _skycoin.SKY_iputil_IsLocalhost(p0) -SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost - -def SKY_iputil_SplitAddr(p0): - return _skycoin.SKY_iputil_SplitAddr(p0) -SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr - -def SKY_logging_EnableColors(): - return _skycoin.SKY_logging_EnableColors() -SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors - -def SKY_logging_DisableColors(): - return _skycoin.SKY_logging_DisableColors() -SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors - -def SKY_logging_Disable(): - return _skycoin.SKY_logging_Disable() -SKY_logging_Disable = _skycoin.SKY_logging_Disable - -def SKY_wallet_NewBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) -SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance - -def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) -SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut - -def SKY_wallet_Balance_Add(p0, p1, p2): - return _skycoin.SKY_wallet_Balance_Add(p0, p1, p2) -SKY_wallet_Balance_Add = _skycoin.SKY_wallet_Balance_Add - -def SKY_wallet_Balance_Sub(p0, p1, p2): - return _skycoin.SKY_wallet_Balance_Sub(p0, p1, p2) -SKY_wallet_Balance_Sub = _skycoin.SKY_wallet_Balance_Sub - -def SKY_wallet_Balance_Equals(p0, p1): - return _skycoin.SKY_wallet_Balance_Equals(p0, p1) -SKY_wallet_Balance_Equals = _skycoin.SKY_wallet_Balance_Equals - -def SKY_wallet_Balance_IsZero(p0): - return _skycoin.SKY_wallet_Balance_IsZero(p0) -SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero - -def SKY_wallet_CryptoTypeFromString(p0): - return _skycoin.SKY_wallet_CryptoTypeFromString(p0) -SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString - -def SKY_wallet_Entry_Verify(p0): - return _skycoin.SKY_wallet_Entry_Verify(p0) -SKY_wallet_Entry_Verify = _skycoin.SKY_wallet_Entry_Verify - -def SKY_wallet_Entry_VerifyPublic(p0): - return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) -SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic - -def SKY_wallet_NewReadableEntry(p0, p1): - return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) -SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry - -def SKY_wallet_LoadReadableWallet(p0): - return _skycoin.SKY_wallet_LoadReadableWallet(p0) -SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet - -def SKY_wallet_ReadableWallet_Save(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Save(p0, p1) -SKY_wallet_ReadableWallet_Save = _skycoin.SKY_wallet_ReadableWallet_Save - -def SKY_wallet_ReadableWallet_Load(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Load(p0, p1) -SKY_wallet_ReadableWallet_Load = _skycoin.SKY_wallet_ReadableWallet_Load - -def SKY_wallet_ReadableWallet_Erase(p0): - return _skycoin.SKY_wallet_ReadableWallet_Erase(p0) -SKY_wallet_ReadableWallet_Erase = _skycoin.SKY_wallet_ReadableWallet_Erase - -def SKY_wallet_NewError(p0): - return _skycoin.SKY_wallet_NewError(p0) -SKY_wallet_NewError = _skycoin.SKY_wallet_NewError - -def SKY_wallet_NewWallet(p0, p1): - return _skycoin.SKY_wallet_NewWallet(p0, p1) -SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet - -def SKY_wallet_Wallet_Lock(p0, p1, p2): - return _skycoin.SKY_wallet_Wallet_Lock(p0, p1, p2) -SKY_wallet_Wallet_Lock = _skycoin.SKY_wallet_Wallet_Lock - -def SKY_wallet_Wallet_Unlock(p0, p1): - return _skycoin.SKY_wallet_Wallet_Unlock(p0, p1) -SKY_wallet_Wallet_Unlock = _skycoin.SKY_wallet_Wallet_Unlock - -def SKY_wallet_Load(p0): - return _skycoin.SKY_wallet_Load(p0) -SKY_wallet_Load = _skycoin.SKY_wallet_Load - -def SKY_wallet_Wallet_Save(p0, p1): - return _skycoin.SKY_wallet_Wallet_Save(p0, p1) -SKY_wallet_Wallet_Save = _skycoin.SKY_wallet_Wallet_Save - -def SKY_wallet_Wallet_Validate(p0): - return _skycoin.SKY_wallet_Wallet_Validate(p0) -SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate - -def SKY_wallet_Wallet_Type(p0): - return _skycoin.SKY_wallet_Wallet_Type(p0) -SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type - -def SKY_wallet_Wallet_Version(p0): - return _skycoin.SKY_wallet_Wallet_Version(p0) -SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version - -def SKY_wallet_Wallet_Filename(p0): - return _skycoin.SKY_wallet_Wallet_Filename(p0) -SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename - -def SKY_wallet_Wallet_Label(p0): - return _skycoin.SKY_wallet_Wallet_Label(p0) -SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label - -def SKY_wallet_Wallet_IsEncrypted(p0): - return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) -SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted - -def SKY_wallet_Wallet_GenerateAddresses(p0, p1): - return _skycoin.SKY_wallet_Wallet_GenerateAddresses(p0, p1) -SKY_wallet_Wallet_GenerateAddresses = _skycoin.SKY_wallet_Wallet_GenerateAddresses - -def SKY_wallet_Wallet_GetAddresses(p0): - return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) -SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses - -def SKY_wallet_Wallet_GetEntry(p0, p1, p2): - return _skycoin.SKY_wallet_Wallet_GetEntry(p0, p1, p2) -SKY_wallet_Wallet_GetEntry = _skycoin.SKY_wallet_Wallet_GetEntry - -def SKY_wallet_Wallet_AddEntry(p0, p1): - return _skycoin.SKY_wallet_Wallet_AddEntry(p0, p1) -SKY_wallet_Wallet_AddEntry = _skycoin.SKY_wallet_Wallet_AddEntry - -def SKY_wallet_DistributeSpendHours(p0, p1, p2): - return _skycoin.SKY_wallet_DistributeSpendHours(p0, p1, p2) -SKY_wallet_DistributeSpendHours = _skycoin.SKY_wallet_DistributeSpendHours - -def SKY_wallet_DistributeCoinHoursProportional(p0, p1): - return _skycoin.SKY_wallet_DistributeCoinHoursProportional(p0, p1) -SKY_wallet_DistributeCoinHoursProportional = _skycoin.SKY_wallet_DistributeCoinHoursProportional - -def SKY_wallet_NewUxBalances(p0): - return _skycoin.SKY_wallet_NewUxBalances(p0) -SKY_wallet_NewUxBalances = _skycoin.SKY_wallet_NewUxBalances - -def SKY_wallet_NewUxBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewUxBalance(p0, p1, p2) -SKY_wallet_NewUxBalance = _skycoin.SKY_wallet_NewUxBalance - -def SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts - -def SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts - -def SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6): - return _skycoin.SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6) -SKY_wallet_CreateOptionsHandle = _skycoin.SKY_wallet_CreateOptionsHandle -class api__RichlistParams(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, api__RichlistParams, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, api__RichlistParams, name) - __repr__ = _swig_repr - __swig_setmethods__["N"] = _skycoin.api__RichlistParams_N_set - __swig_getmethods__["N"] = _skycoin.api__RichlistParams_N_get - if _newclass: - N = _swig_property(_skycoin.api__RichlistParams_N_get, _skycoin.api__RichlistParams_N_set) - __swig_setmethods__["IncludeDistribution"] = _skycoin.api__RichlistParams_IncludeDistribution_set - __swig_getmethods__["IncludeDistribution"] = _skycoin.api__RichlistParams_IncludeDistribution_get - if _newclass: - IncludeDistribution = _swig_property(_skycoin.api__RichlistParams_IncludeDistribution_get, _skycoin.api__RichlistParams_IncludeDistribution_set) - - def __init__(self): - this = _skycoin.new_api__RichlistParams() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_api__RichlistParams - __del__ = lambda self: None -api__RichlistParams_swigregister = _skycoin.api__RichlistParams_swigregister -api__RichlistParams_swigregister(api__RichlistParams) - -class api__NetworkConnectionsFilter(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, api__NetworkConnectionsFilter, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, api__NetworkConnectionsFilter, name) - __repr__ = _swig_repr - __swig_setmethods__["States"] = _skycoin.api__NetworkConnectionsFilter_States_set - __swig_getmethods__["States"] = _skycoin.api__NetworkConnectionsFilter_States_get - if _newclass: - States = _swig_property(_skycoin.api__NetworkConnectionsFilter_States_get, _skycoin.api__NetworkConnectionsFilter_States_set) - __swig_setmethods__["Direction"] = _skycoin.api__NetworkConnectionsFilter_Direction_set - __swig_getmethods__["Direction"] = _skycoin.api__NetworkConnectionsFilter_Direction_get - if _newclass: - Direction = _swig_property(_skycoin.api__NetworkConnectionsFilter_Direction_get, _skycoin.api__NetworkConnectionsFilter_Direction_set) - - def __init__(self): - this = _skycoin.new_api__NetworkConnectionsFilter() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_api__NetworkConnectionsFilter - __del__ = lambda self: None -api__NetworkConnectionsFilter_swigregister = _skycoin.api__NetworkConnectionsFilter_swigregister -api__NetworkConnectionsFilter_swigregister(api__NetworkConnectionsFilter) - -class cipher__Address(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher__Address, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher__Address, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher__Address___eq__(self, a) - - def toStr(self): - return _skycoin.cipher__Address_toStr(self) - __swig_setmethods__["Version"] = _skycoin.cipher__Address_Version_set - __swig_getmethods__["Version"] = _skycoin.cipher__Address_Version_get - if _newclass: - Version = _swig_property(_skycoin.cipher__Address_Version_get, _skycoin.cipher__Address_Version_set) - __swig_setmethods__["Key"] = _skycoin.cipher__Address_Key_set - __swig_getmethods__["Key"] = _skycoin.cipher__Address_Key_get - if _newclass: - Key = _swig_property(_skycoin.cipher__Address_Key_get, _skycoin.cipher__Address_Key_set) - - def __init__(self): - this = _skycoin.new_cipher__Address() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher__Address - __del__ = lambda self: None -cipher__Address_swigregister = _skycoin.cipher__Address_swigregister -cipher__Address_swigregister(cipher__Address) - -class cipher__BitcoinAddress(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher__BitcoinAddress, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher__BitcoinAddress, name) - __repr__ = _swig_repr - - def __eq__(self, a): - return _skycoin.cipher__BitcoinAddress___eq__(self, a) - - def toStr(self): - return _skycoin.cipher__BitcoinAddress_toStr(self) - __swig_setmethods__["Version"] = _skycoin.cipher__BitcoinAddress_Version_set - __swig_getmethods__["Version"] = _skycoin.cipher__BitcoinAddress_Version_get - if _newclass: - Version = _swig_property(_skycoin.cipher__BitcoinAddress_Version_get, _skycoin.cipher__BitcoinAddress_Version_set) - __swig_setmethods__["Key"] = _skycoin.cipher__BitcoinAddress_Key_set - __swig_getmethods__["Key"] = _skycoin.cipher__BitcoinAddress_Key_get - if _newclass: - Key = _swig_property(_skycoin.cipher__BitcoinAddress_Key_get, _skycoin.cipher__BitcoinAddress_Key_set) - - def __init__(self): - this = _skycoin.new_cipher__BitcoinAddress() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher__BitcoinAddress - __del__ = lambda self: None -cipher__BitcoinAddress_swigregister = _skycoin.cipher__BitcoinAddress_swigregister -cipher__BitcoinAddress_swigregister(cipher__BitcoinAddress) - -class encrypt__ScryptChacha20poly1305(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, encrypt__ScryptChacha20poly1305, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, encrypt__ScryptChacha20poly1305, name) - __repr__ = _swig_repr - __swig_setmethods__["N"] = _skycoin.encrypt__ScryptChacha20poly1305_N_set - __swig_getmethods__["N"] = _skycoin.encrypt__ScryptChacha20poly1305_N_get - if _newclass: - N = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_N_get, _skycoin.encrypt__ScryptChacha20poly1305_N_set) - __swig_setmethods__["R"] = _skycoin.encrypt__ScryptChacha20poly1305_R_set - __swig_getmethods__["R"] = _skycoin.encrypt__ScryptChacha20poly1305_R_get - if _newclass: - R = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_R_get, _skycoin.encrypt__ScryptChacha20poly1305_R_set) - __swig_setmethods__["P"] = _skycoin.encrypt__ScryptChacha20poly1305_P_set - __swig_getmethods__["P"] = _skycoin.encrypt__ScryptChacha20poly1305_P_get - if _newclass: - P = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_P_get, _skycoin.encrypt__ScryptChacha20poly1305_P_set) - __swig_setmethods__["KeyLen"] = _skycoin.encrypt__ScryptChacha20poly1305_KeyLen_set - __swig_getmethods__["KeyLen"] = _skycoin.encrypt__ScryptChacha20poly1305_KeyLen_get - if _newclass: - KeyLen = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_KeyLen_get, _skycoin.encrypt__ScryptChacha20poly1305_KeyLen_set) - - def __init__(self): - this = _skycoin.new_encrypt__ScryptChacha20poly1305() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_encrypt__ScryptChacha20poly1305 - __del__ = lambda self: None -encrypt__ScryptChacha20poly1305_swigregister = _skycoin.encrypt__ScryptChacha20poly1305_swigregister -encrypt__ScryptChacha20poly1305_swigregister(encrypt__ScryptChacha20poly1305) - -class secp256k1go__Field(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, secp256k1go__Field, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, secp256k1go__Field, name) - __repr__ = _swig_repr - __swig_setmethods__["n"] = _skycoin.secp256k1go__Field_n_set - __swig_getmethods__["n"] = _skycoin.secp256k1go__Field_n_get - if _newclass: - n = _swig_property(_skycoin.secp256k1go__Field_n_get, _skycoin.secp256k1go__Field_n_set) - - def __init__(self): - this = _skycoin.new_secp256k1go__Field() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_secp256k1go__Field - __del__ = lambda self: None -secp256k1go__Field_swigregister = _skycoin.secp256k1go__Field_swigregister -secp256k1go__Field_swigregister(secp256k1go__Field) - -class secp256k1go__XY(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, secp256k1go__XY, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, secp256k1go__XY, name) - __repr__ = _swig_repr - __swig_setmethods__["X"] = _skycoin.secp256k1go__XY_X_set - __swig_getmethods__["X"] = _skycoin.secp256k1go__XY_X_get - if _newclass: - X = _swig_property(_skycoin.secp256k1go__XY_X_get, _skycoin.secp256k1go__XY_X_set) - __swig_setmethods__["Y"] = _skycoin.secp256k1go__XY_Y_set - __swig_getmethods__["Y"] = _skycoin.secp256k1go__XY_Y_get - if _newclass: - Y = _swig_property(_skycoin.secp256k1go__XY_Y_get, _skycoin.secp256k1go__XY_Y_set) - __swig_setmethods__["Infinity"] = _skycoin.secp256k1go__XY_Infinity_set - __swig_getmethods__["Infinity"] = _skycoin.secp256k1go__XY_Infinity_get - if _newclass: - Infinity = _swig_property(_skycoin.secp256k1go__XY_Infinity_get, _skycoin.secp256k1go__XY_Infinity_set) - - def __init__(self): - this = _skycoin.new_secp256k1go__XY() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_secp256k1go__XY - __del__ = lambda self: None -secp256k1go__XY_swigregister = _skycoin.secp256k1go__XY_swigregister -secp256k1go__XY_swigregister(secp256k1go__XY) - -class secp256k1go__XYZ(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, secp256k1go__XYZ, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, secp256k1go__XYZ, name) - __repr__ = _swig_repr - __swig_setmethods__["X"] = _skycoin.secp256k1go__XYZ_X_set - __swig_getmethods__["X"] = _skycoin.secp256k1go__XYZ_X_get - if _newclass: - X = _swig_property(_skycoin.secp256k1go__XYZ_X_get, _skycoin.secp256k1go__XYZ_X_set) - __swig_setmethods__["Y"] = _skycoin.secp256k1go__XYZ_Y_set - __swig_getmethods__["Y"] = _skycoin.secp256k1go__XYZ_Y_get - if _newclass: - Y = _swig_property(_skycoin.secp256k1go__XYZ_Y_get, _skycoin.secp256k1go__XYZ_Y_set) - __swig_setmethods__["Z"] = _skycoin.secp256k1go__XYZ_Z_set - __swig_getmethods__["Z"] = _skycoin.secp256k1go__XYZ_Z_get - if _newclass: - Z = _swig_property(_skycoin.secp256k1go__XYZ_Z_get, _skycoin.secp256k1go__XYZ_Z_set) - __swig_setmethods__["Infinity"] = _skycoin.secp256k1go__XYZ_Infinity_set - __swig_getmethods__["Infinity"] = _skycoin.secp256k1go__XYZ_Infinity_get - if _newclass: - Infinity = _swig_property(_skycoin.secp256k1go__XYZ_Infinity_get, _skycoin.secp256k1go__XYZ_Infinity_set) - - def __init__(self): - this = _skycoin.new_secp256k1go__XYZ() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_secp256k1go__XYZ - __del__ = lambda self: None -secp256k1go__XYZ_swigregister = _skycoin.secp256k1go__XYZ_swigregister -secp256k1go__XYZ_swigregister(secp256k1go__XYZ) - -class cli__SendAmount(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cli__SendAmount, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cli__SendAmount, name) - __repr__ = _swig_repr - __swig_setmethods__["Addr"] = _skycoin.cli__SendAmount_Addr_set - __swig_getmethods__["Addr"] = _skycoin.cli__SendAmount_Addr_get - if _newclass: - Addr = _swig_property(_skycoin.cli__SendAmount_Addr_get, _skycoin.cli__SendAmount_Addr_set) - __swig_setmethods__["Coins"] = _skycoin.cli__SendAmount_Coins_set - __swig_getmethods__["Coins"] = _skycoin.cli__SendAmount_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.cli__SendAmount_Coins_get, _skycoin.cli__SendAmount_Coins_set) - - def __init__(self): - this = _skycoin.new_cli__SendAmount() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cli__SendAmount - __del__ = lambda self: None -cli__SendAmount_swigregister = _skycoin.cli__SendAmount_swigregister -cli__SendAmount_swigregister(cli__SendAmount) - -class coin__Transaction(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__Transaction, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__Transaction, name) - __repr__ = _swig_repr - - def __eq__(self, t): - return _skycoin.coin__Transaction___eq__(self, t) - __swig_setmethods__["Length"] = _skycoin.coin__Transaction_Length_set - __swig_getmethods__["Length"] = _skycoin.coin__Transaction_Length_get - if _newclass: - Length = _swig_property(_skycoin.coin__Transaction_Length_get, _skycoin.coin__Transaction_Length_set) - __swig_setmethods__["Type"] = _skycoin.coin__Transaction_Type_set - __swig_getmethods__["Type"] = _skycoin.coin__Transaction_Type_get - if _newclass: - Type = _swig_property(_skycoin.coin__Transaction_Type_get, _skycoin.coin__Transaction_Type_set) - __swig_setmethods__["InnerHash"] = _skycoin.coin__Transaction_InnerHash_set - __swig_getmethods__["InnerHash"] = _skycoin.coin__Transaction_InnerHash_get - if _newclass: - InnerHash = _swig_property(_skycoin.coin__Transaction_InnerHash_get, _skycoin.coin__Transaction_InnerHash_set) - __swig_setmethods__["Sigs"] = _skycoin.coin__Transaction_Sigs_set - __swig_getmethods__["Sigs"] = _skycoin.coin__Transaction_Sigs_get - if _newclass: - Sigs = _swig_property(_skycoin.coin__Transaction_Sigs_get, _skycoin.coin__Transaction_Sigs_set) - __swig_setmethods__["In"] = _skycoin.coin__Transaction_In_set - __swig_getmethods__["In"] = _skycoin.coin__Transaction_In_get - if _newclass: - In = _swig_property(_skycoin.coin__Transaction_In_get, _skycoin.coin__Transaction_In_set) - __swig_setmethods__["Out"] = _skycoin.coin__Transaction_Out_set - __swig_getmethods__["Out"] = _skycoin.coin__Transaction_Out_get - if _newclass: - Out = _swig_property(_skycoin.coin__Transaction_Out_get, _skycoin.coin__Transaction_Out_set) - - def __init__(self): - this = _skycoin.new_coin__Transaction() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__Transaction - __del__ = lambda self: None -coin__Transaction_swigregister = _skycoin.coin__Transaction_swigregister -coin__Transaction_swigregister(coin__Transaction) - -class coin__TransactionOutput(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__TransactionOutput, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__TransactionOutput, name) - __repr__ = _swig_repr - - def __eq__(self, t): - return _skycoin.coin__TransactionOutput___eq__(self, t) - __swig_setmethods__["Address"] = _skycoin.coin__TransactionOutput_Address_set - __swig_getmethods__["Address"] = _skycoin.coin__TransactionOutput_Address_get - if _newclass: - Address = _swig_property(_skycoin.coin__TransactionOutput_Address_get, _skycoin.coin__TransactionOutput_Address_set) - __swig_setmethods__["Coins"] = _skycoin.coin__TransactionOutput_Coins_set - __swig_getmethods__["Coins"] = _skycoin.coin__TransactionOutput_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.coin__TransactionOutput_Coins_get, _skycoin.coin__TransactionOutput_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.coin__TransactionOutput_Hours_set - __swig_getmethods__["Hours"] = _skycoin.coin__TransactionOutput_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.coin__TransactionOutput_Hours_get, _skycoin.coin__TransactionOutput_Hours_set) - - def __init__(self): - this = _skycoin.new_coin__TransactionOutput() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__TransactionOutput - __del__ = lambda self: None -coin__TransactionOutput_swigregister = _skycoin.coin__TransactionOutput_swigregister -coin__TransactionOutput_swigregister(coin__TransactionOutput) - -class coin__BlockHeader(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__BlockHeader, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__BlockHeader, name) - __repr__ = _swig_repr - - def __eq__(self, bh): - return _skycoin.coin__BlockHeader___eq__(self, bh) - __swig_setmethods__["Version"] = _skycoin.coin__BlockHeader_Version_set - __swig_getmethods__["Version"] = _skycoin.coin__BlockHeader_Version_get - if _newclass: - Version = _swig_property(_skycoin.coin__BlockHeader_Version_get, _skycoin.coin__BlockHeader_Version_set) - __swig_setmethods__["Time"] = _skycoin.coin__BlockHeader_Time_set - __swig_getmethods__["Time"] = _skycoin.coin__BlockHeader_Time_get - if _newclass: - Time = _swig_property(_skycoin.coin__BlockHeader_Time_get, _skycoin.coin__BlockHeader_Time_set) - __swig_setmethods__["BkSeq"] = _skycoin.coin__BlockHeader_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.coin__BlockHeader_BkSeq_get - if _newclass: - BkSeq = _swig_property(_skycoin.coin__BlockHeader_BkSeq_get, _skycoin.coin__BlockHeader_BkSeq_set) - __swig_setmethods__["Fee"] = _skycoin.coin__BlockHeader_Fee_set - __swig_getmethods__["Fee"] = _skycoin.coin__BlockHeader_Fee_get - if _newclass: - Fee = _swig_property(_skycoin.coin__BlockHeader_Fee_get, _skycoin.coin__BlockHeader_Fee_set) - __swig_setmethods__["PrevHash"] = _skycoin.coin__BlockHeader_PrevHash_set - __swig_getmethods__["PrevHash"] = _skycoin.coin__BlockHeader_PrevHash_get - if _newclass: - PrevHash = _swig_property(_skycoin.coin__BlockHeader_PrevHash_get, _skycoin.coin__BlockHeader_PrevHash_set) - __swig_setmethods__["BodyHash"] = _skycoin.coin__BlockHeader_BodyHash_set - __swig_getmethods__["BodyHash"] = _skycoin.coin__BlockHeader_BodyHash_get - if _newclass: - BodyHash = _swig_property(_skycoin.coin__BlockHeader_BodyHash_get, _skycoin.coin__BlockHeader_BodyHash_set) - __swig_setmethods__["UxHash"] = _skycoin.coin__BlockHeader_UxHash_set - __swig_getmethods__["UxHash"] = _skycoin.coin__BlockHeader_UxHash_get - if _newclass: - UxHash = _swig_property(_skycoin.coin__BlockHeader_UxHash_get, _skycoin.coin__BlockHeader_UxHash_set) - - def __init__(self): - this = _skycoin.new_coin__BlockHeader() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__BlockHeader - __del__ = lambda self: None -coin__BlockHeader_swigregister = _skycoin.coin__BlockHeader_swigregister -coin__BlockHeader_swigregister(coin__BlockHeader) - -class coin__BlockBody(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__BlockBody, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__BlockBody, name) - __repr__ = _swig_repr - - def __eq__(self, b): - return _skycoin.coin__BlockBody___eq__(self, b) - __swig_setmethods__["Transactions"] = _skycoin.coin__BlockBody_Transactions_set - __swig_getmethods__["Transactions"] = _skycoin.coin__BlockBody_Transactions_get - if _newclass: - Transactions = _swig_property(_skycoin.coin__BlockBody_Transactions_get, _skycoin.coin__BlockBody_Transactions_set) - - def __init__(self): - this = _skycoin.new_coin__BlockBody() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__BlockBody - __del__ = lambda self: None -coin__BlockBody_swigregister = _skycoin.coin__BlockBody_swigregister -coin__BlockBody_swigregister(coin__BlockBody) - -class coin__Block(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__Block, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__Block, name) - __repr__ = _swig_repr - __swig_setmethods__["Head"] = _skycoin.coin__Block_Head_set - __swig_getmethods__["Head"] = _skycoin.coin__Block_Head_get - if _newclass: - Head = _swig_property(_skycoin.coin__Block_Head_get, _skycoin.coin__Block_Head_set) - __swig_setmethods__["Body"] = _skycoin.coin__Block_Body_set - __swig_getmethods__["Body"] = _skycoin.coin__Block_Body_get - if _newclass: - Body = _swig_property(_skycoin.coin__Block_Body_get, _skycoin.coin__Block_Body_set) - - def __init__(self): - this = _skycoin.new_coin__Block() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__Block - __del__ = lambda self: None -coin__Block_swigregister = _skycoin.coin__Block_swigregister -coin__Block_swigregister(coin__Block) - -class coin__SignedBlock(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__SignedBlock, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__SignedBlock, name) - __repr__ = _swig_repr - __swig_setmethods__["_unnamed"] = _skycoin.coin__SignedBlock__unnamed_set - __swig_getmethods__["_unnamed"] = _skycoin.coin__SignedBlock__unnamed_get - if _newclass: - _unnamed = _swig_property(_skycoin.coin__SignedBlock__unnamed_get, _skycoin.coin__SignedBlock__unnamed_set) - __swig_setmethods__["Sig"] = _skycoin.coin__SignedBlock_Sig_set - __swig_getmethods__["Sig"] = _skycoin.coin__SignedBlock_Sig_get - if _newclass: - Sig = _swig_property(_skycoin.coin__SignedBlock_Sig_get, _skycoin.coin__SignedBlock_Sig_set) - - def __init__(self): - this = _skycoin.new_coin__SignedBlock() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__SignedBlock - __del__ = lambda self: None -coin__SignedBlock_swigregister = _skycoin.coin__SignedBlock_swigregister -coin__SignedBlock_swigregister(coin__SignedBlock) - -class coin__UxHead(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__UxHead, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__UxHead, name) - __repr__ = _swig_repr - __swig_setmethods__["Time"] = _skycoin.coin__UxHead_Time_set - __swig_getmethods__["Time"] = _skycoin.coin__UxHead_Time_get - if _newclass: - Time = _swig_property(_skycoin.coin__UxHead_Time_get, _skycoin.coin__UxHead_Time_set) - __swig_setmethods__["BkSeq"] = _skycoin.coin__UxHead_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.coin__UxHead_BkSeq_get - if _newclass: - BkSeq = _swig_property(_skycoin.coin__UxHead_BkSeq_get, _skycoin.coin__UxHead_BkSeq_set) - - def __init__(self): - this = _skycoin.new_coin__UxHead() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__UxHead - __del__ = lambda self: None -coin__UxHead_swigregister = _skycoin.coin__UxHead_swigregister -coin__UxHead_swigregister(coin__UxHead) - -class coin__UxBody(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__UxBody, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__UxBody, name) - __repr__ = _swig_repr - - def GetSrcTransaction(self): - return _skycoin.coin__UxBody_GetSrcTransaction(self) - - def SetSrcTransaction(self, o): - return _skycoin.coin__UxBody_SetSrcTransaction(self, o) - __swig_setmethods__["SrcTransaction"] = _skycoin.coin__UxBody_SrcTransaction_set - __swig_getmethods__["SrcTransaction"] = _skycoin.coin__UxBody_SrcTransaction_get - if _newclass: - SrcTransaction = _swig_property(_skycoin.coin__UxBody_SrcTransaction_get, _skycoin.coin__UxBody_SrcTransaction_set) - __swig_setmethods__["Address"] = _skycoin.coin__UxBody_Address_set - __swig_getmethods__["Address"] = _skycoin.coin__UxBody_Address_get - if _newclass: - Address = _swig_property(_skycoin.coin__UxBody_Address_get, _skycoin.coin__UxBody_Address_set) - __swig_setmethods__["Coins"] = _skycoin.coin__UxBody_Coins_set - __swig_getmethods__["Coins"] = _skycoin.coin__UxBody_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.coin__UxBody_Coins_get, _skycoin.coin__UxBody_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.coin__UxBody_Hours_set - __swig_getmethods__["Hours"] = _skycoin.coin__UxBody_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.coin__UxBody_Hours_get, _skycoin.coin__UxBody_Hours_set) - - def __init__(self): - this = _skycoin.new_coin__UxBody() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__UxBody - __del__ = lambda self: None -coin__UxBody_swigregister = _skycoin.coin__UxBody_swigregister -coin__UxBody_swigregister(coin__UxBody) - -class coin__UxOut(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__UxOut, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__UxOut, name) - __repr__ = _swig_repr - - def __eq__(self, u): - return _skycoin.coin__UxOut___eq__(self, u) - __swig_setmethods__["Head"] = _skycoin.coin__UxOut_Head_set - __swig_getmethods__["Head"] = _skycoin.coin__UxOut_Head_get - if _newclass: - Head = _swig_property(_skycoin.coin__UxOut_Head_get, _skycoin.coin__UxOut_Head_set) - __swig_setmethods__["Body"] = _skycoin.coin__UxOut_Body_set - __swig_getmethods__["Body"] = _skycoin.coin__UxOut_Body_get - if _newclass: - Body = _swig_property(_skycoin.coin__UxOut_Body_get, _skycoin.coin__UxOut_Body_set) - - def __init__(self): - this = _skycoin.new_coin__UxOut() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__UxOut - __del__ = lambda self: None -coin__UxOut_swigregister = _skycoin.coin__UxOut_swigregister -coin__UxOut_swigregister(coin__UxOut) - -class httphelper__Address(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, httphelper__Address, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, httphelper__Address, name) - __repr__ = _swig_repr - __swig_setmethods__["_unnamed"] = _skycoin.httphelper__Address__unnamed_set - __swig_getmethods__["_unnamed"] = _skycoin.httphelper__Address__unnamed_get - if _newclass: - _unnamed = _swig_property(_skycoin.httphelper__Address__unnamed_get, _skycoin.httphelper__Address__unnamed_set) - - def __init__(self): - this = _skycoin.new_httphelper__Address() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_httphelper__Address - __del__ = lambda self: None -httphelper__Address_swigregister = _skycoin.httphelper__Address_swigregister -httphelper__Address_swigregister(httphelper__Address) - -class wallet__Balance(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Balance, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Balance, name) - __repr__ = _swig_repr - __swig_setmethods__["Coins"] = _skycoin.wallet__Balance_Coins_set - __swig_getmethods__["Coins"] = _skycoin.wallet__Balance_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.wallet__Balance_Coins_get, _skycoin.wallet__Balance_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.wallet__Balance_Hours_set - __swig_getmethods__["Hours"] = _skycoin.wallet__Balance_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.wallet__Balance_Hours_get, _skycoin.wallet__Balance_Hours_set) - - def __init__(self): - this = _skycoin.new_wallet__Balance() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Balance - __del__ = lambda self: None -wallet__Balance_swigregister = _skycoin.wallet__Balance_swigregister -wallet__Balance_swigregister(wallet__Balance) - -class wallet__BalancePair(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__BalancePair, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__BalancePair, name) - __repr__ = _swig_repr - __swig_setmethods__["Confirmed"] = _skycoin.wallet__BalancePair_Confirmed_set - __swig_getmethods__["Confirmed"] = _skycoin.wallet__BalancePair_Confirmed_get - if _newclass: - Confirmed = _swig_property(_skycoin.wallet__BalancePair_Confirmed_get, _skycoin.wallet__BalancePair_Confirmed_set) - __swig_setmethods__["Predicted"] = _skycoin.wallet__BalancePair_Predicted_set - __swig_getmethods__["Predicted"] = _skycoin.wallet__BalancePair_Predicted_get - if _newclass: - Predicted = _swig_property(_skycoin.wallet__BalancePair_Predicted_get, _skycoin.wallet__BalancePair_Predicted_set) - - def __init__(self): - this = _skycoin.new_wallet__BalancePair() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__BalancePair - __del__ = lambda self: None -wallet__BalancePair_swigregister = _skycoin.wallet__BalancePair_swigregister -wallet__BalancePair_swigregister(wallet__BalancePair) - -class wallet__Entry(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Entry, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Entry, name) - __repr__ = _swig_repr - __swig_setmethods__["Address"] = _skycoin.wallet__Entry_Address_set - __swig_getmethods__["Address"] = _skycoin.wallet__Entry_Address_get - if _newclass: - Address = _swig_property(_skycoin.wallet__Entry_Address_get, _skycoin.wallet__Entry_Address_set) - __swig_setmethods__["Public"] = _skycoin.wallet__Entry_Public_set - __swig_getmethods__["Public"] = _skycoin.wallet__Entry_Public_get - if _newclass: - Public = _swig_property(_skycoin.wallet__Entry_Public_get, _skycoin.wallet__Entry_Public_set) - __swig_setmethods__["Secret"] = _skycoin.wallet__Entry_Secret_set - __swig_getmethods__["Secret"] = _skycoin.wallet__Entry_Secret_get - if _newclass: - Secret = _swig_property(_skycoin.wallet__Entry_Secret_get, _skycoin.wallet__Entry_Secret_set) - - def __init__(self): - this = _skycoin.new_wallet__Entry() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Entry - __del__ = lambda self: None -wallet__Entry_swigregister = _skycoin.wallet__Entry_swigregister -wallet__Entry_swigregister(wallet__Entry) - -class wallet__Note(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Note, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Note, name) - __repr__ = _swig_repr - __swig_setmethods__["TxID"] = _skycoin.wallet__Note_TxID_set - __swig_getmethods__["TxID"] = _skycoin.wallet__Note_TxID_get - if _newclass: - TxID = _swig_property(_skycoin.wallet__Note_TxID_get, _skycoin.wallet__Note_TxID_set) - __swig_setmethods__["Value"] = _skycoin.wallet__Note_Value_set - __swig_getmethods__["Value"] = _skycoin.wallet__Note_Value_get - if _newclass: - Value = _swig_property(_skycoin.wallet__Note_Value_get, _skycoin.wallet__Note_Value_set) - - def __init__(self): - this = _skycoin.new_wallet__Note() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Note - __del__ = lambda self: None -wallet__Note_swigregister = _skycoin.wallet__Note_swigregister -wallet__Note_swigregister(wallet__Note) - -class wallet__ReadableNote(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__ReadableNote, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__ReadableNote, name) - __repr__ = _swig_repr - __swig_setmethods__["TransactionID"] = _skycoin.wallet__ReadableNote_TransactionID_set - __swig_getmethods__["TransactionID"] = _skycoin.wallet__ReadableNote_TransactionID_get - if _newclass: - TransactionID = _swig_property(_skycoin.wallet__ReadableNote_TransactionID_get, _skycoin.wallet__ReadableNote_TransactionID_set) - __swig_setmethods__["ActualNote"] = _skycoin.wallet__ReadableNote_ActualNote_set - __swig_getmethods__["ActualNote"] = _skycoin.wallet__ReadableNote_ActualNote_get - if _newclass: - ActualNote = _swig_property(_skycoin.wallet__ReadableNote_ActualNote_get, _skycoin.wallet__ReadableNote_ActualNote_set) - - def __init__(self): - this = _skycoin.new_wallet__ReadableNote() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__ReadableNote - __del__ = lambda self: None -wallet__ReadableNote_swigregister = _skycoin.wallet__ReadableNote_swigregister -wallet__ReadableNote_swigregister(wallet__ReadableNote) - -class wallet__UxBalance(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__UxBalance, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__UxBalance, name) - __repr__ = _swig_repr - __swig_setmethods__["Hash"] = _skycoin.wallet__UxBalance_Hash_set - __swig_getmethods__["Hash"] = _skycoin.wallet__UxBalance_Hash_get - if _newclass: - Hash = _swig_property(_skycoin.wallet__UxBalance_Hash_get, _skycoin.wallet__UxBalance_Hash_set) - __swig_setmethods__["BkSeq"] = _skycoin.wallet__UxBalance_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.wallet__UxBalance_BkSeq_get - if _newclass: - BkSeq = _swig_property(_skycoin.wallet__UxBalance_BkSeq_get, _skycoin.wallet__UxBalance_BkSeq_set) - __swig_setmethods__["Address"] = _skycoin.wallet__UxBalance_Address_set - __swig_getmethods__["Address"] = _skycoin.wallet__UxBalance_Address_get - if _newclass: - Address = _swig_property(_skycoin.wallet__UxBalance_Address_get, _skycoin.wallet__UxBalance_Address_set) - __swig_setmethods__["Coins"] = _skycoin.wallet__UxBalance_Coins_set - __swig_getmethods__["Coins"] = _skycoin.wallet__UxBalance_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.wallet__UxBalance_Coins_get, _skycoin.wallet__UxBalance_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.wallet__UxBalance_Hours_set - __swig_getmethods__["Hours"] = _skycoin.wallet__UxBalance_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.wallet__UxBalance_Hours_get, _skycoin.wallet__UxBalance_Hours_set) - - def __init__(self): - this = _skycoin.new_wallet__UxBalance() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__UxBalance - __del__ = lambda self: None -wallet__UxBalance_swigregister = _skycoin.wallet__UxBalance_swigregister -wallet__UxBalance_swigregister(wallet__UxBalance) - -SKY_OK = _skycoin.SKY_OK -SKY_ERROR = _skycoin.SKY_ERROR -SKY_BAD_HANDLE = _skycoin.SKY_BAD_HANDLE -SKY_INVALID_TIMESTRING = _skycoin.SKY_INVALID_TIMESTRING -SKY_PKG_API = _skycoin.SKY_PKG_API -SKY_PKG_CIPHER = _skycoin.SKY_PKG_CIPHER -SKY_PKG_CLI = _skycoin.SKY_PKG_CLI -SKY_PKG_COIN = _skycoin.SKY_PKG_COIN -SKY_PKG_CONSENSUS = _skycoin.SKY_PKG_CONSENSUS -SKY_PKG_DAEMON = _skycoin.SKY_PKG_DAEMON -SKY_PKG_GUI = _skycoin.SKY_PKG_GUI -SKY_PKG_SKYCOIN = _skycoin.SKY_PKG_SKYCOIN -SKY_PKG_UTIL = _skycoin.SKY_PKG_UTIL -SKY_PKG_VISOR = _skycoin.SKY_PKG_VISOR -SKY_PKG_WALLET = _skycoin.SKY_PKG_WALLET -SKY_PKG_PARAMS = _skycoin.SKY_PKG_PARAMS -SKY_PKG_LIBCGO = _skycoin.SKY_PKG_LIBCGO -SKY_ErrAddressInvalidLength = _skycoin.SKY_ErrAddressInvalidLength -SKY_ErrAddressInvalidChecksum = _skycoin.SKY_ErrAddressInvalidChecksum -SKY_ErrAddressInvalidVersion = _skycoin.SKY_ErrAddressInvalidVersion -SKY_ErrAddressInvalidPubKey = _skycoin.SKY_ErrAddressInvalidPubKey -SKY_ErrAddressInvalidFirstByte = _skycoin.SKY_ErrAddressInvalidFirstByte -SKY_ErrAddressInvalidLastByte = _skycoin.SKY_ErrAddressInvalidLastByte -SKY_ErrBufferUnderflow = _skycoin.SKY_ErrBufferUnderflow -SKY_ErrInvalidOmitEmpty = _skycoin.SKY_ErrInvalidOmitEmpty -SKY_ErrInvalidLengthPubKey = _skycoin.SKY_ErrInvalidLengthPubKey -SKY_ErrPubKeyFromNullSecKey = _skycoin.SKY_ErrPubKeyFromNullSecKey -SKY_ErrPubKeyFromBadSecKey = _skycoin.SKY_ErrPubKeyFromBadSecKey -SKY_ErrInvalidLengthSecKey = _skycoin.SKY_ErrInvalidLengthSecKey -SKY_ErrECHDInvalidPubKey = _skycoin.SKY_ErrECHDInvalidPubKey -SKY_ErrECHDInvalidSecKey = _skycoin.SKY_ErrECHDInvalidSecKey -SKY_ErrInvalidLengthSig = _skycoin.SKY_ErrInvalidLengthSig -SKY_ErrInvalidLengthRipemd160 = _skycoin.SKY_ErrInvalidLengthRipemd160 -SKY_ErrInvalidLengthSHA256 = _skycoin.SKY_ErrInvalidLengthSHA256 -SKY_ErrInvalidBase58Char = _skycoin.SKY_ErrInvalidBase58Char -SKY_ErrInvalidBase58String = _skycoin.SKY_ErrInvalidBase58String -SKY_ErrInvalidBase58Length = _skycoin.SKY_ErrInvalidBase58Length -SKY_ErrInvalidHexLength = _skycoin.SKY_ErrInvalidHexLength -SKY_ErrInvalidBytesLength = _skycoin.SKY_ErrInvalidBytesLength -SKY_ErrInvalidPubKey = _skycoin.SKY_ErrInvalidPubKey -SKY_ErrInvalidSecKey = _skycoin.SKY_ErrInvalidSecKey -SKY_ErrInvalidSigPubKeyRecovery = _skycoin.SKY_ErrInvalidSigPubKeyRecovery -SKY_ErrInvalidSecKeyHex = _skycoin.SKY_ErrInvalidSecKeyHex -SKY_ErrInvalidAddressForSig = _skycoin.SKY_ErrInvalidAddressForSig -SKY_ErrInvalidHashForSig = _skycoin.SKY_ErrInvalidHashForSig -SKY_ErrPubKeyRecoverMismatch = _skycoin.SKY_ErrPubKeyRecoverMismatch -SKY_ErrInvalidSigInvalidPubKey = _skycoin.SKY_ErrInvalidSigInvalidPubKey -SKY_ErrInvalidSigValidity = _skycoin.SKY_ErrInvalidSigValidity -SKY_ErrInvalidSigForMessage = _skycoin.SKY_ErrInvalidSigForMessage -SKY_ErrInvalidSecKyVerification = _skycoin.SKY_ErrInvalidSecKyVerification -SKY_ErrNullPubKeyFromSecKey = _skycoin.SKY_ErrNullPubKeyFromSecKey -SKY_ErrInvalidDerivedPubKeyFromSecKey = _skycoin.SKY_ErrInvalidDerivedPubKeyFromSecKey -SKY_ErrInvalidPubKeyFromHash = _skycoin.SKY_ErrInvalidPubKeyFromHash -SKY_ErrPubKeyFromSecKeyMismatch = _skycoin.SKY_ErrPubKeyFromSecKeyMismatch -SKY_ErrInvalidLength = _skycoin.SKY_ErrInvalidLength -SKY_ErrBitcoinWIFInvalidFirstByte = _skycoin.SKY_ErrBitcoinWIFInvalidFirstByte -SKY_ErrBitcoinWIFInvalidSuffix = _skycoin.SKY_ErrBitcoinWIFInvalidSuffix -SKY_ErrBitcoinWIFInvalidChecksum = _skycoin.SKY_ErrBitcoinWIFInvalidChecksum -SKY_ErrEmptySeed = _skycoin.SKY_ErrEmptySeed -SKY_ErrInvalidSig = _skycoin.SKY_ErrInvalidSig -SKY_ErrMissingPassword = _skycoin.SKY_ErrMissingPassword -SKY_ErrDataTooLarge = _skycoin.SKY_ErrDataTooLarge -SKY_ErrInvalidChecksumLength = _skycoin.SKY_ErrInvalidChecksumLength -SKY_ErrInvalidChecksum = _skycoin.SKY_ErrInvalidChecksum -SKY_ErrInvalidNonceLength = _skycoin.SKY_ErrInvalidNonceLength -SKY_ErrInvalidBlockSize = _skycoin.SKY_ErrInvalidBlockSize -SKY_ErrReadDataHashFailed = _skycoin.SKY_ErrReadDataHashFailed -SKY_ErrInvalidPassword = _skycoin.SKY_ErrInvalidPassword -SKY_ErrReadDataLengthFailed = _skycoin.SKY_ErrReadDataLengthFailed -SKY_ErrInvalidDataLength = _skycoin.SKY_ErrInvalidDataLength -SKY_ErrTemporaryInsufficientBalance = _skycoin.SKY_ErrTemporaryInsufficientBalance -SKY_ErrAddress = _skycoin.SKY_ErrAddress -SKY_ErrWalletName = _skycoin.SKY_ErrWalletName -SKY_ErrJSONMarshal = _skycoin.SKY_ErrJSONMarshal -SKY_WalletLoadError = _skycoin.SKY_WalletLoadError -SKY_WalletSaveError = _skycoin.SKY_WalletSaveError -SKY_ErrAddEarnedCoinHoursAdditionOverflow = _skycoin.SKY_ErrAddEarnedCoinHoursAdditionOverflow -SKY_ErrUint64MultOverflow = _skycoin.SKY_ErrUint64MultOverflow -SKY_ErrUint64AddOverflow = _skycoin.SKY_ErrUint64AddOverflow -SKY_ErrUint32AddOverflow = _skycoin.SKY_ErrUint32AddOverflow -SKY_ErrUint64OverflowsInt64 = _skycoin.SKY_ErrUint64OverflowsInt64 -SKY_ErrInt64UnderflowsUint64 = _skycoin.SKY_ErrInt64UnderflowsUint64 -SKY_ErrIntUnderflowsUint32 = _skycoin.SKY_ErrIntUnderflowsUint32 -SKY_ErrIntOverflowsUint32 = _skycoin.SKY_ErrIntOverflowsUint32 -SKY_ErrPeerlistFull = _skycoin.SKY_ErrPeerlistFull -SKY_ErrInvalidAddress = _skycoin.SKY_ErrInvalidAddress -SKY_ErrNoLocalhost = _skycoin.SKY_ErrNoLocalhost -SKY_ErrNotExternalIP = _skycoin.SKY_ErrNotExternalIP -SKY_ErrPortTooLow = _skycoin.SKY_ErrPortTooLow -SKY_ErrBlacklistedAddress = _skycoin.SKY_ErrBlacklistedAddress -SKY_ErrDisconnectWriteFailed = _skycoin.SKY_ErrDisconnectWriteFailed -SKY_ErrDisconnectSetReadDeadlineFailed = _skycoin.SKY_ErrDisconnectSetReadDeadlineFailed -SKY_ErrDisconnectInvalidMessageLength = _skycoin.SKY_ErrDisconnectInvalidMessageLength -SKY_ErrDisconnectMalformedMessage = _skycoin.SKY_ErrDisconnectMalformedMessage -SKY_ErrDisconnectUnknownMessage = _skycoin.SKY_ErrDisconnectUnknownMessage -SKY_ErrConnectionPoolClosed = _skycoin.SKY_ErrConnectionPoolClosed -SKY_ErrWriteQueueFull = _skycoin.SKY_ErrWriteQueueFull -SKY_ErrNoReachableConnections = _skycoin.SKY_ErrNoReachableConnections -SKY_ErrMaxDefaultConnectionsReached = _skycoin.SKY_ErrMaxDefaultConnectionsReached -SKY_ErrDisconnectVersionNotSupported = _skycoin.SKY_ErrDisconnectVersionNotSupported -SKY_ErrDisconnectIntroductionTimeout = _skycoin.SKY_ErrDisconnectIntroductionTimeout -SKY_ErrDisconnectIsBlacklisted = _skycoin.SKY_ErrDisconnectIsBlacklisted -SKY_ErrDisconnectSelf = _skycoin.SKY_ErrDisconnectSelf -SKY_ErrDisconnectConnectedTwice = _skycoin.SKY_ErrDisconnectConnectedTwice -SKY_ErrDisconnectIdle = _skycoin.SKY_ErrDisconnectIdle -SKY_ErrDisconnectNoIntroduction = _skycoin.SKY_ErrDisconnectNoIntroduction -SKY_ErrDisconnectIPLimitReached = _skycoin.SKY_ErrDisconnectIPLimitReached -SKY_ErrDisconnectMaxDefaultConnectionReached = _skycoin.SKY_ErrDisconnectMaxDefaultConnectionReached -SKY_ErrDisconnectMaxOutgoingConnectionsReached = _skycoin.SKY_ErrDisconnectMaxOutgoingConnectionsReached -SKY_ConnectionError = _skycoin.SKY_ConnectionError -SKY_ErrTxnNoFee = _skycoin.SKY_ErrTxnNoFee -SKY_ErrTxnInsufficientFee = _skycoin.SKY_ErrTxnInsufficientFee -SKY_ErrTxnInsufficientCoinHours = _skycoin.SKY_ErrTxnInsufficientCoinHours -SKY_ErrNegativeValue = _skycoin.SKY_ErrNegativeValue -SKY_ErrTooManyDecimals = _skycoin.SKY_ErrTooManyDecimals -SKY_ErrTooLarge = _skycoin.SKY_ErrTooLarge -SKY_ErrEmptyDirectoryName = _skycoin.SKY_ErrEmptyDirectoryName -SKY_ErrDotDirectoryName = _skycoin.SKY_ErrDotDirectoryName -SKY_ErrHistoryDBCorrupted = _skycoin.SKY_ErrHistoryDBCorrupted -SKY_ErrUxOutNotExist = _skycoin.SKY_ErrUxOutNotExist -SKY_ErrNoHeadBlock = _skycoin.SKY_ErrNoHeadBlock -SKY_ErrMissingSignature = _skycoin.SKY_ErrMissingSignature -SKY_ErrUnspentNotExist = _skycoin.SKY_ErrUnspentNotExist -SKY_ErrVerifyStopped = _skycoin.SKY_ErrVerifyStopped -SKY_ErrCreateBucketFailed = _skycoin.SKY_ErrCreateBucketFailed -SKY_ErrBucketNotExist = _skycoin.SKY_ErrBucketNotExist -SKY_ErrTxnViolatesHardConstraint = _skycoin.SKY_ErrTxnViolatesHardConstraint -SKY_ErrTxnViolatesSoftConstraint = _skycoin.SKY_ErrTxnViolatesSoftConstraint -SKY_ErrTxnViolatesUserConstraint = _skycoin.SKY_ErrTxnViolatesUserConstraint -SKY_ErrInsufficientBalance = _skycoin.SKY_ErrInsufficientBalance -SKY_ErrInsufficientHours = _skycoin.SKY_ErrInsufficientHours -SKY_ErrZeroSpend = _skycoin.SKY_ErrZeroSpend -SKY_ErrSpendingUnconfirmed = _skycoin.SKY_ErrSpendingUnconfirmed -SKY_ErrInvalidEncryptedField = _skycoin.SKY_ErrInvalidEncryptedField -SKY_ErrWalletEncrypted = _skycoin.SKY_ErrWalletEncrypted -SKY_ErrWalletNotEncrypted = _skycoin.SKY_ErrWalletNotEncrypted -SKY_ErrWalletMissingPassword = _skycoin.SKY_ErrWalletMissingPassword -SKY_ErrMissingEncrypt = _skycoin.SKY_ErrMissingEncrypt -SKY_ErrWalletInvalidPassword = _skycoin.SKY_ErrWalletInvalidPassword -SKY_ErrMissingSeed = _skycoin.SKY_ErrMissingSeed -SKY_ErrMissingAuthenticated = _skycoin.SKY_ErrMissingAuthenticated -SKY_ErrWrongCryptoType = _skycoin.SKY_ErrWrongCryptoType -SKY_ErrWalletNotExist = _skycoin.SKY_ErrWalletNotExist -SKY_ErrSeedUsed = _skycoin.SKY_ErrSeedUsed -SKY_ErrWalletAPIDisabled = _skycoin.SKY_ErrWalletAPIDisabled -SKY_ErrSeedAPIDisabled = _skycoin.SKY_ErrSeedAPIDisabled -SKY_ErrWalletNameConflict = _skycoin.SKY_ErrWalletNameConflict -SKY_ErrInvalidHoursSelectionMode = _skycoin.SKY_ErrInvalidHoursSelectionMode -SKY_ErrInvalidHoursSelectionType = _skycoin.SKY_ErrInvalidHoursSelectionType -SKY_ErrUnknownAddress = _skycoin.SKY_ErrUnknownAddress -SKY_ErrUnknownUxOut = _skycoin.SKY_ErrUnknownUxOut -SKY_ErrNoUnspents = _skycoin.SKY_ErrNoUnspents -SKY_ErrNullChangeAddress = _skycoin.SKY_ErrNullChangeAddress -SKY_ErrMissingTo = _skycoin.SKY_ErrMissingTo -SKY_ErrZeroCoinsTo = _skycoin.SKY_ErrZeroCoinsTo -SKY_ErrNullAddressTo = _skycoin.SKY_ErrNullAddressTo -SKY_ErrDuplicateTo = _skycoin.SKY_ErrDuplicateTo -SKY_ErrMissingWalletID = _skycoin.SKY_ErrMissingWalletID -SKY_ErrIncludesNullAddress = _skycoin.SKY_ErrIncludesNullAddress -SKY_ErrDuplicateAddresses = _skycoin.SKY_ErrDuplicateAddresses -SKY_ErrZeroToHoursAuto = _skycoin.SKY_ErrZeroToHoursAuto -SKY_ErrMissingModeAuto = _skycoin.SKY_ErrMissingModeAuto -SKY_ErrInvalidHoursSelMode = _skycoin.SKY_ErrInvalidHoursSelMode -SKY_ErrInvalidModeManual = _skycoin.SKY_ErrInvalidModeManual -SKY_ErrInvalidHoursSelType = _skycoin.SKY_ErrInvalidHoursSelType -SKY_ErrMissingShareFactor = _skycoin.SKY_ErrMissingShareFactor -SKY_ErrInvalidShareFactor = _skycoin.SKY_ErrInvalidShareFactor -SKY_ErrShareFactorOutOfRange = _skycoin.SKY_ErrShareFactorOutOfRange -SKY_ErrWalletConstraint = _skycoin.SKY_ErrWalletConstraint -SKY_ErrDuplicateUxOuts = _skycoin.SKY_ErrDuplicateUxOuts -SKY_ErrUnknownWalletID = _skycoin.SKY_ErrUnknownWalletID -SKY_ErrVerifySignatureInvalidInputsNils = _skycoin.SKY_ErrVerifySignatureInvalidInputsNils -SKY_ErrVerifySignatureInvalidSigLength = _skycoin.SKY_ErrVerifySignatureInvalidSigLength -SKY_ErrVerifySignatureInvalidPubkeysLength = _skycoin.SKY_ErrVerifySignatureInvalidPubkeysLength -SKY_ErrInvalidDecimals = _skycoin.SKY_ErrInvalidDecimals -# This file is compatible with both classic and new-style classes. - - diff --git a/lib/swig/swig/include/libskycoin.h b/lib/swig/swig/include/libskycoin.h deleted file mode 100644 index 69c78941..00000000 --- a/lib/swig/swig/include/libskycoin.h +++ /dev/null @@ -1,1233 +0,0 @@ -/* Created by "go tool cgo" - DO NOT EDIT. */ - -/* package command-line-arguments */ - - -#line 1 "cgo-builtin-prolog" - -#include /* for ptrdiff_t below */ - -#ifndef GO_CGO_EXPORT_PROLOGUE_H -#define GO_CGO_EXPORT_PROLOGUE_H - -typedef struct { const char *p; ptrdiff_t n; } _GoString_; - -#endif - -/* Start of preamble from import "C" comments. */ - - -#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_wallet.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.client.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.spend.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.wallet.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.webrpc.client.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.address.go" - - -#include -#include -#include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.base58.base58.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.bitcoin.go" - -#include -#include - -#include "skytypes.h" - - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.crypto.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.go-bip39.bip39.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.hash.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.add_private_key.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.check_balance.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.cli.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.create_rawtx.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_addrs.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.outputs.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli_helper.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.block.go" - - - #include - #include - - #include "skytypes.h" - #include "skyfee.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.math.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.outputs.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 13 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.transactions.go" - - - #include - #include - - #include "skytypes.h" - #include "skyfee.h" - -#line 1 "cgo-generated-wrapper" - -#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle.go" - - - #include - #include - - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle_helper.go" - - - #include - #include - - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_map.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/params.distribution.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/testutil.testutil.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.apputil.apputil.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.cert.cert.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.droplet.droplet.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.fee.fee.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.file.file.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.http.json.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.iputil.iputil.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.logging.logging.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.balance.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.crypto.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.entry.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.readable.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.wallet.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet_option.go" - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - - -/* End of preamble from import "C" comments. */ - - -/* Start of boilerplate cgo prologue. */ -#line 1 "cgo-gcc-export-header-prolog" - -#ifndef GO_CGO_PROLOGUE_H -#define GO_CGO_PROLOGUE_H - -typedef signed char GoInt8; -typedef unsigned char GoUint8; -typedef short GoInt16; -typedef unsigned short GoUint16; -typedef int GoInt32; -typedef unsigned int GoUint32; -typedef long long GoInt64; -typedef unsigned long long GoUint64; -typedef GoInt64 GoInt; -typedef GoUint64 GoUint; -typedef __SIZE_TYPE__ GoUintptr; -typedef float GoFloat32; -typedef double GoFloat64; - -/* - static assertion to make sure the file is being used on architecture - at least with matching size of GoInt. -*/ -typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; - -typedef _GoString_ GoString; -typedef void *GoMap; -typedef void *GoChan; -typedef struct { void *t; void *v; } GoInterface; -typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; - -#endif - -/* End of boilerplate cgo prologue. */ - -#ifdef __cplusplus -extern "C" { -#endif - - -extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); - -extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); - -extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); - -extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); - -extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); - -extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); - -extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); - -extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoSlice p1, Handle* p2); - -extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoUint64 p1, Handle* p2); - -extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); - -extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); - -extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); - -extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); - -extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); - -extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); - -extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); - -extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); - -extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); - -extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); - -extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); - -extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); - -extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); - -extern GoUint32 SKY_api_Client_WalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); - -extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); - -extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, api__NetworkConnectionsFilter* p1, Handle* p2); - -extern GoUint32 SKY_api_Client_NetworkDefaultPeers(Client__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_api_Client_NetworkTrustedPeers(Client__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_api_Client_NetworkExchangedPeers(Client__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); - -extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); - -extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); - -extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); - -extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, Transaction__Handle p1, GoString_* p2); - -extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); - -extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); - -extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); - -extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); - -extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); - -extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); - -extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); - -extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); - -extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); - -extern GoUint32 SKY_api_NewCreatedTransaction(Transaction__Handle p0, GoSlice p1, CreatedTransaction__Handle* p2); - -extern GoUint32 SKY_api_CreatedTransaction_ToTransaction(CreatedTransaction__Handle p0, Transaction__Handle* p1); - -extern GoUint32 SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput* p0, cipher__SHA256* p1, CreatedTransactionOutput__Handle* p2); - -extern GoUint32 SKY_api_NewCreatedTransactionInput(wallet__UxBalance* p0, CreatedTransactionInput__Handle* p1); - -extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); - -extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); - -extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); - -extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); - -extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); - -extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); - -extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_webrpc_Client_GetBlocksInRange(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); - -extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); - -extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); - -extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); - -extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); - -extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); - -extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); - -extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); - -extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); - -extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); - -extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); - -extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); - -extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); - -extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); - -extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); - -extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); - -extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); - -extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); - -extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); - -extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); - -extern GoUint32 SKY_cipher_DecodeBase58BitcoinAddress(GoString p0, cipher__BitcoinAddress* p1); - -extern void SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* p0, cipher__BitcoinAddress* p1); - -extern GoUint32 SKY_cipher_BitcoinAddressFromSecKey(cipher__SecKey* p0, cipher__BitcoinAddress* p1); - -extern void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress* p1); - -extern GoUint32 SKY_cipher_SecKeyFromBitcoinWalletImportFormat(GoString p0, cipher__SecKey* p1); - -extern GoUint8 SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress* p0); - -extern void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress* p0, coin__UxArray* p1); - -extern GoUint32 SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress* p0, cipher__PubKey* p1); - -extern void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress* p0, GoString_* p1); - -extern void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress* p0, cipher__Checksum* p1); - -extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); - -extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); - -extern GoUint32 SKY_cipher_PubKeyFromHex(GoString p0, cipher__PubKey* p1); - -extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); - -extern GoUint32 SKY_cipher_PubKeyFromSig(cipher__Sig* p0, cipher__SHA256* p1, cipher__PubKey* p2); - -extern GoUint32 SKY_cipher_PubKey_Verify(cipher__PubKey* p0); - -extern GoUint32 SKY_cipher_PubKey_Hex(cipher__PubKey* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_PubKeyRipemd160(cipher__PubKey* p0, cipher__Ripemd160* p1); - -extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); - -extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); - -extern GoUint32 SKY_cipher_SecKey_Verify(cipher__SecKey* p0); - -extern GoUint32 SKY_cipher_SecKey_Hex(cipher__SecKey* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__UxArray* p2); - -extern GoUint32 SKY_cipher_NewSig(GoSlice p0, cipher__Sig* p1); - -extern GoUint32 SKY_cipher_SigFromHex(GoString p0, cipher__Sig* p1); - -extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_SignHash(cipher__SHA256* p0, cipher__SecKey* p1, cipher__Sig* p2); - -extern GoUint32 SKY_cipher_VerifyAddressSignedHash(cipher__Address* p0, cipher__Sig* p1, cipher__SHA256* p2); - -extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_cipher_VerifyPubKeySignedHash(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); - -extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); - -extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); - -extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); - -extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, GoInt p1, coin__UxArray* p2); - -extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, GoInt p1, coin__UxArray* p2, coin__UxArray* p3); - -extern GoUint32 SKY_cipher_CheckSecKey(cipher__SecKey* p0); - -extern GoUint32 SKY_cipher_CheckSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); - -extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); - -extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); - -extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); - -extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); - -extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); - -extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); - -extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); - -extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); - -extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); - -extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); - -extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); - -extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); - -extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); - -extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); - -extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); - -extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); - -extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); - -extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); - -extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); - -extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); - -extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); - -extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); - -extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); - -extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); - -extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); - -extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); - -extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); - -extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); - -extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); - -extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); - -extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); - -extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); - -extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); - -extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); - -extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableUnspentOutputsSummary_Handle* p2); - -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableUnspentOutputsSummary_Handle* p2); - -extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); - -extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); - -extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); - -extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); - -extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); - -extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); - -// nolint nakedret - -extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); - -extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); - -extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); - -extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); - -extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); - -extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); - -extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); - -extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); - -extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); - -extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoUint32* p1); - -extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); - -extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); - -extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); - -extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); - -extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); - -extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); - -extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); - -extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); - -extern GoUint32 SKY_coin_IntToUint32(GoInt p0, GoUint32* p1); - -extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_UxOut_CoinHours(coin__UxOut* p0, GoUint64 p1, GoUint64* p2); - -extern GoUint32 SKY_coin_UxArray_Hashes(coin__UxArray* p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_UxArray_HasDupes(coin__UxArray* p0, GoUint8* p1); - -extern GoUint32 SKY_coin_UxArray_Sort(coin__UxArray* p0); - -extern GoUint32 SKY_coin_UxArray_Len(coin__UxArray* p0, GoInt* p1); - -extern GoUint32 SKY_coin_UxArray_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); - -extern GoUint32 SKY_coin_UxArray_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); - -extern GoUint32 SKY_coin_UxArray_Coins(coin__UxArray* p0, GoUint64* p1); - -extern GoUint32 SKY_coin_UxArray_CoinHours(coin__UxArray* p0, GoUint64 p1, GoUint64* p2); - -extern GoUint32 SKY_coin_UxArray_Sub(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); - -extern GoUint32 SKY_coin_UxArray_Add(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); - -extern GoUint32 SKY_coin_NewAddressUxOuts(coin__UxArray* p0, AddressUxOuts_Handle* p1); - -extern GoUint32 SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_AddressUxOuts_Sub(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); - -extern GoUint32 SKY_coin_AddressUxOuts_Add(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); - -extern GoUint32 SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); - -extern GoUint32 SKY_coin_AddressUxOuts_HasKey(AddressUxOuts_Handle p0, cipher__Address* p1, GoUint8* p2); - -extern GoUint32 SKY_coin_AddressUxOuts_GetOutputLength(AddressUxOuts_Handle p0, cipher__Address* p1, GoInt* p2); - -extern GoUint32 SKY_coin_AddressUxOuts_Length(AddressUxOuts_Handle p0, GoInt* p1); - -extern GoUint32 SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); - -extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); - -extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); - -extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); - -extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); - -extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); - -extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); - -extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); - -extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); - -extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); - -extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); - -extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); - -extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); - -extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); - -extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); - -extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); - -extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); - -extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); - -extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); - -extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); - -extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); - -extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); - -extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoUint32* p1, cipher__SHA256* p2); - -extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); - -extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); - -extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); - -extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); - -extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); - -extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); - -extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); - -extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); - -extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); - -extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); - -extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); - -extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoUint32 p1, Transactions__Handle* p2); - -extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); - -extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); - -extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); - -extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); - -extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); - -extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); - -extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); - -extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); - -extern void SKY_handle_close(Handle p0); - -extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); - -extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); - -extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); - -extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); - -extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); - -extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); - -extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); - -extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); - -extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); - -extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); - -extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); - -extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); - -extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); - -extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); - -extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); - -extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); - -extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); - -extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); - -extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); - -extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); - -extern GoUint32 SKY_map_Close(GoStringMap_* p0); - -extern void SKY_params_GetDistributionAddresses(coin__UxArray* p0); - -extern void SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* p0); - -extern void SKY_params_GetLockedDistributionAddresses(coin__UxArray* p0); - -extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); - -extern GoUint32 SKY_apputil_CatchInterruptPanic(); - -extern GoUint32 SKY_apputil_CatchDebug(); - -extern GoUint32 SKY_apputil_PrintProgramStatus(); - -extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); - -extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); - -extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); - -extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint32 p2); - -extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint32 p2); - -extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint32 p1, GoUint64* p2); - -extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint32 p1, GoUint64* p2); - -extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); - -extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); - -extern GoUint32 SKY_file_UserHome(GoString_* p0); - -extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); - -extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); - -extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); - -extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); - -extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); - -extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); - -extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); - -extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); - -extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); - -extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); - -extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); - -extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); - -extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); - -extern GoUint32 SKY_logging_EnableColors(); - -extern GoUint32 SKY_logging_DisableColors(); - -extern GoUint32 SKY_logging_Disable(); - -extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); - -extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); - -extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); - -extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); - -extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); - -extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); - -extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); - -extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); - -extern GoUint32 SKY_wallet_NewReadableEntry(GoString p0, wallet__Entry* p1, ReadableEntry__Handle* p2); - -extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); - -extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); - -extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); - -extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); - -extern GoUint32 SKY_wallet_NewError(GoInterface p0); - -extern GoUint32 SKY_wallet_NewWallet(GoString p0, Options__Handle p1, Wallet__Handle* p2); - -extern GoUint32 SKY_wallet_Wallet_Lock(Wallet__Handle p0, GoSlice p1, GoString p2); - -extern GoUint32 SKY_wallet_Wallet_Unlock(Wallet__Handle p0, GoSlice p1, Wallet__Handle* p2); - -extern GoUint32 SKY_wallet_Load(GoString p0, Wallet__Handle* p1); - -extern GoUint32 SKY_wallet_Wallet_Save(Wallet__Handle p0, GoString p1); - -extern GoUint32 SKY_wallet_Wallet_Validate(Wallet__Handle p0); - -extern GoUint32 SKY_wallet_Wallet_Type(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_Version(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_Filename(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_Label(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_IsEncrypted(Wallet__Handle p0, GoUint8* p1); - -extern GoUint32 SKY_wallet_Wallet_GenerateAddresses(Wallet__Handle p0, GoUint64 p1, coin__UxArray* p2); - -extern GoUint32 SKY_wallet_Wallet_GetAddresses(Wallet__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_wallet_Wallet_GetEntry(Wallet__Handle p0, cipher__Address* p1, wallet__Entry* p2, GoUint8* p3); - -extern GoUint32 SKY_wallet_Wallet_AddEntry(Wallet__Handle p0, wallet__Entry* p1); - -extern GoUint32 SKY_wallet_DistributeSpendHours(GoUint64 p0, GoUint64 p1, GoUint8 p2, GoUint64* p3, coin__UxArray* p4, GoUint64* p5); - -extern GoUint32 SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, GoUint64 p1, coin__UxArray* p2); - -extern GoUint32 SKY_wallet_NewUxBalances(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); - -extern GoUint32 SKY_wallet_NewUxBalance(GoUint64 p0, coin__UxOut* p1, wallet__UxBalance* p2); - -extern GoUint32 SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); - -extern GoUint32 SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); - -extern GoUint32 SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); - -#ifdef __cplusplus -} -#endif diff --git a/lib/swig/swig/include/swig.h b/lib/swig/swig/include/swig.h deleted file mode 100644 index cd3d3f38..00000000 --- a/lib/swig/swig/include/swig.h +++ /dev/null @@ -1,56 +0,0 @@ - -typedef struct{ - GoUint8 data[33]; -} cipher_PubKey; - -typedef struct{ - GoUint8 data[32]; -} cipher_SecKey; - -typedef struct{ - GoUint8 data[20]; -} cipher_Ripemd160; - -typedef struct{ - GoUint8 data[65]; -} cipher_Sig; - -typedef struct{ - GoUint8 data[32]; -} cipher_SHA256; - -typedef struct{ - GoUint8 data[4]; -} cipher_Checksum; - -typedef struct{ - cipher_SecKey* data; - int count; -} cipher_SecKeys; - -typedef struct{ - cipher_PubKey* data; - int count; -} cipher_PubKeys; - -typedef struct{ - cipher_SHA256* data; - int count; -} cipher_SHA256s; - -typedef struct{ - coin__UxOut* data; - int count; -} coin_UxOutArray; - -typedef struct{ - cipher__Address* data; - int count; -} cipher_Addresses; - -typedef GoUint32_ (*FeeCalcFunc)(Transaction__Handle handle, unsigned long long * pFee, void* context); - -typedef struct { - FeeCalcFunc callback; - void* context; -} Fee_Calculator ; \ No newline at end of file diff --git a/lib/swig/swig/pyskycoin.i b/lib/swig/swig/pyskycoin.i index 7d1e9e6e..95233cfe 100644 --- a/lib/swig/swig/pyskycoin.i +++ b/lib/swig/swig/pyskycoin.i @@ -4,13 +4,12 @@ #define SWIG_FILE_WITH_INIT #include "libskycoin.h" #include "swig.h" - // #include "base64.h" + #include "skytypes.h" %} //Apply strictly to python -//Not for other languages -%include "/gopath/src/github.com/skycoin/skycoin/lib/swig/common/common.i" -%include "/gopath/src/github.com/skycoin/skycoin/lib/swig/dynamic/dynamic.i" +%include "/gopath/src/github.com/fibercrypto/libskyfiber/lib/swig/common/common.i" +%include "/gopath/src/github.com/fibercrypto/libskyfiber/lib/swig/dynamic/dynamic.i" %include "python_skycoin.cipher.crypto.i" %include "python_uxarray.i" %include "python_sha256s.i" @@ -24,3 +23,4 @@ %include "libskycoin.h" %include "structs.i" %include "skyerrors.h" +%include "skytypes.h" diff --git a/lib/swig/swig/pyskycoin_wrap.c b/lib/swig/swig/pyskycoin_wrap.c index c2e98d4d..e69de29b 100644 --- a/lib/swig/swig/pyskycoin_wrap.c +++ b/lib/swig/swig/pyskycoin_wrap.c @@ -1,30015 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIG_PYTHON_STRICT_BYTE_CHAR - - - -#ifndef SWIGPYTHON -#define SWIGPYTHON -#endif - -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if defined(__GNUC__) -# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - -/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ -#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) -# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 -#endif - -/* Intel's compiler complains if a variable which was never initialised is - * cast to void, which is a common idiom which we use to indicate that we - * are aware a variable isn't used. So we just silence that warning. - * See: https://github.com/swig/swig/issues/192 for more discussion. - */ -#ifdef __INTEL_COMPILER -# pragma warning disable 592 -#endif - - -#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) -/* Use debug wrappers with the Python release dll */ -# undef _DEBUG -# include -# define _DEBUG -#else -# include -#endif - -/* ----------------------------------------------------------------------------- - * swigrun.swg - * - * This file contains generic C API SWIG runtime support for pointer - * type checking. - * ----------------------------------------------------------------------------- */ - -/* This should only be incremented when either the layout of swig_type_info changes, - or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" - -/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ -#ifdef SWIG_TYPE_TABLE -# define SWIG_QUOTE_STRING(x) #x -# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) -# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) -#else -# define SWIG_TYPE_TABLE_NAME -#endif - -/* - You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for - creating a static or dynamic library from the SWIG runtime code. - In 99.9% of the cases, SWIG just needs to declare them as 'static'. - - But only do this if strictly necessary, ie, if you have problems - with your compiler or suchlike. -*/ - -#ifndef SWIGRUNTIME -# define SWIGRUNTIME SWIGINTERN -#endif - -#ifndef SWIGRUNTIMEINLINE -# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE -#endif - -/* Generic buffer size */ -#ifndef SWIG_BUFFER_SIZE -# define SWIG_BUFFER_SIZE 1024 -#endif - -/* Flags for pointer conversions */ -#define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 - -/* Flags for new pointer objects */ -#define SWIG_POINTER_OWN 0x1 - - -/* - Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer - that tells if the conversion was successful or not. And if not, - an error code can be returned (see swigerrors.swg for the codes). - - Use the following macros/flags to set or process the returning - states. - - In old versions of SWIG, code such as the following was usually written: - - if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { - // success code - } else { - //fail code - } - - Now you can be more explicit: - - int res = SWIG_ConvertPtr(obj,vptr,ty.flags); - if (SWIG_IsOK(res)) { - // success code - } else { - // fail code - } - - which is the same really, but now you can also do - - Type *ptr; - int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); - if (SWIG_IsOK(res)) { - // success code - if (SWIG_IsNewObj(res) { - ... - delete *ptr; - } else { - ... - } - } else { - // fail code - } - - I.e., now SWIG_ConvertPtr can return new objects and you can - identify the case and take care of the deallocation. Of course that - also requires SWIG_ConvertPtr to return new result values, such as - - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } - } - - Of course, returning the plain '0(success)/-1(fail)' still works, but you can be - more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the - SWIG errors code. - - Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this - - int food(double) - int fooi(int); - - and you call - - food(1) // cast rank '1' (1 -> 1.0) - fooi(1) // cast rank '0' - - just use the SWIG_AddCast()/SWIG_CheckState() -*/ - -#define SWIG_OK (0) -#define SWIG_ERROR (-1) -#define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) - -/* The CastRankLimit says how many bits are used for the cast rank */ -#define SWIG_CASTRANKLIMIT (1 << 8) -/* The NewMask denotes the object was created (using new/malloc) */ -#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ -#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) -/* Simple returning values */ -#define SWIG_BADOBJ (SWIG_ERROR) -#define SWIG_OLDOBJ (SWIG_OK) -#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) -#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ -#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) -#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) -#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) -#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) -#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) -#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) - -/* Cast-Rank Mode */ -#if defined(SWIG_CASTRANK_MODE) -# ifndef SWIG_TypeRank -# define SWIG_TypeRank unsigned long -# endif -# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ -# define SWIG_MAXCASTRANK (2) -# endif -# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) -# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { - return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; -} -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; -} -#else /* no cast-rank mode */ -# define SWIG_AddCast(r) (r) -# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) -#endif - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *, int *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -/* Structure to store information on one type */ -typedef struct swig_type_info { - const char *name; /* mangled name of this type */ - const char *str; /* human readable name of this type */ - swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ - struct swig_cast_info *cast; /* linked list of types that can cast into this type */ - void *clientdata; /* language specific type data */ - int owndata; /* flag if the structure owns the clientdata */ -} swig_type_info; - -/* Structure to store a type and conversion function used for casting */ -typedef struct swig_cast_info { - swig_type_info *type; /* pointer to type that is equivalent to this type */ - swig_converter_func converter; /* function to cast the void pointers */ - struct swig_cast_info *next; /* pointer to next cast in linked list */ - struct swig_cast_info *prev; /* pointer to the previous cast */ -} swig_cast_info; - -/* Structure used to store module information - * Each module generates one structure like this, and the runtime collects - * all of these structures and stores them in a circularly linked list.*/ -typedef struct swig_module_info { - swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ - size_t size; /* Number of types in this module */ - struct swig_module_info *next; /* Pointer to next element in circularly linked list */ - swig_type_info **type_initial; /* Array of initially generated type structures */ - swig_cast_info **cast_initial; /* Array of initially generated casting structures */ - void *clientdata; /* Language specific module data */ -} swig_module_info; - -/* - Compare two type names skipping the space characters, therefore - "char*" == "char *" and "Class" == "Class", etc. - - Return 0 when the two name types are equivalent, as in - strncmp, but skipping ' '. -*/ -SWIGRUNTIME int -SWIG_TypeNameComp(const char *f1, const char *l1, - const char *f2, const char *l2) { - for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { - while ((*f1 == ' ') && (f1 != l1)) ++f1; - while ((*f2 == ' ') && (f2 != l2)) ++f2; - if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; - } - return (int)((l1 - f1) - (l2 - f2)); -} - -/* - Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb -*/ -SWIGRUNTIME int -SWIG_TypeCmp(const char *nb, const char *tb) { - int equiv = 1; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (equiv != 0 && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = SWIG_TypeNameComp(nb, ne, tb, te); - if (*ne) ++ne; - } - return equiv; -} - -/* - Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal -*/ -SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; -} - -/* - Check the typename -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheck(const char *c, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (strcmp(iter->type->name, c) == 0) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (iter->type == from) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Cast a pointer up an inheritance hierarchy -*/ -SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); -} - -/* - Dynamic pointer casting. Down an inheritance hierarchy -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { - swig_type_info *lastty = ty; - if (!ty || !ty->dcast) return ty; - while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; - } - return lastty; -} - -/* - Return the name associated with this type -*/ -SWIGRUNTIMEINLINE const char * -SWIG_TypeName(const swig_type_info *ty) { - return ty->name; -} - -/* - Return the pretty name associated with this type, - that is an unmangled type name in a form presentable to the user. -*/ -SWIGRUNTIME const char * -SWIG_TypePrettyName(const swig_type_info *type) { - /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ - if (!type) return NULL; - if (type->str != NULL) { - const char *last_name = type->str; - const char *s; - for (s = type->str; *s; s++) - if (*s == '|') last_name = s+1; - return last_name; - } - else - return type->name; -} - -/* - Set the clientdata field for a type -*/ -SWIGRUNTIME void -SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { - swig_cast_info *cast = ti->cast; - /* if (ti->clientdata == clientdata) return; */ - ti->clientdata = clientdata; - - while (cast) { - if (!cast->converter) { - swig_type_info *tc = cast->type; - if (!tc->clientdata) { - SWIG_TypeClientData(tc, clientdata); - } - } - cast = cast->next; - } -} -SWIGRUNTIME void -SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { - SWIG_TypeClientData(ti, clientdata); - ti->owndata = 1; -} - -/* - Search for a swig_type_info structure only by mangled name - Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - swig_module_info *iter = start; - do { - if (iter->size) { - size_t l = 0; - size_t r = iter->size - 1; - do { - /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - size_t i = (l + r) >> 1; - const char *iname = iter->types[i]->name; - if (iname) { - int compare = strcmp(name, iname); - if (compare == 0) { - return iter->types[i]; - } else if (compare < 0) { - if (i) { - r = i - 1; - } else { - break; - } - } else if (compare > 0) { - l = i + 1; - } - } else { - break; /* should never happen */ - } - } while (l <= r); - } - iter = iter->next; - } while (iter != end); - return 0; -} - -/* - Search for a swig_type_info structure for either a mangled name or a human readable name. - It first searches the mangled names of the types, which is a O(log #types) - If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - /* STEP 1: Search the name field using binary search */ - swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); - if (ret) { - return ret; - } else { - /* STEP 2: If the type hasn't been found, do a complete search - of the str field (the human readable name) */ - swig_module_info *iter = start; - do { - size_t i = 0; - for (; i < iter->size; ++i) { - if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) - return iter->types[i]; - } - iter = iter->next; - } while (iter != end); - } - - /* neither found a match */ - return 0; -} - -/* - Pack binary data into a string -*/ -SWIGRUNTIME char * -SWIG_PackData(char *c, void *ptr, size_t sz) { - static const char hex[17] = "0123456789abcdef"; - const unsigned char *u = (unsigned char *) ptr; - const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - unsigned char uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* - Unpack binary data from a string -*/ -SWIGRUNTIME const char * -SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - unsigned char *u = (unsigned char *) ptr; - const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - char d = *(c++); - unsigned char uu; - if ((d >= '0') && (d <= '9')) - uu = (unsigned char)((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = (unsigned char)((d - ('a'-10)) << 4); - else - return (char *) 0; - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (unsigned char)(d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (unsigned char)(d - ('a'-10)); - else - return (char *) 0; - *u = uu; - } - return c; -} - -/* - Pack 'void *' into a string buffer. -*/ -SWIGRUNTIME char * -SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { - char *r = buff; - if ((2*sizeof(void *) + 2) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,&ptr,sizeof(void *)); - if (strlen(name) + 1 > (bsz - (r - buff))) return 0; - strcpy(r,name); - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - *ptr = (void *) 0; - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sizeof(void *)); -} - -SWIGRUNTIME char * -SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { - char *r = buff; - size_t lname = (name ? strlen(name) : 0); - if ((2*sz + 2 + lname) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,ptr,sz); - if (lname) { - strncpy(r,name,lname+1); - } else { - *r = 0; - } - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - memset(ptr,0,sz); - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sz); -} - -#ifdef __cplusplus -} -#endif - -/* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 -#define SWIG_SystemError -10 -#define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 -#define SWIG_NullReferenceError -13 - - - -/* Compatibility macros for Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - -#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) -#define PyInt_Check(x) PyLong_Check(x) -#define PyInt_AsLong(x) PyLong_AsLong(x) -#define PyInt_FromLong(x) PyLong_FromLong(x) -#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) -#define PyString_Check(name) PyBytes_Check(name) -#define PyString_FromString(x) PyUnicode_FromString(x) -#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) -#define PyString_AsString(str) PyBytes_AsString(str) -#define PyString_Size(str) PyBytes_Size(str) -#define PyString_InternFromString(key) PyUnicode_InternFromString(key) -#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) -#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) - -#endif - -#ifndef Py_TYPE -# define Py_TYPE(op) ((op)->ob_type) -#endif - -/* SWIG APIs for compatibility of both Python 2 & 3 */ - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_FromFormat PyUnicode_FromFormat -#else -# define SWIG_Python_str_FromFormat PyString_FromFormat -#endif - - -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) -{ -#if PY_VERSION_HEX >= 0x03000000 - char *cstr; - char *newstr; - Py_ssize_t len; - str = PyUnicode_AsUTF8String(str); - PyBytes_AsStringAndSize(str, &cstr, &len); - newstr = (char *) malloc(len+1); - memcpy(newstr, cstr, len+1); - Py_XDECREF(str); - return newstr; -#else - return PyString_AsString(str); -#endif -} - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#else -# define SWIG_Python_str_DelForPy3(x) -#endif - - -SWIGINTERN PyObject* -SWIG_Python_str_FromChar(const char *c) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromString(c); -#else - return PyString_FromString(c); -#endif -} - -/* Add PyOS_snprintf for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) -# define PyOS_snprintf _snprintf -# else -# define PyOS_snprintf snprintf -# endif -#endif - -/* A crude PyString_FromFormat implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 - -#ifndef SWIG_PYBUFFER_SIZE -# define SWIG_PYBUFFER_SIZE 1024 -#endif - -static PyObject * -PyString_FromFormat(const char *fmt, ...) { - va_list ap; - char buf[SWIG_PYBUFFER_SIZE * 2]; - int res; - va_start(ap, fmt); - res = vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); -} -#endif - -#ifndef PyObject_DEL -# define PyObject_DEL PyObject_Del -#endif - -/* A crude PyExc_StopIteration exception for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# ifndef PyExc_StopIteration -# define PyExc_StopIteration PyExc_RuntimeError -# endif -# ifndef PyObject_GenericGetAttr -# define PyObject_GenericGetAttr 0 -# endif -#endif - -/* Py_NotImplemented is defined in 2.1 and up. */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef Py_NotImplemented -# define Py_NotImplemented PyExc_RuntimeError -# endif -#endif - -/* A crude PyString_AsStringAndSize implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef PyString_AsStringAndSize -# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} -# endif -#endif - -/* PySequence_Size for old Pythons */ -#if PY_VERSION_HEX < 0x02000000 -# ifndef PySequence_Size -# define PySequence_Size PySequence_Length -# endif -#endif - -/* PyBool_FromLong for old Pythons */ -#if PY_VERSION_HEX < 0x02030000 -static -PyObject *PyBool_FromLong(long ok) -{ - PyObject *result = ok ? Py_True : Py_False; - Py_INCREF(result); - return result; -} -#endif - -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -typedef inquiry lenfunc; -typedef intargfunc ssizeargfunc; -typedef intintargfunc ssizessizeargfunc; -typedef intobjargproc ssizeobjargproc; -typedef intintobjargproc ssizessizeobjargproc; -typedef getreadbufferproc readbufferproc; -typedef getwritebufferproc writebufferproc; -typedef getsegcountproc segcountproc; -typedef getcharbufferproc charbufferproc; -static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) -{ - long result = 0; - PyObject *i = PyNumber_Int(x); - if (i) { - result = PyInt_AsLong(i); - Py_DECREF(i); - } - return result; -} -#endif - -#if PY_VERSION_HEX < 0x02050000 -#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) -#endif - -#if PY_VERSION_HEX < 0x02040000 -#define Py_VISIT(op) \ - do { \ - if (op) { \ - int vret = visit((op), arg); \ - if (vret) \ - return vret; \ - } \ - } while (0) -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef struct { - PyTypeObject type; - PyNumberMethods as_number; - PyMappingMethods as_mapping; - PySequenceMethods as_sequence; - PyBufferProcs as_buffer; - PyObject *name, *slots; -} PyHeapTypeObject; -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef destructor freefunc; -#endif - -#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ - (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ - (PY_MAJOR_VERSION > 3)) -# define SWIGPY_USE_CAPSULE -# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) -#endif - -#if PY_VERSION_HEX < 0x03020000 -#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) -#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) -#define Py_hash_t long -#endif - -/* ----------------------------------------------------------------------------- - * error manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIME PyObject* -SWIG_Python_ErrorType(int code) { - PyObject* type = 0; - switch(code) { - case SWIG_MemoryError: - type = PyExc_MemoryError; - break; - case SWIG_IOError: - type = PyExc_IOError; - break; - case SWIG_RuntimeError: - type = PyExc_RuntimeError; - break; - case SWIG_IndexError: - type = PyExc_IndexError; - break; - case SWIG_TypeError: - type = PyExc_TypeError; - break; - case SWIG_DivisionByZero: - type = PyExc_ZeroDivisionError; - break; - case SWIG_OverflowError: - type = PyExc_OverflowError; - break; - case SWIG_SyntaxError: - type = PyExc_SyntaxError; - break; - case SWIG_ValueError: - type = PyExc_ValueError; - break; - case SWIG_SystemError: - type = PyExc_SystemError; - break; - case SWIG_AttributeError: - type = PyExc_AttributeError; - break; - default: - type = PyExc_RuntimeError; - } - return type; -} - - -SWIGRUNTIME void -SWIG_Python_AddErrorMsg(const char* mesg) -{ - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - - if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - PyErr_Clear(); - Py_XINCREF(type); - - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - Py_DECREF(value); - } else { - PyErr_SetString(PyExc_RuntimeError, mesg); - } -} - -#if defined(SWIG_PYTHON_NO_THREADS) -# if defined(SWIG_PYTHON_THREADS) -# undef SWIG_PYTHON_THREADS -# endif -#endif -#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ -# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) -# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ -# define SWIG_PYTHON_USE_GIL -# endif -# endif -# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() -# endif -# ifdef __cplusplus /* C++ code */ - class SWIG_Python_Thread_Block { - bool status; - PyGILState_STATE state; - public: - void end() { if (status) { PyGILState_Release(state); status = false;} } - SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} - ~SWIG_Python_Thread_Block() { end(); } - }; - class SWIG_Python_Thread_Allow { - bool status; - PyThreadState *save; - public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} - SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} - ~SWIG_Python_Thread_Allow() { end(); } - }; -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block -# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow -# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() -# else /* C code */ -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() -# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() -# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) -# endif -# else /* Old thread way, not implemented, user must provide it */ -# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) -# define SWIG_PYTHON_INITIALIZE_THREADS -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) -# define SWIG_PYTHON_THREAD_END_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# endif -# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) -# define SWIG_PYTHON_THREAD_END_ALLOW -# endif -# endif -#else /* No thread support */ -# define SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# define SWIG_PYTHON_THREAD_END_BLOCK -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# define SWIG_PYTHON_THREAD_END_ALLOW -#endif - -/* ----------------------------------------------------------------------------- - * Python API portion that goes into the runtime - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* ----------------------------------------------------------------------------- - * Constant declarations - * ----------------------------------------------------------------------------- */ - -/* Constant Types */ -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - - -/* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ -#if PY_VERSION_HEX >= 0x03000000 -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) -{ - return PyInstanceMethod_New(func); -} -#else -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) -{ - return NULL; -} -#endif - -#ifdef __cplusplus -} -#endif - - -/* ----------------------------------------------------------------------------- - * pyrun.swg - * - * This file contains the runtime support for Python modules - * and includes code for managing global variables and pointer - * type checking. - * - * ----------------------------------------------------------------------------- */ - -/* Common SWIG API */ - -/* for raw pointers */ -#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) -#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) -#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) - -#ifdef SWIGPYTHON_BUILTIN -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) -#else -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) -#endif - -#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) - -#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) -#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) -#define swig_owntype int - -/* for raw packed data */ -#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - -/* for class or struct pointers */ -#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) -#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) - -/* for C or C++ function pointers */ -#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) -#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) - -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - - -/* Runtime API */ - -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) -#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) -#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) - -#define SWIG_SetErrorObj SWIG_Python_SetErrorObj -#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg -#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) -#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) -#define SWIG_fail goto fail - - -/* Runtime API implementation */ - -/* Error manipulation */ - -SWIGINTERN void -SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetObject(errtype, obj); - Py_DECREF(obj); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -SWIGINTERN void -SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetString(errtype, msg); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) - -/* Set a constant value */ - -#if defined(SWIGPYTHON_BUILTIN) - -SWIGINTERN void -SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { - PyObject *s = PyString_InternFromString(key); - PyList_Append(seq, s); - Py_DECREF(s); -} - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); - if (public_interface) - SwigPyBuiltin_AddPublicSymbol(public_interface, name); -} - -#else - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); -} - -#endif - -/* Append a value to the result obj */ - -SWIGINTERN PyObject* -SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { -#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyList_Check(result)) { - PyObject *o2 = result; - result = PyList_New(1); - PyList_SetItem(result, 0, o2); - } - PyList_Append(result,obj); - Py_DECREF(obj); - } - return result; -#else - PyObject* o2; - PyObject* o3; - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyTuple_Check(result)) { - o2 = result; - result = PyTuple_New(1); - PyTuple_SET_ITEM(result, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SET_ITEM(o3, 0, obj); - o2 = result; - result = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return result; -#endif -} - -/* Unpack the argument tuple */ - -SWIGINTERN Py_ssize_t -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) -{ - if (!args) { - if (!min && !max) { - return 1; - } else { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); - return 0; - } - } - if (!PyTuple_Check(args)) { - if (min <= 1 && max >= 1) { - Py_ssize_t i; - objs[0] = args; - for (i = 1; i < max; ++i) { - objs[i] = 0; - } - return 2; - } - PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); - return 0; - } else { - Py_ssize_t l = PyTuple_GET_SIZE(args); - if (l < min) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); - return 0; - } else if (l > max) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); - return 0; - } else { - Py_ssize_t i; - for (i = 0; i < l; ++i) { - objs[i] = PyTuple_GET_ITEM(args, i); - } - for (; l < max; ++l) { - objs[l] = 0; - } - return i + 1; - } - } -} - -/* A functor is a function object with one single object argument */ -#if PY_VERSION_HEX >= 0x02020000 -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); -#else -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); -#endif - -/* - Helper for static pointer initialization for both C and C++ code, for example - static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); -*/ -#ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) var -#else -#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var -#endif - -/* ----------------------------------------------------------------------------- - * Pointer declarations - * ----------------------------------------------------------------------------- */ - -/* Flags for new pointer objects */ -#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) -#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) - -#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) - -#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) -#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) - -#ifdef __cplusplus -extern "C" { -#endif - -/* How to access Py_None */ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# ifndef SWIG_PYTHON_NO_BUILD_NONE -# ifndef SWIG_PYTHON_BUILD_NONE -# define SWIG_PYTHON_BUILD_NONE -# endif -# endif -#endif - -#ifdef SWIG_PYTHON_BUILD_NONE -# ifdef Py_None -# undef Py_None -# define Py_None SWIG_Py_None() -# endif -SWIGRUNTIMEINLINE PyObject * -_SWIG_Py_None(void) -{ - PyObject *none = Py_BuildValue((char*)""); - Py_DECREF(none); - return none; -} -SWIGRUNTIME PyObject * -SWIG_Py_None(void) -{ - static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); - return none; -} -#endif - -/* The python void return value */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Py_Void(void) -{ - PyObject *none = Py_None; - Py_INCREF(none); - return none; -} - -/* SwigPyClientData */ - -typedef struct { - PyObject *klass; - PyObject *newraw; - PyObject *newargs; - PyObject *destroy; - int delargs; - int implicitconv; - PyTypeObject *pytype; -} SwigPyClientData; - -SWIGRUNTIMEINLINE int -SWIG_Python_CheckImplicit(swig_type_info *ty) -{ - SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; - return data ? data->implicitconv : 0; -} - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_ExceptionType(swig_type_info *desc) { - SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; - PyObject *klass = data ? data->klass : 0; - return (klass ? klass : PyExc_RuntimeError); -} - - -SWIGRUNTIME SwigPyClientData * -SwigPyClientData_New(PyObject* obj) -{ - if (!obj) { - return 0; - } else { - SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); - /* the klass element */ - data->klass = obj; - Py_INCREF(data->klass); - /* the newraw method and newargs arguments used to create a new raw instance */ - if (PyClass_Check(obj)) { - data->newraw = 0; - data->newargs = obj; - Py_INCREF(obj); - } else { -#if (PY_VERSION_HEX < 0x02020000) - data->newraw = 0; -#else - data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); -#endif - if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); - } else { - data->newargs = obj; - } - Py_INCREF(data->newargs); - } - /* the destroy method, aka as the C++ delete method */ - data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); - if (PyErr_Occurred()) { - PyErr_Clear(); - data->destroy = 0; - } - if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); -#ifdef METH_O - data->delargs = !(flags & (METH_O)); -#else - data->delargs = 0; -#endif - } else { - data->delargs = 0; - } - data->implicitconv = 0; - data->pytype = 0; - return data; - } -} - -SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData *data) { - Py_XDECREF(data->newraw); - Py_XDECREF(data->newargs); - Py_XDECREF(data->destroy); -} - -/* =============== SwigPyObject =====================*/ - -typedef struct { - PyObject_HEAD - void *ptr; - swig_type_info *ty; - int own; - PyObject *next; -#ifdef SWIGPYTHON_BUILTIN - PyObject *dict; -#endif -} SwigPyObject; - - -#ifdef SWIGPYTHON_BUILTIN - -SWIGRUNTIME PyObject * -SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) -{ - SwigPyObject *sobj = (SwigPyObject *)v; - - if (!sobj->dict) - sobj->dict = PyDict_New(); - - Py_INCREF(sobj->dict); - return sobj->dict; -} - -#endif - -SWIGRUNTIME PyObject * -SwigPyObject_long(SwigPyObject *v) -{ - return PyLong_FromVoidPtr(v->ptr); -} - -SWIGRUNTIME PyObject * -SwigPyObject_format(const char* fmt, SwigPyObject *v) -{ - PyObject *res = NULL; - PyObject *args = PyTuple_New(1); - if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); - if (ofmt) { -#if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); -#else - res = PyString_Format(ofmt,args); -#endif - Py_DECREF(ofmt); - } - Py_DECREF(args); - } - } - return res; -} - -SWIGRUNTIME PyObject * -SwigPyObject_oct(SwigPyObject *v) -{ - return SwigPyObject_format("%o",v); -} - -SWIGRUNTIME PyObject * -SwigPyObject_hex(SwigPyObject *v) -{ - return SwigPyObject_format("%x",v); -} - -SWIGRUNTIME PyObject * -#ifdef METH_NOARGS -SwigPyObject_repr(SwigPyObject *v) -#else -SwigPyObject_repr(SwigPyObject *v, PyObject *args) -#endif -{ - const char *name = SWIG_TypePrettyName(v->ty); - PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); - if (v->next) { -# ifdef METH_NOARGS - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); -# else - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); -# endif -# if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; -# else - PyString_ConcatAndDel(&repr,nrep); -# endif - } - return repr; -} - -SWIGRUNTIME int -SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) -{ - void *i = v->ptr; - void *j = w->ptr; - return (i < j) ? -1 : ((i > j) ? 1 : 0); -} - -/* Added for Python 3.x, would it also be useful for Python 2.x? */ -SWIGRUNTIME PyObject* -SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) -{ - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); - return res; -} - - -SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); - -#ifdef SWIGPYTHON_BUILTIN -static swig_type_info *SwigPyObject_stype = 0; -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - SwigPyClientData *cd; - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - assert(cd); - assert(cd->pytype); - return cd->pytype; -} -#else -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); - return type; -} -#endif - -SWIGRUNTIMEINLINE int -SwigPyObject_Check(PyObject *op) { -#ifdef SWIGPYTHON_BUILTIN - PyTypeObject *target_tp = SwigPyObject_type(); - if (PyType_IsSubtype(op->ob_type, target_tp)) - return 1; - return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); -#else - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); -#endif -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own); - -SWIGRUNTIME void -SwigPyObject_dealloc(PyObject *v) -{ - SwigPyObject *sobj = (SwigPyObject *) v; - PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { - swig_type_info *ty = sobj->ty; - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - PyObject *destroy = data ? data->destroy : 0; - if (destroy) { - /* destroy is always a VARARGS method */ - PyObject *res; - - /* PyObject_CallFunction() has the potential to silently drop - the active active exception. In cases of unnamed temporary - variable or where we just finished iterating over a generator - StopIteration will be active right now, and this needs to - remain true upon return from SwigPyObject_dealloc. So save - and restore. */ - - PyObject *val = NULL, *type = NULL, *tb = NULL; - PyErr_Fetch(&val, &type, &tb); - - if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); - } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); - } - if (!res) - PyErr_WriteUnraisable(destroy); - - PyErr_Restore(val, type, tb); - - Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { - const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } -#endif - } - Py_XDECREF(next); - PyObject_DEL(v); -} - -SWIGRUNTIME PyObject* -SwigPyObject_append(PyObject* v, PyObject* next) -{ - SwigPyObject *sobj = (SwigPyObject *) v; -#ifndef METH_O - PyObject *tmp = 0; - if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; - next = tmp; -#endif - if (!SwigPyObject_Check(next)) { - PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); - return NULL; - } - sobj->next = next; - Py_INCREF(next); - return SWIG_Py_Void(); -} - -SWIGRUNTIME PyObject* -#ifdef METH_NOARGS -SwigPyObject_next(PyObject* v) -#else -SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *) v; - if (sobj->next) { - Py_INCREF(sobj->next); - return sobj->next; - } else { - return SWIG_Py_Void(); - } -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_disown(PyObject *v) -#else -SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = 0; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_acquire(PyObject *v) -#else -SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = SWIG_POINTER_OWN; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -SwigPyObject_own(PyObject *v, PyObject *args) -{ - PyObject *val = 0; -#if (PY_VERSION_HEX < 0x02020000) - if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) -#elif (PY_VERSION_HEX < 0x02050000) - if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) -#else - if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) -#endif - { - return NULL; - } - else - { - SwigPyObject *sobj = (SwigPyObject *)v; - PyObject *obj = PyBool_FromLong(sobj->own); - if (val) { -#ifdef METH_NOARGS - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v); - } else { - SwigPyObject_disown(v); - } -#else - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); - } else { - SwigPyObject_disown(v,args); - } -#endif - } - return obj; - } -} - -#ifdef METH_O -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#else -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#endif - -#if PY_VERSION_HEX < 0x02020000 -SWIGINTERN PyObject * -SwigPyObject_getattr(SwigPyObject *sobj,char *name) -{ - return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); -} -#endif - -SWIGRUNTIME PyTypeObject* -SwigPyObject_TypeOnce(void) { - static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - - static PyNumberMethods SwigPyObject_as_number = { - (binaryfunc)0, /*nb_add*/ - (binaryfunc)0, /*nb_subtract*/ - (binaryfunc)0, /*nb_multiply*/ - /* nb_divide removed in Python 3 */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc)0, /*nb_divide*/ -#endif - (binaryfunc)0, /*nb_remainder*/ - (binaryfunc)0, /*nb_divmod*/ - (ternaryfunc)0,/*nb_power*/ - (unaryfunc)0, /*nb_negative*/ - (unaryfunc)0, /*nb_positive*/ - (unaryfunc)0, /*nb_absolute*/ - (inquiry)0, /*nb_nonzero*/ - 0, /*nb_invert*/ - 0, /*nb_lshift*/ - 0, /*nb_rshift*/ - 0, /*nb_and*/ - 0, /*nb_xor*/ - 0, /*nb_or*/ -#if PY_VERSION_HEX < 0x03000000 - 0, /*nb_coerce*/ -#endif - (unaryfunc)SwigPyObject_long, /*nb_int*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_long, /*nb_long*/ -#else - 0, /*nb_reserved*/ -#endif - (unaryfunc)0, /*nb_float*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_oct, /*nb_oct*/ - (unaryfunc)SwigPyObject_hex, /*nb_hex*/ -#endif -#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ -#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ -#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ - 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ -#endif - }; - - static PyTypeObject swigpyobject_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyObject", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - 0, /* tp_print */ -#if PY_VERSION_HEX < 0x02020000 - (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ -#else - (getattrfunc)0, /* tp_getattr */ -#endif - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ -#else - (cmpfunc)SwigPyObject_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyObject_repr, /* tp_repr */ - &SwigPyObject_as_number, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigobject_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - swigobject_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version_tag */ -#endif -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ -#if PY_VERSION_HEX >= 0x02050000 - 0, /* tp_prev */ -#endif - 0 /* tp_next */ -#endif - }; - swigpyobject_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpyobject_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpyobject_type) < 0) - return NULL; -#endif - } - return &swigpyobject_type; -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own) -{ - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); - if (sobj) { - sobj->ptr = ptr; - sobj->ty = ty; - sobj->own = own; - sobj->next = 0; - } - return (PyObject *)sobj; -} - -/* ----------------------------------------------------------------------------- - * Implements a simple Swig Packed type, and use it instead of string - * ----------------------------------------------------------------------------- */ - -typedef struct { - PyObject_HEAD - void *pack; - swig_type_info *ty; - size_t size; -} SwigPyPacked; - -SWIGRUNTIME int -SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char result[SWIG_BUFFER_SIZE]; - fputs("pack, v->size, 0, sizeof(result))) { - fputs("at ", fp); - fputs(result, fp); - } - fputs(v->ty->name,fp); - fputs(">", fp); - return 0; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_repr(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { - return SWIG_Python_str_FromFormat("", result, v->ty->name); - } else { - return SWIG_Python_str_FromFormat("", v->ty->name); - } -} - -SWIGRUNTIME PyObject * -SwigPyPacked_str(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ - return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); - } else { - return SWIG_Python_str_FromChar(v->ty->name); - } -} - -SWIGRUNTIME int -SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) -{ - size_t i = v->size; - size_t j = w->size; - int s = (i < j) ? -1 : ((i > j) ? 1 : 0); - return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); -} - -SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == SwigPyPacked_TypeOnce()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); -} - -SWIGRUNTIME void -SwigPyPacked_dealloc(PyObject *v) -{ - if (SwigPyPacked_Check(v)) { - SwigPyPacked *sobj = (SwigPyPacked *) v; - free(sobj->pack); - } - PyObject_DEL(v); -} - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_TypeOnce(void) { - static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; - static PyTypeObject swigpypacked_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX>=0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyPacked", /* tp_name */ - sizeof(SwigPyPacked), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ - (getattrfunc)0, /* tp_getattr */ - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX>=0x03000000 - 0, /* tp_reserved in 3.0.1 */ -#else - (cmpfunc)SwigPyPacked_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyPacked_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyPacked_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigpacked_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version_tag */ -#endif -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ -#if PY_VERSION_HEX >= 0x02050000 - 0, /* tp_prev */ -#endif - 0 /* tp_next */ -#endif - }; - swigpypacked_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpypacked_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpypacked_type) < 0) - return NULL; -#endif - } - return &swigpypacked_type; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) -{ - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); - if (sobj) { - void *pack = malloc(size); - if (pack) { - memcpy(pack, ptr, size); - sobj->pack = pack; - sobj->ty = ty; - sobj->size = size; - } else { - PyObject_DEL((PyObject *) sobj); - sobj = 0; - } - } - return (PyObject *) sobj; -} - -SWIGRUNTIME swig_type_info * -SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) -{ - if (SwigPyPacked_Check(obj)) { - SwigPyPacked *sobj = (SwigPyPacked *)obj; - if (sobj->size != size) return 0; - memcpy(ptr, sobj->pack, size); - return sobj->ty; - } else { - return 0; - } -} - -/* ----------------------------------------------------------------------------- - * pointers/data manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIMEINLINE PyObject * -_SWIG_This(void) -{ - return SWIG_Python_str_FromChar("this"); -} - -static PyObject *swig_this = NULL; - -SWIGRUNTIME PyObject * -SWIG_This(void) -{ - if (swig_this == NULL) - swig_this = _SWIG_This(); - return swig_this; -} - -/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ - -/* TODO: I don't know how to implement the fast getset in Python 3 right now */ -#if PY_VERSION_HEX>=0x03000000 -#define SWIG_PYTHON_SLOW_GETSET_THIS -#endif - -SWIGRUNTIME SwigPyObject * -SWIG_Python_GetSwigThis(PyObject *pyobj) -{ - PyObject *obj; - - if (SwigPyObject_Check(pyobj)) - return (SwigPyObject *) pyobj; - -#ifdef SWIGPYTHON_BUILTIN - (void)obj; -# ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - pyobj = PyWeakref_GET_OBJECT(pyobj); - if (pyobj && SwigPyObject_Check(pyobj)) - return (SwigPyObject*) pyobj; - } -# endif - return NULL; -#else - - obj = 0; - -#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) - if (PyInstance_Check(pyobj)) { - obj = _PyInstance_Lookup(pyobj, SWIG_This()); - } else { - PyObject **dictptr = _PyObject_GetDictPtr(pyobj); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; - } else { -#ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); - return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; - } -#endif - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } - } - } -#else - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } -#endif - if (obj && !SwigPyObject_Check(obj)) { - /* a PyObject is called 'this', try to get the 'real this' - SwigPyObject from it */ - return SWIG_Python_GetSwigThis(obj); - } - return (SwigPyObject *)obj; -#endif -} - -/* Acquire a pointer value */ - -SWIGRUNTIME int -SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (sobj) { - int oldown = sobj->own; - sobj->own = own; - return oldown; - } - } - return 0; -} - -/* Convert a pointer value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { - int res; - SwigPyObject *sobj; - int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; - - if (!obj) - return SWIG_ERROR; - if (obj == Py_None && !implicit_conv) { - if (ptr) - *ptr = 0; - return SWIG_OK; - } - - res = SWIG_ERROR; - - sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; - while (sobj) { - void *vptr = sobj->ptr; - if (ty) { - swig_type_info *to = sobj->ty; - if (to == ty) { - /* no type cast needed */ - if (ptr) *ptr = vptr; - break; - } else { - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) { - sobj = (SwigPyObject *)sobj->next; - } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } - break; - } - } - } else { - if (ptr) *ptr = vptr; - break; - } - } - if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; - } - res = SWIG_OK; - } else { - if (implicit_conv) { - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - if (data && !data->implicitconv) { - PyObject *klass = data->klass; - if (klass) { - PyObject *impconv; - data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ - impconv = SWIG_Python_CallFunctor(klass, obj); - data->implicitconv = 0; - if (PyErr_Occurred()) { - PyErr_Clear(); - impconv = 0; - } - if (impconv) { - SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); - if (iobj) { - void *vptr; - res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); - if (SWIG_IsOK(res)) { - if (ptr) { - *ptr = vptr; - /* transfer the ownership to 'ptr' */ - iobj->own = 0; - res = SWIG_AddCast(res); - res = SWIG_AddNewMask(res); - } else { - res = SWIG_AddCast(res); - } - } - } - Py_DECREF(impconv); - } - } - } - } - if (!SWIG_IsOK(res) && obj == Py_None) { - if (ptr) - *ptr = 0; - if (PyErr_Occurred()) - PyErr_Clear(); - res = SWIG_OK; - } - } - return res; -} - -/* Convert a function ptr value */ - -SWIGRUNTIME int -SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { - if (!PyCFunction_Check(obj)) { - return SWIG_ConvertPtr(obj, ptr, ty, 0); - } else { - void *vptr = 0; - - /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); - const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; - if (desc) - desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; - if (!desc) - return SWIG_ERROR; - if (ty) { - swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } - } else { - *ptr = vptr; - } - return SWIG_OK; - } -} - -/* Convert a packed value value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { - swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); - if (!to) return SWIG_ERROR; - if (ty) { - if (to != ty) { - /* check type cast? */ - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) return SWIG_ERROR; - } - } - return SWIG_OK; -} - -/* ----------------------------------------------------------------------------- - * Create a new pointer object - * ----------------------------------------------------------------------------- */ - -/* - Create a new instance object, without calling __init__, and set the - 'this' attribute. -*/ - -SWIGRUNTIME PyObject* -SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) -{ -#if (PY_VERSION_HEX >= 0x02020000) - PyObject *inst = 0; - PyObject *newraw = data->newraw; - if (newraw) { - inst = PyObject_Call(newraw, data->newargs, NULL); - if (inst) { -#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } - } -#else - PyObject *key = SWIG_This(); - PyObject_SetAttr(inst, key, swig_this); -#endif - } - } else { -#if PY_VERSION_HEX >= 0x03000000 - inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - if (inst) { - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; - } -#else - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } -#endif - } - return inst; -#else -#if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst = 0; - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } - return (PyObject *) inst; -#else - PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); - if (inst == NULL) { - return NULL; - } - inst->in_class = (PyClassObject *)data->newargs; - Py_INCREF(inst->in_class); - inst->in_dict = PyDict_New(); - if (inst->in_dict == NULL) { - Py_DECREF(inst); - return NULL; - } -#ifdef Py_TPFLAGS_HAVE_WEAKREFS - inst->in_weakreflist = NULL; -#endif -#ifdef Py_TPFLAGS_GC - PyObject_GC_Init(inst); -#endif - PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); - return (PyObject *) inst; -#endif -#endif -} - -SWIGRUNTIME void -SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) -{ - PyObject *dict; -#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - } - PyDict_SetItem(dict, SWIG_This(), swig_this); - return; - } -#endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); - PyDict_SetItem(dict, SWIG_This(), swig_this); - Py_DECREF(dict); -} - - -SWIGINTERN PyObject * -SWIG_Python_InitShadowInstance(PyObject *args) { - PyObject *obj[2]; - if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { - return NULL; - } else { - SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); - if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); - } else { - SWIG_Python_SetSwigThis(obj[0], obj[1]); - } - return SWIG_Py_Void(); - } -} - -/* Create a new pointer object */ - -SWIGRUNTIME PyObject * -SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { - SwigPyClientData *clientdata; - PyObject * robj; - int own; - - if (!ptr) - return SWIG_Py_Void(); - - clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; - own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; - if (clientdata && clientdata->pytype) { - SwigPyObject *newobj; - if (flags & SWIG_BUILTIN_TP_INIT) { - newobj = (SwigPyObject*) self; - if (newobj->ptr) { - PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); - while (newobj->next) - newobj = (SwigPyObject *) newobj->next; - newobj->next = next_self; - newobj = (SwigPyObject *)next_self; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - } - } else { - newobj = PyObject_New(SwigPyObject, clientdata->pytype); -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - } - if (newobj) { - newobj->ptr = ptr; - newobj->ty = type; - newobj->own = own; - newobj->next = 0; - return (PyObject*) newobj; - } - return SWIG_Py_Void(); - } - - assert(!(flags & SWIG_BUILTIN_TP_INIT)); - - robj = SwigPyObject_New(ptr, type, own); - if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { - PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - Py_DECREF(robj); - robj = inst; - } - return robj; -} - -/* Create a new packed object */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { - return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); -} - -/* -----------------------------------------------------------------------------* - * Get type list - * -----------------------------------------------------------------------------*/ - -#ifdef SWIG_LINK_RUNTIME -void *SWIG_ReturnGlobalTypeList(void *); -#endif - -SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { - static void *type_pointer = (void *)0; - /* first check if module already created */ - if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); -#else -# ifdef SWIGPY_USE_CAPSULE - type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); -# else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); -# endif - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif - } - return (swig_module_info *) type_pointer; -} - -#if PY_MAJOR_VERSION < 2 -/* PyModule_AddObject function was introduced in Python 2.0. The following function - is copied out of Python/modsupport.c in python version 2.3.4 */ -SWIGINTERN int -PyModule_AddObject(PyObject *m, char *name, PyObject *o) -{ - PyObject *dict; - if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); - return SWIG_ERROR; - } - if (!o) { - PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); - return SWIG_ERROR; - } - - dict = PyModule_GetDict(m); - if (dict == NULL) { - /* Internal error -- modules must have a dict! */ - PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", - PyModule_GetName(m)); - return SWIG_ERROR; - } - if (PyDict_SetItemString(dict, name, o)) - return SWIG_ERROR; - Py_DECREF(o); - return SWIG_OK; -} -#endif - -SWIGRUNTIME void -#ifdef SWIGPY_USE_CAPSULE -SWIG_Python_DestroyModule(PyObject *obj) -#else -SWIG_Python_DestroyModule(void *vptr) -#endif -{ -#ifdef SWIGPY_USE_CAPSULE - swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); -#else - swig_module_info *swig_module = (swig_module_info *) vptr; -#endif - swig_type_info **types = swig_module->types; - size_t i; - for (i =0; i < swig_module->size; ++i) { - swig_type_info *ty = types[i]; - if (ty->owndata) { - SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; - if (data) SwigPyClientData_Del(data); - } - } - Py_DECREF(SWIG_This()); - swig_this = NULL; -} - -SWIGRUNTIME void -SWIG_Python_SetModule(swig_module_info *swig_module) { -#if PY_VERSION_HEX >= 0x03000000 - /* Add a dummy module object into sys.modules */ - PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); -#else - static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); -#endif -#ifdef SWIGPY_USE_CAPSULE - PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#else - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#endif -} - -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - -SWIGRUNTIME swig_type_info * -SWIG_Python_TypeQuery(const char *type) -{ - PyObject *cache = SWIG_Python_TypeCache(); - PyObject *key = SWIG_Python_str_FromChar(type); - PyObject *obj = PyDict_GetItem(cache, key); - swig_type_info *descriptor; - if (obj) { -#ifdef SWIGPY_USE_CAPSULE - descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); -#else - descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); -#endif - } else { - swig_module_info *swig_module = SWIG_GetModule(0); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { -#ifdef SWIGPY_USE_CAPSULE - obj = PyCapsule_New((void*) descriptor, NULL, NULL); -#else - obj = PyCObject_FromVoidPtr(descriptor, NULL); -#endif - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } - } - Py_DECREF(key); - return descriptor; -} - -/* - For backward compatibility only -*/ -#define SWIG_POINTER_EXCEPTION 0 -#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) -#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) - -SWIGRUNTIME int -SWIG_Python_AddErrMesg(const char* mesg, int infront) -{ - if (PyErr_Occurred()) { - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - Py_XINCREF(type); - PyErr_Clear(); - if (infront) { - PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); - } else { - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - } - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - } - return 1; - } else { - return 0; - } -} - -SWIGRUNTIME int -SWIG_Python_ArgFail(int argnum) -{ - if (PyErr_Occurred()) { - /* add information about failing argument */ - char mesg[256]; - PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); - return SWIG_Python_AddErrMesg(mesg, 1); - } else { - return 0; - } -} - -SWIGRUNTIMEINLINE const char * -SwigPyObject_GetDesc(PyObject *self) -{ - SwigPyObject *v = (SwigPyObject *)self; - swig_type_info *ty = v ? v->ty : 0; - return ty ? ty->str : ""; -} - -SWIGRUNTIME void -SWIG_Python_TypeError(const char *type, PyObject *obj) -{ - if (type) { -#if defined(SWIG_COBJECT_TYPES) - if (obj && SwigPyObject_Check(obj)) { - const char *otype = (const char *) SwigPyObject_GetDesc(obj); - if (otype) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", - type, otype); - return; - } - } else -#endif - { - const char *otype = (obj ? obj->ob_type->tp_name : 0); - if (otype) { - PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; - if (cstr) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", - type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); - } else { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", - type, otype); - } - Py_XDECREF(str); - return; - } - } - PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); - } else { - PyErr_Format(PyExc_TypeError, "unexpected type is received"); - } -} - - -/* Convert a pointer value, signal an exception on a type mismatch */ -SWIGRUNTIME void * -SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { - void *result; - if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { - PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif - } - return result; -} - -#ifdef SWIGPYTHON_BUILTIN -SWIGRUNTIME int -SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { - PyTypeObject *tp = obj->ob_type; - PyObject *descr; - PyObject *encoded_name; - descrsetfunc f; - int res = -1; - -# ifdef Py_USING_UNICODE - if (PyString_Check(name)) { - name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); - if (!name) - return -1; - } else if (!PyUnicode_Check(name)) -# else - if (!PyString_Check(name)) -# endif - { - PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); - return -1; - } else { - Py_INCREF(name); - } - - if (!tp->tp_dict) { - if (PyType_Ready(tp) < 0) - goto done; - } - - descr = _PyType_Lookup(tp, name); - f = NULL; - if (descr != NULL) - f = descr->ob_type->tp_descr_set; - if (!f) { - if (PyString_Check(name)) { - encoded_name = name; - Py_INCREF(name); - } else { - encoded_name = PyUnicode_AsUTF8String(name); - } - PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); - Py_DECREF(encoded_name); - } else { - res = f(descr, obj, value); - } - - done: - Py_DECREF(name); - return res; -} -#endif - - -#ifdef __cplusplus -} -#endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_AddressUxOuts_Handle swig_types[0] -#define SWIGTYPE_p_App__Handle swig_types[1] -#define SWIGTYPE_p_BalanceResult_Handle swig_types[2] -#define SWIGTYPE_p_BlockBody__Handle swig_types[3] -#define SWIGTYPE_p_Block__Handle swig_types[4] -#define SWIGTYPE_p_BuildInfo_Handle swig_types[5] -#define SWIGTYPE_p_Client__Handle swig_types[6] -#define SWIGTYPE_p_Config__Handle swig_types[7] -#define SWIGTYPE_p_Context__Handle swig_types[8] -#define SWIGTYPE_p_CreateTransactionResponse__Handle swig_types[9] -#define SWIGTYPE_p_CreatedTransactionInput__Handle swig_types[10] -#define SWIGTYPE_p_CreatedTransactionOutput__Handle swig_types[11] -#define SWIGTYPE_p_CreatedTransaction__Handle swig_types[12] -#define SWIGTYPE_p_FeeCalculator swig_types[13] -#define SWIGTYPE_p_Fee_Calculator swig_types[14] -#define SWIGTYPE_p_GoInterface swig_types[15] -#define SWIGTYPE_p_GoSlice swig_types[16] -#define SWIGTYPE_p_GoSlice_ swig_types[17] -#define SWIGTYPE_p_GoStringMap_ swig_types[18] -#define SWIGTYPE_p_GoString_ swig_types[19] -#define SWIGTYPE_p_Handle swig_types[20] -#define SWIGTYPE_p_Options__Handle swig_types[21] -#define SWIGTYPE_p_PasswordReader__Handle swig_types[22] -#define SWIGTYPE_p_ReadableEntry__Handle swig_types[23] -#define SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle swig_types[24] -#define SWIGTYPE_p_ReadableWallet__Handle swig_types[25] -#define SWIGTYPE_p_SortableTransactionResult_Handle swig_types[26] -#define SWIGTYPE_p_SpendResult_Handle swig_types[27] -#define SWIGTYPE_p_StatusResult_Handle swig_types[28] -#define SWIGTYPE_p_Strings__Handle swig_types[29] -#define SWIGTYPE_p_TransactionResult_Handle swig_types[30] -#define SWIGTYPE_p_Transaction__Handle swig_types[31] -#define SWIGTYPE_p_Transactions__Handle swig_types[32] -#define SWIGTYPE_p_WalletResponse__Handle swig_types[33] -#define SWIGTYPE_p_Wallet__Handle swig_types[34] -#define SWIGTYPE_p_Wallets__Handle swig_types[35] -#define SWIGTYPE_p_WebRpcClient__Handle swig_types[36] -#define SWIGTYPE_p__GoString_ swig_types[37] -#define SWIGTYPE_p___SIZE_TYPE__ swig_types[38] -#define SWIGTYPE_p_a_20__unsigned_char swig_types[39] -#define SWIGTYPE_p_a_32__unsigned_char swig_types[40] -#define SWIGTYPE_p_a_33__unsigned_char swig_types[41] -#define SWIGTYPE_p_a_4__unsigned_char swig_types[42] -#define SWIGTYPE_p_a_65__unsigned_char swig_types[43] -#define SWIGTYPE_p_a_sizeof_void_____64_8_1__1__char swig_types[44] -#define SWIGTYPE_p_api__NetworkConnectionsFilter swig_types[45] -#define SWIGTYPE_p_api__RichlistParams swig_types[46] -#define SWIGTYPE_p_char swig_types[47] -#define SWIGTYPE_p_cipher_Addresses swig_types[48] -#define SWIGTYPE_p_cipher_Checksum swig_types[49] -#define SWIGTYPE_p_cipher_PubKey swig_types[50] -#define SWIGTYPE_p_cipher_PubKeys swig_types[51] -#define SWIGTYPE_p_cipher_Ripemd160 swig_types[52] -#define SWIGTYPE_p_cipher_SHA256 swig_types[53] -#define SWIGTYPE_p_cipher_SHA256s swig_types[54] -#define SWIGTYPE_p_cipher_SecKey swig_types[55] -#define SWIGTYPE_p_cipher_SecKeys swig_types[56] -#define SWIGTYPE_p_cipher_Sig swig_types[57] -#define SWIGTYPE_p_cipher__Address swig_types[58] -#define SWIGTYPE_p_cipher__BitcoinAddress swig_types[59] -#define SWIGTYPE_p_cli__SendAmount swig_types[60] -#define SWIGTYPE_p_coin_UxOutArray swig_types[61] -#define SWIGTYPE_p_coin__Block swig_types[62] -#define SWIGTYPE_p_coin__BlockBody swig_types[63] -#define SWIGTYPE_p_coin__BlockHeader swig_types[64] -#define SWIGTYPE_p_coin__SignedBlock swig_types[65] -#define SWIGTYPE_p_coin__Transaction swig_types[66] -#define SWIGTYPE_p_coin__TransactionOutput swig_types[67] -#define SWIGTYPE_p_coin__UxBody swig_types[68] -#define SWIGTYPE_p_coin__UxHead swig_types[69] -#define SWIGTYPE_p_coin__UxOut swig_types[70] -#define SWIGTYPE_p_double swig_types[71] -#define SWIGTYPE_p_encrypt__ScryptChacha20poly1305 swig_types[72] -#define SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int swig_types[73] -#define SWIGTYPE_p_float swig_types[74] -#define SWIGTYPE_p_httphelper__Address swig_types[75] -#define SWIGTYPE_p_int swig_types[76] -#define SWIGTYPE_p_long_long swig_types[77] -#define SWIGTYPE_p_p_GoSlice_ swig_types[78] -#define SWIGTYPE_p_p_coin__Block swig_types[79] -#define SWIGTYPE_p_p_coin__Transaction swig_types[80] -#define SWIGTYPE_p_secp256k1go__Field swig_types[81] -#define SWIGTYPE_p_secp256k1go__XY swig_types[82] -#define SWIGTYPE_p_secp256k1go__XYZ swig_types[83] -#define SWIGTYPE_p_short swig_types[84] -#define SWIGTYPE_p_signed_char swig_types[85] -#define SWIGTYPE_p_unsigned_char swig_types[86] -#define SWIGTYPE_p_unsigned_int swig_types[87] -#define SWIGTYPE_p_unsigned_long_long swig_types[88] -#define SWIGTYPE_p_unsigned_short swig_types[89] -#define SWIGTYPE_p_void swig_types[90] -#define SWIGTYPE_p_wallet__Balance swig_types[91] -#define SWIGTYPE_p_wallet__BalancePair swig_types[92] -#define SWIGTYPE_p_wallet__Entry swig_types[93] -#define SWIGTYPE_p_wallet__Note swig_types[94] -#define SWIGTYPE_p_wallet__ReadableNote swig_types[95] -#define SWIGTYPE_p_wallet__UxBalance swig_types[96] -static swig_type_info *swig_types[98]; -static swig_module_info swig_module = {swig_types, 97, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _skycoin.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__skycoin - -#else -# define SWIG_init init_skycoin - -#endif -#define SWIG_name "_skycoin" - -#define SWIGVERSION 0x030012 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) (void *)((const void *)(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) - - - #define SWIG_FILE_WITH_INIT - #include "libskycoin.h" - #include "swig.h" - // #include "base64.h" - - - int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ - if(slice1->len != slice2->len) - return 0; - return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; - } - int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ - if( t1->Length != t2->Length || t1->Type != t2->Type ){ - return 0; - } - if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) - return 0; - if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) - return 0; - if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) - return 0; - if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) - return 0; - return 1; - } - int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ - if( pTxs1->len != pTxs2->len ) - return 0; - coin__Transaction* pTx1 = pTxs1->data; - coin__Transaction* pTx2 = pTxs2->data; - int i; - for(i = 0; i < pTxs1->len; i++){ - if(!equalTransactions(pTx1, pTx2)) - return 0; - pTx1++; - pTx2++; - } - return 1; - } - int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ - if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || - bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) - return 0; - if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) - return 0; - if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) - return 0; - if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) - return 0; - return 1; - } - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; -#if PY_VERSION_HEX < 0x03000000 - } else if (PyInt_Check(obj)) { - if (val) *val = (double) PyInt_AsLong(obj); - return SWIG_OK; -#endif - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else -#endif - if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - return SWIG_OverflowError; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (int)(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject* - SWIG_From_int (int value) -{ - return PyInt_FromLong((long) value); -} - - - void destroy_cipher_SecKeys(cipher_SecKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - - - void destroy_cipher_PubKeys(cipher_PubKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - - - -GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ - PyObject* feeCalc = (PyObject*)context; - PyObject *result = PyObject_CallFunctionObjArgs(feeCalc, PyLong_FromLong(handle), NULL); - GoUint32_ error = 0; - if(PyTuple_Check(result)){ - PyObject* objerror = PyTuple_GetItem(result, 0); - error = PyLong_AsLong(objerror); - result = PyTuple_GetItem(result, 1); - } - if(error != 0) - return error; - GoUint64_ ret = PyLong_AsLong(result); - Py_DECREF(result); - if(pFee){ - *pFee = ret; - return 0; - } - else - return 1; -} - - - GoUint32 wrap_SKY_coin_Transaction_SignInputs(Transaction__Handle handle, cipher_SecKeys* __in_secKeys){ - GoSlice data; - data.data = __in_secKeys->data; - data.len = __in_secKeys->count; - data.cap = __in_secKeys->count; - return SKY_coin_Transaction_SignInputs(handle, data); - } - - -SWIGINTERNINLINE PyObject* - SWIG_From_unsigned_SS_int (unsigned int value) -{ - return PyInt_FromSize_t((size_t) value); -} - - - GoUint32 wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice seed, GoInt n, cipher_SecKeys* __out_secKeys){ - __out_secKeys->data = NULL; - __out_secKeys->count = 0; - GoSlice_ data; - data.data = malloc(sizeof(cipher_SecKey) * n); - data.len = n; - data.cap = n; - GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairs(seed, n, &data); - if( result == 0){ - __out_secKeys->data = data.data; - __out_secKeys->count = data.len; - } - return result; - } - - -#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) -# define SWIG_LONG_LONG_AVAILABLE -#endif - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERN int -SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) -{ - int res = SWIG_TypeError; - if (PyLong_Check(obj)) { - long long v = PyLong_AsLongLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - res = SWIG_OverflowError; - } - } else { - long v; - res = SWIG_AsVal_long (obj,&v); - if (SWIG_IsOK(res)) { - if (val) *val = v; - return res; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - const double mant_max = 1LL << DBL_MANT_DIG; - const double mant_min = -mant_max; - double d; - res = SWIG_AsVal_double (obj,&d); - if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max)) - return SWIG_OverflowError; - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { - if (val) *val = (long long)(d); - return SWIG_AddCast(res); - } - res = SWIG_TypeError; - } -#endif - return res; -} -#endif - - - GoUint32 wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, GoInt n, coin__UxArray* newSeed, cipher_SecKeys* __out_secKeys){ - __out_secKeys->data = NULL; - __out_secKeys->count = 0; - GoSlice_ data; - data.data = malloc(sizeof(cipher_SecKey) * n); - data.len = n; - data.cap = n; - GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n, newSeed, &data); - if( result == 0){ - __out_secKeys->data = data.data; - __out_secKeys->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ - GoSlice_ dataIn; - dataIn.data = __uxIn->data; - dataIn.len = __uxIn->count; - dataIn.cap = __uxIn->count; - GoSlice_ dataOut; - dataOut.data = __uxOut->data; - dataOut.len = __uxOut->count; - dataOut.cap = __uxOut->count; - GoUint32 result = SKY_coin_VerifyTransactionCoinsSpending(&dataIn, &dataOut); - return result; - }; - - - GoUint32 wrap_SKY_coin_VerifyTransactionHoursSpending(GoUint64 _headTime , coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ - GoSlice_ dataIn; - dataIn.data = __uxIn->data; - dataIn.len = __uxIn->count; - dataIn.cap = __uxIn->count; - GoSlice_ dataOut; - dataOut.data = __uxOut->data; - dataOut.len = __uxOut->count; - dataOut.cap = __uxOut->count; - GoUint32 result = SKY_coin_VerifyTransactionHoursSpending(_headTime, &dataIn, &dataOut); - return result; - }; - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else -#endif - if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - return SWIG_OverflowError; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) -{ - int res = SWIG_TypeError; - if (PyLong_Check(obj)) { - unsigned long long v = PyLong_AsUnsignedLongLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - res = SWIG_OverflowError; - } - } else { - unsigned long v; - res = SWIG_AsVal_unsigned_SS_long (obj,&v); - if (SWIG_IsOK(res)) { - if (val) *val = v; - return res; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - const double mant_max = 1LL << DBL_MANT_DIG; - double d; - res = SWIG_AsVal_double (obj,&d); - if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max)) - return SWIG_OverflowError; - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { - if (val) *val = (unsigned long long)(d); - return SWIG_AddCast(res); - } - res = SWIG_TypeError; - } -#endif - return res; -} -#endif - - - GoUint32 wrap_SKY_coin_CreateUnspents(coin__BlockHeader* bh, Transaction__Handle t, coin_UxOutArray* __return_Ux){ - __return_Ux->data = NULL; - __return_Ux->count = 0; - GoSlice_ data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_coin_CreateUnspents(bh, t, &data); - if( result == 0){ - __return_Ux->data = data.data; - __return_Ux->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_Transaction_VerifyInput(Transaction__Handle handle, coin_UxOutArray* __uxIn){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_Transaction_VerifyInput(handle, &data); - } - - - GoUint32 wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray* __uxIn, GoUint8* p1){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_UxArray_HasDupes(&data, p1); - } - - - GoUint32 wrap_SKY_coin_UxArray_Coins(coin_UxOutArray* __uxIn, GoUint64* p1){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_UxArray_Coins(&data, p1); - } - - - GoUint32 wrap_SKY_coin_UxArray_CoinHours(coin_UxOutArray* __uxIn, GoUint64 p1, GoUint64* p2){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_UxArray_CoinHours(&data, p1, p2); - } - - - GoUint32 wrap_SKY_coin_UxArray_Less(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2, GoUint8* p3){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_UxArray_Less(&data, p1, p2, p3); - } - - - GoUint32 wrap_SKY_coin_UxArray_Swap(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_UxArray_Swap(&data, p1, p2); - } - - - GoUint32 wrap_SKY_coin_UxArray_Sub(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - GoSlice_ data2; - data2.data = __uxIn2->data; - data2.len = __uxIn2->count; - data2.cap = __uxIn2->count; - GoSlice_ data3; - data3.data = NULL; - data3.len = 0; - data3.cap = 0; - GoUint32 result = SKY_coin_UxArray_Sub(&data, &data2, &data3); - if( result == 0){ - __return_Ux->data = data3.data; - __return_Ux->count = data3.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_UxArray_Add(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - GoSlice_ data2; - data2.data = __uxIn2->data; - data2.len = __uxIn2->count; - data2.cap = __uxIn2->count; - GoSlice_ data3; - data3.data = NULL; - data3.len = 0; - data3.cap = 0; - GoUint32 result = SKY_coin_UxArray_Add(&data, &data2, &data3); - if( result == 0){ - __return_Ux->data = data3.data; - __return_Ux->count = data3.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_NewAddressUxOuts(coin_UxOutArray* __uxIn, AddressUxOuts_Handle* p1){ - coin__UxArray data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_NewAddressUxOuts(&data, p1); - } - - - GoUint32 wrap_SKY_coin_UxArray_Hashes(coin_UxOutArray* __uxIn, cipher_SHA256s* __out_hashes){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - GoSlice_ dataOut; - dataOut.data = NULL; - dataOut.len = 0; - dataOut.cap = 0; - GoUint32 result = SKY_coin_UxArray_Hashes(&data, &dataOut); - if(result == 0){ - __out_hashes->data = dataOut.data; - __out_hashes->count = dataOut.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin_UxOutArray* __return_Ux){ - GoSlice_ data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_coin_AddressUxOuts_Flatten(p0, &data); - if( result == 0 ){ - __return_Ux->data = data.data; - __return_Ux->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __return_Ux){ - GoSlice_ data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_coin_AddressUxOuts_Get(p0, p1, &data); - if( result == 0 ){ - __return_Ux->data = data.data; - __return_Ux->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __uxIn){ - coin__UxArray data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_AddressUxOuts_Set(p0, p1, &data); - } - - - GoUint32 wrap_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, cipher_Addresses* __out_addresses){ - coin__UxArray data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_coin_AddressUxOuts_Keys(p0, &data); - if( result == 0){ - __out_addresses->data = data.data; - __out_addresses->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_coin_Transactions_Hashes(Transactions__Handle p0, cipher_SHA256s* __out_hashes){ - GoSlice_ data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_coin_Transactions_Hashes(p0, &data); - if( result == 0){ - __out_hashes->data = data.data; - __out_hashes->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_fee_TransactionFee(Transaction__Handle __txn, GoUint64 __p1, coin_UxOutArray* __uxIn, GoUint64 *__return_fee ){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_fee_TransactionFee(__txn,__p1, &data,__return_fee); - } - - - void wrap_SKY_params_GetDistributionAddresses(coin__UxArray* __return_strings){ - SKY_params_GetDistributionAddresses(__return_strings); - } - - - void wrap_SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* __return_strings){ - SKY_params_GetUnlockedDistributionAddresses(__return_strings); - } - - - void wrap_SKY_params_GetLockedDistributionAddresses(coin__UxArray* __return_strings){ - SKY_params_GetLockedDistributionAddresses(__return_strings); - } - -SWIGINTERN int cipher_PubKey___eq__(cipher_PubKey *self,cipher_PubKey *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN int cipher_PubKey_compareToString(cipher_PubKey *self,PyObject *str){ - char* s = SWIG_Python_str_AsChar(str); - int result = memcmp(s, self->data, sizeof(self->data)); - SWIG_Python_str_DelForPy3(s); - return result; - } -SWIGINTERN PyObject *cipher_PubKey_toStr(cipher_PubKey *self){ - return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); - } -SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_SecKey___eq__(cipher_SecKey *self,cipher_SecKey *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN int cipher_SecKey_compareToString(cipher_SecKey *self,PyObject *str){ - char* s = SWIG_Python_str_AsChar(str); - int result = memcmp(s, self->data, sizeof(self->data)); - SWIG_Python_str_DelForPy3(s); - return result; - } -SWIGINTERN PyObject *cipher_SecKey_toStr(cipher_SecKey *self){ - return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); - } -SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Ripemd160___eq__(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN int cipher_Ripemd160_compareToString(cipher_Ripemd160 *self,PyObject *str){ - char* s = SWIG_Python_str_AsChar(str); - int result = memcmp(s, self->data, sizeof(self->data)); - SWIG_Python_str_DelForPy3(s); - return result; - } -SWIGINTERN PyObject *cipher_Ripemd160_toStr(cipher_Ripemd160 *self){ - return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); - } -SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Sig___eq__(cipher_Sig *self,cipher_Sig *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN int cipher_Sig_compareToString(cipher_Sig *self,PyObject *str){ - char* s = SWIG_Python_str_AsChar(str); - int result = memcmp(s, self->data, sizeof(self->data)); - SWIG_Python_str_DelForPy3(s); - return result; - } -SWIGINTERN PyObject *cipher_Sig_toStr(cipher_Sig *self){ - return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); - } -SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_SHA256___eq__(cipher_SHA256 *self,cipher_SHA256 *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN int cipher_SHA256_compareToString(cipher_SHA256 *self,PyObject *str){ - char* s = SWIG_Python_str_AsChar(str); - int result = memcmp(s, self->data, sizeof(self->data)); - SWIG_Python_str_DelForPy3(s); - return result; - } -SWIGINTERN PyObject *cipher_SHA256_toStr(cipher_SHA256 *self){ - return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); - } -SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Checksum___eq__(cipher_Checksum *self,cipher_Checksum *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN int cipher_Checksum_compareToString(cipher_Checksum *self,PyObject *str){ - char* s = SWIG_Python_str_AsChar(str); - int result = memcmp(s, self->data, sizeof(self->data)); - SWIG_Python_str_DelForPy3(s); - return result; - } -SWIGINTERN PyObject *cipher_Checksum_toStr(cipher_Checksum *self){ - return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); - } -SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ - if( i < self->count){ - memcpy(&self->data[i], seckey, sizeof(*seckey)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_SecKeys___eq__(cipher_SecKeys *self,cipher_SecKeys *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; - } -SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ - destroy_cipher_SecKeys(self); - } -SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ - if( i < self->count){ - memcpy(&self->data[i], pubkey, sizeof(*pubkey)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_PubKeys___eq__(cipher_PubKeys *self,cipher_PubKeys *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; - } -SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ - destroy_cipher_PubKeys(self); - } -SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ - if( i < self->count){ - memcpy(&self->data[i], hash, sizeof(*hash)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_SHA256s___eq__(cipher_SHA256s *self,cipher_SHA256s *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; - } -SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ - if(self->data != NULL) free(self->data); - } - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - if (PyBytes_Check(obj)) -#else - if (PyUnicode_Check(obj)) -#endif -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 -#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - if(alloc) *alloc = SWIG_NEWOBJ; -#endif - PyBytes_AsStringAndSize(obj, &cstr, &len); -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); - *alloc = SWIG_NEWOBJ; - } else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { -#if PY_VERSION_HEX>=0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - *cptr = PyBytes_AsString(obj); -#else - assert(0); /* Should never reach here with Unicode strings in Python 3 */ -#endif -#else - *cptr = SWIG_Python_str_AsChar(obj); -#endif - } - } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - Py_XDECREF(obj); -#endif - return SWIG_OK; - } else { -#if defined(SWIG_PYTHON_2_UNICODE) -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) -#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" -#endif -#if PY_VERSION_HEX<0x03000000 - if (PyUnicode_Check(obj)) { - char *cstr; Py_ssize_t len; - if (!alloc && cptr) { - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { - if (cptr) { - if (alloc) *alloc = SWIG_NEWOBJ; - *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); - } - if (psize) *psize = len + 1; - - Py_XDECREF(obj); - return SWIG_OK; - } else { - Py_XDECREF(obj); - } - } -#endif -#endif - - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - - - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size)); -#else -#if PY_VERSION_HEX >= 0x03010000 - return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape"); -#else - return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size)); -#endif -#endif -#else - return PyString_FromStringAndSize(carray, (Py_ssize_t)(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - - #define SWIG_From_long PyInt_FromLong - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERNINLINE PyObject* -SWIG_From_long_SS_long (long long value) -{ - return ((value < LONG_MIN) || (value > LONG_MAX)) ? - PyLong_FromLongLong(value) : PyInt_FromLong((long)(value)); -} -#endif - - -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long (unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value)); -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_unsigned_SS_char (unsigned char value) -{ - return SWIG_From_unsigned_SS_long (value); -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UINT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (unsigned int)(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (unsigned char)(v); - } - } - return res; -} - -SWIGINTERN int cipher__Address___eq__(cipher__Address *self,cipher__Address *a){ - if( self->Version == a->Version ){ - return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; - } - return 0; - } -SWIGINTERN PyObject *cipher__Address_toStr(cipher__Address *self){ - return PyBytes_FromStringAndSize((const char*)self->Key, sizeof(self->Key)); - } -SWIGINTERN int cipher__BitcoinAddress___eq__(cipher__BitcoinAddress *self,cipher__BitcoinAddress *a){ - if( self->Version == a->Version ){ - return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; - } - return 0; - } -SWIGINTERN PyObject *cipher__BitcoinAddress_toStr(cipher__BitcoinAddress *self){ - return PyBytes_FromStringAndSize((const char*)self->Key, sizeof(self->Key)); - } -SWIGINTERN int coin__Transaction___eq__(coin__Transaction *self,coin__Transaction *t){ - return equalTransactions(self, t); - } - -SWIGINTERN int -SWIG_AsVal_signed_SS_char (PyObject * obj, signed char *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < SCHAR_MIN || v > SCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (signed char)(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_signed_SS_char (signed char value) -{ - return SWIG_From_long (value); -} - -SWIGINTERN int coin__TransactionOutput___eq__(coin__TransactionOutput *self,coin__TransactionOutput *t){ - if( self->Coins != t->Coins || - self->Hours != t->Hours ){ - return 0; - } - - if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) - return 0; - return 1; - } - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)(value)); -} -#endif - -SWIGINTERN int coin__BlockHeader___eq__(coin__BlockHeader *self,coin__BlockHeader *bh){ - return equalBlockHeaders(self, bh); - } -SWIGINTERN int coin__BlockBody___eq__(coin__BlockBody *self,coin__BlockBody *b){ - return equalTransactionsArrays(&self->Transactions, &b->Transactions); - } -SWIGINTERN PyObject *coin__UxBody_GetSrcTransaction(coin__UxBody *self){ - return SWIG_NewPointerObj(SWIG_as_voidptr(&self->SrcTransaction), SWIGTYPE_p_cipher_SHA256, 0 ); - } -SWIGINTERN void coin__UxBody_SetSrcTransaction(coin__UxBody *self,PyObject *o){ - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (SWIG_IsOK(res)){ - cipher_SHA256* p = (cipher_SHA256*)argp; - memcpy( &self->SrcTransaction, &p->data, sizeof(cipher__SHA256)); - } - } -SWIGINTERN int coin__UxOut___eq__(coin__UxOut *self,coin__UxOut *u){ - return memcmp(self, u, sizeof(coin__UxOut)) == 0; - } -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN PyObject *_wrap_equalSlices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice *arg2 = (GoSlice *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:equalSlices",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalSlices" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalSlices" "', argument " "2"" of type '" "GoSlice *""'"); - } - arg2 = (GoSlice *)(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "equalSlices" "', argument " "3"" of type '" "int""'"); - } - arg3 = (int)(val3); - result = (int)equalSlices(arg1,arg2,arg3); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_equalTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:equalTransactions",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalTransactions" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalTransactions" "', argument " "2"" of type '" "coin__Transaction *""'"); - } - arg2 = (coin__Transaction *)(argp2); - result = (int)equalTransactions(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_equalTransactionsArrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transactions *arg1 = (coin__Transactions *) 0 ; - coin__Transactions *arg2 = (coin__Transactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:equalTransactionsArrays",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalTransactionsArrays" "', argument " "1"" of type '" "coin__Transactions *""'"); - } - arg1 = (coin__Transactions *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GoSlice_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalTransactionsArrays" "', argument " "2"" of type '" "coin__Transactions *""'"); - } - arg2 = (coin__Transactions *)(argp2); - result = (int)equalTransactionsArrays(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_equalBlockHeaders(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:equalBlockHeaders",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalBlockHeaders" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalBlockHeaders" "', argument " "2"" of type '" "coin__BlockHeader *""'"); - } - arg2 = (coin__BlockHeader *)(argp2); - result = (int)equalBlockHeaders(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_destroy_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:destroy_cipher_SecKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroy_cipher_SecKeys" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - destroy_cipher_SecKeys(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_destroy_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:destroy_cipher_PubKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroy_cipher_PubKeys" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - destroy_cipher_PubKeys(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; - cipher_SecKeys temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - int i; - arg2 = &temp2; - arg2->count = PyList_Size(obj1); - arg2->data = malloc(sizeof(cipher_SecKey) * arg2->count); - cipher_SecKey* pdata = arg2->data; - for(i = 0; i < arg2->count; i++){ - PyObject *o = PyList_GetItem(obj1, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - memcpy(pdata, p, sizeof(cipher_SecKey)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_Transaction_SignInputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg2->data) free(arg2->data); - } - return resultobj; -fail: - { - if (arg2->data) free(arg2->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - cipher_SecKeys *arg3 = (cipher_SecKeys *) 0 ; - long long val2 ; - int ecode2 = 0 ; - cipher_SecKeys temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.count = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairs', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)wrap_SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg3->count; i++) { - cipher_SecKey* key = &(arg3->data[i]); - cipher_SecKey* newKey = malloc(sizeof(cipher_SecKey)); - memcpy(newKey, key, sizeof(cipher_SecKey)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg3->data != NULL) - free( (void*)arg3->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - cipher_SecKeys *arg4 = (cipher_SecKeys *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - cipher_SecKeys temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - { - temp4.data = NULL; - temp4.count = 0; - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg4->count; i++) { - cipher_SecKey* key = &(arg4->data[i]); - cipher_SecKey* newKey = malloc(sizeof(cipher_SecKey)); - memcpy(newKey, key, sizeof(cipher_SecKey)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg4->data != NULL) - free( (void*)arg4->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - coin_UxOutArray temp1 ; - coin_UxOutArray temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_VerifyTransactionCoinsSpending",&obj0,&obj1)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - { - int i; - arg2 = &temp2; - arg2->count = PyList_Size(obj1); - arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); - coin__UxOut* pdata = arg2->data; - for(i = 0; i < arg2->count; i++){ - PyObject *o = PyList_GetItem(obj1, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg1->data) free(arg1->data); - } - { - if (arg2->data) free(arg2->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - { - if (arg2->data) free(arg2->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - coin_UxOutArray temp2 ; - coin_UxOutArray temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_VerifyTransactionHoursSpending",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_VerifyTransactionHoursSpending" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - { - int i; - arg2 = &temp2; - arg2->count = PyList_Size(obj1); - arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); - coin__UxOut* pdata = arg2->data; - for(i = 0; i < arg2->count; i++){ - PyObject *o = PyList_GetItem(obj1, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - { - int i; - arg3 = &temp3; - arg3->count = PyList_Size(obj2); - arg3->data = malloc(sizeof(coin__UxOut) * arg3->count); - coin__UxOut* pdata = arg3->data; - for(i = 0; i < arg3->count; i++){ - PyObject *o = PyList_GetItem(obj2, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg2->data) free(arg2->data); - } - { - if (arg3->data) free(arg3->data); - } - return resultobj; -fail: - { - if (arg2->data) free(arg2->data); - } - { - if (arg3->data) free(arg3->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - coin_UxOutArray temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.count = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_CreateUnspents",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspents" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)wrap_SKY_coin_CreateUnspents(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg3->count; i++) { - coin__UxOut* key = &(arg3->data[i]); - coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); - memcpy(newKey, key, sizeof(coin__UxOut)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg3->data != NULL) - free( (void*)arg3->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - coin_UxOutArray temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_VerifyInput",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - int i; - arg2 = &temp2; - arg2->count = PyList_Size(obj1); - arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); - coin__UxOut* pdata = arg2->data; - for(i = 0; i < arg2->count; i++){ - PyObject *o = PyList_GetItem(obj1, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_Transaction_VerifyInput(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg2->data) free(arg2->data); - } - return resultobj; -fail: - { - if (arg2->data) free(arg2->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - coin_UxOutArray temp1 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_HasDupes",&obj0)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_UxArray_HasDupes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - coin_UxOutArray temp1 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_Coins",&obj0)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_UxArray_Coins(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - coin_UxOutArray temp1 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_CoinHours",&obj0,&obj1)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)wrap_SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - coin_UxOutArray temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_UxArray_Less",&obj0,&obj1,&obj2)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Less" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)wrap_SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - coin_UxOutArray temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_UxArray_Swap",&obj0,&obj1,&obj2)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Swap" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)wrap_SKY_coin_UxArray_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - coin_UxOutArray temp1 ; - coin_UxOutArray temp2 ; - coin_UxOutArray temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.count = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Sub",&obj0,&obj1)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - { - int i; - arg2 = &temp2; - arg2->count = PyList_Size(obj1); - arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); - coin__UxOut* pdata = arg2->data; - for(i = 0; i < arg2->count; i++){ - PyObject *o = PyList_GetItem(obj1, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_UxArray_Sub(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg3->count; i++) { - coin__UxOut* key = &(arg3->data[i]); - coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); - memcpy(newKey, key, sizeof(coin__UxOut)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg3->data != NULL) - free( (void*)arg3->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - { - if (arg1->data) free(arg1->data); - } - { - if (arg2->data) free(arg2->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - { - if (arg2->data) free(arg2->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - coin_UxOutArray temp1 ; - coin_UxOutArray temp2 ; - coin_UxOutArray temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.count = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Add",&obj0,&obj1)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - { - int i; - arg2 = &temp2; - arg2->count = PyList_Size(obj1); - arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); - coin__UxOut* pdata = arg2->data; - for(i = 0; i < arg2->count; i++){ - PyObject *o = PyList_GetItem(obj1, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_UxArray_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg3->count; i++) { - coin__UxOut* key = &(arg3->data[i]); - coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); - memcpy(newKey, key, sizeof(coin__UxOut)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg3->data != NULL) - free( (void*)arg3->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - { - if (arg1->data) free(arg1->data); - } - { - if (arg2->data) free(arg2->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - { - if (arg2->data) free(arg2->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - coin_UxOutArray temp1 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewAddressUxOuts",&obj0)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_NewAddressUxOuts(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; - coin_UxOutArray temp1 ; - cipher_SHA256s temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.count = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_Hashes",&obj0)) SWIG_fail; - { - int i; - arg1 = &temp1; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); - coin__UxOut* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_UxArray_Hashes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg2->count; i++) { - cipher_SHA256* key = &(arg2->data[i]); - cipher_SHA256* newKey = malloc(sizeof(cipher_SHA256)); - memcpy(newKey, key, sizeof(cipher_SHA256)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg2->data != NULL) - free( (void*)arg2->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - coin_UxOutArray temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.count = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Flatten",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Flatten(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg2->count; i++) { - coin__UxOut* key = &(arg2->data[i]); - coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); - memcpy(newKey, key, sizeof(coin__UxOut)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg2->data != NULL) - free( (void*)arg2->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - coin_UxOutArray temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.count = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg3->count; i++) { - coin__UxOut* key = &(arg3->data[i]); - coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); - memcpy(newKey, key, sizeof(coin__UxOut)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg3->data != NULL) - free( (void*)arg3->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - coin_UxOutArray temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - { - int i; - arg3 = &temp3; - arg3->count = PyList_Size(obj2); - arg3->data = malloc(sizeof(coin__UxOut) * arg3->count); - coin__UxOut* pdata = arg3->data; - for(i = 0; i < arg3->count; i++){ - PyObject *o = PyList_GetItem(obj2, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg3->data) free(arg3->data); - } - return resultobj; -fail: - { - if (arg3->data) free(arg3->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher_Addresses *arg2 = (cipher_Addresses *) 0 ; - cipher_Addresses temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.count = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Keys(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg2->count; i++) { - cipher__Address* key = &(arg2->data[i]); - cipher__Address* newKey = malloc(sizeof(cipher__Address)); - memcpy(newKey, key, sizeof(cipher__Address)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher__Address, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg2->data != NULL) - free( (void*)arg2->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; - cipher_SHA256s temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.count = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)wrap_SKY_coin_Transactions_Hashes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(0); - for (i = 0; i < arg2->count; i++) { - cipher_SHA256* key = &(arg2->data[i]); - cipher_SHA256* newKey = malloc(sizeof(cipher_SHA256)); - memcpy(newKey, key, sizeof(cipher_SHA256)); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_OWN ); - PyList_Append(list, o); - Py_DECREF(o); - } - if( arg2->data != NULL) - free( (void*)arg2->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - coin_UxOutArray temp3 ; - GoUint64 temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4 = 0; - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_TransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_TransactionFee" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - { - int i; - arg3 = &temp3; - arg3->count = PyList_Size(obj2); - arg3->data = malloc(sizeof(coin__UxOut) * arg3->count); - coin__UxOut* pdata = arg3->data; - for(i = 0; i < arg3->count; i++){ - PyObject *o = PyList_GetItem(obj2, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); - coin__UxOut* p = (coin__UxOut*)argp; - memcpy(pdata, p, sizeof(coin__UxOut)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); - } - { - if (arg3->data) free(arg3->data); - } - return resultobj; -fail: - { - if (arg3->data) free(arg3->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_params_GetDistributionAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray temp1 ; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_params_GetDistributionAddresses")) SWIG_fail; - wrap_SKY_params_GetDistributionAddresses(arg1); - resultobj = SWIG_Py_Void(); - { - int itoken; - PyObject *list = PyList_New(0); - GoString *iStr; - int ntokens = arg1->len; - PyObject *py_string_tmp; - int py_err; - for (itoken = 0, iStr = (GoString *) arg1->data; itoken< ntokens; ++itoken, ++iStr) { - if (iStr == NULL) break; - - /* convert C string to Python string */ - py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); - if (! py_string_tmp) return NULL; - - /* put Python string into the list */ - PyList_Append(list, py_string_tmp); - if (py_err == -1) return NULL; - } - if( arg1->data != NULL) - free( (void*)arg1->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_params_GetUnlockedDistributionAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray temp1 ; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_params_GetUnlockedDistributionAddresses")) SWIG_fail; - wrap_SKY_params_GetUnlockedDistributionAddresses(arg1); - resultobj = SWIG_Py_Void(); - { - int itoken; - PyObject *list = PyList_New(0); - GoString *iStr; - int ntokens = arg1->len; - PyObject *py_string_tmp; - int py_err; - for (itoken = 0, iStr = (GoString *) arg1->data; itoken< ntokens; ++itoken, ++iStr) { - if (iStr == NULL) break; - - /* convert C string to Python string */ - py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); - if (! py_string_tmp) return NULL; - - /* put Python string into the list */ - PyList_Append(list, py_string_tmp); - if (py_err == -1) return NULL; - } - if( arg1->data != NULL) - free( (void*)arg1->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_params_GetLockedDistributionAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray temp1 ; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_params_GetLockedDistributionAddresses")) SWIG_fail; - wrap_SKY_params_GetLockedDistributionAddresses(arg1); - resultobj = SWIG_Py_Void(); - { - int itoken; - PyObject *list = PyList_New(0); - GoString *iStr; - int ntokens = arg1->len; - PyObject *py_string_tmp; - int py_err; - for (itoken = 0, iStr = (GoString *) arg1->data; itoken< ntokens; ++itoken, ++iStr) { - if (iStr == NULL) break; - - /* convert C string to Python string */ - py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); - if (! py_string_tmp) return NULL; - - /* put Python string into the list */ - PyList_Append(list, py_string_tmp); - if (py_err == -1) return NULL; - } - if( arg1->data != NULL) - free( (void*)arg1->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey___eq__" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey___eq__" "', argument " "2"" of type '" "cipher_PubKey *""'"); - } - arg2 = (cipher_PubKey *)(argp2); - result = (int)cipher_PubKey___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_compareToString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_compareToString" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - arg2 = obj1; - result = (int)cipher_PubKey_compareToString(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKey_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_toStr" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - result = (PyObject *)cipher_PubKey_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_assignFrom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_assignFrom" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_assignFrom" "', argument " "2"" of type '" "void *""'"); - } - cipher_PubKey_assignFrom(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_assignTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_assignTo" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_assignTo" "', argument " "2"" of type '" "void *""'"); - } - cipher_PubKey_assignTo(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_data_set" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_data_set" "', argument " "2"" of type '" "GoUint8 [33]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)33; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [33]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKey_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_data_get" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_PubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_PubKey")) SWIG_fail; - result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_PubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_PubKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_PubKey" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_PubKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_PubKey, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SecKey___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey___eq__" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey___eq__" "', argument " "2"" of type '" "cipher_SecKey *""'"); - } - arg2 = (cipher_SecKey *)(argp2); - result = (int)cipher_SecKey___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_compareToString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_compareToString" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - arg2 = obj1; - result = (int)cipher_SecKey_compareToString(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKey_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_toStr" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - result = (PyObject *)cipher_SecKey_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_assignFrom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_assignFrom" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_assignFrom" "', argument " "2"" of type '" "void *""'"); - } - cipher_SecKey_assignFrom(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_assignTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_assignTo" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_assignTo" "', argument " "2"" of type '" "void *""'"); - } - cipher_SecKey_assignTo(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_data_set" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_data_set" "', argument " "2"" of type '" "GoUint8 [32]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKey_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_data_get" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SecKey")) SWIG_fail; - result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SecKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SecKey" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SecKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SecKey, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160___eq__" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160___eq__" "', argument " "2"" of type '" "cipher_Ripemd160 *""'"); - } - arg2 = (cipher_Ripemd160 *)(argp2); - result = (int)cipher_Ripemd160___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_compareToString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_compareToString" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - arg2 = obj1; - result = (int)cipher_Ripemd160_compareToString(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Ripemd160_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_toStr" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - result = (PyObject *)cipher_Ripemd160_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_assignFrom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_assignFrom" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_assignFrom" "', argument " "2"" of type '" "void *""'"); - } - cipher_Ripemd160_assignFrom(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_assignTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_assignTo" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_assignTo" "', argument " "2"" of type '" "void *""'"); - } - cipher_Ripemd160_assignTo(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_data_set" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_data_set" "', argument " "2"" of type '" "GoUint8 [20]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)20; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [20]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Ripemd160_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_data_get" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Ripemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Ripemd160")) SWIG_fail; - result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Ripemd160, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Ripemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Ripemd160",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Ripemd160" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Ripemd160_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Ripemd160, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Sig___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - cipher_Sig *arg2 = (cipher_Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig___eq__" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig___eq__" "', argument " "2"" of type '" "cipher_Sig *""'"); - } - arg2 = (cipher_Sig *)(argp2); - result = (int)cipher_Sig___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_compareToString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_compareToString" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - arg2 = obj1; - result = (int)cipher_Sig_compareToString(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Sig_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_toStr" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - result = (PyObject *)cipher_Sig_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_assignFrom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_assignFrom" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_assignFrom" "', argument " "2"" of type '" "void *""'"); - } - cipher_Sig_assignFrom(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_assignTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_assignTo" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_assignTo" "', argument " "2"" of type '" "void *""'"); - } - cipher_Sig_assignTo(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_data_set" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_data_set" "', argument " "2"" of type '" "GoUint8 [65]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)65; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [65]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Sig_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_data_get" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Sig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Sig")) SWIG_fail; - result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Sig, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Sig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Sig",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Sig" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Sig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Sig, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SHA256___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256___eq__" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256___eq__" "', argument " "2"" of type '" "cipher_SHA256 *""'"); - } - arg2 = (cipher_SHA256 *)(argp2); - result = (int)cipher_SHA256___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_compareToString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_compareToString" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - arg2 = obj1; - result = (int)cipher_SHA256_compareToString(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_toStr" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - result = (PyObject *)cipher_SHA256_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_assignFrom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_assignFrom" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_assignFrom" "', argument " "2"" of type '" "void *""'"); - } - cipher_SHA256_assignFrom(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_assignTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_assignTo" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_assignTo" "', argument " "2"" of type '" "void *""'"); - } - cipher_SHA256_assignTo(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_data_set" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_data_set" "', argument " "2"" of type '" "GoUint8 [32]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_data_get" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SHA256")) SWIG_fail; - result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SHA256",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SHA256" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SHA256_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SHA256, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Checksum___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum___eq__" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum___eq__" "', argument " "2"" of type '" "cipher_Checksum *""'"); - } - arg2 = (cipher_Checksum *)(argp2); - result = (int)cipher_Checksum___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_compareToString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_compareToString" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - arg2 = obj1; - result = (int)cipher_Checksum_compareToString(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Checksum_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_toStr" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - result = (PyObject *)cipher_Checksum_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_assignFrom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_assignFrom" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_assignFrom" "', argument " "2"" of type '" "void *""'"); - } - cipher_Checksum_assignFrom(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_assignTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_assignTo" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_assignTo" "', argument " "2"" of type '" "void *""'"); - } - cipher_Checksum_assignTo(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_data_set" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_data_set" "', argument " "2"" of type '" "GoUint8 [4]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)4; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [4]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Checksum_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_data_get" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Checksum")) SWIG_fail; - result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Checksum, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Checksum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Checksum" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Checksum_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Checksum, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - cipher_SecKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_getAt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_getAt" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_getAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_SecKeys_setAt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_setAt" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_setAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_SecKeys_setAt" "', argument " "3"" of type '" "cipher_SecKey *""'"); - } - arg3 = (cipher_SecKey *)(argp3); - result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys___eq__" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKeys___eq__" "', argument " "2"" of type '" "cipher_SecKeys *""'"); - } - arg2 = (cipher_SecKeys *)(argp2); - result = (int)cipher_SecKeys___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_allocate" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_allocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - cipher_SecKeys_allocate(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_release",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_release" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - cipher_SecKeys_release(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_data_set" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKeys_data_set" "', argument " "2"" of type '" "cipher_SecKey *""'"); - } - arg2 = (cipher_SecKey *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher_SecKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_data_get" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - result = (cipher_SecKey *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_count_set" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_count_get" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SecKeys")) SWIG_fail; - result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKeys, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SecKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SecKeys" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SecKeys_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SecKeys, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - cipher_PubKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_getAt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_getAt" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_getAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_PubKeys_setAt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_setAt" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_setAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_PubKeys_setAt" "', argument " "3"" of type '" "cipher_PubKey *""'"); - } - arg3 = (cipher_PubKey *)(argp3); - result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys___eq__" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKeys___eq__" "', argument " "2"" of type '" "cipher_PubKeys *""'"); - } - arg2 = (cipher_PubKeys *)(argp2); - result = (int)cipher_PubKeys___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_allocate" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_allocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - cipher_PubKeys_allocate(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_release",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_release" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - cipher_PubKeys_release(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_data_set" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKeys_data_set" "', argument " "2"" of type '" "cipher_PubKey *""'"); - } - arg2 = (cipher_PubKey *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher_PubKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_data_get" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - result = (cipher_PubKey *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_count_set" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_count_get" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_PubKeys")) SWIG_fail; - result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKeys, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_PubKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_PubKeys" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_PubKeys_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_PubKeys, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - cipher_SHA256 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_getAt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_getAt" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_getAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_SHA256s_setAt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_setAt" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_setAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_SHA256s_setAt" "', argument " "3"" of type '" "cipher_SHA256 *""'"); - } - arg3 = (cipher_SHA256 *)(argp3); - result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s___eq__" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256s___eq__" "', argument " "2"" of type '" "cipher_SHA256s *""'"); - } - arg2 = (cipher_SHA256s *)(argp2); - result = (int)cipher_SHA256s___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_allocate" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_allocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - cipher_SHA256s_allocate(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256s_release",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_release" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - cipher_SHA256s_release(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_data_set" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256s_data_set" "', argument " "2"" of type '" "cipher_SHA256 *""'"); - } - arg2 = (cipher_SHA256 *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher_SHA256 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256s_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_data_get" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - result = (cipher_SHA256 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_count_set" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256s_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256s_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_count_get" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SHA256s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SHA256s")) SWIG_fail; - result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256s, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SHA256s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SHA256s",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SHA256s" "', argument " "1"" of type '" "cipher_SHA256s *""'"); - } - arg1 = (cipher_SHA256s *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SHA256s_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SHA256s, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin_UxOutArray_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin_UxOutArray_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_data_set" "', argument " "1"" of type '" "coin_UxOutArray *""'"); - } - arg1 = (coin_UxOutArray *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin_UxOutArray_data_set" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin_UxOutArray_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__UxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin_UxOutArray_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_data_get" "', argument " "1"" of type '" "coin_UxOutArray *""'"); - } - arg1 = (coin_UxOutArray *)(argp1); - result = (coin__UxOut *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxOut, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin_UxOutArray_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin_UxOutArray_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_count_set" "', argument " "1"" of type '" "coin_UxOutArray *""'"); - } - arg1 = (coin_UxOutArray *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin_UxOutArray_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin_UxOutArray_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin_UxOutArray_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_count_get" "', argument " "1"" of type '" "coin_UxOutArray *""'"); - } - arg1 = (coin_UxOutArray *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin_UxOutArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin_UxOutArray")) SWIG_fail; - result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin_UxOutArray, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin_UxOutArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin_UxOutArray",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin_UxOutArray" "', argument " "1"" of type '" "coin_UxOutArray *""'"); - } - arg1 = (coin_UxOutArray *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin_UxOutArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin_UxOutArray, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Addresses_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Addresses_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_data_set" "', argument " "1"" of type '" "cipher_Addresses *""'"); - } - arg1 = (cipher_Addresses *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Addresses_data_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Addresses_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Addresses_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_data_get" "', argument " "1"" of type '" "cipher_Addresses *""'"); - } - arg1 = (cipher_Addresses *)(argp1); - result = (cipher__Address *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Addresses_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Addresses_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_count_set" "', argument " "1"" of type '" "cipher_Addresses *""'"); - } - arg1 = (cipher_Addresses *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_Addresses_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Addresses_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Addresses_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_count_get" "', argument " "1"" of type '" "cipher_Addresses *""'"); - } - arg1 = (cipher_Addresses *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Addresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Addresses *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Addresses")) SWIG_fail; - result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Addresses, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Addresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Addresses",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Addresses" "', argument " "1"" of type '" "cipher_Addresses *""'"); - } - arg1 = (cipher_Addresses *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Addresses_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Addresses, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_Fee_Calculator_callback_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Fee_Calculator_callback_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_callback_set" "', argument " "1"" of type '" "Fee_Calculator *""'"); - } - arg1 = (Fee_Calculator *)(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "Fee_Calculator_callback_set" "', argument " "2"" of type '" "FeeCalcFunc""'"); - } - } - if (arg1) (arg1)->callback = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Fee_Calculator_callback_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - FeeCalcFunc result; - - if (!PyArg_ParseTuple(args,(char *)"O:Fee_Calculator_callback_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_callback_get" "', argument " "1"" of type '" "Fee_Calculator *""'"); - } - arg1 = (Fee_Calculator *)(argp1); - result = (FeeCalcFunc) ((arg1)->callback); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Fee_Calculator_context_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Fee_Calculator_context_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_context_set" "', argument " "1"" of type '" "Fee_Calculator *""'"); - } - arg1 = (Fee_Calculator *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Fee_Calculator_context_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->context = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Fee_Calculator_context_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:Fee_Calculator_context_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_context_get" "', argument " "1"" of type '" "Fee_Calculator *""'"); - } - arg1 = (Fee_Calculator *)(argp1); - result = (void *) ((arg1)->context); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_Fee_Calculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Fee_Calculator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_Fee_Calculator")) SWIG_fail; - result = (Fee_Calculator *)calloc(1, sizeof(Fee_Calculator)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Fee_Calculator, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_Fee_Calculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_Fee_Calculator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Fee_Calculator" "', argument " "1"" of type '" "Fee_Calculator *""'"); - } - arg1 = (Fee_Calculator *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *Fee_Calculator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_Fee_Calculator, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap__GoString__p_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:_GoString__p_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__p_set" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_GoString__p_set" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = (char *)(buf2); - if (arg2) { - size_t size = strlen((const char *)((const char *)(arg2))) + 1; - arg1->p = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); - } else { - arg1->p = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); - return NULL; -} - - -SWIGINTERN PyObject *_wrap__GoString__p_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:_GoString__p_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__p_get" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - result = (char *) ((arg1)->p); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap__GoString__n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:_GoString__n_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__n_set" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - ecode2 = SWIG_AsVal_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_GoString__n_set" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = (ptrdiff_t)(val2); - if (arg1) (arg1)->n = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap__GoString__n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - ptrdiff_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:_GoString__n_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__n_get" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - result = ((arg1)->n); - resultobj = SWIG_From_long((long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new__GoString_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new__GoString_")) SWIG_fail; - result = (_GoString_ *)calloc(1, sizeof(_GoString_)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__GoString_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete__GoString_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete__GoString_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__GoString_" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_GoString__swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__GoString_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_GoInterface_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoInterface_t_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_t_set" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoInterface_t_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->t = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoInterface_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:GoInterface_t_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_t_get" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - result = (void *) ((arg1)->t); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoInterface_v_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoInterface_v_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_v_set" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoInterface_v_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->v = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoInterface_v_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:GoInterface_v_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_v_get" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - result = (void *) ((arg1)->v); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_GoInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_GoInterface")) SWIG_fail; - result = (GoInterface *)calloc(1, sizeof(GoInterface)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GoInterface, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_GoInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_GoInterface",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GoInterface" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *GoInterface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_GoInterface, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_GoSlice_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_data_set" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoSlice_data_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_data_get" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - result = (void *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_len_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_len_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_len_set" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GoSlice_len_set" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - if (arg1) (arg1)->len = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_len_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt result; - - if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_len_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_len_get" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - result = (GoInt) ((arg1)->len); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_cap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_cap_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_cap_set" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GoSlice_cap_set" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - if (arg1) (arg1)->cap = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_cap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt result; - - if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_cap_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_cap_get" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - result = (GoInt) ((arg1)->cap); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_GoSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_GoSlice")) SWIG_fail; - result = (GoSlice *)calloc(1, sizeof(GoSlice)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GoSlice, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_GoSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_GoSlice",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GoSlice" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *GoSlice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_GoSlice, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_SKY_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; - GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - Handle temp2 ; - unsigned long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GenerateWallet",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateWallet', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_cli_GenerateWallet" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_MakeAlphanumericSeed")) SWIG_fail; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewClient",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewClient', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_api_NewClient(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CSRF",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Version",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Outputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Outputs",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForAddresses",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForAddresses', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForHashes",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForHashes', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CoinSupply",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockByHash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_BlockByHash', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_BlockBySeq" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Blocks",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Blocks', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_LastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_LastBlocks",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_LastBlocks" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainMetadata",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainProgress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_Balance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Balance', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_Balance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); - } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UxOut",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UxOut', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressUxOuts",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressUxOuts', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Wallet",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Wallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Wallets",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - long long val4 ; - int ecode4 = 0 ; - Handle temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - { - arg5 = &temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_CreateUnencryptedWallet",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "4"" of type '" "GoInt""'"); - } - arg4 = (GoInt)(val4); - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - long long val5 ; - int ecode5 = 0 ; - Handle temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; - - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_api_Client_CreateEncryptedWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - ecode5 = SWIG_AsVal_long_SS_long(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "5"" of type '" "GoInt""'"); - } - arg5 = (GoInt)(val5); - result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NewWalletAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoString arg4 ; - Strings__Handle *arg5 = (Strings__Handle *) 0 ; - long long val3 ; - int ecode3 = 0 ; - Handle temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - { - arg5 = &temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_NewWalletAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NewWalletAddress', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_api_Client_NewWalletAddress" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NewWalletAddress', expecting string"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletBalance', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_WalletBalance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); - } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint64 arg4 ; - GoString arg5 ; - SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_api_Client_Spend",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_Spend" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); - } - (&arg5)->p = buffer; - (&arg5)->n = size - 1; - } - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_SpendResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_api_Client_Spend" "', argument " "6"" of type '" "SpendResult_Handle *""'"); - } - arg6 = (SpendResult_Handle *)(argp6); - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Handle temp2 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CreateTransaction",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UpdateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_UpdateWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletFolderName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_WalletFolderName",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NewSeed",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_NewSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletSeed",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletSeed', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletSeed', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NetworkConnection', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - api__NetworkConnectionsFilter *arg2 = (api__NetworkConnectionsFilter *) 0 ; - Handle *arg3 = (Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnections",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_api_Client_NetworkConnections" "', argument " "2"" of type '" "api__NetworkConnectionsFilter *""'"); - } - arg2 = (api__NetworkConnectionsFilter *)(argp2); - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkDefaultPeers",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkTrustedPeers",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkExchangedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkExchangedPeers",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_PendingTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_PendingTransactions",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Transaction', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Transactions', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_ConfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_ConfirmedTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_ConfirmedTransactions', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UnconfirmedTransactions', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_ResendUnconfirmedTransactions",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_RawTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_RawTransaction', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressTransactions', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; - Handle *arg3 = (Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_api_Client_Richlist" "', argument " "2"" of type '" "api__RichlistParams *""'"); - } - arg2 = (api__RichlistParams *)(argp2); - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_AddressCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UnloadWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Health",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_EncryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_EncryptWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_EncryptWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_DecryptWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_DecryptWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreateTransactionResponse",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewCreateTransactionResponse', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewCreatedTransaction', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransactionOutput",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewCreatedTransactionInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionInput" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_NewClient",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_NewClient', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetStatus",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_StatusResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_webrpc_Client_GetStatus" "', argument " "2"" of type '" "StatusResult_Handle *""'"); - } - arg2 = (StatusResult_Handle *)(argp2); - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetTransactionByID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetTransactionByID",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetTransactionByID', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TransactionResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_webrpc_Client_GetTransactionByID" "', argument " "3"" of type '" "TransactionResult_Handle *""'"); - } - arg3 = (TransactionResult_Handle *)(argp3); - result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetAddressUxOuts",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetAddressUxOuts', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetBlocksInRange",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetBlocksInRange" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_webrpc_Client_GetBlocksInRange" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_webrpc_Client_GetBlocksInRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetBlocksBySeq",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetBlocksBySeq', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetLastBlocks" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58Address",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DecodeBase58Address', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_DecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromBytes",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_AddressFromBytes', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromPubKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromPubKey" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromSecKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromSecKey" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_Null",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Null" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Bytes" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_Verify",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Verify" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_String" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_Checksum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Checksum" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); - cipher_Checksum* p = (cipher_Checksum*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_String2Hex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_String2Hex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToInt",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToInt', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToHex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_Base582Int",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_Base582Int', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base582Hex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base582Hex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_BitHex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_BitHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Int2Base58",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_base58_Int2Base58" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58String",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58String', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58Str",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58Str', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58BitcoinAddress",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DecodeBase58BitcoinAddress', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_DecodeBase58BitcoinAddress" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); - } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromPubKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromPubKey" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); - } - arg2 = (cipher__BitcoinAddress *)(argp2); - SKY_cipher_BitcoinAddressFromPubKey((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromSecKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromSecKey" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); - } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinWalletImportFormatFromSeckey",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - SKY_cipher_BitcoinWalletImportFormatFromSeckey((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_Py_Void(); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromBytes",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_BitcoinAddressFromBytes', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); - } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromBitcoinWalletImportFormat",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromBitcoinWalletImportFormat', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_Null",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Null" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Bytes" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); - resultobj = SWIG_Py_Void(); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddress_Verify",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Verify" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_String" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - SKY_cipher_BitcoinAddress_String(arg1,arg2); - resultobj = SWIG_Py_Void(); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddress_Checksum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Checksum" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); - cipher_Checksum* p = (cipher_Checksum*)argp; - arg2 = &p->data; - } - SKY_cipher_BitcoinAddress_Checksum(arg1,(unsigned char (*)[4])arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_RandByte",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_cipher_RandByte" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewPubKey",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewPubKey', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_PubKeyFromHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromSecKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyFromSecKey((unsigned char (*)[32])arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_PubKeyFromSig",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyFromSig((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[33])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Verify",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKey_Verify((unsigned char (*)[33])arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKey_Hex((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyRipemd160",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); - cipher_Ripemd160* p = (cipher_Ripemd160*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyRipemd160((unsigned char (*)[33])arg1,(unsigned char (*)[20])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_NewSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSecKey",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSecKey', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_NewSecKey(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Verify",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKey_Hex((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_ECDH",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_ECDH((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_NewSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSig",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSig', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_NewSig(arg1,(unsigned char (*)[65])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SigFromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SigFromHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(unsigned char (*)[65])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_Sig_Hex((unsigned char (*)[65])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SignHash",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_SignHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[65])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyAddressSignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_VerifyAddressSignedHash",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_VerifyAddressSignedHash" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_VerifySignedHash",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_VerifySignedHash((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyPubKeySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_VerifyPubKeySignedHash",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_VerifyPubKeySignedHash((unsigned char (*)[33])arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateKeyPair",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_GenerateKeyPair((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_GenerateDeterministicKeyPair",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPair', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(unsigned char (*)[33])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_DeterministicKeyPairIterator",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DeterministicKeyPairIterator', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg3 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg4 = &p->data; - } - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(unsigned char (*)[33])arg3,(unsigned char (*)[32])arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairs', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( argv[0], &buffer, &size, 0 ); - _v = SWIG_IsOK(res) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( argv[0], &buffer, &size, 0 ); - _v = SWIG_IsOK(res) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_cipher_GenerateDeterministicKeyPairs'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,cipher_SecKeys *)\n" - " SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairsSeed', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_CheckSecKey",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_CheckSecKey((unsigned char (*)[32])arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKeyHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_CheckSecKeyHash",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_CheckSecKeyHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Encrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Encrypt', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Encrypt', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Decrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Decrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_bip39_NewDefaultMnemomic")) SWIG_fail; - result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewEntropy",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_bip39_NewEntropy" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewMnemonic",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_NewMnemonic', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_MnemonicToByteArray",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_MnemonicToByteArray', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_IsMnemonicValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_IsMnemonicValid",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_IsMnemonicValid', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; - GoSlice arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Ripemd160_Set",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); - cipher_Ripemd160* p = (cipher_Ripemd160*)argp; - arg1 = &p->data; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_Ripemd160_Set', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_HashRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_HashRipemd160",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_HashRipemd160', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); - cipher_Ripemd160* p = (cipher_Ripemd160*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(unsigned char (*)[20])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoSlice arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256_Set",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SHA256_Set', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_cipher_SHA256_Set((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256_Hex((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SHA256_Xor",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256_Xor((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SumSHA256",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SumSHA256', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256FromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SHA256FromHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DoubleSHA256', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_AddSHA256",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_AddSHA256((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Merkle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Merkle" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Null",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256_Null((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_AddPrivateKey",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKey', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - void *argp3 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_AddPrivateKeyToFile",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKeyToFile', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKeyToFile', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } else { - arg3 = *((PasswordReader__Handle *)(argp3)); - } - } - result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_CheckWalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CheckWalletBalance', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_CheckWalletBalance" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); - } - arg3 = (BalanceResult_Handle *)(argp3); - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetBalanceOfAddresses",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetBalanceOfAddresses', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetBalanceOfAddresses" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); - } - arg3 = (BalanceResult_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle *arg1 = (Config__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_LoadConfig")) SWIG_fail; - result = (GoUint32)SKY_cli_LoadConfig(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullWalletPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromContext",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_ConfigFromContext",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromBytes_Password")) SWIG_fail; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromTerm_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromTerm_Password")) SWIG_fail; - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - void *argp5 ; - int res5 = 0 ; - Handle temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; - - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_cli_CreateRawTxFromWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); - } - (&arg4)->data = buffer; - (&arg4)->len = size - 1; - (&arg4)->cap = size; - } - { - res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); - } else { - arg5 = *((PasswordReader__Handle *)(argp5)); - } - } - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - void *argp6 ; - int res6 = 0 ; - Handle temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - { - arg7 = &temp7; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTxFromAddress",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); - } - (&arg5)->data = buffer; - (&arg5)->len = size - 1; - (&arg5)->cap = size; - } - { - res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "6"" of type '" "PasswordReader__Handle""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "6"" of type '" "PasswordReader__Handle""'"); - } else { - arg6 = *((PasswordReader__Handle *)(argp6)); - } - } - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - Handle temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - { - arg7 = &temp7; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg5)->data = buffer; - (&arg5)->len = size - 1; - (&arg5)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg6)->data = buffer; - (&arg6)->len = size - 1; - (&arg6)->cap = size; - } - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_NewTransaction",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - void *argp3 ; - int res3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GenerateAddressesInFile",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateAddressesInFile', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } else { - arg3 = *((PasswordReader__Handle *)(argp3)); - } - } - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJSON",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJSON', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJoinedArray",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJoinedArray', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_AddressesToStrings",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddressesToStrings', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetWalletOutputsFromFile",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetWalletOutputsFromFile', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputsFromFile" "', argument " "3"" of type '" "ReadableUnspentOutputsSummary_Handle *""'"); - } - arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; - Handle temp2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GetWalletOutputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputs" "', argument " "3"" of type '" "ReadableUnspentOutputsSummary_Handle *""'"); - } - arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_App_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - App__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_App_Run",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_App_Run', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetCoin",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetRPCAddress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromApp",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Getenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Getenv",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Getenv', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_cli_Getenv(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_Setenv",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transactions__Handle arg4 ; - FeeCalculator *arg5 = (FeeCalculator *) 0 ; - Block__Handle *arg6 = (Block__Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - FeeCalculator temp5 ; - Handle temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; - - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_coin_NewBlock",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewBlock" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - { - SWIG_AsVal_long(obj3, (long*)&arg4); - } - { - if (!PyCallable_Check(obj4)) SWIG_fail; - temp5.callback = _WrapperFeeCalculator; - temp5.context = obj4; - arg5 = &temp5; - } - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(unsigned char (*)[32])arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SignedBlock_VerifySignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SignedBlock_VerifySignature",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SignedBlock_VerifySignature" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewGenesisBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashHeader",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Time",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Seq",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Handle temp3 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(unsigned char (*)[32])arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_coin_NewBlockHeader",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewBlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewBlockHeader" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_NewBlockHeader" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - { - SWIG_AsVal_long(obj4, (long*)&arg5); - } - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_coin_NewBlockHeader" "', argument " "6"" of type '" "coin__BlockHeader *""'"); - } - arg6 = (coin__BlockHeader *)(argp6); - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(unsigned char (*)[32])arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockHeader_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Hash" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Bytes" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_String" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Handle temp1 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - arg1 = &temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_BlockBody_Size")) SWIG_fail; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_CreateUnspents",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspents" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_coin__BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PyInt_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_CreateUnspents__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_coin__BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PyInt_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_CreateUnspents__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_CreateUnspents'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_CreateUnspents(coin__BlockHeader *,Transaction__Handle,coin_UxOutArray *)\n" - " SKY_coin_CreateUnspents(coin__BlockHeader *,Transaction__Handle,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_CreateUnspent",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspent" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_CreateUnspent" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_coin_CreateUnspent" "', argument " "4"" of type '" "coin__UxOut *""'"); - } - arg4 = (coin__UxOut *)(argp4); - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - coin__Block *temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = NULL; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockObject",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Block, 0 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddUint64",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_AddUint64" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_AddUint64" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoInt64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Uint64ToInt64",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_Uint64ToInt64" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Int64ToUint64",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_Int64ToUint64" "', argument " "1"" of type '" "GoInt64""'"); - } - arg1 = (GoInt64)(val1); - result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_IntToUint32",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_IntToUint32" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_coin_IntToUint32(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_Hash" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_SnapshotHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_SnapshotHash" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxBody_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxBody_Hash" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_CoinHours",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Hashes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Hashes__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_Hashes__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Hashes'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Hashes(coin_UxOutArray *,cipher_SHA256s *)\n" - " SKY_coin_UxArray_Hashes(coin__UxArray *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_HasDupes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_HasDupes__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_HasDupes__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_HasDupes'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray *,GoUint8 *)\n" - " SKY_coin_UxArray_HasDupes(coin__UxArray *,GoUint8 *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sort")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Sort(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice_ temp1 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Len")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Less",&obj0,&obj1)) SWIG_fail; - ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Less" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_UxArray_Less__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_UxArray_Less__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Less'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Less(coin_UxOutArray *,GoInt,GoInt,GoUint8 *)\n" - " SKY_coin_UxArray_Less(coin__UxArray *,GoInt,GoInt,GoUint8 *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Swap",&obj0,&obj1)) SWIG_fail; - ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Swap" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_UxArray_Swap__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_UxArray_Swap__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Swap'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Swap(coin_UxOutArray *,GoInt,GoInt)\n" - " SKY_coin_UxArray_Swap(coin__UxArray *,GoInt,GoInt)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoSlice_ temp1 ; - GoUint64 temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Coins")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Coins__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_Coins__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Coins'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Coins(coin_UxOutArray *,GoUint64 *)\n" - " SKY_coin_UxArray_Coins(coin__UxArray *,GoUint64 *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoSlice_ temp1 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_CoinHours",&obj0)) SWIG_fail; - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_UxArray_CoinHours__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_UxArray_CoinHours__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_CoinHours'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_CoinHours(coin_UxOutArray *,GoUint64,GoUint64 *)\n" - " SKY_coin_UxArray_CoinHours(coin__UxArray *,GoUint64,GoUint64 *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sub")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Sub__SWIG_1(self, args); - } - if (argc == 2) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_Sub__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Sub'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Sub(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_UxArray_Sub(coin__UxArray *,coin__UxArray *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Add")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Add__SWIG_1(self, args); - } - if (argc == 2) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_Add__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Add'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Add(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_UxArray_Add(coin__UxArray *,coin__UxArray *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - GoSlice_ temp1 ; - Handle temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_NewAddressUxOuts")) SWIG_fail; - result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_NewAddressUxOuts__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_NewAddressUxOuts__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_NewAddressUxOuts'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_NewAddressUxOuts(coin_UxOutArray *,AddressUxOuts_Handle *)\n" - " SKY_coin_NewAddressUxOuts(coin__UxArray *,AddressUxOuts_Handle *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_0(self, args); - } - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Keys'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle,cipher_Addresses *)\n" - " SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Flatten",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_0(self, args); - } - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Flatten'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle,coin_UxOutArray *)\n" - " SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Sub",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Add",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Get__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Get__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Get'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle,cipher__Address *,coin_UxOutArray *)\n" - " SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle,cipher__Address *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_HasKey",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_HasKey" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_GetOutputLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoInt *arg3 = (GoInt *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoInt temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_GetOutputLength",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_GetOutputLength" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Length",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PyList_Check(argv[2]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Set__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Set'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle,cipher__Address *,coin_UxOutArray *)\n" - " SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle,cipher__Address *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transaction")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transaction(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Copy",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - coin__Transaction *temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = NULL; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetTransactionObject",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Transaction, 0 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetInputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetInputs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetInputsCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetInputAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetInputAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetOutputsCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - long long val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetOutputAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_Transaction_GetOutputAt" "', argument " "3"" of type '" "coin__TransactionOutput *""'"); - } - arg3 = (coin__TransactionOutput *)(argp3); - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - long long val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetOutputAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_Transaction_SetOutputAt" "', argument " "3"" of type '" "coin__TransactionOutput *""'"); - } - arg3 = (coin__TransactionOutput *)(argp3); - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignaturesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetSignaturesCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetSignatureAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetSignatureAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushSignature",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(unsigned char (*)[65])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetOutputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetOutputs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetSignatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetSignatures",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetSignatures" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_VerifyInput",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_Transaction_VerifyInput__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_Transaction_VerifyInput'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_Transaction_VerifyInput(Transaction__Handle,coin_UxOutArray *)\n" - " SKY_coin_Transaction_VerifyInput(Transaction__Handle,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoUint16 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_TransactionOutput_UxID",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_TransactionOutput_UxID" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_Transaction_PushOutput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_coin_Transaction_SignInputs', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( argv[1], &buffer, &size, 0 ); - _v = SWIG_IsOK(res) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_Transaction_SignInputs__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_Transaction_SignInputs__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_Transaction_SignInputs'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_Transaction_SignInputs(Transaction__Handle,cipher_SecKeys *)\n" - " SKY_coin_Transaction_SignInputs(Transaction__Handle,GoSlice)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SizeHash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxID",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxIDHex",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_UpdateHeader",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_HashInner",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Serialize",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_TransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_TransactionDeserialize",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_coin_TransactionDeserialize', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transactions")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_GetTransactionsObject",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GoSlice_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_GetTransactionsObject" "', argument " "2"" of type '" "coin__UxArray **""'"); - } - arg2 = (coin__UxArray **)(argp2); - result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Length",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Add",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Fees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - FeeCalculator temp2 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Fees",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - arg2 = &temp2; - } - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_GetAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_Transactions_Hashes__SWIG_0(self, args); - } - } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_Transactions_Hashes__SWIG_1(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_Transactions_Hashes'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_Transactions_Hashes(Transactions__Handle,cipher_SHA256s *)\n" - " SKY_coin_Transactions_Hashes(Transactions__Handle,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoUint32 arg2 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_TruncateBytesTo",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_TruncateBytesTo" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - FeeCalculator temp2 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SortTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - arg2 = &temp2; - } - result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewSortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - FeeCalculator temp2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewSortableTransactions",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - arg2 = &temp2; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_SortableTransactionResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_NewSortableTransactions" "', argument " "3"" of type '" "SortableTransactionResult_Handle *""'"); - } - arg3 = (SortableTransactionResult_Handle *)(argp3); - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - void *argp1 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Sort",&obj0)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Sort" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Sort" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } else { - arg1 = *((SortableTransactionResult_Handle *)(argp1)); - } - } - result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - void *argp1 ; - int res1 = 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Len",&obj0)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } else { - arg1 = *((SortableTransactionResult_Handle *)(argp1)); - } - } - result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Less(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp1 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Less",&obj0,&obj1,&obj2)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } else { - arg1 = *((SortableTransactionResult_Handle *)(argp1)); - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - void *argp1 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Swap",&obj0,&obj1,&obj2)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } else { - arg1 = *((SortableTransactionResult_Handle *)(argp1)); - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_VerifyTransactionCoinsSpending")) SWIG_fail; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(self, args); - } - if (argc == 2) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionCoinsSpending'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_VerifyTransactionHoursSpending",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_VerifyTransactionHoursSpending" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(self, args); - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[2]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionHoursSpending'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin__UxArray *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_close",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - SKY_handle_close(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_handle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_copy",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_handle_copy(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_JsonEncode_Handle",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Progress_GetCurrent",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadSeq",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetPreviousBlockHash",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Blocks_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Blocks_GetAt" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Strings__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_Sort",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Strings__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Strings_GetAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletFileName",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletLabel",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_Client_GetWalletFullPath",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletMeta",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletEntriesCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletResponseEntriesCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint32 arg2 ; - cipher__Address *arg3 = (cipher__Address *) 0 ; - cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Handle_WalletGetEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "3"" of type '" "cipher__Address *""'"); - } - arg3 = (cipher__Address *)(argp3); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj3, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg4 = &p->data; - } - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(unsigned char (*)[33])arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint32 arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - GoString temp3 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletResponseGetEntry",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletResponseGetEntry" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseIsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseIsEncrypted",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetCryptoType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallets__Handle arg1 ; - GoUint32 arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletsResponseGetAt" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletFolderAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletFolderAddress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletSeed",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletLastSeed",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BuildInfo_Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp2 ; - GoString temp3 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetBuildInfoData",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Handle temp1 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg1 = &temp1; - } - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_Get",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_map_Get', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_map_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - Handle temp1 ; - PyObject * obj0 = 0 ; - GoUint8 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_HasKey",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_map_HasKey', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint8)SKY_map_HasKey(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_map_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_map_Close")) SWIG_fail; - result = (GoUint32)SKY_map_Close(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_testutil_MakeAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_testutil_MakeAddress",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_testutil_MakeAddress" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_testutil_MakeAddress(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_CatchInterruptPanic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchInterruptPanic")) SWIG_fail; - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_CatchDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchDebug")) SWIG_fail; - result = (GoUint32)SKY_apputil_CatchDebug(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_PrintProgramStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_PrintProgramStatus")) SWIG_fail; - result = (GoUint32)SKY_apputil_PrintProgramStatus(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoSlice_ temp4 ; - GoSlice_ temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - { - temp5.data = NULL; - temp5.len = 0; - temp5.cap = 0; - arg5 = (coin__UxArray *)&temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_certutil_NewTLSCertPair",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); - free( (void*)arg5->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_droplet_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_FromString",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_droplet_FromString', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_droplet_FromString(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_ToString",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_droplet_ToString" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - GoUint32 arg3 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_VerifyTransactionFee" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_fee_VerifyTransactionFee" "', argument " "3"" of type '" "GoUint32""'"); - } - arg3 = (GoUint32)(val3); - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint32 arg3 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFeeForHours",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "3"" of type '" "GoUint32""'"); - } - arg3 = (GoUint32)(val3); - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint32 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_RequiredFee",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_RequiredFee" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_RequiredFee" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint32 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_RemainingHours",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_RemainingHours" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_RemainingHours" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - GoUint64 temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - { - temp4 = 0; - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_TransactionFee",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_TransactionFee" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_fee_TransactionFee__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - _v = PyList_Check(argv[2]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_fee_TransactionFee__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_fee_TransactionFee'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_fee_TransactionFee(Transaction__Handle,GoUint64,coin_UxOutArray *,GoUint64 *)\n" - " SKY_fee_TransactionFee(Transaction__Handle,GoUint64,coin__UxArray *,GoUint64 *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_InitDataDir', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_file_UserHome")) SWIG_fail; - result = (GoUint32)SKY_file_UserHome(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_ResolveResourceDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_ResolveResourceDirectory",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_ResolveResourceDirectory', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_file_DetermineResourcePath",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_httphelper_Address_UnmarshalJSON",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_httphelper_Address_UnmarshalJSON" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Address_UnmarshalJSON', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Address_MarshalJSON",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_httphelper_Address_MarshalJSON" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoUint64 temp1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1 = 0; - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Coins_UnmarshalJSON",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Coins_UnmarshalJSON', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint64 temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1 = 0; - arg1 = &temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp1 ; - GoUint64 temp2 ; - GoUint32 result; - - { - temp1 = 0; - arg1 = &temp1; - } - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_Value")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoUint64 temp1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1 = 0; - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Hours_UnmarshalJSON",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Hours_UnmarshalJSON', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint64 temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1 = 0; - arg1 = &temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp1 ; - GoUint64 temp2 ; - GoUint32 result; - - { - temp1 = 0; - arg1 = &temp1; - } - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_Value")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_iputil_LocalhostIP")) SWIG_fail; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_iputil_IsLocalhost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_IsLocalhost",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_iputil_IsLocalhost', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString temp2 ; - GoUint16 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_SplitAddr",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_iputil_SplitAddr', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_EnableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_EnableColors(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_logging_DisableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_DisableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_DisableColors(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_logging_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_Disable")) SWIG_fail; - result = (GoUint32)SKY_logging_Disable(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalance",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalance" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_NewBalance" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalance" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalanceFromUxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalanceFromUxOut",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Add",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Add" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Add" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Add" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Sub",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Sub" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Sub" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Sub" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Balance_Equals",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Equals" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Equals" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Balance_IsZero",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_IsZero" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_CryptoTypeFromString",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CryptoTypeFromString', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Entry_Verify",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Entry_Verify" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Entry_VerifyPublic",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Entry_VerifyPublic" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableEntry",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewReadableEntry', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewReadableEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); - } - arg2 = (wallet__Entry *)(argp2); - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableWallet",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_LoadReadableWallet', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Save",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Save', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Load', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableWallet_Erase",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface arg1 ; - void *argp1 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewError",&obj0)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GoInterface, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); - } else { - arg1 = *((GoInterface *)(argp1)); - } - } - result = (GoUint32)SKY_wallet_NewError(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewWallet",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewWallet', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; - GoString arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Lock', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Lock', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Unlock",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Unlock', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Load",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Load', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Load(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Save",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Save', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Validate",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Type",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Version",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Filename",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_IsEncrypted",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GenerateAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_Wallet_GenerateAddresses" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - wallet__Entry *arg3 = (wallet__Entry *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_GetEntry",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "3"" of type '" "wallet__Entry *""'"); - } - arg3 = (wallet__Entry *)(argp3); - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_AddEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_AddEntry",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_AddEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); - } - arg2 = (wallet__Entry *)(argp2); - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint8 arg3 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoUint64 *arg6 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned char val3 ; - int ecode3 = 0 ; - GoUint64 temp4 ; - GoSlice_ temp5 ; - GoUint64 temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4 = 0; - arg4 = &temp4; - } - { - temp5.data = NULL; - temp5.len = 0; - temp5.cap = 0; - arg5 = (coin__UxArray *)&temp5; - } - { - temp6 = 0; - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_DistributeSpendHours",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "3"" of type '" "GoUint8""'"); - } - arg3 = (GoUint8)(val3); - result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); - free( (void*)arg5->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg6 )); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_DistributeCoinHoursProportional",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_DistributeCoinHoursProportional', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeCoinHoursProportional" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewUxBalances",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalances" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewUxBalance",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalance" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewUxBalance" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewUxBalance" "', argument " "3"" of type '" "wallet__UxBalance *""'"); - } - arg3 = (wallet__UxBalance *)(argp3); - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMinimizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMinimizeUxOuts', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMaximizeUxOuts', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint8 arg4 ; - GoString arg5 ; - GoString arg6 ; - GoUint64 arg7 ; - Options__Handle *arg8 = (Options__Handle *) 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - unsigned long long val7 ; - int ecode7 = 0 ; - Handle temp8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - GoUint32 result; - - { - arg8 = &temp8; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:SKY_wallet_CreateOptionsHandle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "4"" of type '" "GoUint8""'"); - } - arg4 = (GoUint8)(val4); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); - } - (&arg5)->p = buffer; - (&arg5)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); - } - (&arg6)->p = buffer; - (&arg6)->n = size - 1; - } - ecode7 = SWIG_AsVal_unsigned_SS_long_SS_long(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "7"" of type '" "GoUint64""'"); - } - arg7 = (GoUint64)(val7); - result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg8)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__RichlistParams_N_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_N_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->N = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__RichlistParams_N_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__RichlistParams_IncludeDistribution_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "2"" of type '" "BOOL""'"); - } - arg2 = (BOOL)(val2); - if (arg1) (arg1)->IncludeDistribution = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__RichlistParams_IncludeDistribution_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - result = ((arg1)->IncludeDistribution); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__RichlistParams")) SWIG_fail; - result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__RichlistParams, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__RichlistParams",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__RichlistParams" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__RichlistParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__RichlistParams, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__NetworkConnectionsFilter_States_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); - } - arg1 = (api__NetworkConnectionsFilter *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'api__NetworkConnectionsFilter_States_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->States = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_States_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); - } - arg1 = (api__NetworkConnectionsFilter *)(argp1); - result = ((arg1)->States); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__NetworkConnectionsFilter_Direction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); - } - arg1 = (api__NetworkConnectionsFilter *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'api__NetworkConnectionsFilter_Direction_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Direction = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_Direction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); - } - arg1 = (api__NetworkConnectionsFilter *)(argp1); - result = ((arg1)->Direction); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__NetworkConnectionsFilter")) SWIG_fail; - result = (api__NetworkConnectionsFilter *)calloc(1, sizeof(api__NetworkConnectionsFilter)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__NetworkConnectionsFilter",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__NetworkConnectionsFilter" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); - } - arg1 = (api__NetworkConnectionsFilter *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__NetworkConnectionsFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher__Address___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address___eq__" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address___eq__" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (int)cipher__Address___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_toStr" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (PyObject *)cipher__Address_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_set" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__Address_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); - } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_get" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint8_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address_Key_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_set" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)20; ++ii) *(unsigned char *)&arg1->Key[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_Key_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_get" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint8_ *) ((arg1)->Key); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher__Address")) SWIG_fail; - result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__Address" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher__Address, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); - } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (int)cipher__BitcoinAddress___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_toStr" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (PyObject *)cipher__BitcoinAddress_toStr(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoUint8_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); - } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (GoUint8_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress_Key_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)20; ++ii) *(unsigned char *)&arg1->Key[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Key_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (GoUint8_ *) ((arg1)->Key); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher__BitcoinAddress")) SWIG_fail; - result = (cipher__BitcoinAddress *)calloc(1, sizeof(cipher__BitcoinAddress)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__BitcoinAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__BitcoinAddress",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__BitcoinAddress" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); - } - arg1 = (cipher__BitcoinAddress *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher__BitcoinAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher__BitcoinAddress, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_N_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->N = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_N_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_R_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->R = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_R_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->R); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_P_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->P = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_P_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->P); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_KeyLen_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->KeyLen = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_KeyLen_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->KeyLen); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_encrypt__ScryptChacha20poly1305")) SWIG_fail; - result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_encrypt__ScryptChacha20poly1305",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encrypt__ScryptChacha20poly1305" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *encrypt__ScryptChacha20poly1305_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__Field_n_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_set" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__Field_n_set" "', argument " "2"" of type '" "GoUint32_ [10]""'"); - } - arg2 = (GoUint32_ *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)10; ++ii) *(GoUint32_ *)&arg1->n[ii] = *((GoUint32_ *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""n""' of type '""GoUint32_ [10]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__Field_n_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_get" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__Field")) SWIG_fail; - result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__Field",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__Field" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *secp256k1go__Field_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__Field, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_X_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->X = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_X_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->X); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_Y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_Y_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Y = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_Y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_Infinity_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); - } - arg2 = (BOOL)(val2); - if (arg1) (arg1)->Infinity = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_Infinity_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = ((arg1)->Infinity); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__XY")) SWIG_fail; - result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__XY, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__XY",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *secp256k1go__XY_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__XY, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_X_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->X = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_X_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->X); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Y = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Z_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Z = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Z_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Z); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Infinity_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); - } - arg2 = (BOOL)(val2); - if (arg1) (arg1)->Infinity = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Infinity_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = ((arg1)->Infinity); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__XYZ")) SWIG_fail; - result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__XYZ, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__XYZ",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XYZ" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *secp256k1go__XYZ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__XYZ, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__SendAmount_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'cli__SendAmount_Addr_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__SendAmount_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__SendAmount_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cli__SendAmount_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__SendAmount_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - result = (GoInt64_) ((arg1)->Coins); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__SendAmount")) SWIG_fail; - result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__SendAmount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__SendAmount" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__SendAmount_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__SendAmount, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__Transaction___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction___eq__" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction___eq__" "', argument " "2"" of type '" "coin__Transaction *""'"); - } - arg2 = (coin__Transaction *)(argp2); - result = (int)coin__Transaction___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Length_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->Length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = (GoInt32_) ((arg1)->Length); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - signed char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - ecode2 = SWIG_AsVal_signed_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Type_set" "', argument " "2"" of type '" "GoInt8_""'"); - } - arg2 = (GoInt8_)(val2); - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = (GoInt8_) ((arg1)->Type); - resultobj = SWIG_From_signed_SS_char((signed char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_InnerHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_InnerHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->InnerHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""InnerHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_InnerHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = (GoUint8_ *) ((arg1)->InnerHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Sigs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Sigs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = ((arg1)->Sigs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_In_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->In = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_In_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = ((arg1)->In); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Out = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = ((arg1)->Out); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__Transaction")) SWIG_fail; - result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Transaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__Transaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Transaction" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__Transaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__Transaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput___eq__" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__TransactionOutput___eq__" "', argument " "2"" of type '" "coin__TransactionOutput *""'"); - } - arg2 = (coin__TransactionOutput *)(argp2); - result = (int)coin__TransactionOutput___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__TransactionOutput_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__TransactionOutput_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__TransactionOutput")) SWIG_fail; - result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__TransactionOutput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__TransactionOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__TransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__TransactionOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__TransactionOutput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__BlockHeader___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader___eq__" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader___eq__" "', argument " "2"" of type '" "coin__BlockHeader *""'"); - } - arg2 = (coin__BlockHeader *)(argp2); - result = (int)coin__BlockHeader___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Version_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Fee_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Fee_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Fee = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Fee_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Fee); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_PrevHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->PrevHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""PrevHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_PrevHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->PrevHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_BodyHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->BodyHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BodyHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_BodyHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->BodyHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_UxHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->UxHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""UxHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_UxHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->UxHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__BlockHeader")) SWIG_fail; - result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__BlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__BlockHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__BlockHeader, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__BlockBody___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockBody___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody___eq__" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockBody___eq__" "', argument " "2"" of type '" "coin__BlockBody *""'"); - } - arg2 = (coin__BlockBody *)(argp2); - result = (int)coin__BlockBody___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockBody_Transactions_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_set" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockBody_Transactions_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__BlockBody_Transactions_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } else { - arg2 = *((coin__Transactions *)(argp2)); - } - } - if (arg1) (arg1)->Transactions = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transactions result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockBody_Transactions_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_get" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - result = ((arg1)->Transactions); - resultobj = SWIG_NewPointerObj((coin__Transactions *)memcpy((coin__Transactions *)calloc(1,sizeof(coin__Transactions)),&result,sizeof(coin__Transactions)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__BlockBody")) SWIG_fail; - result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockBody, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__BlockBody",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockBody" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__BlockBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__BlockBody, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__Block_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Block_Head_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_set" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Head_set" "', argument " "2"" of type '" "coin__BlockHeader *""'"); - } - arg2 = (coin__BlockHeader *)(argp2); - if (arg1) (arg1)->Head = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Block_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Block_Head_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_get" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - result = (coin__BlockHeader *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Block_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Block_Body_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_set" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Body_set" "', argument " "2"" of type '" "coin__BlockBody *""'"); - } - arg2 = (coin__BlockBody *)(argp2); - if (arg1) (arg1)->Body = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Block_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__BlockBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Block_Body_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_get" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - result = (coin__BlockBody *)& ((arg1)->Body); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__Block")) SWIG_fail; - result = (coin__Block *)calloc(1, sizeof(coin__Block)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__Block",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Block" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__Block_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__Block, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *arg2 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SignedBlock__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "2"" of type '" "coin__Block *""'"); - } - arg2 = (coin__Block *)(argp2); - if (arg1) (arg1)->_unnamed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Block *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SignedBlock__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - result = (coin__Block *)& ((arg1)->_unnamed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SignedBlock_Sig_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock_Sig_set" "', argument " "2"" of type '" "unsigned char [65]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)65; ++ii) *(unsigned char *)&arg1->Sig[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Sig""' of type '""unsigned char [65]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SignedBlock_Sig_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - result = (GoUint8_ *) ((arg1)->Sig); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__SignedBlock")) SWIG_fail; - result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__SignedBlock, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__SignedBlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__SignedBlock" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__SignedBlock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__SignedBlock, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__UxHead_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxHead_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_set" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxHead_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxHead_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_get" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxHead_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_set" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxHead_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_get" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__UxHead")) SWIG_fail; - result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxHead",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxHead" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__UxHead_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxHead, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__UxBody_GetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_GetSrcTransaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_GetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (PyObject *)coin__UxBody_GetSrcTransaction(arg1); - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_SetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_SetSrcTransaction",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - arg2 = obj1; - coin__UxBody_SetSrcTransaction(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_SrcTransaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->SrcTransaction[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SrcTransaction""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_SrcTransaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint8_ *) ((arg1)->SrcTransaction); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxBody_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxBody_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxBody_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__UxBody")) SWIG_fail; - result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxBody",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxBody" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__UxBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxBody, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__UxOut___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut___eq__" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut___eq__" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - result = (int)coin__UxOut___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *arg2 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut_Head_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_set" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut_Head_set" "', argument " "2"" of type '" "coin__UxHead *""'"); - } - arg2 = (coin__UxHead *)(argp2); - if (arg1) (arg1)->Head = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__UxHead *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxOut_Head_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_get" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - result = (coin__UxHead *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *arg2 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut_Body_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_set" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut_Body_set" "', argument " "2"" of type '" "coin__UxBody *""'"); - } - arg2 = (coin__UxBody *)(argp2); - if (arg1) (arg1)->Body = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__UxBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxOut_Body_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_get" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - result = (coin__UxBody *)& ((arg1)->Body); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__UxOut")) SWIG_fail; - result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxOut" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__UxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxOut, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:httphelper__Address__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_set" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "httphelper__Address__unnamed_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->_unnamed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:httphelper__Address__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_get" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - result = (cipher__Address *)& ((arg1)->_unnamed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_httphelper__Address")) SWIG_fail; - result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_httphelper__Address, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_httphelper__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_httphelper__Address" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *httphelper__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_httphelper__Address, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Balance_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_set" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Balance_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_get" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Balance_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_set" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Balance_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_get" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Balance")) SWIG_fail; - result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Balance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Balance" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Balance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Balance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__BalancePair_Confirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - if (arg1) (arg1)->Confirmed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - wallet__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__BalancePair_Confirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - result = (wallet__Balance *)& ((arg1)->Confirmed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__BalancePair_Predicted_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - if (arg1) (arg1)->Predicted = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - wallet__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__BalancePair_Predicted_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - result = (wallet__Balance *)& ((arg1)->Predicted); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__BalancePair")) SWIG_fail; - result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__BalancePair",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__BalancePair" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__BalancePair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__BalancePair, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Entry_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Address_set" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Address_get" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Public_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Public_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Public_set" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Public_set" "', argument " "2"" of type '" "unsigned char [33]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)33; ++ii) *(unsigned char *)&arg1->Public[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Public""' of type '""unsigned char [33]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Public_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Public_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Public_get" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint8_ *) ((arg1)->Public); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Secret_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Secret_set" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Secret_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Secret[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Secret""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Secret_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Secret_get" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint8_ *) ((arg1)->Secret); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Entry")) SWIG_fail; - result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Entry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Entry",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Entry" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Entry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Entry, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Note_TxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Note_TxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_TxID_set" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__Note_TxID_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Note_TxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Note_TxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_TxID_get" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - result = ((arg1)->TxID); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Note_Value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Note_Value_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_Value_set" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__Note_Value_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Value = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Note_Value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Note_Value_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_Value_get" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - result = ((arg1)->Value); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Note")) SWIG_fail; - result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Note, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Note",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Note" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Note_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Note, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_TransactionID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableNote_TransactionID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_TransactionID_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__ReadableNote_TransactionID_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TransactionID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_TransactionID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableNote_TransactionID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_TransactionID_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - result = ((arg1)->TransactionID); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableNote_ActualNote_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_ActualNote_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__ReadableNote_ActualNote_set', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ActualNote = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableNote_ActualNote_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_ActualNote_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - result = ((arg1)->ActualNote); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__ReadableNote")) SWIG_fail; - result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__ReadableNote, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__ReadableNote",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__ReadableNote" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__ReadableNote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__ReadableNote, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hash_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__UxBalance_Hash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Hash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Hash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hash_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint8_ *) ((arg1)->Hash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_BkSeq_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_BkSeq_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_BkSeq_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->BkSeq); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Address_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__UxBalance_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Address_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Coins_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Coins_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->Coins); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hours_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_Hours_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hours_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->Hours); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__UxBalance")) SWIG_fail; - result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__UxBalance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__UxBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__UxBalance" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__UxBalance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__UxBalance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"equalSlices", _wrap_equalSlices, METH_VARARGS, NULL}, - { (char *)"equalTransactions", _wrap_equalTransactions, METH_VARARGS, NULL}, - { (char *)"equalTransactionsArrays", _wrap_equalTransactionsArrays, METH_VARARGS, NULL}, - { (char *)"equalBlockHeaders", _wrap_equalBlockHeaders, METH_VARARGS, NULL}, - { (char *)"destroy_cipher_SecKeys", _wrap_destroy_cipher_SecKeys, METH_VARARGS, NULL}, - { (char *)"destroy_cipher_PubKeys", _wrap_destroy_cipher_PubKeys, METH_VARARGS, NULL}, - { (char *)"wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed", _wrap_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed, METH_VARARGS, NULL}, - { (char *)"SKY_params_GetDistributionAddresses", _wrap_SKY_params_GetDistributionAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_params_GetUnlockedDistributionAddresses", _wrap_SKY_params_GetUnlockedDistributionAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_params_GetLockedDistributionAddresses", _wrap_SKY_params_GetLockedDistributionAddresses, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey___eq__", _wrap_cipher_PubKey___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_compareToString", _wrap_cipher_PubKey_compareToString, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_toStr", _wrap_cipher_PubKey_toStr, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_assignFrom", _wrap_cipher_PubKey_assignFrom, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_assignTo", _wrap_cipher_PubKey_assignTo, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_data_set", _wrap_cipher_PubKey_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_data_get", _wrap_cipher_PubKey_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_PubKey", _wrap_new_cipher_PubKey, METH_VARARGS, NULL}, - { (char *)"delete_cipher_PubKey", _wrap_delete_cipher_PubKey, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_swigregister", cipher_PubKey_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey___eq__", _wrap_cipher_SecKey___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_compareToString", _wrap_cipher_SecKey_compareToString, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_toStr", _wrap_cipher_SecKey_toStr, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_assignFrom", _wrap_cipher_SecKey_assignFrom, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_assignTo", _wrap_cipher_SecKey_assignTo, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_data_set", _wrap_cipher_SecKey_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_data_get", _wrap_cipher_SecKey_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SecKey", _wrap_new_cipher_SecKey, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SecKey", _wrap_delete_cipher_SecKey, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_swigregister", cipher_SecKey_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160___eq__", _wrap_cipher_Ripemd160___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_compareToString", _wrap_cipher_Ripemd160_compareToString, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_toStr", _wrap_cipher_Ripemd160_toStr, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_assignFrom", _wrap_cipher_Ripemd160_assignFrom, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_assignTo", _wrap_cipher_Ripemd160_assignTo, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_data_set", _wrap_cipher_Ripemd160_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_data_get", _wrap_cipher_Ripemd160_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Ripemd160", _wrap_new_cipher_Ripemd160, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Ripemd160", _wrap_delete_cipher_Ripemd160, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_swigregister", cipher_Ripemd160_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Sig___eq__", _wrap_cipher_Sig___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_compareToString", _wrap_cipher_Sig_compareToString, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_toStr", _wrap_cipher_Sig_toStr, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_assignFrom", _wrap_cipher_Sig_assignFrom, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_assignTo", _wrap_cipher_Sig_assignTo, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_data_set", _wrap_cipher_Sig_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_data_get", _wrap_cipher_Sig_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Sig", _wrap_new_cipher_Sig, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Sig", _wrap_delete_cipher_Sig, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_swigregister", cipher_Sig_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256___eq__", _wrap_cipher_SHA256___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_compareToString", _wrap_cipher_SHA256_compareToString, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_toStr", _wrap_cipher_SHA256_toStr, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_assignFrom", _wrap_cipher_SHA256_assignFrom, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_assignTo", _wrap_cipher_SHA256_assignTo, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_data_set", _wrap_cipher_SHA256_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_data_get", _wrap_cipher_SHA256_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SHA256", _wrap_new_cipher_SHA256, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SHA256", _wrap_delete_cipher_SHA256, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_swigregister", cipher_SHA256_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum___eq__", _wrap_cipher_Checksum___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_compareToString", _wrap_cipher_Checksum_compareToString, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_toStr", _wrap_cipher_Checksum_toStr, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_assignFrom", _wrap_cipher_Checksum_assignFrom, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_assignTo", _wrap_cipher_Checksum_assignTo, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_data_set", _wrap_cipher_Checksum_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_data_get", _wrap_cipher_Checksum_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Checksum", _wrap_new_cipher_Checksum, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Checksum", _wrap_delete_cipher_Checksum, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_swigregister", cipher_Checksum_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_getAt", _wrap_cipher_SecKeys_getAt, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_setAt", _wrap_cipher_SecKeys_setAt, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys___eq__", _wrap_cipher_SecKeys___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_allocate", _wrap_cipher_SecKeys_allocate, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_release", _wrap_cipher_SecKeys_release, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_data_set", _wrap_cipher_SecKeys_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_data_get", _wrap_cipher_SecKeys_data_get, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_count_set", _wrap_cipher_SecKeys_count_set, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_count_get", _wrap_cipher_SecKeys_count_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SecKeys", _wrap_new_cipher_SecKeys, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SecKeys", _wrap_delete_cipher_SecKeys, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_swigregister", cipher_SecKeys_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_getAt", _wrap_cipher_PubKeys_getAt, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_setAt", _wrap_cipher_PubKeys_setAt, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys___eq__", _wrap_cipher_PubKeys___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_allocate", _wrap_cipher_PubKeys_allocate, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_release", _wrap_cipher_PubKeys_release, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_data_set", _wrap_cipher_PubKeys_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_data_get", _wrap_cipher_PubKeys_data_get, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_count_set", _wrap_cipher_PubKeys_count_set, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_count_get", _wrap_cipher_PubKeys_count_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_PubKeys", _wrap_new_cipher_PubKeys, METH_VARARGS, NULL}, - { (char *)"delete_cipher_PubKeys", _wrap_delete_cipher_PubKeys, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_swigregister", cipher_PubKeys_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_getAt", _wrap_cipher_SHA256s_getAt, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_setAt", _wrap_cipher_SHA256s_setAt, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s___eq__", _wrap_cipher_SHA256s___eq__, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_allocate", _wrap_cipher_SHA256s_allocate, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_release", _wrap_cipher_SHA256s_release, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_data_set", _wrap_cipher_SHA256s_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_data_get", _wrap_cipher_SHA256s_data_get, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_count_set", _wrap_cipher_SHA256s_count_set, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_count_get", _wrap_cipher_SHA256s_count_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SHA256s", _wrap_new_cipher_SHA256s, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SHA256s", _wrap_delete_cipher_SHA256s, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256s_swigregister", cipher_SHA256s_swigregister, METH_VARARGS, NULL}, - { (char *)"coin_UxOutArray_data_set", _wrap_coin_UxOutArray_data_set, METH_VARARGS, NULL}, - { (char *)"coin_UxOutArray_data_get", _wrap_coin_UxOutArray_data_get, METH_VARARGS, NULL}, - { (char *)"coin_UxOutArray_count_set", _wrap_coin_UxOutArray_count_set, METH_VARARGS, NULL}, - { (char *)"coin_UxOutArray_count_get", _wrap_coin_UxOutArray_count_get, METH_VARARGS, NULL}, - { (char *)"new_coin_UxOutArray", _wrap_new_coin_UxOutArray, METH_VARARGS, NULL}, - { (char *)"delete_coin_UxOutArray", _wrap_delete_coin_UxOutArray, METH_VARARGS, NULL}, - { (char *)"coin_UxOutArray_swigregister", coin_UxOutArray_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Addresses_data_set", _wrap_cipher_Addresses_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Addresses_data_get", _wrap_cipher_Addresses_data_get, METH_VARARGS, NULL}, - { (char *)"cipher_Addresses_count_set", _wrap_cipher_Addresses_count_set, METH_VARARGS, NULL}, - { (char *)"cipher_Addresses_count_get", _wrap_cipher_Addresses_count_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Addresses", _wrap_new_cipher_Addresses, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Addresses", _wrap_delete_cipher_Addresses, METH_VARARGS, NULL}, - { (char *)"cipher_Addresses_swigregister", cipher_Addresses_swigregister, METH_VARARGS, NULL}, - { (char *)"Fee_Calculator_callback_set", _wrap_Fee_Calculator_callback_set, METH_VARARGS, NULL}, - { (char *)"Fee_Calculator_callback_get", _wrap_Fee_Calculator_callback_get, METH_VARARGS, NULL}, - { (char *)"Fee_Calculator_context_set", _wrap_Fee_Calculator_context_set, METH_VARARGS, NULL}, - { (char *)"Fee_Calculator_context_get", _wrap_Fee_Calculator_context_get, METH_VARARGS, NULL}, - { (char *)"new_Fee_Calculator", _wrap_new_Fee_Calculator, METH_VARARGS, NULL}, - { (char *)"delete_Fee_Calculator", _wrap_delete_Fee_Calculator, METH_VARARGS, NULL}, - { (char *)"Fee_Calculator_swigregister", Fee_Calculator_swigregister, METH_VARARGS, NULL}, - { (char *)"_GoString__p_set", _wrap__GoString__p_set, METH_VARARGS, NULL}, - { (char *)"_GoString__p_get", _wrap__GoString__p_get, METH_VARARGS, NULL}, - { (char *)"_GoString__n_set", _wrap__GoString__n_set, METH_VARARGS, NULL}, - { (char *)"_GoString__n_get", _wrap__GoString__n_get, METH_VARARGS, NULL}, - { (char *)"new__GoString_", _wrap_new__GoString_, METH_VARARGS, NULL}, - { (char *)"delete__GoString_", _wrap_delete__GoString_, METH_VARARGS, NULL}, - { (char *)"_GoString__swigregister", _GoString__swigregister, METH_VARARGS, NULL}, - { (char *)"GoInterface_t_set", _wrap_GoInterface_t_set, METH_VARARGS, NULL}, - { (char *)"GoInterface_t_get", _wrap_GoInterface_t_get, METH_VARARGS, NULL}, - { (char *)"GoInterface_v_set", _wrap_GoInterface_v_set, METH_VARARGS, NULL}, - { (char *)"GoInterface_v_get", _wrap_GoInterface_v_get, METH_VARARGS, NULL}, - { (char *)"new_GoInterface", _wrap_new_GoInterface, METH_VARARGS, NULL}, - { (char *)"delete_GoInterface", _wrap_delete_GoInterface, METH_VARARGS, NULL}, - { (char *)"GoInterface_swigregister", GoInterface_swigregister, METH_VARARGS, NULL}, - { (char *)"GoSlice_data_set", _wrap_GoSlice_data_set, METH_VARARGS, NULL}, - { (char *)"GoSlice_data_get", _wrap_GoSlice_data_get, METH_VARARGS, NULL}, - { (char *)"GoSlice_len_set", _wrap_GoSlice_len_set, METH_VARARGS, NULL}, - { (char *)"GoSlice_len_get", _wrap_GoSlice_len_get, METH_VARARGS, NULL}, - { (char *)"GoSlice_cap_set", _wrap_GoSlice_cap_set, METH_VARARGS, NULL}, - { (char *)"GoSlice_cap_get", _wrap_GoSlice_cap_get, METH_VARARGS, NULL}, - { (char *)"new_GoSlice", _wrap_new_GoSlice, METH_VARARGS, NULL}, - { (char *)"delete_GoSlice", _wrap_delete_GoSlice, METH_VARARGS, NULL}, - { (char *)"GoSlice_swigregister", GoSlice_swigregister, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GenerateWallet", _wrap_SKY_cli_GenerateWallet, METH_VARARGS, NULL}, - { (char *)"SKY_cli_MakeAlphanumericSeed", _wrap_SKY_cli_MakeAlphanumericSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewClient", _wrap_SKY_api_NewClient, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CSRF", _wrap_SKY_api_Client_CSRF, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Version", _wrap_SKY_api_Client_Version, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Outputs", _wrap_SKY_api_Client_Outputs, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_OutputsForAddresses", _wrap_SKY_api_Client_OutputsForAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_OutputsForHashes", _wrap_SKY_api_Client_OutputsForHashes, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CoinSupply", _wrap_SKY_api_Client_CoinSupply, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockByHash", _wrap_SKY_api_Client_BlockByHash, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockBySeq", _wrap_SKY_api_Client_BlockBySeq, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Blocks", _wrap_SKY_api_Client_Blocks, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_LastBlocks", _wrap_SKY_api_Client_LastBlocks, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockchainMetadata", _wrap_SKY_api_Client_BlockchainMetadata, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockchainProgress", _wrap_SKY_api_Client_BlockchainProgress, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Balance", _wrap_SKY_api_Client_Balance, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UxOut", _wrap_SKY_api_Client_UxOut, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_AddressUxOuts", _wrap_SKY_api_Client_AddressUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Wallet", _wrap_SKY_api_Client_Wallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Wallets", _wrap_SKY_api_Client_Wallets, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CreateUnencryptedWallet", _wrap_SKY_api_Client_CreateUnencryptedWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CreateEncryptedWallet", _wrap_SKY_api_Client_CreateEncryptedWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NewWalletAddress", _wrap_SKY_api_Client_NewWalletAddress, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_WalletBalance", _wrap_SKY_api_Client_WalletBalance, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Spend", _wrap_SKY_api_Client_Spend, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CreateTransaction", _wrap_SKY_api_Client_CreateTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UpdateWallet", _wrap_SKY_api_Client_UpdateWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_WalletFolderName", _wrap_SKY_api_Client_WalletFolderName, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NewSeed", _wrap_SKY_api_Client_NewSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_WalletSeed", _wrap_SKY_api_Client_WalletSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkConnection", _wrap_SKY_api_Client_NetworkConnection, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkConnections", _wrap_SKY_api_Client_NetworkConnections, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkDefaultPeers", _wrap_SKY_api_Client_NetworkDefaultPeers, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkTrustedPeers", _wrap_SKY_api_Client_NetworkTrustedPeers, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkExchangedPeers", _wrap_SKY_api_Client_NetworkExchangedPeers, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_PendingTransactions", _wrap_SKY_api_Client_PendingTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Transaction", _wrap_SKY_api_Client_Transaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Transactions", _wrap_SKY_api_Client_Transactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_ConfirmedTransactions", _wrap_SKY_api_Client_ConfirmedTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UnconfirmedTransactions", _wrap_SKY_api_Client_UnconfirmedTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_InjectTransaction", _wrap_SKY_api_Client_InjectTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_ResendUnconfirmedTransactions", _wrap_SKY_api_Client_ResendUnconfirmedTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_RawTransaction", _wrap_SKY_api_Client_RawTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_AddressTransactions", _wrap_SKY_api_Client_AddressTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Richlist", _wrap_SKY_api_Client_Richlist, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_AddressCount", _wrap_SKY_api_Client_AddressCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UnloadWallet", _wrap_SKY_api_Client_UnloadWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Health", _wrap_SKY_api_Client_Health, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_EncryptWallet", _wrap_SKY_api_Client_EncryptWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_DecryptWallet", _wrap_SKY_api_Client_DecryptWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewCreateTransactionResponse", _wrap_SKY_api_NewCreateTransactionResponse, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewCreatedTransaction", _wrap_SKY_api_NewCreatedTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_CreatedTransaction_ToTransaction", _wrap_SKY_api_CreatedTransaction_ToTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewCreatedTransactionOutput", _wrap_SKY_api_NewCreatedTransactionOutput, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewCreatedTransactionInput", _wrap_SKY_api_NewCreatedTransactionInput, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewWalletResponse", _wrap_SKY_api_NewWalletResponse, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_NewClient", _wrap_SKY_webrpc_NewClient, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_CSRF", _wrap_SKY_webrpc_Client_CSRF, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_InjectTransaction", _wrap_SKY_webrpc_Client_InjectTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetStatus", _wrap_SKY_webrpc_Client_GetStatus, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetTransactionByID", _wrap_SKY_webrpc_Client_GetTransactionByID, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetAddressUxOuts", _wrap_SKY_webrpc_Client_GetAddressUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetBlocksInRange", _wrap_SKY_webrpc_Client_GetBlocksInRange, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetBlocksBySeq", _wrap_SKY_webrpc_Client_GetBlocksBySeq, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetLastBlocks", _wrap_SKY_webrpc_Client_GetLastBlocks, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_DecodeBase58Address", _wrap_SKY_cipher_DecodeBase58Address, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_AddressFromBytes", _wrap_SKY_cipher_AddressFromBytes, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_AddressFromPubKey", _wrap_SKY_cipher_AddressFromPubKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_AddressFromSecKey", _wrap_SKY_cipher_AddressFromSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Null", _wrap_SKY_cipher_Address_Null, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Bytes", _wrap_SKY_cipher_Address_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Verify", _wrap_SKY_cipher_Address_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_String", _wrap_SKY_cipher_Address_String, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Checksum", _wrap_SKY_cipher_Address_Checksum, METH_VARARGS, NULL}, - { (char *)"SKY_base58_String2Hex", _wrap_SKY_base58_String2Hex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_ToInt", _wrap_SKY_base58_Base58_ToInt, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_ToHex", _wrap_SKY_base58_Base58_ToHex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_Base582Int", _wrap_SKY_base58_Base58_Base582Int, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base582Hex", _wrap_SKY_base58_Base582Hex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_BitHex", _wrap_SKY_base58_Base58_BitHex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Int2Base58", _wrap_SKY_base58_Int2Base58, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Hex2Base58", _wrap_SKY_base58_Hex2Base58, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Hex2Base58String", _wrap_SKY_base58_Hex2Base58String, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Hex2Base58Str", _wrap_SKY_base58_Hex2Base58Str, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_DecodeBase58BitcoinAddress", _wrap_SKY_cipher_DecodeBase58BitcoinAddress, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddressFromPubKey", _wrap_SKY_cipher_BitcoinAddressFromPubKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddressFromSecKey", _wrap_SKY_cipher_BitcoinAddressFromSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinWalletImportFormatFromSeckey", _wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddressFromBytes", _wrap_SKY_cipher_BitcoinAddressFromBytes, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SecKeyFromBitcoinWalletImportFormat", _wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddress_Null", _wrap_SKY_cipher_BitcoinAddress_Null, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddress_Bytes", _wrap_SKY_cipher_BitcoinAddress_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddress_Verify", _wrap_SKY_cipher_BitcoinAddress_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddress_String", _wrap_SKY_cipher_BitcoinAddress_String, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddress_Checksum", _wrap_SKY_cipher_BitcoinAddress_Checksum, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_RandByte", _wrap_SKY_cipher_RandByte, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_NewPubKey", _wrap_SKY_cipher_NewPubKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeyFromHex", _wrap_SKY_cipher_PubKeyFromHex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeyFromSecKey", _wrap_SKY_cipher_PubKeyFromSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeyFromSig", _wrap_SKY_cipher_PubKeyFromSig, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKey_Verify", _wrap_SKY_cipher_PubKey_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKey_Hex", _wrap_SKY_cipher_PubKey_Hex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeyRipemd160", _wrap_SKY_cipher_PubKeyRipemd160, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_NewSecKey", _wrap_SKY_cipher_NewSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SecKeyFromHex", _wrap_SKY_cipher_SecKeyFromHex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SecKey_Verify", _wrap_SKY_cipher_SecKey_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SecKey_Hex", _wrap_SKY_cipher_SecKey_Hex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_ECDH", _wrap_SKY_cipher_ECDH, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_NewSig", _wrap_SKY_cipher_NewSig, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SigFromHex", _wrap_SKY_cipher_SigFromHex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Sig_Hex", _wrap_SKY_cipher_Sig_Hex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SignHash", _wrap_SKY_cipher_SignHash, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_VerifyAddressSignedHash", _wrap_SKY_cipher_VerifyAddressSignedHash, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_VerifySignedHash", _wrap_SKY_cipher_VerifySignedHash, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_VerifyPubKeySignedHash", _wrap_SKY_cipher_VerifyPubKeySignedHash, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_GenerateKeyPair", _wrap_SKY_cipher_GenerateKeyPair, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_GenerateDeterministicKeyPair", _wrap_SKY_cipher_GenerateDeterministicKeyPair, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_DeterministicKeyPairIterator", _wrap_SKY_cipher_DeterministicKeyPairIterator, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_GenerateDeterministicKeyPairs", _wrap_SKY_cipher_GenerateDeterministicKeyPairs, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_GenerateDeterministicKeyPairsSeed", _wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_CheckSecKey", _wrap_SKY_cipher_CheckSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_CheckSecKeyHash", _wrap_SKY_cipher_CheckSecKeyHash, METH_VARARGS, NULL}, - { (char *)"SKY_encrypt_ScryptChacha20poly1305_Encrypt", _wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt, METH_VARARGS, NULL}, - { (char *)"SKY_encrypt_ScryptChacha20poly1305_Decrypt", _wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt, METH_VARARGS, NULL}, - { (char *)"SKY_bip39_NewDefaultMnemomic", _wrap_SKY_bip39_NewDefaultMnemomic, METH_VARARGS, NULL}, - { (char *)"SKY_bip39_NewEntropy", _wrap_SKY_bip39_NewEntropy, METH_VARARGS, NULL}, - { (char *)"SKY_bip39_NewMnemonic", _wrap_SKY_bip39_NewMnemonic, METH_VARARGS, NULL}, - { (char *)"SKY_bip39_MnemonicToByteArray", _wrap_SKY_bip39_MnemonicToByteArray, METH_VARARGS, NULL}, - { (char *)"SKY_bip39_IsMnemonicValid", _wrap_SKY_bip39_IsMnemonicValid, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Ripemd160_Set", _wrap_SKY_cipher_Ripemd160_Set, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_HashRipemd160", _wrap_SKY_cipher_HashRipemd160, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SHA256_Set", _wrap_SKY_cipher_SHA256_Set, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SHA256_Hex", _wrap_SKY_cipher_SHA256_Hex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SHA256_Xor", _wrap_SKY_cipher_SHA256_Xor, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SumSHA256", _wrap_SKY_cipher_SumSHA256, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SHA256FromHex", _wrap_SKY_cipher_SHA256FromHex, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_DoubleSHA256", _wrap_SKY_cipher_DoubleSHA256, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_AddSHA256", _wrap_SKY_cipher_AddSHA256, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Merkle", _wrap_SKY_cipher_Merkle, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_SHA256_Null", _wrap_SKY_cipher_SHA256_Null, METH_VARARGS, NULL}, - { (char *)"SKY_cli_AddPrivateKey", _wrap_SKY_cli_AddPrivateKey, METH_VARARGS, NULL}, - { (char *)"SKY_cli_AddPrivateKeyToFile", _wrap_SKY_cli_AddPrivateKeyToFile, METH_VARARGS, NULL}, - { (char *)"SKY_cli_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_cli_LoadConfig", _wrap_SKY_cli_LoadConfig, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Config_FullWalletPath", _wrap_SKY_cli_Config_FullWalletPath, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Config_FullDBPath", _wrap_SKY_cli_Config_FullDBPath, METH_VARARGS, NULL}, - { (char *)"SKY_cli_NewApp", _wrap_SKY_cli_NewApp, METH_VARARGS, NULL}, - { (char *)"SKY_cli_RPCClientFromContext", _wrap_SKY_cli_RPCClientFromContext, METH_VARARGS, NULL}, - { (char *)"SKY_cli_ConfigFromContext", _wrap_SKY_cli_ConfigFromContext, METH_VARARGS, NULL}, - { (char *)"SKY_cli_PasswordFromBytes_Password", _wrap_SKY_cli_PasswordFromBytes_Password, METH_VARARGS, NULL}, - { (char *)"SKY_cli_PasswordFromTerm_Password", _wrap_SKY_cli_PasswordFromTerm_Password, METH_VARARGS, NULL}, - { (char *)"SKY_cli_CreateRawTxFromWallet", _wrap_SKY_cli_CreateRawTxFromWallet, METH_VARARGS, NULL}, - { (char *)"SKY_cli_CreateRawTxFromAddress", _wrap_SKY_cli_CreateRawTxFromAddress, METH_VARARGS, NULL}, - { (char *)"SKY_cli_CreateRawTx", _wrap_SKY_cli_CreateRawTx, METH_VARARGS, NULL}, - { (char *)"SKY_cli_NewTransaction", _wrap_SKY_cli_NewTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GenerateAddressesInFile", _wrap_SKY_cli_GenerateAddressesInFile, METH_VARARGS, NULL}, - { (char *)"SKY_cli_FormatAddressesAsJSON", _wrap_SKY_cli_FormatAddressesAsJSON, METH_VARARGS, NULL}, - { (char *)"SKY_cli_FormatAddressesAsJoinedArray", _wrap_SKY_cli_FormatAddressesAsJoinedArray, METH_VARARGS, NULL}, - { (char *)"SKY_cli_AddressesToStrings", _wrap_SKY_cli_AddressesToStrings, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetWalletOutputsFromFile", _wrap_SKY_cli_GetWalletOutputsFromFile, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetWalletOutputs", _wrap_SKY_cli_GetWalletOutputs, METH_VARARGS, NULL}, - { (char *)"SKY_cli_App_Run", _wrap_SKY_cli_App_Run, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Config_GetCoin", _wrap_SKY_cli_Config_GetCoin, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Config_GetRPCAddress", _wrap_SKY_cli_Config_GetRPCAddress, METH_VARARGS, NULL}, - { (char *)"SKY_cli_RPCClientFromApp", _wrap_SKY_cli_RPCClientFromApp, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Getenv", _wrap_SKY_cli_Getenv, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Setenv", _wrap_SKY_cli_Setenv, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewBlock", _wrap_SKY_coin_NewBlock, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SignedBlock_VerifySignature", _wrap_SKY_coin_SignedBlock_VerifySignature, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewGenesisBlock", _wrap_SKY_coin_NewGenesisBlock, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_HashHeader", _wrap_SKY_coin_Block_HashHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_PreHashHeader", _wrap_SKY_coin_Block_PreHashHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_Time", _wrap_SKY_coin_Block_Time, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_Seq", _wrap_SKY_coin_Block_Seq, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_HashBody", _wrap_SKY_coin_Block_HashBody, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_Size", _wrap_SKY_coin_Block_Size, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_String", _wrap_SKY_coin_Block_String, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_GetTransaction", _wrap_SKY_coin_Block_GetTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewBlockHeader", _wrap_SKY_coin_NewBlockHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockHeader_Hash", _wrap_SKY_coin_BlockHeader_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockHeader_Bytes", _wrap_SKY_coin_BlockHeader_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockHeader_String", _wrap_SKY_coin_BlockHeader_String, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockBody_Hash", _wrap_SKY_coin_BlockBody_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockBody_Size", _wrap_SKY_coin_BlockBody_Size, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockBody_Bytes", _wrap_SKY_coin_BlockBody_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_CreateUnspents", _wrap_SKY_coin_CreateUnspents, METH_VARARGS, NULL}, - { (char *)"SKY_coin_CreateUnspent", _wrap_SKY_coin_CreateUnspent, METH_VARARGS, NULL}, - { (char *)"SKY_coin_GetBlockObject", _wrap_SKY_coin_GetBlockObject, METH_VARARGS, NULL}, - { (char *)"SKY_coin_GetBlockBody", _wrap_SKY_coin_GetBlockBody, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewEmptyBlock", _wrap_SKY_coin_NewEmptyBlock, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddUint64", _wrap_SKY_coin_AddUint64, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Uint64ToInt64", _wrap_SKY_coin_Uint64ToInt64, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Int64ToUint64", _wrap_SKY_coin_Int64ToUint64, METH_VARARGS, NULL}, - { (char *)"SKY_coin_IntToUint32", _wrap_SKY_coin_IntToUint32, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxOut_Hash", _wrap_SKY_coin_UxOut_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxOut_SnapshotHash", _wrap_SKY_coin_UxOut_SnapshotHash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxBody_Hash", _wrap_SKY_coin_UxBody_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxOut_CoinHours", _wrap_SKY_coin_UxOut_CoinHours, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Hashes", _wrap_SKY_coin_UxArray_Hashes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_HasDupes", _wrap_SKY_coin_UxArray_HasDupes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Sort", _wrap_SKY_coin_UxArray_Sort, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Len", _wrap_SKY_coin_UxArray_Len, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Less", _wrap_SKY_coin_UxArray_Less, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Swap", _wrap_SKY_coin_UxArray_Swap, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Coins", _wrap_SKY_coin_UxArray_Coins, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_CoinHours", _wrap_SKY_coin_UxArray_CoinHours, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Sub", _wrap_SKY_coin_UxArray_Sub, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Add", _wrap_SKY_coin_UxArray_Add, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewAddressUxOuts", _wrap_SKY_coin_NewAddressUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Keys", _wrap_SKY_coin_AddressUxOuts_Keys, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Flatten", _wrap_SKY_coin_AddressUxOuts_Flatten, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Sub", _wrap_SKY_coin_AddressUxOuts_Sub, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Add", _wrap_SKY_coin_AddressUxOuts_Add, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Get", _wrap_SKY_coin_AddressUxOuts_Get, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_HasKey", _wrap_SKY_coin_AddressUxOuts_HasKey, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_GetOutputLength", _wrap_SKY_coin_AddressUxOuts_GetOutputLength, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Length", _wrap_SKY_coin_AddressUxOuts_Length, METH_VARARGS, NULL}, - { (char *)"SKY_coin_AddressUxOuts_Set", _wrap_SKY_coin_AddressUxOuts_Set, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Create_Transaction", _wrap_SKY_coin_Create_Transaction, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_Copy", _wrap_SKY_coin_Transaction_Copy, METH_VARARGS, NULL}, - { (char *)"SKY_coin_GetTransactionObject", _wrap_SKY_coin_GetTransactionObject, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_ResetInputs", _wrap_SKY_coin_Transaction_ResetInputs, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_GetInputsCount", _wrap_SKY_coin_Transaction_GetInputsCount, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_GetInputAt", _wrap_SKY_coin_Transaction_GetInputAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_SetInputAt", _wrap_SKY_coin_Transaction_SetInputAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_GetOutputsCount", _wrap_SKY_coin_Transaction_GetOutputsCount, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_GetOutputAt", _wrap_SKY_coin_Transaction_GetOutputAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_SetOutputAt", _wrap_SKY_coin_Transaction_SetOutputAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_GetSignaturesCount", _wrap_SKY_coin_Transaction_GetSignaturesCount, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_GetSignatureAt", _wrap_SKY_coin_Transaction_GetSignatureAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_SetSignatureAt", _wrap_SKY_coin_Transaction_SetSignatureAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_PushSignature", _wrap_SKY_coin_Transaction_PushSignature, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_ResetOutputs", _wrap_SKY_coin_Transaction_ResetOutputs, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_ResetSignatures", _wrap_SKY_coin_Transaction_ResetSignatures, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_Verify", _wrap_SKY_coin_Transaction_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_VerifyInput", _wrap_SKY_coin_Transaction_VerifyInput, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_PushInput", _wrap_SKY_coin_Transaction_PushInput, METH_VARARGS, NULL}, - { (char *)"SKY_coin_TransactionOutput_UxID", _wrap_SKY_coin_TransactionOutput_UxID, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_PushOutput", _wrap_SKY_coin_Transaction_PushOutput, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_SignInputs", _wrap_SKY_coin_Transaction_SignInputs, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_Size", _wrap_SKY_coin_Transaction_Size, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_Hash", _wrap_SKY_coin_Transaction_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_SizeHash", _wrap_SKY_coin_Transaction_SizeHash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_TxID", _wrap_SKY_coin_Transaction_TxID, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_TxIDHex", _wrap_SKY_coin_Transaction_TxIDHex, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_UpdateHeader", _wrap_SKY_coin_Transaction_UpdateHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_HashInner", _wrap_SKY_coin_Transaction_HashInner, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_Serialize", _wrap_SKY_coin_Transaction_Serialize, METH_VARARGS, NULL}, - { (char *)"SKY_coin_TransactionDeserialize", _wrap_SKY_coin_TransactionDeserialize, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_OutputHours", _wrap_SKY_coin_Transaction_OutputHours, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Create_Transactions", _wrap_SKY_coin_Create_Transactions, METH_VARARGS, NULL}, - { (char *)"SKY_coin_GetTransactionsObject", _wrap_SKY_coin_GetTransactionsObject, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_Length", _wrap_SKY_coin_Transactions_Length, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_Add", _wrap_SKY_coin_Transactions_Add, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_Fees", _wrap_SKY_coin_Transactions_Fees, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_GetAt", _wrap_SKY_coin_Transactions_GetAt, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_Hashes", _wrap_SKY_coin_Transactions_Hashes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_Size", _wrap_SKY_coin_Transactions_Size, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transactions_TruncateBytesTo", _wrap_SKY_coin_Transactions_TruncateBytesTo, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SortTransactions", _wrap_SKY_coin_SortTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewSortableTransactions", _wrap_SKY_coin_NewSortableTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SortableTransactions_Sort", _wrap_SKY_coin_SortableTransactions_Sort, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SortableTransactions_Len", _wrap_SKY_coin_SortableTransactions_Len, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SortableTransactions_Less", _wrap_SKY_coin_SortableTransactions_Less, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SortableTransactions_Swap", _wrap_SKY_coin_SortableTransactions_Swap, METH_VARARGS, NULL}, - { (char *)"SKY_coin_VerifyTransactionCoinsSpending", _wrap_SKY_coin_VerifyTransactionCoinsSpending, METH_VARARGS, NULL}, - { (char *)"SKY_coin_VerifyTransactionHoursSpending", _wrap_SKY_coin_VerifyTransactionHoursSpending, METH_VARARGS, NULL}, - { (char *)"SKY_handle_close", _wrap_SKY_handle_close, METH_VARARGS, NULL}, - { (char *)"SKY_handle_copy", _wrap_SKY_handle_copy, METH_VARARGS, NULL}, - { (char *)"SKY_JsonEncode_Handle", _wrap_SKY_JsonEncode_Handle, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Progress_GetCurrent", _wrap_SKY_Handle_Progress_GetCurrent, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Block_GetHeadSeq", _wrap_SKY_Handle_Block_GetHeadSeq, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Block_GetHeadHash", _wrap_SKY_Handle_Block_GetHeadHash, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Block_GetPreviousBlockHash", _wrap_SKY_Handle_Block_GetPreviousBlockHash, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Blocks_GetAt", _wrap_SKY_Handle_Blocks_GetAt, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Blocks_GetCount", _wrap_SKY_Handle_Blocks_GetCount, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Connections_GetCount", _wrap_SKY_Handle_Connections_GetCount, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Strings_GetCount", _wrap_SKY_Handle_Strings_GetCount, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Strings_Sort", _wrap_SKY_Handle_Strings_Sort, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Strings_GetAt", _wrap_SKY_Handle_Strings_GetAt, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletDir", _wrap_SKY_api_Handle_Client_GetWalletDir, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletFileName", _wrap_SKY_api_Handle_Client_GetWalletFileName, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletLabel", _wrap_SKY_api_Handle_Client_GetWalletLabel, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletFullPath", _wrap_SKY_api_Handle_Client_GetWalletFullPath, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletMeta", _wrap_SKY_api_Handle_GetWalletMeta, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletEntriesCount", _wrap_SKY_api_Handle_GetWalletEntriesCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletResponseEntriesCount", _wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletGetEntry", _wrap_SKY_api_Handle_WalletGetEntry, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletResponseGetEntry", _wrap_SKY_api_Handle_WalletResponseGetEntry, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletResponseIsEncrypted", _wrap_SKY_api_Handle_WalletResponseIsEncrypted, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletResponseGetCryptoType", _wrap_SKY_api_Handle_WalletResponseGetCryptoType, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletsResponseGetCount", _wrap_SKY_api_Handle_WalletsResponseGetCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletsResponseGetAt", _wrap_SKY_api_Handle_WalletsResponseGetAt, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletFolderAddress", _wrap_SKY_api_Handle_GetWalletFolderAddress, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletSeed", _wrap_SKY_api_Handle_GetWalletSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletLastSeed", _wrap_SKY_api_Handle_GetWalletLastSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetBuildInfoData", _wrap_SKY_api_Handle_GetBuildInfoData, METH_VARARGS, NULL}, - { (char *)"SKY_map_Get", _wrap_SKY_map_Get, METH_VARARGS, NULL}, - { (char *)"SKY_map_HasKey", _wrap_SKY_map_HasKey, METH_VARARGS, NULL}, - { (char *)"SKY_map_Close", _wrap_SKY_map_Close, METH_VARARGS, NULL}, - { (char *)"SKY_testutil_MakeAddress", _wrap_SKY_testutil_MakeAddress, METH_VARARGS, NULL}, - { (char *)"SKY_apputil_CatchInterruptPanic", _wrap_SKY_apputil_CatchInterruptPanic, METH_VARARGS, NULL}, - { (char *)"SKY_apputil_CatchDebug", _wrap_SKY_apputil_CatchDebug, METH_VARARGS, NULL}, - { (char *)"SKY_apputil_PrintProgramStatus", _wrap_SKY_apputil_PrintProgramStatus, METH_VARARGS, NULL}, - { (char *)"SKY_certutil_NewTLSCertPair", _wrap_SKY_certutil_NewTLSCertPair, METH_VARARGS, NULL}, - { (char *)"SKY_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, - { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, METH_VARARGS, NULL}, - { (char *)"SKY_fee_VerifyTransactionFee", _wrap_SKY_fee_VerifyTransactionFee, METH_VARARGS, NULL}, - { (char *)"SKY_fee_VerifyTransactionFeeForHours", _wrap_SKY_fee_VerifyTransactionFeeForHours, METH_VARARGS, NULL}, - { (char *)"SKY_fee_RequiredFee", _wrap_SKY_fee_RequiredFee, METH_VARARGS, NULL}, - { (char *)"SKY_fee_RemainingHours", _wrap_SKY_fee_RemainingHours, METH_VARARGS, NULL}, - { (char *)"SKY_fee_TransactionFee", _wrap_SKY_fee_TransactionFee, METH_VARARGS, NULL}, - { (char *)"SKY_file_InitDataDir", _wrap_SKY_file_InitDataDir, METH_VARARGS, NULL}, - { (char *)"SKY_file_UserHome", _wrap_SKY_file_UserHome, METH_VARARGS, NULL}, - { (char *)"SKY_file_ResolveResourceDirectory", _wrap_SKY_file_ResolveResourceDirectory, METH_VARARGS, NULL}, - { (char *)"SKY_file_DetermineResourcePath", _wrap_SKY_file_DetermineResourcePath, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Address_UnmarshalJSON", _wrap_SKY_httphelper_Address_UnmarshalJSON, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Address_MarshalJSON", _wrap_SKY_httphelper_Address_MarshalJSON, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Coins_UnmarshalJSON", _wrap_SKY_httphelper_Coins_UnmarshalJSON, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Coins_MarshalJSON", _wrap_SKY_httphelper_Coins_MarshalJSON, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Coins_Value", _wrap_SKY_httphelper_Coins_Value, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Hours_UnmarshalJSON", _wrap_SKY_httphelper_Hours_UnmarshalJSON, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Hours_MarshalJSON", _wrap_SKY_httphelper_Hours_MarshalJSON, METH_VARARGS, NULL}, - { (char *)"SKY_httphelper_Hours_Value", _wrap_SKY_httphelper_Hours_Value, METH_VARARGS, NULL}, - { (char *)"SKY_iputil_LocalhostIP", _wrap_SKY_iputil_LocalhostIP, METH_VARARGS, NULL}, - { (char *)"SKY_iputil_IsLocalhost", _wrap_SKY_iputil_IsLocalhost, METH_VARARGS, NULL}, - { (char *)"SKY_iputil_SplitAddr", _wrap_SKY_iputil_SplitAddr, METH_VARARGS, NULL}, - { (char *)"SKY_logging_EnableColors", _wrap_SKY_logging_EnableColors, METH_VARARGS, NULL}, - { (char *)"SKY_logging_DisableColors", _wrap_SKY_logging_DisableColors, METH_VARARGS, NULL}, - { (char *)"SKY_logging_Disable", _wrap_SKY_logging_Disable, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewBalance", _wrap_SKY_wallet_NewBalance, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewBalanceFromUxOut", _wrap_SKY_wallet_NewBalanceFromUxOut, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Balance_Add", _wrap_SKY_wallet_Balance_Add, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Balance_Sub", _wrap_SKY_wallet_Balance_Sub, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Balance_Equals", _wrap_SKY_wallet_Balance_Equals, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Balance_IsZero", _wrap_SKY_wallet_Balance_IsZero, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Entry_Verify", _wrap_SKY_wallet_Entry_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Entry_VerifyPublic", _wrap_SKY_wallet_Entry_VerifyPublic, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewReadableEntry", _wrap_SKY_wallet_NewReadableEntry, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_LoadReadableWallet", _wrap_SKY_wallet_LoadReadableWallet, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableWallet_Save", _wrap_SKY_wallet_ReadableWallet_Save, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableWallet_Load", _wrap_SKY_wallet_ReadableWallet_Load, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableWallet_Erase", _wrap_SKY_wallet_ReadableWallet_Erase, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewError", _wrap_SKY_wallet_NewError, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewWallet", _wrap_SKY_wallet_NewWallet, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Lock", _wrap_SKY_wallet_Wallet_Lock, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Unlock", _wrap_SKY_wallet_Wallet_Unlock, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Load", _wrap_SKY_wallet_Load, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Save", _wrap_SKY_wallet_Wallet_Save, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Validate", _wrap_SKY_wallet_Wallet_Validate, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Type", _wrap_SKY_wallet_Wallet_Type, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Version", _wrap_SKY_wallet_Wallet_Version, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Filename", _wrap_SKY_wallet_Wallet_Filename, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_Label", _wrap_SKY_wallet_Wallet_Label, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_IsEncrypted", _wrap_SKY_wallet_Wallet_IsEncrypted, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_GenerateAddresses", _wrap_SKY_wallet_Wallet_GenerateAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_GetAddresses", _wrap_SKY_wallet_Wallet_GetAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_GetEntry", _wrap_SKY_wallet_Wallet_GetEntry, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Wallet_AddEntry", _wrap_SKY_wallet_Wallet_AddEntry, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_DistributeSpendHours", _wrap_SKY_wallet_DistributeSpendHours, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_DistributeCoinHoursProportional", _wrap_SKY_wallet_DistributeCoinHoursProportional, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewUxBalances", _wrap_SKY_wallet_NewUxBalances, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewUxBalance", _wrap_SKY_wallet_NewUxBalance, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ChooseSpendsMinimizeUxOuts", _wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ChooseSpendsMaximizeUxOuts", _wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_CreateOptionsHandle", _wrap_SKY_wallet_CreateOptionsHandle, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_N_set", _wrap_api__RichlistParams_N_set, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_N_get", _wrap_api__RichlistParams_N_get, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_IncludeDistribution_set", _wrap_api__RichlistParams_IncludeDistribution_set, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_IncludeDistribution_get", _wrap_api__RichlistParams_IncludeDistribution_get, METH_VARARGS, NULL}, - { (char *)"new_api__RichlistParams", _wrap_new_api__RichlistParams, METH_VARARGS, NULL}, - { (char *)"delete_api__RichlistParams", _wrap_delete_api__RichlistParams, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_swigregister", api__RichlistParams_swigregister, METH_VARARGS, NULL}, - { (char *)"api__NetworkConnectionsFilter_States_set", _wrap_api__NetworkConnectionsFilter_States_set, METH_VARARGS, NULL}, - { (char *)"api__NetworkConnectionsFilter_States_get", _wrap_api__NetworkConnectionsFilter_States_get, METH_VARARGS, NULL}, - { (char *)"api__NetworkConnectionsFilter_Direction_set", _wrap_api__NetworkConnectionsFilter_Direction_set, METH_VARARGS, NULL}, - { (char *)"api__NetworkConnectionsFilter_Direction_get", _wrap_api__NetworkConnectionsFilter_Direction_get, METH_VARARGS, NULL}, - { (char *)"new_api__NetworkConnectionsFilter", _wrap_new_api__NetworkConnectionsFilter, METH_VARARGS, NULL}, - { (char *)"delete_api__NetworkConnectionsFilter", _wrap_delete_api__NetworkConnectionsFilter, METH_VARARGS, NULL}, - { (char *)"api__NetworkConnectionsFilter_swigregister", api__NetworkConnectionsFilter_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher__Address___eq__", _wrap_cipher__Address___eq__, METH_VARARGS, NULL}, - { (char *)"cipher__Address_toStr", _wrap_cipher__Address_toStr, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Version_set", _wrap_cipher__Address_Version_set, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Version_get", _wrap_cipher__Address_Version_get, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Key_set", _wrap_cipher__Address_Key_set, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Key_get", _wrap_cipher__Address_Key_get, METH_VARARGS, NULL}, - { (char *)"new_cipher__Address", _wrap_new_cipher__Address, METH_VARARGS, NULL}, - { (char *)"delete_cipher__Address", _wrap_delete_cipher__Address, METH_VARARGS, NULL}, - { (char *)"cipher__Address_swigregister", cipher__Address_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress___eq__", _wrap_cipher__BitcoinAddress___eq__, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress_toStr", _wrap_cipher__BitcoinAddress_toStr, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress_Version_set", _wrap_cipher__BitcoinAddress_Version_set, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress_Version_get", _wrap_cipher__BitcoinAddress_Version_get, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress_Key_set", _wrap_cipher__BitcoinAddress_Key_set, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress_Key_get", _wrap_cipher__BitcoinAddress_Key_get, METH_VARARGS, NULL}, - { (char *)"new_cipher__BitcoinAddress", _wrap_new_cipher__BitcoinAddress, METH_VARARGS, NULL}, - { (char *)"delete_cipher__BitcoinAddress", _wrap_delete_cipher__BitcoinAddress, METH_VARARGS, NULL}, - { (char *)"cipher__BitcoinAddress_swigregister", cipher__BitcoinAddress_swigregister, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_N_set", _wrap_encrypt__ScryptChacha20poly1305_N_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_N_get", _wrap_encrypt__ScryptChacha20poly1305_N_get, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_R_set", _wrap_encrypt__ScryptChacha20poly1305_R_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_R_get", _wrap_encrypt__ScryptChacha20poly1305_R_get, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_P_set", _wrap_encrypt__ScryptChacha20poly1305_P_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_P_get", _wrap_encrypt__ScryptChacha20poly1305_P_get, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_KeyLen_set", _wrap_encrypt__ScryptChacha20poly1305_KeyLen_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_KeyLen_get", _wrap_encrypt__ScryptChacha20poly1305_KeyLen_get, METH_VARARGS, NULL}, - { (char *)"new_encrypt__ScryptChacha20poly1305", _wrap_new_encrypt__ScryptChacha20poly1305, METH_VARARGS, NULL}, - { (char *)"delete_encrypt__ScryptChacha20poly1305", _wrap_delete_encrypt__ScryptChacha20poly1305, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_swigregister", encrypt__ScryptChacha20poly1305_swigregister, METH_VARARGS, NULL}, - { (char *)"secp256k1go__Field_n_set", _wrap_secp256k1go__Field_n_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__Field_n_get", _wrap_secp256k1go__Field_n_get, METH_VARARGS, NULL}, - { (char *)"new_secp256k1go__Field", _wrap_new_secp256k1go__Field, METH_VARARGS, NULL}, - { (char *)"delete_secp256k1go__Field", _wrap_delete_secp256k1go__Field, METH_VARARGS, NULL}, - { (char *)"secp256k1go__Field_swigregister", secp256k1go__Field_swigregister, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_X_set", _wrap_secp256k1go__XY_X_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_X_get", _wrap_secp256k1go__XY_X_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Y_set", _wrap_secp256k1go__XY_Y_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Y_get", _wrap_secp256k1go__XY_Y_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Infinity_set", _wrap_secp256k1go__XY_Infinity_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Infinity_get", _wrap_secp256k1go__XY_Infinity_get, METH_VARARGS, NULL}, - { (char *)"new_secp256k1go__XY", _wrap_new_secp256k1go__XY, METH_VARARGS, NULL}, - { (char *)"delete_secp256k1go__XY", _wrap_delete_secp256k1go__XY, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_swigregister", secp256k1go__XY_swigregister, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_X_set", _wrap_secp256k1go__XYZ_X_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_X_get", _wrap_secp256k1go__XYZ_X_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Y_set", _wrap_secp256k1go__XYZ_Y_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Y_get", _wrap_secp256k1go__XYZ_Y_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Z_set", _wrap_secp256k1go__XYZ_Z_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Z_get", _wrap_secp256k1go__XYZ_Z_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Infinity_set", _wrap_secp256k1go__XYZ_Infinity_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Infinity_get", _wrap_secp256k1go__XYZ_Infinity_get, METH_VARARGS, NULL}, - { (char *)"new_secp256k1go__XYZ", _wrap_new_secp256k1go__XYZ, METH_VARARGS, NULL}, - { (char *)"delete_secp256k1go__XYZ", _wrap_delete_secp256k1go__XYZ, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_swigregister", secp256k1go__XYZ_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Addr_set", _wrap_cli__SendAmount_Addr_set, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Addr_get", _wrap_cli__SendAmount_Addr_get, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Coins_set", _wrap_cli__SendAmount_Coins_set, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Coins_get", _wrap_cli__SendAmount_Coins_get, METH_VARARGS, NULL}, - { (char *)"new_cli__SendAmount", _wrap_new_cli__SendAmount, METH_VARARGS, NULL}, - { (char *)"delete_cli__SendAmount", _wrap_delete_cli__SendAmount, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_swigregister", cli__SendAmount_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__Transaction___eq__", _wrap_coin__Transaction___eq__, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Length_set", _wrap_coin__Transaction_Length_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Length_get", _wrap_coin__Transaction_Length_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Type_set", _wrap_coin__Transaction_Type_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Type_get", _wrap_coin__Transaction_Type_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_InnerHash_set", _wrap_coin__Transaction_InnerHash_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_InnerHash_get", _wrap_coin__Transaction_InnerHash_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Sigs_set", _wrap_coin__Transaction_Sigs_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Sigs_get", _wrap_coin__Transaction_Sigs_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_In_set", _wrap_coin__Transaction_In_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_In_get", _wrap_coin__Transaction_In_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Out_set", _wrap_coin__Transaction_Out_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Out_get", _wrap_coin__Transaction_Out_get, METH_VARARGS, NULL}, - { (char *)"new_coin__Transaction", _wrap_new_coin__Transaction, METH_VARARGS, NULL}, - { (char *)"delete_coin__Transaction", _wrap_delete_coin__Transaction, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_swigregister", coin__Transaction_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput___eq__", _wrap_coin__TransactionOutput___eq__, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Address_set", _wrap_coin__TransactionOutput_Address_set, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Address_get", _wrap_coin__TransactionOutput_Address_get, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Coins_set", _wrap_coin__TransactionOutput_Coins_set, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Coins_get", _wrap_coin__TransactionOutput_Coins_get, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Hours_set", _wrap_coin__TransactionOutput_Hours_set, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Hours_get", _wrap_coin__TransactionOutput_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_coin__TransactionOutput", _wrap_new_coin__TransactionOutput, METH_VARARGS, NULL}, - { (char *)"delete_coin__TransactionOutput", _wrap_delete_coin__TransactionOutput, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_swigregister", coin__TransactionOutput_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader___eq__", _wrap_coin__BlockHeader___eq__, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Version_set", _wrap_coin__BlockHeader_Version_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Version_get", _wrap_coin__BlockHeader_Version_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Time_set", _wrap_coin__BlockHeader_Time_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Time_get", _wrap_coin__BlockHeader_Time_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BkSeq_set", _wrap_coin__BlockHeader_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BkSeq_get", _wrap_coin__BlockHeader_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Fee_set", _wrap_coin__BlockHeader_Fee_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Fee_get", _wrap_coin__BlockHeader_Fee_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_PrevHash_set", _wrap_coin__BlockHeader_PrevHash_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_PrevHash_get", _wrap_coin__BlockHeader_PrevHash_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BodyHash_set", _wrap_coin__BlockHeader_BodyHash_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BodyHash_get", _wrap_coin__BlockHeader_BodyHash_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_UxHash_set", _wrap_coin__BlockHeader_UxHash_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_UxHash_get", _wrap_coin__BlockHeader_UxHash_get, METH_VARARGS, NULL}, - { (char *)"new_coin__BlockHeader", _wrap_new_coin__BlockHeader, METH_VARARGS, NULL}, - { (char *)"delete_coin__BlockHeader", _wrap_delete_coin__BlockHeader, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_swigregister", coin__BlockHeader_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody___eq__", _wrap_coin__BlockBody___eq__, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody_Transactions_set", _wrap_coin__BlockBody_Transactions_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody_Transactions_get", _wrap_coin__BlockBody_Transactions_get, METH_VARARGS, NULL}, - { (char *)"new_coin__BlockBody", _wrap_new_coin__BlockBody, METH_VARARGS, NULL}, - { (char *)"delete_coin__BlockBody", _wrap_delete_coin__BlockBody, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody_swigregister", coin__BlockBody_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__Block_Head_set", _wrap_coin__Block_Head_set, METH_VARARGS, NULL}, - { (char *)"coin__Block_Head_get", _wrap_coin__Block_Head_get, METH_VARARGS, NULL}, - { (char *)"coin__Block_Body_set", _wrap_coin__Block_Body_set, METH_VARARGS, NULL}, - { (char *)"coin__Block_Body_get", _wrap_coin__Block_Body_get, METH_VARARGS, NULL}, - { (char *)"new_coin__Block", _wrap_new_coin__Block, METH_VARARGS, NULL}, - { (char *)"delete_coin__Block", _wrap_delete_coin__Block, METH_VARARGS, NULL}, - { (char *)"coin__Block_swigregister", coin__Block_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock__unnamed_set", _wrap_coin__SignedBlock__unnamed_set, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock__unnamed_get", _wrap_coin__SignedBlock__unnamed_get, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock_Sig_set", _wrap_coin__SignedBlock_Sig_set, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock_Sig_get", _wrap_coin__SignedBlock_Sig_get, METH_VARARGS, NULL}, - { (char *)"new_coin__SignedBlock", _wrap_new_coin__SignedBlock, METH_VARARGS, NULL}, - { (char *)"delete_coin__SignedBlock", _wrap_delete_coin__SignedBlock, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock_swigregister", coin__SignedBlock_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_Time_set", _wrap_coin__UxHead_Time_set, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_Time_get", _wrap_coin__UxHead_Time_get, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_BkSeq_set", _wrap_coin__UxHead_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_BkSeq_get", _wrap_coin__UxHead_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"new_coin__UxHead", _wrap_new_coin__UxHead, METH_VARARGS, NULL}, - { (char *)"delete_coin__UxHead", _wrap_delete_coin__UxHead, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_swigregister", coin__UxHead_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_GetSrcTransaction", _wrap_coin__UxBody_GetSrcTransaction, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_SetSrcTransaction", _wrap_coin__UxBody_SetSrcTransaction, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_SrcTransaction_set", _wrap_coin__UxBody_SrcTransaction_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_SrcTransaction_get", _wrap_coin__UxBody_SrcTransaction_get, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Address_set", _wrap_coin__UxBody_Address_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Address_get", _wrap_coin__UxBody_Address_get, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Coins_set", _wrap_coin__UxBody_Coins_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Coins_get", _wrap_coin__UxBody_Coins_get, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Hours_set", _wrap_coin__UxBody_Hours_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Hours_get", _wrap_coin__UxBody_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_coin__UxBody", _wrap_new_coin__UxBody, METH_VARARGS, NULL}, - { (char *)"delete_coin__UxBody", _wrap_delete_coin__UxBody, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_swigregister", coin__UxBody_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__UxOut___eq__", _wrap_coin__UxOut___eq__, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Head_set", _wrap_coin__UxOut_Head_set, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Head_get", _wrap_coin__UxOut_Head_get, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Body_set", _wrap_coin__UxOut_Body_set, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Body_get", _wrap_coin__UxOut_Body_get, METH_VARARGS, NULL}, - { (char *)"new_coin__UxOut", _wrap_new_coin__UxOut, METH_VARARGS, NULL}, - { (char *)"delete_coin__UxOut", _wrap_delete_coin__UxOut, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_swigregister", coin__UxOut_swigregister, METH_VARARGS, NULL}, - { (char *)"httphelper__Address__unnamed_set", _wrap_httphelper__Address__unnamed_set, METH_VARARGS, NULL}, - { (char *)"httphelper__Address__unnamed_get", _wrap_httphelper__Address__unnamed_get, METH_VARARGS, NULL}, - { (char *)"new_httphelper__Address", _wrap_new_httphelper__Address, METH_VARARGS, NULL}, - { (char *)"delete_httphelper__Address", _wrap_delete_httphelper__Address, METH_VARARGS, NULL}, - { (char *)"httphelper__Address_swigregister", httphelper__Address_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Coins_set", _wrap_wallet__Balance_Coins_set, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Coins_get", _wrap_wallet__Balance_Coins_get, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Hours_set", _wrap_wallet__Balance_Hours_set, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Hours_get", _wrap_wallet__Balance_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Balance", _wrap_new_wallet__Balance, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Balance", _wrap_delete_wallet__Balance, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_swigregister", wallet__Balance_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Confirmed_set", _wrap_wallet__BalancePair_Confirmed_set, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Confirmed_get", _wrap_wallet__BalancePair_Confirmed_get, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Predicted_set", _wrap_wallet__BalancePair_Predicted_set, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Predicted_get", _wrap_wallet__BalancePair_Predicted_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__BalancePair", _wrap_new_wallet__BalancePair, METH_VARARGS, NULL}, - { (char *)"delete_wallet__BalancePair", _wrap_delete_wallet__BalancePair, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_swigregister", wallet__BalancePair_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Address_set", _wrap_wallet__Entry_Address_set, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Address_get", _wrap_wallet__Entry_Address_get, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Public_set", _wrap_wallet__Entry_Public_set, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Public_get", _wrap_wallet__Entry_Public_get, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Secret_set", _wrap_wallet__Entry_Secret_set, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Secret_get", _wrap_wallet__Entry_Secret_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Entry", _wrap_new_wallet__Entry, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Entry", _wrap_delete_wallet__Entry, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_swigregister", wallet__Entry_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Note_TxID_set", _wrap_wallet__Note_TxID_set, METH_VARARGS, NULL}, - { (char *)"wallet__Note_TxID_get", _wrap_wallet__Note_TxID_get, METH_VARARGS, NULL}, - { (char *)"wallet__Note_Value_set", _wrap_wallet__Note_Value_set, METH_VARARGS, NULL}, - { (char *)"wallet__Note_Value_get", _wrap_wallet__Note_Value_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Note", _wrap_new_wallet__Note, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Note", _wrap_delete_wallet__Note, METH_VARARGS, NULL}, - { (char *)"wallet__Note_swigregister", wallet__Note_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_TransactionID_set", _wrap_wallet__ReadableNote_TransactionID_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_TransactionID_get", _wrap_wallet__ReadableNote_TransactionID_get, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_ActualNote_set", _wrap_wallet__ReadableNote_ActualNote_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_ActualNote_get", _wrap_wallet__ReadableNote_ActualNote_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__ReadableNote", _wrap_new_wallet__ReadableNote, METH_VARARGS, NULL}, - { (char *)"delete_wallet__ReadableNote", _wrap_delete_wallet__ReadableNote, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_swigregister", wallet__ReadableNote_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hash_set", _wrap_wallet__UxBalance_Hash_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hash_get", _wrap_wallet__UxBalance_Hash_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_BkSeq_set", _wrap_wallet__UxBalance_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_BkSeq_get", _wrap_wallet__UxBalance_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Address_set", _wrap_wallet__UxBalance_Address_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Address_get", _wrap_wallet__UxBalance_Address_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Coins_set", _wrap_wallet__UxBalance_Coins_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Coins_get", _wrap_wallet__UxBalance_Coins_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hours_set", _wrap_wallet__UxBalance_Hours_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hours_get", _wrap_wallet__UxBalance_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__UxBalance", _wrap_new_wallet__UxBalance, METH_VARARGS, NULL}, - { (char *)"delete_wallet__UxBalance", _wrap_delete_wallet__UxBalance, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_swigregister", wallet__UxBalance_swigregister, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static swig_type_info _swigt__p_AddressUxOuts_Handle = {"_p_AddressUxOuts_Handle", "AddressUxOuts_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_App__Handle = {"_p_App__Handle", "App__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BalanceResult_Handle = {"_p_BalanceResult_Handle", "BalanceResult_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BlockBody__Handle = {"_p_BlockBody__Handle", "BlockBody__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Block__Handle = {"_p_Block__Handle", "Block__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BuildInfo_Handle = {"_p_BuildInfo_Handle", "BuildInfo_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Client__Handle = {"_p_Client__Handle", "Client__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Config__Handle = {"_p_Config__Handle", "Config__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Context__Handle = {"_p_Context__Handle", "Context__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreateTransactionResponse__Handle = {"_p_CreateTransactionResponse__Handle", "CreateTransactionResponse__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreatedTransactionInput__Handle = {"_p_CreatedTransactionInput__Handle", "CreatedTransactionInput__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreatedTransactionOutput__Handle = {"_p_CreatedTransactionOutput__Handle", "CreatedTransactionOutput__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreatedTransaction__Handle = {"_p_CreatedTransaction__Handle", "CreatedTransaction__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_FeeCalculator = {"_p_FeeCalculator", "FeeCalculator *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Fee_Calculator = {"_p_Fee_Calculator", "Fee_Calculator *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoInterface = {"_p_GoInterface", "GoInterface *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoSlice = {"_p_GoSlice", "GoSlice *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoSlice_ = {"_p_GoSlice_", "coin__Transactions *|coin__UxArray *|GoSlice_ *|cli__PasswordFromBytes *|visor__ReadableOutputs *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoStringMap_ = {"_p_GoStringMap_", "GoStringMap_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoString_ = {"_p_GoString_", "GoString_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Handle = {"_p_Handle", "Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Options__Handle = {"_p_Options__Handle", "Options__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_PasswordReader__Handle = {"_p_PasswordReader__Handle", "PasswordReader__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ReadableEntry__Handle = {"_p_ReadableEntry__Handle", "ReadableEntry__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ReadableUnspentOutputsSummary_Handle = {"_p_ReadableUnspentOutputsSummary_Handle", "ReadableUnspentOutputsSummary_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ReadableWallet__Handle = {"_p_ReadableWallet__Handle", "ReadableWallet__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SortableTransactionResult_Handle = {"_p_SortableTransactionResult_Handle", "SortableTransactionResult_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SpendResult_Handle = {"_p_SpendResult_Handle", "SpendResult_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_StatusResult_Handle = {"_p_StatusResult_Handle", "StatusResult_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Strings__Handle = {"_p_Strings__Handle", "Strings__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TransactionResult_Handle = {"_p_TransactionResult_Handle", "TransactionResult_Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Transaction__Handle = {"_p_Transaction__Handle", "Transaction__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Transactions__Handle = {"_p_Transactions__Handle", "Transactions__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_WalletResponse__Handle = {"_p_WalletResponse__Handle", "WalletResponse__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Wallet__Handle = {"_p_Wallet__Handle", "Wallet__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Wallets__Handle = {"_p_Wallets__Handle", "Wallets__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_WebRpcClient__Handle = {"_p_WebRpcClient__Handle", "WebRpcClient__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__GoString_ = {"_p__GoString_", "_GoString_ *|GoString *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p___SIZE_TYPE__ = {"_p___SIZE_TYPE__", "__SIZE_TYPE__ *|GoUintptr *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_20__unsigned_char = {"_p_a_20__unsigned_char", "unsigned char (*)[20]|cipher__Ripemd160 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_32__unsigned_char = {"_p_a_32__unsigned_char", "cipher__SecKey *|cipher__SHA256 *|unsigned char (*)[32]", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_33__unsigned_char = {"_p_a_33__unsigned_char", "unsigned char (*)[33]|cipher__PubKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_4__unsigned_char = {"_p_a_4__unsigned_char", "cipher__Checksum *|unsigned char (*)[4]", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_65__unsigned_char = {"_p_a_65__unsigned_char", "unsigned char (*)[65]|cipher__Sig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_sizeof_void_____64_8_1__1__char = {"_p_a_sizeof_void_____64_8_1__1__char", "char (*)[sizeof(void *)==64/8?1:-1]|_check_for_64_bit_pointer_matching_GoInt *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__NetworkConnectionsFilter = {"_p_api__NetworkConnectionsFilter", "api__NetworkConnectionsFilter *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__RichlistParams = {"_p_api__RichlistParams", "api__RichlistParams *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Addresses = {"_p_cipher_Addresses", "cipher_Addresses *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Checksum = {"_p_cipher_Checksum", "cipher_Checksum *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_PubKey = {"_p_cipher_PubKey", "cipher_PubKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_PubKeys = {"_p_cipher_PubKeys", "cipher_PubKeys *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Ripemd160 = {"_p_cipher_Ripemd160", "cipher_Ripemd160 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SHA256 = {"_p_cipher_SHA256", "cipher_SHA256 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SHA256s = {"_p_cipher_SHA256s", "cipher_SHA256s *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SecKey = {"_p_cipher_SecKey", "cipher_SecKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SecKeys = {"_p_cipher_SecKeys", "cipher_SecKeys *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Sig = {"_p_cipher_Sig", "cipher_Sig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher__Address = {"_p_cipher__Address", "cipher__Address *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher__BitcoinAddress = {"_p_cipher__BitcoinAddress", "cipher__BitcoinAddress *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__SendAmount = {"_p_cli__SendAmount", "cli__SendAmount *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin_UxOutArray = {"_p_coin_UxOutArray", "coin_UxOutArray *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__Block = {"_p_coin__Block", "coin__Block *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__BlockBody = {"_p_coin__BlockBody", "coin__BlockBody *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__BlockHeader = {"_p_coin__BlockHeader", "coin__BlockHeader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__SignedBlock = {"_p_coin__SignedBlock", "coin__SignedBlock *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__Transaction = {"_p_coin__Transaction", "coin__Transaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__TransactionOutput = {"_p_coin__TransactionOutput", "coin__TransactionOutput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__UxBody = {"_p_coin__UxBody", "coin__UxBody *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__UxHead = {"_p_coin__UxHead", "coin__UxHead *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__UxOut = {"_p_coin__UxOut", "coin__UxOut *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_double = {"_p_double", "GoFloat64 *|double *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_encrypt__ScryptChacha20poly1305 = {"_p_encrypt__ScryptChacha20poly1305", "encrypt__ScryptChacha20poly1305 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int = {"_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int", "unsigned int (*)(Transaction__Handle,unsigned long long *,void *)|FeeCalcFunc", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_float = {"_p_float", "float *|GoFloat32 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_httphelper__Address = {"_p_httphelper__Address", "httphelper__Address *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_int = {"_p_int", "int *|GoInt32 *|GoInt32_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_long_long = {"_p_long_long", "GoInt64 *|GoInt *|long long *|GoInt_ *|GoInt64_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_GoSlice_ = {"_p_p_GoSlice_", "coin__UxArray **|GoSlice_ **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_coin__Block = {"_p_p_coin__Block", "coin__Block **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_coin__Transaction = {"_p_p_coin__Transaction", "coin__Transaction **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_secp256k1go__Field = {"_p_secp256k1go__Field", "secp256k1go__Field *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_secp256k1go__XY = {"_p_secp256k1go__XY", "secp256k1go__XY *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_secp256k1go__XYZ = {"_p_secp256k1go__XYZ", "secp256k1go__XYZ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_short = {"_p_short", "GoInt16_ *|GoInt16 *|short *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|GoInt8 *|GoInt8_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|GoUint8 *|GoUint8_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "GoUint32 *|unsigned int *|GoUint32_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "httphelper__Coins *|GoUint64 *|GoUint *|unsigned long long *|GoUint_ *|GoUint64_ *|httphelper__Hours *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "GoUint16_ *|GoUint16 *|unsigned short *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Balance = {"_p_wallet__Balance", "wallet__Balance *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__BalancePair = {"_p_wallet__BalancePair", "wallet__BalancePair *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Entry = {"_p_wallet__Entry", "wallet__Entry *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Note = {"_p_wallet__Note", "wallet__Note *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__ReadableNote = {"_p_wallet__ReadableNote", "wallet__ReadableNote *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__UxBalance = {"_p_wallet__UxBalance", "wallet__UxBalance *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_AddressUxOuts_Handle, - &_swigt__p_App__Handle, - &_swigt__p_BalanceResult_Handle, - &_swigt__p_BlockBody__Handle, - &_swigt__p_Block__Handle, - &_swigt__p_BuildInfo_Handle, - &_swigt__p_Client__Handle, - &_swigt__p_Config__Handle, - &_swigt__p_Context__Handle, - &_swigt__p_CreateTransactionResponse__Handle, - &_swigt__p_CreatedTransactionInput__Handle, - &_swigt__p_CreatedTransactionOutput__Handle, - &_swigt__p_CreatedTransaction__Handle, - &_swigt__p_FeeCalculator, - &_swigt__p_Fee_Calculator, - &_swigt__p_GoInterface, - &_swigt__p_GoSlice, - &_swigt__p_GoSlice_, - &_swigt__p_GoStringMap_, - &_swigt__p_GoString_, - &_swigt__p_Handle, - &_swigt__p_Options__Handle, - &_swigt__p_PasswordReader__Handle, - &_swigt__p_ReadableEntry__Handle, - &_swigt__p_ReadableUnspentOutputsSummary_Handle, - &_swigt__p_ReadableWallet__Handle, - &_swigt__p_SortableTransactionResult_Handle, - &_swigt__p_SpendResult_Handle, - &_swigt__p_StatusResult_Handle, - &_swigt__p_Strings__Handle, - &_swigt__p_TransactionResult_Handle, - &_swigt__p_Transaction__Handle, - &_swigt__p_Transactions__Handle, - &_swigt__p_WalletResponse__Handle, - &_swigt__p_Wallet__Handle, - &_swigt__p_Wallets__Handle, - &_swigt__p_WebRpcClient__Handle, - &_swigt__p__GoString_, - &_swigt__p___SIZE_TYPE__, - &_swigt__p_a_20__unsigned_char, - &_swigt__p_a_32__unsigned_char, - &_swigt__p_a_33__unsigned_char, - &_swigt__p_a_4__unsigned_char, - &_swigt__p_a_65__unsigned_char, - &_swigt__p_a_sizeof_void_____64_8_1__1__char, - &_swigt__p_api__NetworkConnectionsFilter, - &_swigt__p_api__RichlistParams, - &_swigt__p_char, - &_swigt__p_cipher_Addresses, - &_swigt__p_cipher_Checksum, - &_swigt__p_cipher_PubKey, - &_swigt__p_cipher_PubKeys, - &_swigt__p_cipher_Ripemd160, - &_swigt__p_cipher_SHA256, - &_swigt__p_cipher_SHA256s, - &_swigt__p_cipher_SecKey, - &_swigt__p_cipher_SecKeys, - &_swigt__p_cipher_Sig, - &_swigt__p_cipher__Address, - &_swigt__p_cipher__BitcoinAddress, - &_swigt__p_cli__SendAmount, - &_swigt__p_coin_UxOutArray, - &_swigt__p_coin__Block, - &_swigt__p_coin__BlockBody, - &_swigt__p_coin__BlockHeader, - &_swigt__p_coin__SignedBlock, - &_swigt__p_coin__Transaction, - &_swigt__p_coin__TransactionOutput, - &_swigt__p_coin__UxBody, - &_swigt__p_coin__UxHead, - &_swigt__p_coin__UxOut, - &_swigt__p_double, - &_swigt__p_encrypt__ScryptChacha20poly1305, - &_swigt__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int, - &_swigt__p_float, - &_swigt__p_httphelper__Address, - &_swigt__p_int, - &_swigt__p_long_long, - &_swigt__p_p_GoSlice_, - &_swigt__p_p_coin__Block, - &_swigt__p_p_coin__Transaction, - &_swigt__p_secp256k1go__Field, - &_swigt__p_secp256k1go__XY, - &_swigt__p_secp256k1go__XYZ, - &_swigt__p_short, - &_swigt__p_signed_char, - &_swigt__p_unsigned_char, - &_swigt__p_unsigned_int, - &_swigt__p_unsigned_long_long, - &_swigt__p_unsigned_short, - &_swigt__p_void, - &_swigt__p_wallet__Balance, - &_swigt__p_wallet__BalancePair, - &_swigt__p_wallet__Entry, - &_swigt__p_wallet__Note, - &_swigt__p_wallet__ReadableNote, - &_swigt__p_wallet__UxBalance, -}; - -static swig_cast_info _swigc__p_AddressUxOuts_Handle[] = { {&_swigt__p_AddressUxOuts_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_App__Handle[] = { {&_swigt__p_App__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BalanceResult_Handle[] = { {&_swigt__p_BalanceResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BlockBody__Handle[] = { {&_swigt__p_BlockBody__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Block__Handle[] = { {&_swigt__p_Block__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BuildInfo_Handle[] = { {&_swigt__p_BuildInfo_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Client__Handle[] = { {&_swigt__p_Client__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Config__Handle[] = { {&_swigt__p_Config__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Context__Handle[] = { {&_swigt__p_Context__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreateTransactionResponse__Handle[] = { {&_swigt__p_CreateTransactionResponse__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreatedTransactionInput__Handle[] = { {&_swigt__p_CreatedTransactionInput__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreatedTransactionOutput__Handle[] = { {&_swigt__p_CreatedTransactionOutput__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreatedTransaction__Handle[] = { {&_swigt__p_CreatedTransaction__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_FeeCalculator[] = { {&_swigt__p_FeeCalculator, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Fee_Calculator[] = { {&_swigt__p_Fee_Calculator, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoInterface[] = { {&_swigt__p_GoInterface, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoSlice[] = { {&_swigt__p_GoSlice, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoSlice_[] = { {&_swigt__p_GoSlice_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoStringMap_[] = { {&_swigt__p_GoStringMap_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoString_[] = { {&_swigt__p_GoString_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Handle[] = { {&_swigt__p_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Options__Handle[] = { {&_swigt__p_Options__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_PasswordReader__Handle[] = { {&_swigt__p_PasswordReader__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ReadableEntry__Handle[] = { {&_swigt__p_ReadableEntry__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ReadableUnspentOutputsSummary_Handle[] = { {&_swigt__p_ReadableUnspentOutputsSummary_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ReadableWallet__Handle[] = { {&_swigt__p_ReadableWallet__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SortableTransactionResult_Handle[] = { {&_swigt__p_SortableTransactionResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SpendResult_Handle[] = { {&_swigt__p_SpendResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_StatusResult_Handle[] = { {&_swigt__p_StatusResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Strings__Handle[] = { {&_swigt__p_Strings__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TransactionResult_Handle[] = { {&_swigt__p_TransactionResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Transaction__Handle[] = { {&_swigt__p_Transaction__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Transactions__Handle[] = { {&_swigt__p_Transactions__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_WalletResponse__Handle[] = { {&_swigt__p_WalletResponse__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Wallet__Handle[] = { {&_swigt__p_Wallet__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Wallets__Handle[] = { {&_swigt__p_Wallets__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_WebRpcClient__Handle[] = { {&_swigt__p_WebRpcClient__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__GoString_[] = { {&_swigt__p__GoString_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p___SIZE_TYPE__[] = { {&_swigt__p___SIZE_TYPE__, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_20__unsigned_char[] = { {&_swigt__p_a_20__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_32__unsigned_char[] = { {&_swigt__p_a_32__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_33__unsigned_char[] = { {&_swigt__p_a_33__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_4__unsigned_char[] = { {&_swigt__p_a_4__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_65__unsigned_char[] = { {&_swigt__p_a_65__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_sizeof_void_____64_8_1__1__char[] = { {&_swigt__p_a_sizeof_void_____64_8_1__1__char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__NetworkConnectionsFilter[] = { {&_swigt__p_api__NetworkConnectionsFilter, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__RichlistParams[] = { {&_swigt__p_api__RichlistParams, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Addresses[] = { {&_swigt__p_cipher_Addresses, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Checksum[] = { {&_swigt__p_cipher_Checksum, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_PubKey[] = { {&_swigt__p_cipher_PubKey, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_PubKeys[] = { {&_swigt__p_cipher_PubKeys, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Ripemd160[] = { {&_swigt__p_cipher_Ripemd160, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SHA256[] = { {&_swigt__p_cipher_SHA256, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SHA256s[] = { {&_swigt__p_cipher_SHA256s, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SecKey[] = { {&_swigt__p_cipher_SecKey, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SecKeys[] = { {&_swigt__p_cipher_SecKeys, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Sig[] = { {&_swigt__p_cipher_Sig, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher__Address[] = { {&_swigt__p_cipher__Address, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher__BitcoinAddress[] = { {&_swigt__p_cipher__BitcoinAddress, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__SendAmount[] = { {&_swigt__p_cli__SendAmount, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin_UxOutArray[] = { {&_swigt__p_coin_UxOutArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__Block[] = { {&_swigt__p_coin__Block, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__BlockBody[] = { {&_swigt__p_coin__BlockBody, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__BlockHeader[] = { {&_swigt__p_coin__BlockHeader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__SignedBlock[] = { {&_swigt__p_coin__SignedBlock, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__Transaction[] = { {&_swigt__p_coin__Transaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__TransactionOutput[] = { {&_swigt__p_coin__TransactionOutput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__UxBody[] = { {&_swigt__p_coin__UxBody, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__UxHead[] = { {&_swigt__p_coin__UxHead, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__UxOut[] = { {&_swigt__p_coin__UxOut, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_encrypt__ScryptChacha20poly1305[] = { {&_swigt__p_encrypt__ScryptChacha20poly1305, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int[] = { {&_swigt__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_httphelper__Address[] = { {&_swigt__p_httphelper__Address, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_GoSlice_[] = { {&_swigt__p_p_GoSlice_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_coin__Block[] = { {&_swigt__p_p_coin__Block, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_coin__Transaction[] = { {&_swigt__p_p_coin__Transaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_secp256k1go__Field[] = { {&_swigt__p_secp256k1go__Field, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_secp256k1go__XY[] = { {&_swigt__p_secp256k1go__XY, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_secp256k1go__XYZ[] = { {&_swigt__p_secp256k1go__XYZ, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Balance[] = { {&_swigt__p_wallet__Balance, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__BalancePair[] = { {&_swigt__p_wallet__BalancePair, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Entry[] = { {&_swigt__p_wallet__Entry, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Note[] = { {&_swigt__p_wallet__Note, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__ReadableNote[] = { {&_swigt__p_wallet__ReadableNote, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__UxBalance[] = { {&_swigt__p_wallet__UxBalance, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_AddressUxOuts_Handle, - _swigc__p_App__Handle, - _swigc__p_BalanceResult_Handle, - _swigc__p_BlockBody__Handle, - _swigc__p_Block__Handle, - _swigc__p_BuildInfo_Handle, - _swigc__p_Client__Handle, - _swigc__p_Config__Handle, - _swigc__p_Context__Handle, - _swigc__p_CreateTransactionResponse__Handle, - _swigc__p_CreatedTransactionInput__Handle, - _swigc__p_CreatedTransactionOutput__Handle, - _swigc__p_CreatedTransaction__Handle, - _swigc__p_FeeCalculator, - _swigc__p_Fee_Calculator, - _swigc__p_GoInterface, - _swigc__p_GoSlice, - _swigc__p_GoSlice_, - _swigc__p_GoStringMap_, - _swigc__p_GoString_, - _swigc__p_Handle, - _swigc__p_Options__Handle, - _swigc__p_PasswordReader__Handle, - _swigc__p_ReadableEntry__Handle, - _swigc__p_ReadableUnspentOutputsSummary_Handle, - _swigc__p_ReadableWallet__Handle, - _swigc__p_SortableTransactionResult_Handle, - _swigc__p_SpendResult_Handle, - _swigc__p_StatusResult_Handle, - _swigc__p_Strings__Handle, - _swigc__p_TransactionResult_Handle, - _swigc__p_Transaction__Handle, - _swigc__p_Transactions__Handle, - _swigc__p_WalletResponse__Handle, - _swigc__p_Wallet__Handle, - _swigc__p_Wallets__Handle, - _swigc__p_WebRpcClient__Handle, - _swigc__p__GoString_, - _swigc__p___SIZE_TYPE__, - _swigc__p_a_20__unsigned_char, - _swigc__p_a_32__unsigned_char, - _swigc__p_a_33__unsigned_char, - _swigc__p_a_4__unsigned_char, - _swigc__p_a_65__unsigned_char, - _swigc__p_a_sizeof_void_____64_8_1__1__char, - _swigc__p_api__NetworkConnectionsFilter, - _swigc__p_api__RichlistParams, - _swigc__p_char, - _swigc__p_cipher_Addresses, - _swigc__p_cipher_Checksum, - _swigc__p_cipher_PubKey, - _swigc__p_cipher_PubKeys, - _swigc__p_cipher_Ripemd160, - _swigc__p_cipher_SHA256, - _swigc__p_cipher_SHA256s, - _swigc__p_cipher_SecKey, - _swigc__p_cipher_SecKeys, - _swigc__p_cipher_Sig, - _swigc__p_cipher__Address, - _swigc__p_cipher__BitcoinAddress, - _swigc__p_cli__SendAmount, - _swigc__p_coin_UxOutArray, - _swigc__p_coin__Block, - _swigc__p_coin__BlockBody, - _swigc__p_coin__BlockHeader, - _swigc__p_coin__SignedBlock, - _swigc__p_coin__Transaction, - _swigc__p_coin__TransactionOutput, - _swigc__p_coin__UxBody, - _swigc__p_coin__UxHead, - _swigc__p_coin__UxOut, - _swigc__p_double, - _swigc__p_encrypt__ScryptChacha20poly1305, - _swigc__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int, - _swigc__p_float, - _swigc__p_httphelper__Address, - _swigc__p_int, - _swigc__p_long_long, - _swigc__p_p_GoSlice_, - _swigc__p_p_coin__Block, - _swigc__p_p_coin__Transaction, - _swigc__p_secp256k1go__Field, - _swigc__p_secp256k1go__XY, - _swigc__p_secp256k1go__XYZ, - _swigc__p_short, - _swigc__p_signed_char, - _swigc__p_unsigned_char, - _swigc__p_unsigned_int, - _swigc__p_unsigned_long_long, - _swigc__p_unsigned_short, - _swigc__p_void, - _swigc__p_wallet__Balance, - _swigc__p_wallet__BalancePair, - _swigc__p_wallet__Entry, - _swigc__p_wallet__Note, - _swigc__p_wallet__ReadableNote, - _swigc__p_wallet__UxBalance, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif -/* ----------------------------------------------------------------------------- - * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to - * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of - * swig_module, and does all the lookup, filling in the swig_module.types - * array with the correct data and linking the correct swig_cast_info - * structures together. - * - * The generated swig_type_info structures are assigned statically to an initial - * array. We just loop through that array, and handle each type individually. - * First we lookup if this type has been already loaded, and if so, use the - * loaded structure instead of the generated one. Then we have to fill in the - * cast linked list. The cast data is initially stored in something like a - * two-dimensional array. Each row corresponds to a type (there are the same - * number of rows as there are in the swig_type_initial array). Each entry in - * a column is one of the swig_cast_info structures for that type. - * The cast_initial array is actually an array of arrays, because each row has - * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it - * adding the casts to the list. The one last trick we need to do is making - * sure the type pointer in the swig_cast_info struct is correct. - * - * First off, we lookup the cast->type name to see if it is already loaded. - * There are three cases to handle: - * 1) If the cast->type has already been loaded AND the type we are adding - * casting info to has not been loaded (it is in this module), THEN we - * replace the cast->type pointer with the type pointer that has already - * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the - * cast->type) are loaded, THEN the cast info has already been loaded by - * the previous module so we just ignore it. - * 3) Finally, if cast->type has not already been loaded, then we add that - * swig_cast_info to the linked list (because the cast->type) pointer will - * be correct. - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* c-mode */ -#endif -#endif - -#if 0 -#define SWIGRUNTIME_DEBUG -#endif - - -SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { - size_t i; - swig_module_info *module_head, *iter; - int init; - - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } - - /* Try and load any already created modules */ - module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - iter=module_head; - do { - if (iter==&swig_module) { - /* Our module is already in the list, so there's nothing more to do. */ - return; - } - iter=iter->next; - } while (iter!= module_head); - - /* otherwise we must add our module into the list */ - swig_module.next = module_head->next; - module_head->next = &swig_module; - } - - /* When multiple interpreters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - - /* Now work on filling in swig_module.types */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: size %d\n", swig_module.size); -#endif - for (i = 0; i < swig_module.size; ++i) { - swig_type_info *type = 0; - swig_type_info *ret; - swig_cast_info *cast; - -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); -#endif - - /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { - type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); - } - if (type) { - /* Overwrite clientdata field */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found type %s\n", type->name); -#endif - if (swig_module.type_initial[i]->clientdata) { - type->clientdata = swig_module.type_initial[i]->clientdata; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); -#endif - } - } else { - type = swig_module.type_initial[i]; - } - - /* Insert casting types */ - cast = swig_module.cast_initial[i]; - while (cast->type) { - /* Don't need to add information already in the list */ - ret = 0; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); -#endif - if (swig_module.next != &swig_module) { - ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); -#ifdef SWIGRUNTIME_DEBUG - if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); -#endif - } - if (ret) { - if (type == swig_module.type_initial[i]) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: skip old type %s\n", ret->name); -#endif - cast->type = ret; - ret = 0; - } else { - /* Check for casting already in the list */ - swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); -#ifdef SWIGRUNTIME_DEBUG - if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); -#endif - if (!ocast) ret = 0; - } - } - - if (!ret) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); -#endif - if (type->cast) { - type->cast->prev = cast; - cast->next = type->cast; - } - type->cast = cast; - } - cast++; - } - /* Set entry in modules->types array equal to the type */ - swig_module.types[i] = type; - } - swig_module.types[i] = 0; - -#ifdef SWIGRUNTIME_DEBUG - printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { - int j = 0; - swig_cast_info *cast = swig_module.cast_initial[i]; - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { - printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); - cast++; - ++j; - } - printf("---- Total casts: %d\n",j); - } - printf("**** SWIG_InitializeModule: Cast List ******\n"); -#endif -} - -/* This function will propagate the clientdata field of type to -* any new swig_type_info structures that have been added into the list -* of equivalent types. It is like calling -* SWIG_TypeClientData(type, clientdata) a second time. -*/ -SWIGRUNTIME void -SWIG_PropagateClientData(void) { - size_t i; - swig_cast_info *equiv; - static int init_run = 0; - - if (init_run) return; - init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { - equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { - if (equiv->type && !equiv->type->clientdata) - SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); - } - equiv = equiv->next; - } - } - } -} - -#ifdef __cplusplus -#if 0 -{ - /* c-mode */ -#endif -} -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - char *tmp; - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"swigvarlink", /* tp_name */ - sizeof(swig_varlinkobject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor) swig_varlink_dealloc, /* tp_dealloc */ - (printfunc) swig_varlink_print, /* tp_print */ - (getattrfunc) swig_varlink_getattr, /* tp_getattr */ - (setattrfunc) swig_varlink_setattr, /* tp_setattr */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version_tag */ -#endif -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ -#if PY_VERSION_HEX >= 0x02050000 - 0, /* tp_prev */ -#endif - 0 /* tp_next */ -#endif - }; - varlink_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - varlink_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&varlink_type) < 0) - return NULL; -#endif - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (!c) continue; - c = strstr(c, "swig_ptr: "); - if (c) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d, *md; -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { -# if PY_VERSION_HEX >= 0x03020000 - PyModuleDef_HEAD_INIT, -# else - { - PyObject_HEAD_INIT(NULL) - NULL, /* m_init */ - 0, /* m_index */ - NULL, /* m_copy */ - }, -# endif - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; -#endif - -#if defined(SWIGPYTHON_BUILTIN) - static SwigPyClientData SwigPyObject_clientdata = { - 0, 0, 0, 0, 0, 0, 0 - }; - static PyGetSetDef this_getset_def = { - (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL - }; - static SwigPyGetSet thisown_getset_closure = { - (PyCFunction) SwigPyObject_own, - (PyCFunction) SwigPyObject_own - }; - static PyGetSetDef thisown_getset_def = { - (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure - }; - PyTypeObject *builtin_pytype; - int builtin_base_count; - swig_type_info *builtin_basetype; - PyObject *tuple; - PyGetSetDescrObject *static_getset; - PyTypeObject *metatype; - PyTypeObject *swigpyobject; - SwigPyClientData *cd; - PyObject *public_interface, *public_symbol; - PyObject *this_descr; - PyObject *thisown_descr; - PyObject *self = 0; - int i; - - (void)builtin_pytype; - (void)builtin_base_count; - (void)builtin_basetype; - (void)tuple; - (void)static_getset; - (void)self; - - /* Metaclass is used to implement static member variables */ - metatype = SwigPyObjectType(); - assert(metatype); -#endif - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); - -#if PY_VERSION_HEX >= 0x03000000 - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - - md = d = PyModule_GetDict(m); - (void)md; - - SWIG_InitializeModule(0); - -#ifdef SWIGPYTHON_BUILTIN - swigpyobject = SwigPyObject_TypeOnce(); - - SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - if (!cd) { - SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; - SwigPyObject_clientdata.pytype = swigpyobject; - } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) { - PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); -# if PY_VERSION_HEX >= 0x03000000 - return NULL; -# else - return; -# endif - } - - /* All objects have a 'this' attribute */ - this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); - (void)this_descr; - - /* All objects have a 'thisown' attribute */ - thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); - (void)thisown_descr; - - public_interface = PyList_New(0); - public_symbol = 0; - (void)public_symbol; - - PyDict_SetItemString(md, "__all__", public_interface); - Py_DECREF(public_interface); - for (i = 0; SwigMethods[i].ml_name != NULL; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); - for (i = 0; swig_const_table[i].name != 0; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); -#endif - - SWIG_InstallConstants(d,swig_const_table); - - SWIG_Python_SetConstant(d, "SKY_OK",SWIG_From_int((int)(0))); - SWIG_Python_SetConstant(d, "SKY_ERROR",SWIG_From_int((int)(0x7FFFFFFF))); - SWIG_Python_SetConstant(d, "SKY_BAD_HANDLE",SWIG_From_int((int)(0x7F000001))); - SWIG_Python_SetConstant(d, "SKY_INVALID_TIMESTRING",SWIG_From_int((int)(0x7F000002))); - SWIG_Python_SetConstant(d, "SKY_PKG_API",SWIG_From_int((int)(0x01000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_CIPHER",SWIG_From_int((int)(0x02000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_CLI",SWIG_From_int((int)(0x03000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_COIN",SWIG_From_int((int)(0x04000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_CONSENSUS",SWIG_From_int((int)(0x05000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_DAEMON",SWIG_From_int((int)(0x06000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_GUI",SWIG_From_int((int)(0x07000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_SKYCOIN",SWIG_From_int((int)(0x08000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_UTIL",SWIG_From_int((int)(0x09000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_VISOR",SWIG_From_int((int)(0x0A000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_WALLET",SWIG_From_int((int)(0x0B000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_PARAMS",SWIG_From_int((int)(0x0C000000))); - SWIG_Python_SetConstant(d, "SKY_PKG_LIBCGO",SWIG_From_int((int)(0x7F000000))); - SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidLength",SWIG_From_int((int)(0x02000000))); - SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidChecksum",SWIG_From_int((int)(0x02000001))); - SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidVersion",SWIG_From_int((int)(0x02000002))); - SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidPubKey",SWIG_From_int((int)(0x02000003))); - SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidFirstByte",SWIG_From_int((int)(0x02000004))); - SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidLastByte",SWIG_From_int((int)(0x02000005))); - SWIG_Python_SetConstant(d, "SKY_ErrBufferUnderflow",SWIG_From_int((int)(0x02000006))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidOmitEmpty",SWIG_From_int((int)(0x02000007))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthPubKey",SWIG_From_int((int)(0x02000008))); - SWIG_Python_SetConstant(d, "SKY_ErrPubKeyFromNullSecKey",SWIG_From_int((int)(0x02000009))); - SWIG_Python_SetConstant(d, "SKY_ErrPubKeyFromBadSecKey",SWIG_From_int((int)(0x0200000A))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthSecKey",SWIG_From_int((int)(0x0200000B))); - SWIG_Python_SetConstant(d, "SKY_ErrECHDInvalidPubKey",SWIG_From_int((int)(0x0200000C))); - SWIG_Python_SetConstant(d, "SKY_ErrECHDInvalidSecKey",SWIG_From_int((int)(0x0200000D))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthSig",SWIG_From_int((int)(0x0200000E))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthRipemd160",SWIG_From_int((int)(0x0200000F))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthSHA256",SWIG_From_int((int)(0x02000010))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidBase58Char",SWIG_From_int((int)(0x02000011))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidBase58String",SWIG_From_int((int)(0x02000012))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidBase58Length",SWIG_From_int((int)(0x02000013))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidHexLength",SWIG_From_int((int)(0x02000014))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidBytesLength",SWIG_From_int((int)(0x02000015))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidPubKey",SWIG_From_int((int)(0x02000016))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSecKey",SWIG_From_int((int)(0x02000017))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigPubKeyRecovery",SWIG_From_int((int)(0x02000018))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSecKeyHex",SWIG_From_int((int)(0x02000019))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidAddressForSig",SWIG_From_int((int)(0x0200001A))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidHashForSig",SWIG_From_int((int)(0x0200001B))); - SWIG_Python_SetConstant(d, "SKY_ErrPubKeyRecoverMismatch",SWIG_From_int((int)(0x0200001C))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigInvalidPubKey",SWIG_From_int((int)(0x0200001D))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigValidity",SWIG_From_int((int)(0x0200001E))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigForMessage",SWIG_From_int((int)(0x0200001F))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSecKyVerification",SWIG_From_int((int)(0x02000020))); - SWIG_Python_SetConstant(d, "SKY_ErrNullPubKeyFromSecKey",SWIG_From_int((int)(0x02000021))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidDerivedPubKeyFromSecKey",SWIG_From_int((int)(0x02000022))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidPubKeyFromHash",SWIG_From_int((int)(0x02000023))); - SWIG_Python_SetConstant(d, "SKY_ErrPubKeyFromSecKeyMismatch",SWIG_From_int((int)(0x02000024))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidLength",SWIG_From_int((int)(0x02000025))); - SWIG_Python_SetConstant(d, "SKY_ErrBitcoinWIFInvalidFirstByte",SWIG_From_int((int)(0x02000026))); - SWIG_Python_SetConstant(d, "SKY_ErrBitcoinWIFInvalidSuffix",SWIG_From_int((int)(0x02000027))); - SWIG_Python_SetConstant(d, "SKY_ErrBitcoinWIFInvalidChecksum",SWIG_From_int((int)(0x02000028))); - SWIG_Python_SetConstant(d, "SKY_ErrEmptySeed",SWIG_From_int((int)(0x02000029))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidSig",SWIG_From_int((int)(0x0200002A))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingPassword",SWIG_From_int((int)(0x0200002B))); - SWIG_Python_SetConstant(d, "SKY_ErrDataTooLarge",SWIG_From_int((int)(0x0200002C))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidChecksumLength",SWIG_From_int((int)(0x0200002D))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidChecksum",SWIG_From_int((int)(0x0200002E))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidNonceLength",SWIG_From_int((int)(0x0200002F))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidBlockSize",SWIG_From_int((int)(0x02000030))); - SWIG_Python_SetConstant(d, "SKY_ErrReadDataHashFailed",SWIG_From_int((int)(0x02000031))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidPassword",SWIG_From_int((int)(0x02000032))); - SWIG_Python_SetConstant(d, "SKY_ErrReadDataLengthFailed",SWIG_From_int((int)(0x02000033))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidDataLength",SWIG_From_int((int)(0x02000034))); - SWIG_Python_SetConstant(d, "SKY_ErrTemporaryInsufficientBalance",SWIG_From_int((int)(0x03000000))); - SWIG_Python_SetConstant(d, "SKY_ErrAddress",SWIG_From_int((int)(0x03000001))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletName",SWIG_From_int((int)(0x03000002))); - SWIG_Python_SetConstant(d, "SKY_ErrJSONMarshal",SWIG_From_int((int)(0x03000003))); - SWIG_Python_SetConstant(d, "SKY_WalletLoadError",SWIG_From_int((int)(0x03000004))); - SWIG_Python_SetConstant(d, "SKY_WalletSaveError",SWIG_From_int((int)(0x03000005))); - SWIG_Python_SetConstant(d, "SKY_ErrAddEarnedCoinHoursAdditionOverflow",SWIG_From_int((int)(0x04000000))); - SWIG_Python_SetConstant(d, "SKY_ErrUint64MultOverflow",SWIG_From_int((int)(0x04000001))); - SWIG_Python_SetConstant(d, "SKY_ErrUint64AddOverflow",SWIG_From_int((int)(0x04000002))); - SWIG_Python_SetConstant(d, "SKY_ErrUint32AddOverflow",SWIG_From_int((int)(0x04000003))); - SWIG_Python_SetConstant(d, "SKY_ErrUint64OverflowsInt64",SWIG_From_int((int)(0x04000004))); - SWIG_Python_SetConstant(d, "SKY_ErrInt64UnderflowsUint64",SWIG_From_int((int)(0x04000005))); - SWIG_Python_SetConstant(d, "SKY_ErrIntUnderflowsUint32",SWIG_From_int((int)(0x04000006))); - SWIG_Python_SetConstant(d, "SKY_ErrIntOverflowsUint32",SWIG_From_int((int)(0x04000007))); - SWIG_Python_SetConstant(d, "SKY_ErrPeerlistFull",SWIG_From_int((int)(0x06000000))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidAddress",SWIG_From_int((int)(0x06000001))); - SWIG_Python_SetConstant(d, "SKY_ErrNoLocalhost",SWIG_From_int((int)(0x06000002))); - SWIG_Python_SetConstant(d, "SKY_ErrNotExternalIP",SWIG_From_int((int)(0x06000003))); - SWIG_Python_SetConstant(d, "SKY_ErrPortTooLow",SWIG_From_int((int)(0x06000004))); - SWIG_Python_SetConstant(d, "SKY_ErrBlacklistedAddress",SWIG_From_int((int)(0x06000005))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectWriteFailed",SWIG_From_int((int)(0x06000007))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectSetReadDeadlineFailed",SWIG_From_int((int)(0x06000008))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectInvalidMessageLength",SWIG_From_int((int)(0x06000009))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectMalformedMessage",SWIG_From_int((int)(0x0600000A))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectUnknownMessage",SWIG_From_int((int)(0x0600000B))); - SWIG_Python_SetConstant(d, "SKY_ErrConnectionPoolClosed",SWIG_From_int((int)(0x0600000D))); - SWIG_Python_SetConstant(d, "SKY_ErrWriteQueueFull",SWIG_From_int((int)(0x0600000E))); - SWIG_Python_SetConstant(d, "SKY_ErrNoReachableConnections",SWIG_From_int((int)(0x0600000F))); - SWIG_Python_SetConstant(d, "SKY_ErrMaxDefaultConnectionsReached",SWIG_From_int((int)(0x06000010))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectVersionNotSupported",SWIG_From_int((int)(0x06000011))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIntroductionTimeout",SWIG_From_int((int)(0x06000012))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIsBlacklisted",SWIG_From_int((int)(0x06000014))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectSelf",SWIG_From_int((int)(0x06000015))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectConnectedTwice",SWIG_From_int((int)(0x06000016))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIdle",SWIG_From_int((int)(0x06000017))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectNoIntroduction",SWIG_From_int((int)(0x06000018))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIPLimitReached",SWIG_From_int((int)(0x06000019))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectMaxDefaultConnectionReached",SWIG_From_int((int)(0x0600001B))); - SWIG_Python_SetConstant(d, "SKY_ErrDisconnectMaxOutgoingConnectionsReached",SWIG_From_int((int)(0x0600001C))); - SWIG_Python_SetConstant(d, "SKY_ConnectionError",SWIG_From_int((int)(0x0600001D))); - SWIG_Python_SetConstant(d, "SKY_ErrTxnNoFee",SWIG_From_int((int)(0x09000000))); - SWIG_Python_SetConstant(d, "SKY_ErrTxnInsufficientFee",SWIG_From_int((int)(0x09000001))); - SWIG_Python_SetConstant(d, "SKY_ErrTxnInsufficientCoinHours",SWIG_From_int((int)(0x09000002))); - SWIG_Python_SetConstant(d, "SKY_ErrNegativeValue",SWIG_From_int((int)(0x09000003))); - SWIG_Python_SetConstant(d, "SKY_ErrTooManyDecimals",SWIG_From_int((int)(0x09000004))); - SWIG_Python_SetConstant(d, "SKY_ErrTooLarge",SWIG_From_int((int)(0x09000005))); - SWIG_Python_SetConstant(d, "SKY_ErrEmptyDirectoryName",SWIG_From_int((int)(0x09000006))); - SWIG_Python_SetConstant(d, "SKY_ErrDotDirectoryName",SWIG_From_int((int)(0x09000007))); - SWIG_Python_SetConstant(d, "SKY_ErrHistoryDBCorrupted",SWIG_From_int((int)(0x0A000000))); - SWIG_Python_SetConstant(d, "SKY_ErrUxOutNotExist",SWIG_From_int((int)(0x0A000001))); - SWIG_Python_SetConstant(d, "SKY_ErrNoHeadBlock",SWIG_From_int((int)(0x0A000002))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingSignature",SWIG_From_int((int)(0x0A000003))); - SWIG_Python_SetConstant(d, "SKY_ErrUnspentNotExist",SWIG_From_int((int)(0x0A000004))); - SWIG_Python_SetConstant(d, "SKY_ErrVerifyStopped",SWIG_From_int((int)(0x0A000005))); - SWIG_Python_SetConstant(d, "SKY_ErrCreateBucketFailed",SWIG_From_int((int)(0x0A000000))); - SWIG_Python_SetConstant(d, "SKY_ErrBucketNotExist",SWIG_From_int((int)(0x0A000006))); - SWIG_Python_SetConstant(d, "SKY_ErrTxnViolatesHardConstraint",SWIG_From_int((int)(0x0A000007))); - SWIG_Python_SetConstant(d, "SKY_ErrTxnViolatesSoftConstraint",SWIG_From_int((int)(0x0A000008))); - SWIG_Python_SetConstant(d, "SKY_ErrTxnViolatesUserConstraint",SWIG_From_int((int)(0x0A000009))); - SWIG_Python_SetConstant(d, "SKY_ErrInsufficientBalance",SWIG_From_int((int)(0x0B000000))); - SWIG_Python_SetConstant(d, "SKY_ErrInsufficientHours",SWIG_From_int((int)(0x0B000001))); - SWIG_Python_SetConstant(d, "SKY_ErrZeroSpend",SWIG_From_int((int)(0x0B000002))); - SWIG_Python_SetConstant(d, "SKY_ErrSpendingUnconfirmed",SWIG_From_int((int)(0x0B000003))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidEncryptedField",SWIG_From_int((int)(0x0B000004))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletEncrypted",SWIG_From_int((int)(0x0B000005))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletNotEncrypted",SWIG_From_int((int)(0x0B000006))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletMissingPassword",SWIG_From_int((int)(0x0B000007))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingEncrypt",SWIG_From_int((int)(0x0B000008))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletInvalidPassword",SWIG_From_int((int)(0x0B000009))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingSeed",SWIG_From_int((int)(0x0B00000A))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingAuthenticated",SWIG_From_int((int)(0x0B00000B))); - SWIG_Python_SetConstant(d, "SKY_ErrWrongCryptoType",SWIG_From_int((int)(0x0B00000C))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletNotExist",SWIG_From_int((int)(0x0B00000D))); - SWIG_Python_SetConstant(d, "SKY_ErrSeedUsed",SWIG_From_int((int)(0x0B00000E))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletAPIDisabled",SWIG_From_int((int)(0x0B00000F))); - SWIG_Python_SetConstant(d, "SKY_ErrSeedAPIDisabled",SWIG_From_int((int)(0x0B000010))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletNameConflict",SWIG_From_int((int)(0x0B000011))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelectionMode",SWIG_From_int((int)(0x0B000012))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelectionType",SWIG_From_int((int)(0x0B000013))); - SWIG_Python_SetConstant(d, "SKY_ErrUnknownAddress",SWIG_From_int((int)(0x0B000014))); - SWIG_Python_SetConstant(d, "SKY_ErrUnknownUxOut",SWIG_From_int((int)(0x0B000015))); - SWIG_Python_SetConstant(d, "SKY_ErrNoUnspents",SWIG_From_int((int)(0x0B000016))); - SWIG_Python_SetConstant(d, "SKY_ErrNullChangeAddress",SWIG_From_int((int)(0x0B000017))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingTo",SWIG_From_int((int)(0x0B000018))); - SWIG_Python_SetConstant(d, "SKY_ErrZeroCoinsTo",SWIG_From_int((int)(0x0B000019))); - SWIG_Python_SetConstant(d, "SKY_ErrNullAddressTo",SWIG_From_int((int)(0x0B00001A))); - SWIG_Python_SetConstant(d, "SKY_ErrDuplicateTo",SWIG_From_int((int)(0x0B00001B))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingWalletID",SWIG_From_int((int)(0x0B00001C))); - SWIG_Python_SetConstant(d, "SKY_ErrIncludesNullAddress",SWIG_From_int((int)(0x0B00001D))); - SWIG_Python_SetConstant(d, "SKY_ErrDuplicateAddresses",SWIG_From_int((int)(0x0B00001E))); - SWIG_Python_SetConstant(d, "SKY_ErrZeroToHoursAuto",SWIG_From_int((int)(0x0B00001F))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingModeAuto",SWIG_From_int((int)(0x0B000020))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelMode",SWIG_From_int((int)(0x0B000021))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidModeManual",SWIG_From_int((int)(0x0B000022))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelType",SWIG_From_int((int)(0x0B000023))); - SWIG_Python_SetConstant(d, "SKY_ErrMissingShareFactor",SWIG_From_int((int)(0x0B000024))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidShareFactor",SWIG_From_int((int)(0x0B000025))); - SWIG_Python_SetConstant(d, "SKY_ErrShareFactorOutOfRange",SWIG_From_int((int)(0x0B000026))); - SWIG_Python_SetConstant(d, "SKY_ErrWalletConstraint",SWIG_From_int((int)(0x0B000027))); - SWIG_Python_SetConstant(d, "SKY_ErrDuplicateUxOuts",SWIG_From_int((int)(0x0B000028))); - SWIG_Python_SetConstant(d, "SKY_ErrUnknownWalletID",SWIG_From_int((int)(0x0B000029))); - SWIG_Python_SetConstant(d, "SKY_ErrVerifySignatureInvalidInputsNils",SWIG_From_int((int)(0x0B000033))); - SWIG_Python_SetConstant(d, "SKY_ErrVerifySignatureInvalidSigLength",SWIG_From_int((int)(0x0B000034))); - SWIG_Python_SetConstant(d, "SKY_ErrVerifySignatureInvalidPubkeysLength",SWIG_From_int((int)(0x0B000035))); - SWIG_Python_SetConstant(d, "SKY_ErrInvalidDecimals",SWIG_From_int((int)(0x0C000000))); -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - diff --git a/lib/swig/swig/python_basic.i b/lib/swig/swig/python_basic.i index b6cf2aa3..826f3fe2 100644 --- a/lib/swig/swig/python_basic.i +++ b/lib/swig/swig/python_basic.i @@ -2,7 +2,7 @@ #define SWIG_PYTHON_STRICT_BYTE_CHAR %} -%typecheck(SWIG_TYPECHECK_STRING_ARRAY) coin__UxArray* { +%typecheck(SWIG_TYPECHECK_STRING_ARRAY) GoSlice* { $1 = PyList_Check($input) ? 1 : 0; } @@ -14,6 +14,15 @@ $1 = &temp; } +/*GoStrings* parameter to return as a list */ +%typemap(in, numinputs=0) (GoSlice* __return_strings) (GoSlice temp) { + temp.data = NULL; + temp.len = 0; + temp.cap = 0; + $1 = &temp; +} + + /*GoStrings* as function return typemap*/ %typemap(argout) (coin__UxArray* __return_strings) { int itoken; @@ -37,3 +46,27 @@ free( (void*)$1->data ); %append_output( list ); } + +/*GoStrings* as function return typemap*/ +%typemap(argout) (GoSlice_* __return_strings) { + int itoken; + PyObject *list = PyList_New(0); + GoString *iStr; + int ntokens = $1->len; + PyObject *py_string_tmp; + int py_err; + for (itoken = 0, iStr = (GoString *) $1->data; itoken< ntokens; ++itoken, ++iStr) { + if (iStr == NULL) break; + + /* convert C string to Python string */ + py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); + if (! py_string_tmp) return NULL; + + /* put Python string into the list */ + PyList_Append(list, py_string_tmp); + if (py_err == -1) return NULL; + } + if( $1->data != NULL) + free( (void*)$1->data ); + %append_output( list ); +} \ No newline at end of file diff --git a/lib/swig/swig/python_mem.i b/lib/swig/swig/python_mem.i index 962bb647..e1bcf2aa 100644 --- a/lib/swig/swig/python_mem.i +++ b/lib/swig/swig/python_mem.i @@ -6,10 +6,16 @@ $1 = PyInt_Check($input) ? 1 : 0; } +%typecheck(SWIG_TYPECHECK_INTEGER) Distribution__Handle { + $1 = PyInt_Check($input) ? 1 : 0; +} + %typecheck(SWIG_TYPECHECK_INTEGER) AddressUxOuts_Handle { $1 = PyInt_Check($input) ? 1 : 0; } + + #if defined(SWIGPYTHON) %include "python_seckeys.i" %include "python_pubkeys.i" @@ -114,16 +120,6 @@ } } -%rename(SKY_coin_Transaction_VerifyInput) wrap_SKY_coin_Transaction_VerifyInput; -%inline{ - GoUint32 wrap_SKY_coin_Transaction_VerifyInput(Transaction__Handle handle, coin_UxOutArray* __uxIn){ - GoSlice_ data; - data.data = __uxIn->data; - data.len = __uxIn->count; - data.cap = __uxIn->count; - return SKY_coin_Transaction_VerifyInput(handle, &data); - } -} %rename(SKY_coin_UxArray_HasDupes) wrap_SKY_coin_UxArray_HasDupes; %inline{ @@ -346,24 +342,35 @@ } -%rename(SKY_params_GetDistributionAddresses) wrap_SKY_params_GetDistributionAddresses; +%rename(SKY_params_Distribution_GetAddresses) wrap_SKY_params_Distribution_GetAddresses; %inline{ - void wrap_SKY_params_GetDistributionAddresses(coin__UxArray* __return_strings){ - SKY_params_GetDistributionAddresses(__return_strings); + GoUint32 wrap_SKY_params_Distribution_GetAddresses(Distribution__Handle _d, GoSlice_* __return_strings){ + + return SKY_params_Distribution_GetAddresses(_d,__return_strings); } } -%rename(SKY_params_GetUnlockedDistributionAddresses) wrap_SKY_params_GetUnlockedDistributionAddresses; +%rename(SKY_params_Distribution_UnlockedAddresses) wrap_SKY_params_Distribution_UnlockedAddresses; %inline{ - void wrap_SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* __return_strings){ - SKY_params_GetUnlockedDistributionAddresses(__return_strings); + GoUint32 wrap_SKY_params_Distribution_UnlockedAddresses(Distribution__Handle _d, GoSlice_* __return_strings){ + return SKY_params_Distribution_UnlockedAddresses(_d,__return_strings); } } -%rename(SKY_params_GetLockedDistributionAddresses) wrap_SKY_params_GetLockedDistributionAddresses; +%rename(SKY_params_Distribution_LockedAddresses) wrap_SKY_params_Distribution_LockedAddresses; %inline{ - void wrap_SKY_params_GetLockedDistributionAddresses(coin__UxArray* __return_strings){ - SKY_params_GetLockedDistributionAddresses(__return_strings); + GoUint32 wrap_SKY_params_Distribution_LockedAddresses(Distribution__Handle _d, GoSlice_* __return_strings){ + return SKY_params_Distribution_LockedAddresses(_d,__return_strings); } } +%rename(SKY_coin_VerifyInputSignatures) wrap_SKY_coin_VerifyInputSignatures; +%inline{ + GoUint32 wrap_SKY_coin_VerifyInputSignatures(Transaction__Handle handle, coin_UxOutArray* __uxIn){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_VerifyInputSignatures(handle, &data); + } +} \ No newline at end of file diff --git a/lib/swig/swig/structs.i b/lib/swig/swig/structs.i index 99c01275..53b5846a 100644 --- a/lib/swig/swig/structs.i +++ b/lib/swig/swig/structs.i @@ -1,4 +1,4 @@ - +// clang-format off %include "api.client.go.h" %include "cipher.hash.go.h" @@ -26,4 +26,9 @@ %include "wallet.entry.go.h" %include "wallet.notes.go.h" %include "wallet.wallet.go.h" +%include "wallet.crypto.go.h" + +%include "transaction.choose.go.h" +%include "api.send.go.h" +%include "cipher.bip32.path.go.h" \ No newline at end of file diff --git a/lib/swig/tests/test_cipher_address.py b/lib/swig/tests/test_cipher_address.py index dda10fea..e6ec99c3 100644 --- a/lib/swig/tests/test_cipher_address.py +++ b/lib/swig/tests/test_cipher_address.py @@ -1,24 +1,25 @@ import skycoin + def test_TestDecodeBase58Address(): public_key = skycoin.cipher_PubKey() secret_key = skycoin.cipher_SecKey() skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) address = skycoin.cipher__Address() skycoin.SKY_cipher_AddressFromPubKey(public_key, address) - err = skycoin.SKY_cipher_Address_Verify(address, public_key) + err = skycoin.SKY_cipher_Address_Verify(address, public_key) assert err == skycoin.SKY_OK address_2 = skycoin.cipher__Address() - err = skycoin.SKY_cipher_DecodeBase58Address(b'""', address_2) - assert err == skycoin.SKY_ErrInvalidBase58Char - err = skycoin.SKY_cipher_DecodeBase58Address(b'"cascs"', address_2) - assert err == skycoin.SKY_ErrInvalidBase58Char + err = skycoin.SKY_cipher_DecodeBase58Address(b'""', address_2) + assert err == skycoin.SKY_ERROR + err = skycoin.SKY_cipher_DecodeBase58Address(b'"cascs"', address_2) + assert err == skycoin.SKY_ERROR _, byte = skycoin.SKY_cipher_Address_Bytes(address) _, h = skycoin.SKY_base58_Hex2Base58(byte[:int(len(byte) / 2)]) - err = skycoin.SKY_cipher_DecodeBase58Address(h, address_2) + err = skycoin.SKY_cipher_DecodeBase58Address(h, address_2) assert err == skycoin.SKY_ErrAddressInvalidLength _, h = skycoin.SKY_base58_Hex2Base58(byte) - err = skycoin.SKY_cipher_DecodeBase58Address(h, address_2) + err = skycoin.SKY_cipher_DecodeBase58Address(h, address_2) assert err == skycoin.SKY_OK assert address == address_2 _, addres_str = skycoin.SKY_cipher_Address_String(address) @@ -28,19 +29,19 @@ def test_TestDecodeBase58Address(): # preceding whitespace is invalid addres_2_str = b'" " + a_str' err = skycoin.SKY_cipher_DecodeBase58Address(addres_2_str, address_2) - assert err == skycoin.SKY_ErrInvalidBase58Char + assert err == skycoin.SKY_ERROR # preceding zeroes are invalid addres_2_str = b'"000" + a_str' err = skycoin.SKY_cipher_DecodeBase58Address(addres_2_str, address_2) - assert err == skycoin.SKY_ErrInvalidBase58Char + assert err == skycoin.SKY_ERROR # trailing whitespace is invalid addres_2_str = b'a_str + " "' err = skycoin.SKY_cipher_DecodeBase58Address(addres_2_str, address_2) - assert err == skycoin.SKY_ErrInvalidBase58Char + assert err == skycoin.SKY_ERROR # trailing zeroes are invalid addres_2_str = b'a_str + "000"' err = skycoin.SKY_cipher_DecodeBase58Address(addres_2_str, address_2) - assert err == skycoin.SKY_ErrInvalidBase58Char + assert err == skycoin.SKY_ERROR def test_TestAddressFromBytes(): @@ -51,7 +52,7 @@ def test_TestAddressFromBytes(): skycoin.SKY_cipher_AddressFromPubKey(public_key, address) address_2 = skycoin.cipher__Address() _, byte = skycoin.SKY_cipher_Address_Bytes(address) - err = skycoin.SKY_cipher_AddressFromBytes(byte, address_2) + err = skycoin.SKY_cipher_AddressFromBytes(byte, address_2) assert err == skycoin.SKY_OK assert address == address_2 # Invalid number of bytes @@ -66,7 +67,7 @@ def test_TestAddressFromBytes(): assert err == skycoin.SKY_ErrAddressInvalidChecksum address.Version = 2 _, b = skycoin.SKY_cipher_Address_Bytes(address) - err = skycoin.SKY_cipher_AddressFromBytes(b, __) + err = skycoin.SKY_cipher_AddressFromBytes(b, __) assert err == skycoin.SKY_ErrAddressInvalidVersion @@ -78,7 +79,7 @@ def test_TestAddressRoundtrip(): address_2 = skycoin.cipher__Address() skycoin.SKY_cipher_AddressFromPubKey(public_key, address) _, byte = skycoin.skycoin.SKY_cipher_Address_Bytes(address) - err = skycoin.skycoin.SKY_cipher_AddressFromBytes (byte, address_2); + err = skycoin.skycoin.SKY_cipher_AddressFromBytes(byte, address_2) assert err == skycoin.SKY_OK assert address == address_2 _, addres_str = skycoin.SKY_cipher_Address_String(address) @@ -97,7 +98,7 @@ def test_TestAddressVerify(): assert err == skycoin.SKY_OK # Invalid pubkey public_key_temp = skycoin.cipher_PubKey() - err = skycoin.SKY_cipher_Address_Verify(address, public_key_temp) + err = skycoin.SKY_cipher_Address_Verify(address, public_key_temp) assert err == skycoin.SKY_ErrAddressInvalidPubKey skycoin.SKY_cipher_GenerateKeyPair(public_key_temp, secret_key) err = skycoin.SKY_cipher_Address_Verify(address, public_key_temp) @@ -126,11 +127,10 @@ def test_TestAddressString(): assert address_2 == addres_3 - - def test_TestBitcoinAddress2(): secret_key = skycoin.cipher_SecKey() - err = skycoin.SKY_cipher_SecKeyFromHex(b'dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd', secret_key) + err = skycoin.SKY_cipher_SecKeyFromHex( + b'dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd', secret_key) assert err == skycoin.SKY_OK public_key = skycoin.cipher_PubKey() skycoin.SKY_cipher_PubKeyFromSecKey(secret_key, public_key) @@ -140,13 +140,15 @@ def test_TestBitcoinAddress2(): bitcoin_srt = b'1NKRhS7iYUGTaAfaR5z8BueAJesqaTyc4a' bitcoin_addr = skycoin.cipher__BitcoinAddress() skycoin.SKY_cipher_BitcoinAddressFromPubKey(public_key, bitcoin_addr) - bitcoin_addr_str = skycoin.skycoin.SKY_cipher_BitcoinAddress_String(bitcoin_addr) + bitcoin_addr_str = skycoin.skycoin.SKY_cipher_BitcoinAddress_String( + bitcoin_addr) assert bitcoin_srt == bitcoin_addr_str def test_TestBitcoinAddress3(): secret_key = skycoin.cipher_SecKey() - err = skycoin.SKY_cipher_SecKeyFromHex(b'47f7616ea6f9b923076625b4488115de1ef1187f760e65f89eb6f4f7ff04b012', secret_key) + err = skycoin.SKY_cipher_SecKeyFromHex( + b'47f7616ea6f9b923076625b4488115de1ef1187f760e65f89eb6f4f7ff04b012', secret_key) assert err == skycoin.SKY_OK public_key = skycoin.cipher_PubKey() skycoin.SKY_cipher_PubKeyFromSecKey(secret_key, public_key) @@ -156,7 +158,8 @@ def test_TestBitcoinAddress3(): bitcoin_srt = b'19ck9VKC6KjGxR9LJg4DNMRc45qFrJguvV' bitcoin_addr = skycoin.cipher__BitcoinAddress() skycoin.SKY_cipher_BitcoinAddressFromPubKey(public_key, bitcoin_addr) - bitcoin_addr_str = skycoin.skycoin.SKY_cipher_BitcoinAddress_String(bitcoin_addr) + bitcoin_addr_str = skycoin.skycoin.SKY_cipher_BitcoinAddress_String( + bitcoin_addr) assert bitcoin_srt == bitcoin_addr_str @@ -173,7 +176,7 @@ def test_TestAddressBulk(): err = skycoin.SKY_cipher_Address_Verify(addres_1, public_key) assert err == skycoin.SKY_OK _, addres_str = skycoin.SKY_cipher_Address_String(addres_1) - err =skycoin.SKY_cipher_DecodeBase58Address(addres_str, address_2) + err = skycoin.SKY_cipher_DecodeBase58Address(addres_str, address_2) assert err == skycoin.SKY_OK assert addres_1 == address_2 diff --git a/lib/swig/tests/test_cipher_bip32.py b/lib/swig/tests/test_cipher_bip32.py new file mode 100755 index 00000000..96eff68f --- /dev/null +++ b/lib/swig/tests/test_cipher_bip32.py @@ -0,0 +1,844 @@ +import skycoin +import tests.utils as utils + +FirstHardenedChild = 0x80000000 + + +class testChildKey(): + path = b'' + privKey = b'' + pubKey = b'' + fingerprint = b'' + identifier = b'' + chainCode = b'' + hexPubKey = b'' + wifPrivKey = b'' + childNUmber = 0 + depth = 0 + + +class testMasterKey(): + seed = b'' + children = [] + privKey = b'' + pubKey = b'' + hexPubKey = b'' + wifPrivKey = b'' + fingerprint = b'' + identifier = b'' + chainCode = b'' + childNUmber = 0 + depth = 0 + depthNumber = 0 + + +def assertPrivateKeySerialization(key, expected): + err, expectedBytes = skycoin.SKY_base58_Decode(expected) + assert err == skycoin.SKY_OK + err, serialized = skycoin.SKY_bip32_PrivateKey_Serialize(key) + assert err == skycoin.SKY_OK + err, expectedStr = skycoin.SKY_base58_Encode(expectedBytes) + assert err == skycoin.SKY_OK + err, serializedStr = skycoin.SKY_base58_Encode(serialized) + assert err == skycoin.SKY_OK + assert expectedStr == expected + assert expectedStr == serializedStr + assert expectedBytes == serialized + err, key2 = skycoin.SKY_bip32_DeserializePrivateKey(serialized) + assert err == skycoin.SKY_OK + assert utils.isPrivateKeyEq(key, key2) == 1 + err, key3 = skycoin.SKY_bip32_DeserializeEncodedPrivateKey(expected) + assert err == skycoin.SKY_OK + assert utils.isPrivateKeyEq(key2, key3) == 1 + + +def assertPublicKeySerialization(key, expected): + err, expectedBytes = skycoin.SKY_base58_Decode(expected) + assert err == skycoin.SKY_OK + err, serialized = skycoin.SKY_bip32_PublicKey_Serialize(key) + assert err == skycoin.SKY_OK + assert expectedBytes == serialized + err, key2 = skycoin.SKY_bip32_DeserializePublicKey(serialized) + assert err == skycoin.SKY_OK + assert utils.isPublicKeyEq(key, key2) == 1 + err, key3 = skycoin.SKY_bip32_DeserializeEncodedPublicKey(expected) + assert err == skycoin.SKY_OK + assert utils.isPublicKeyEq(key3, key2) == 1 + + +def VectorKeyPairs(vector): + # Decode master seed into hex + err, seed = skycoin.SKY_base58_String2Hex(vector.seed) + assert err == skycoin.SKY_OK + # Generate a master private and public key + err, privKey = skycoin.SKY_bip32_NewMasterKey(seed) + assert err == skycoin.SKY_OK + err, pubKey = skycoin.SKY_bip32_PrivateKey_Publickey(privKey) + assert err == skycoin.SKY_OK + + err, depthPrivKey = skycoin.SKY_bip32_PrivateKey_GetDepth(privKey) + assert err == skycoin.SKY_OK + err, depthPubKey = skycoin.SKY_bip32_PublicKey_GetDepth(pubKey) + assert err == skycoin.SKY_OK + assert 0 == depthPubKey + assert 0 == depthPrivKey + + err, privchildNumber = skycoin.SKY_bip32_PrivateKey_ChildNumber(privKey) + assert err == skycoin.SKY_OK + err, pubchildNumber = skycoin.SKY_bip32_PublicKey_ChildNumber(pubKey) + assert err == skycoin.SKY_OK + assert 0 == privchildNumber + assert 0 == pubchildNumber + + err, privStr = skycoin.SKY_bip32_PrivateKey_String(privKey) + assert err == skycoin.SKY_OK + assert vector.privKey == privStr + err, pubStr = skycoin.SKY_bip32_PublicKey_String(pubKey) + assert err == skycoin.SKY_OK + assert pubStr == vector.pubKey + + err, pub_key = skycoin.SKY_bip32_PublicKey_GetKey(pubKey) + assert err == skycoin.SKY_OK + err, pub_keyStr = skycoin.SKY_base58_Hex2String(pub_key) + assert err == skycoin.SKY_OK + assert vector.hexPubKey == pub_keyStr + + err, priv_ChainCode = skycoin.SKY_bip32_PrivateKey_GetChainCode(privKey) + assert err == skycoin.SKY_OK + err, priv_ChainCodeStr = skycoin.SKY_base58_Hex2String(priv_ChainCode) + assert err == skycoin.SKY_OK + assert vector.chainCode == priv_ChainCodeStr + err, pub_ChainCode = skycoin.SKY_bip32_PublicKey_GetChainCode(pubKey) + assert err == skycoin.SKY_OK + err, priv_ChainCodeStr = skycoin.SKY_base58_Hex2String(priv_ChainCode) + assert err == skycoin.SKY_OK + assert vector.chainCode == priv_ChainCodeStr + + assertPrivateKeySerialization(privKey, vector.privKey) + assertPublicKeySerialization(pubKey, vector.pubKey) + + err, b58pk = skycoin.SKY_base58_Decode(vector.privKey) + assert err == skycoin.SKY_OK + err, privKey2 = skycoin.SKY_bip32_DeserializePrivateKey(b58pk) + assert err == skycoin.SKY_OK + assert utils.isPrivateKeyEq(privKey, privKey2) == 1 + + # Test that DeserializeEncodedPrivateKey + # is equivalent to DeserializePrivateKey(base58.Decode(key)) + err, privKey3 = skycoin.SKY_bip32_DeserializeEncodedPrivateKey( + vector.privKey) + assert err == skycoin.SKY_OK + assert utils.isPrivateKeyEq(privKey2, privKey3) + print(len(vector.children)) + for tck in vector.children: + print("## Depth ", tck.depth) + err, privkey1 = skycoin.SKY_bip32_NewPrivateKeyFromPath(seed, tck.path) + assert err == skycoin.SKY_OK + # Get this private key's public key + err, pubkey1 = skycoin.SKY_bip32_PrivateKey_Publickey(privkey1) + assert err == skycoin.SKY_OK + err, ppk = skycoin.SKY_base58_Decode(tck.privKey) + assert err == skycoin.SKY_OK + err, xx = skycoin.SKY_bip32_DeserializePrivateKey(ppk) + assert err == skycoin.SKY_OK + assert utils.isPrivateKeyEq(xx, privkey1) + err, stringPrivKey = skycoin.SKY_bip32_PrivateKey_String(privkey1) + assert err == skycoin.SKY_OK + assert stringPrivKey == tck.privKey + err, stringPubKey = skycoin.SKY_bip32_PublicKey_String(pubkey1) + assert err == skycoin.SKY_OK + assert stringPubKey == tck.pubKey + + err, privChainCode = skycoin.SKY_bip32_PrivateKey_GetChainCode( + privkey1) + assert err == skycoin.SKY_OK + err, priv_ChainCode = skycoin.SKY_base58_Hex2String(privChainCode) + assert priv_ChainCode == tck.chainCode + assert err == skycoin.SKY_OK + err, pubChainCode = skycoin.SKY_bip32_PublicKey_GetChainCode(pubkey1) + assert err == skycoin.SKY_OK + err, pub_ChainCode = skycoin.SKY_base58_Hex2String(pubChainCode) + assert pub_ChainCode == tck.chainCode + + err, privFringerprint = skycoin.SKY_bip32_PrivateKey_Fingerprint( + privkey1) + assert err == skycoin.SKY_OK + err, priv_Fringerprint = skycoin.SKY_base58_Hex2String( + privFringerprint) + assert err == skycoin.SKY_OK + assert priv_Fringerprint == tck.fingerprint + err, pubFringerprint = skycoin.SKY_bip32_PublicKey_Fingerprint(pubkey1) + assert err == skycoin.SKY_OK + err, pub_Fringerprint = skycoin.SKY_base58_Hex2String(pubFringerprint) + assert pub_Fringerprint == tck.fingerprint + + err, privIdentifier = skycoin.SKY_bip32_PrivateKey_Identifier(privkey1) + assert err == skycoin.SKY_OK + err, priv_Identifier = skycoin.SKY_base58_Hex2String(privIdentifier) + assert err == skycoin.SKY_OK + assert priv_Identifier == tck.identifier + err, pubIdentifier = skycoin.SKY_bip32_PublicKey_Identifier(pubkey1) + assert err == skycoin.SKY_OK + err, pub_Identifier = skycoin.SKY_base58_Hex2String(pubIdentifier) + assert err == skycoin.SKY_OK + assert pub_Identifier == tck.identifier + + err, privDepth = skycoin.SKY_bip32_PrivateKey_GetDepth(privkey1) + assert err == skycoin.SKY_OK + err, pubDepth = skycoin.SKY_bip32_PublicKey_GetDepth(pubkey1) + assert err == skycoin.SKY_OK + assert tck.depth == privDepth + assert tck.depth == pubDepth + + err, privchildNumber = skycoin.SKY_bip32_PrivateKey_ChildNumber( + privkey1) + assert err == skycoin.SKY_OK + assert tck.childNUmber == privchildNumber + + err, pubchildNumber = skycoin.SKY_bip32_PublicKey_ChildNumber(pubkey1) + assert err == skycoin.SKY_OK + assert tck.childNUmber == pubchildNumber + + # Serialize and deserialize both keys and ensure they're the same + assertPrivateKeySerialization(privkey1, tck.privKey) + assertPublicKeySerialization(pubkey1, tck.pubKey) + + +def test_TestBip32TestVectors(): + vector = [] + + vector1 = testMasterKey() + vector1.seed = b'000102030405060708090a0b0c0d0e0f' + vector1.privKey = b"xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi" + vector1.pubKey = b"xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8" + vector1.hexPubKey = b'0339a36013301597daef41fbe593a02cc513d0b55527ec2df1050e2e8ff49c85c2' + vector1.wifPrivKey = b'L52XzL2cMkHxqxBXRyEpnPQZGUs3uKiL3R11XbAdHigRzDozKZeW' + vector1.fingerprint = b'3442193e' + vector1.identifier = b'3442193e1bb70916e914552172cd4e2dbc9df811' + vector1.chainCode = b'873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508' + vector1.childNUmber = 0 + vector1.depth = 0 + + vector1.children = [] + children = testChildKey() + children.path = b"m/0'" + children.privKey = b'xprv9uHRZZhk6KAJC1avXpDAp4MDc3sQKNxDiPvvkX8Br5ngLNv1TxvUxt4cV1rGL5hj6KCesnDYUhd7oWgT11eZG7XnxHrnYeSvkzY7d2bhkJ7' + children.pubKey = b'xpub68Gmy5EdvgibQVfPdqkBBCHxA5htiqg55crXYuXoQRKfDBFA1WEjWgP6LHhwBZeNK1VTsfTFUHCdrfp1bgwQ9xv5ski8PX9rL2dZXvgGDnw' + children.fingerprint = b'5c1bd648' + children.identifier = b'5c1bd648ed23aa5fd50ba52b2457c11e9e80a6a7' + children.chainCode = b'47fdacbd0f1097043b78c63c20c34ef4ed9a111d980047ad16282c7ae6236141' + children.hexPubKey = b'035a784662a4a20a65bf6aab9ae98a6c068a81c52e4b032c0fb5400c706cfccc56' + children.wifPrivKey = b'L5BmPijJjrKbiUfG4zbiFKNqkvuJ8usooJmzuD7Z8dkRoTThYnAT' + children.childNUmber = 2147483648 + children.depth = 1 + vector1.children.append(children) + + children = testChildKey() + children.path = b"m/0'/1" + children.privKey = b"xprv9wTYmMFdV23N2TdNG573QoEsfRrWKQgWeibmLntzniatZvR9BmLnvSxqu53Kw1UmYPxLgboyZQaXwTCg8MSY3H2EU4pWcQDnRnrVA1xe8fs" + children.pubKey = b"xpub6ASuArnXKPbfEwhqN6e3mwBcDTgzisQN1wXN9BJcM47sSikHjJf3UFHKkNAWbWMiGj7Wf5uMash7SyYq527Hqck2AxYysAA7xmALppuCkwQ" + children.fingerprint = b"bef5a2f9" + children.identifier = b"bef5a2f9a56a94aab12459f72ad9cf8cf19c7bbe" + children.chainCode = b"2a7857631386ba23dacac34180dd1983734e444fdbf774041578e9b6adb37c19" + children.hexPubKey = b"03501e454bf00751f24b1b489aa925215d66af2234e3891c3b21a52bedb3cd711c" + children.wifPrivKey = b"KyFAjQ5rgrKvhXvNMtFB5PCSKUYD1yyPEe3xr3T34TZSUHycXtMM" + children.depth = 2 + children.childNUmber = 1 + vector1.children.append(children) + + children = testChildKey() + children.path = b"m/0'/1/2'" + children.privKey = b"xprv9z4pot5VBttmtdRTWfWQmoH1taj2axGVzFqSb8C9xaxKymcFzXBDptWmT7FwuEzG3ryjH4ktypQSAewRiNMjANTtpgP4mLTj34bhnZX7UiM" + children.pubKey = b"xpub6D4BDPcP2GT577Vvch3R8wDkScZWzQzMMUm3PWbmWvVJrZwQY4VUNgqFJPMM3No2dFDFGTsxxpG5uJh7n7epu4trkrX7x7DogT5Uv6fcLW5" + children.fingerprint = b"ee7ab90c" + children.identifier = b"ee7ab90cde56a8c0e2bb086ac49748b8db9dce72" + children.chainCode = b"04466b9cc8e161e966409ca52986c584f07e9dc81f735db683c3ff6ec7b1503f" + children.hexPubKey = b"0357bfe1e341d01c69fe5654309956cbea516822fba8a601743a012a7896ee8dc2" + children.wifPrivKey = b"L43t3od1Gh7Lj55Bzjj1xDAgJDcL7YFo2nEcNaMGiyRZS1CidBVU" + children.childNUmber = 2 + FirstHardenedChild + children.depth = 3 + vector1.children.append(children) + + children = testChildKey() + children.path = b"m/0'/1/2'/2" + children.privKey = b"xprvA2JDeKCSNNZky6uBCviVfJSKyQ1mDYahRjijr5idH2WwLsEd4Hsb2Tyh8RfQMuPh7f7RtyzTtdrbdqqsunu5Mm3wDvUAKRHSC34sJ7in334" + children.pubKey = b"xpub6FHa3pjLCk84BayeJxFW2SP4XRrFd1JYnxeLeU8EqN3vDfZmbqBqaGJAyiLjTAwm6ZLRQUMv1ZACTj37sR62cfN7fe5JnJ7dh8zL4fiyLHV" + children.fingerprint = b"d880d7d8" + children.identifier = b"d880d7d893848509a62d8fb74e32148dac68412f" + children.chainCode = b"cfb71883f01676f587d023cc53a35bc7f88f724b1f8c2892ac1275ac822a3edd" + children.hexPubKey = b"02e8445082a72f29b75ca48748a914df60622a609cacfce8ed0e35804560741d29" + children.wifPrivKey = b"KwjQsVuMjbCP2Zmr3VaFaStav7NvevwjvvkqrWd5Qmh1XVnCteBR" + children.childNUmber = 2 + children.depth = 4 + vector1.children.append(children) + + children = testChildKey() + children.path = b"m/0'/1/2'/2/1000000000" + children.privKey = b"xprvA41z7zogVVwxVSgdKUHDy1SKmdb533PjDz7J6N6mV6uS3ze1ai8FHa8kmHScGpWmj4WggLyQjgPie1rFSruoUihUZREPSL39UNdE3BBDu76" + children.pubKey = b"xpub6H1LXWLaKsWFhvm6RVpEL9P4KfRZSW7abD2ttkWP3SSQvnyA8FSVqNTEcYFgJS2UaFcxupHiYkro49S8yGasTvXEYBVPamhGW6cFJodrTHy" + children.fingerprint = b"d69aa102" + children.identifier = b"d69aa102255fed74378278c7812701ea641fdf32" + children.chainCode = b"c783e67b921d2beb8f6b389cc646d7263b4145701dadd2161548a8b078e65e9e" + children.hexPubKey = b"022a471424da5e657499d1ff51cb43c47481a03b1e77f951fe64cec9f5a48f7011" + children.wifPrivKey = b"Kybw8izYevo5xMh1TK7aUr7jHFCxXS1zv8p3oqFz3o2zFbhRXHYs" + children.childNUmber = 1000000000 + children.depth = 5 + vector1.children.append(children) + + vector.append(vector1) + + vector2 = testMasterKey() + vector2.seed = b"fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542" + vector2.privKey = b"xprv9s21ZrQH143K31xYSDQpPDxsXRTUcvj2iNHm5NUtrGiGG5e2DtALGdso3pGz6ssrdK4PFmM8NSpSBHNqPqm55Qn3LqFtT2emdEXVYsCzC2U" + vector2.pubKey = b"xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB" + vector2.fingerprint = b"bd16bee5" + vector2.identifier = b"bd16bee53961a47d6ad888e29545434a89bdfe95" + vector2.chainCode = b"60499f801b896d83179a4374aeb7822aaeaceaa0db1f85ee3e904c4defbd9689" + vector2.hexPubKey = b"03cbcaa9c98c877a26977d00825c956a238e8dddfbd322cce4f74b0b5bd6ace4a7" + vector2.wifPrivKey = b"KyjXhyHF9wTphBkfpxjL8hkDXDUSbE3tKANT94kXSyh6vn6nKaoy" + vector2.children = [] + + children = testChildKey() + children.path = b"m/0" + children.privKey = b"xprv9vHkqa6EV4sPZHYqZznhT2NPtPCjKuDKGY38FBWLvgaDx45zo9WQRUT3dKYnjwih2yJD9mkrocEZXo1ex8G81dwSM1fwqWpWkeS3v86pgKt" + children.pubKey = b"xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH" + children.fingerprint = b"5a61ff8e" + children.identifier = b"5a61ff8eb7aaca3010db97ebda76121610b78096" + children.chainCode = b"f0909affaa7ee7abe5dd4e100598d4dc53cd709d5a5c2cac40e7412f232f7c9c" + children.hexPubKey = b"02fc9e5af0ac8d9b3cecfe2a888e2117ba3d089d8585886c9c826b6b22a98d12ea" + children.wifPrivKey = b"L2ysLrR6KMSAtx7uPqmYpoTeiRzydXBattRXjXz5GDFPrdfPzKbj" + children.childNUmber = 0 + children.depth = 1 + vector2.children.append(children) + + children = testChildKey() + children.path = b"m/0/2147483647'" + children.privKey = b"xprv9wSp6B7kry3Vj9m1zSnLvN3xH8RdsPP1Mh7fAaR7aRLcQMKTR2vidYEeEg2mUCTAwCd6vnxVrcjfy2kRgVsFawNzmjuHc2YmYRmagcEPdU9" + children.pubKey = b"xpub6ASAVgeehLbnwdqV6UKMHVzgqAG8Gr6riv3Fxxpj8ksbH9ebxaEyBLZ85ySDhKiLDBrQSARLq1uNRts8RuJiHjaDMBU4Zn9h8LZNnBC5y4a" + children.fingerprint = b"d8ab4937" + children.identifier = b"d8ab493736da02f11ed682f88339e720fb0379d1" + children.chainCode = b"be17a268474a6bb9c61e1d720cf6215e2a88c5406c4aee7b38547f585c9a37d9" + children.hexPubKey = b"03c01e7425647bdefa82b12d9bad5e3e6865bee0502694b94ca58b666abc0a5c3b" + children.wifPrivKey = b"L1m5VpbXmMp57P3knskwhoMTLdhAAaXiHvnGLMribbfwzVRpz2Sr" + children.childNUmber = 2147483647 + FirstHardenedChild + children.depth = 2 + vector2.children.append(children) + + children = testChildKey() + children.path = b"m/0/2147483647'/1" + children.privKey = b"xprv9zFnWC6h2cLgpmSA46vutJzBcfJ8yaJGg8cX1e5StJh45BBciYTRXSd25UEPVuesF9yog62tGAQtHjXajPPdbRCHuWS6T8XA2ECKADdw4Ef" + children.pubKey = b"xpub6DF8uhdarytz3FWdA8TvFSvvAh8dP3283MY7p2V4SeE2wyWmG5mg5EwVvmdMVCQcoNJxGoWaU9DCWh89LojfZ537wTfunKau47EL2dhHKon" + children.fingerprint = b"78412e3a" + children.identifier = b"78412e3a2296a40de124307b6485bd19833e2e34" + children.chainCode = b"f366f48f1ea9f2d1d3fe958c95ca84ea18e4c4ddb9366c336c927eb246fb38cb" + children.hexPubKey = b"03a7d1d856deb74c508e05031f9895dab54626251b3806e16b4bd12e781a7df5b9" + children.wifPrivKey = b"KzyzXnznxSv249b4KuNkBwowaN3akiNeEHy5FWoPCJpStZbEKXN2" + children.childNUmber = 1 + children.depth = 3 + vector2.children.append(children) + + children = testChildKey() + children.path = b"m/0/2147483647'/1/2147483646'" + children.privKey = b"xprvA1RpRA33e1JQ7ifknakTFpgNXPmW2YvmhqLQYMmrj4xJXXWYpDPS3xz7iAxn8L39njGVyuoseXzU6rcxFLJ8HFsTjSyQbLYnMpCqE2VbFWc" + children.pubKey = b"xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL" + children.fingerprint = b"31a507b8" + children.identifier = b"31a507b815593dfc51ffc7245ae7e5aee304246e" + children.chainCode = b"637807030d55d01f9a0cb3a7839515d796bd07706386a6eddf06cc29a65a0e29" + children.hexPubKey = b"02d2b36900396c9282fa14628566582f206a5dd0bcc8d5e892611806cafb0301f0" + children.wifPrivKey = b"L5KhaMvPYRW1ZoFmRjUtxxPypQ94m6BcDrPhqArhggdaTbbAFJEF" + children.childNUmber = 2147483646 + FirstHardenedChild + children.depth = 4 + vector2.children.append(children) + + children = testChildKey() + children.path = b"m/0/2147483647'/1/2147483646'/2" + children.privKey = b"xprvA2nrNbFZABcdryreWet9Ea4LvTJcGsqrMzxHx98MMrotbir7yrKCEXw7nadnHM8Dq38EGfSh6dqA9QWTyefMLEcBYJUuekgW4BYPJcr9E7j" + children.pubKey = b"xpub6FnCn6nSzZAw5Tw7cgR9bi15UV96gLZhjDstkXXxvCLsUXBGXPdSnLFbdpq8p9HmGsApME5hQTZ3emM2rnY5agb9rXpVGyy3bdW6EEgAtqt" + children.fingerprint = b"26132fdb" + children.identifier = b"26132fdbe7bf89cbc64cf8dafa3f9f88b8666220" + children.chainCode = b"9452b549be8cea3ecb7a84bec10dcfd94afe4d129ebfd3b3cb58eedf394ed271" + children.hexPubKey = b"024d902e1a2fc7a8755ab5b694c575fce742c48d9ff192e63df5193e4c7afe1f9c" + children.wifPrivKey = b"L3WAYNAZPxx1fr7KCz7GN9nD5qMBnNiqEJNJMU1z9MMaannAt4aK" + children.childNUmber = 2 + children.depth = 5 + vector2.children.append(children) + + vector.append(vector2) + + vector3 = testMasterKey() + vector3.seed = b"4b381541583be4423346c643850da4b320e46a87ae3d2a4e6da11eba819cd4acba45d239319ac14f863b8d5ab5a0d0c64d2e8a1e7d1457df2e5a3c51c73235be" + vector3.privKey = b"xprv9s21ZrQH143K25QhxbucbDDuQ4naNntJRi4KUfWT7xo4EKsHt2QJDu7KXp1A3u7Bi1j8ph3EGsZ9Xvz9dGuVrtHHs7pXeTzjuxBrCmmhgC6" + vector3.pubKey = b"xpub661MyMwAqRbcEZVB4dScxMAdx6d4nFc9nvyvH3v4gJL378CSRZiYmhRoP7mBy6gSPSCYk6SzXPTf3ND1cZAceL7SfJ1Z3GC8vBgp2epUt13" + vector3.fingerprint = b"41d63b50" + vector3.identifier = b"41d63b50d8dd5e730cdf4c79a56fc929a757c548" + vector3.chainCode = b"01d28a3e53cffa419ec122c968b3259e16b65076495494d97cae10bbfec3c36f" + vector3.hexPubKey = b"03683af1ba5743bdfc798cf814efeeab2735ec52d95eced528e692b8e34c4e5669" + vector3.wifPrivKey = b"KwFPqAq9SKx1sPg15Qk56mqkHwrfGPuywtLUxoWPkiTSBoxCs8am" + vector3.children = [] + + children = testChildKey() + children.path = b"m/0'" + children.privKey = b"xprv9uPDJpEQgRQfDcW7BkF7eTya6RPxXeJCqCJGHuCJ4GiRVLzkTXBAJMu2qaMWPrS7AANYqdq6vcBcBUdJCVVFceUvJFjaPdGZ2y9WACViL4L" + children.pubKey = b"xpub68NZiKmJWnxxS6aaHmn81bvJeTESw724CRDs6HbuccFQN9Ku14VQrADWgqbhhTHBaohPX4CjNLf9fq9MYo6oDaPPLPxSb7gwQN3ih19Zm4Y" + children.fingerprint = b"c61368bb" + children.identifier = b"c61368bb50e066acd95bd04a0b23d3837fb75698" + children.chainCode = b"e5fea12a97b927fc9dc3d2cb0d1ea1cf50aa5a1fdc1f933e8906bb38df3377bd" + children.hexPubKey = b"027c3591221e28939e45f8ea297d62c3640ebb09d7058b01d09c963d984a40ad49" + children.wifPrivKey = b"L3z3MSqZtDQ1FPHKi7oWf1nc9rMEGFtZUDCoFa7n4F695g5qZiSu" + children.childNUmber = FirstHardenedChild + children.depth = 1 + vector3.children.append(children) + + vector.append(vector3) + + # Test case copied from: + # https://github.com/bitcoinjs/bip32/blob/master/test/fixtures/index.json + + vector4 = testMasterKey() + vector4.seed = b"d13de7bd1e54422d1a3b3b699a27fb460de2849e7e66a005c647e8e4a54075cb" + vector4.privKey = b"xprv9s21ZrQH143K3zWpEJm5QtHFh93eNJrNbNqzqLN5XoE9MvC7gs5TmBFaL2PpaXpDc8FBYVe5EChc73ApjSQ5fWsXS7auHy1MmG6hdpywE1q" + vector4.pubKey = b"xpub661MyMwAqRbcGUbHLLJ5n2DzFAt8mmaDxbmbdimh68m8EiXGEQPiJya4BJat5yMzy4e68VSUoLGCu5uvzf8dUoGvwuJsLE6F1cibmWsxFNn" + vector4.fingerprint = b"1a87677b" + vector4.identifier = b"1a87677be6f73cc9655e8b4c5d2fd0aeeb1b23c7" + vector4.chainCode = b"c23ab32b36ddff49fae350a1bed8ec6b4d9fc252238dd789b7273ba4416054eb" + vector4.hexPubKey = b"0298ccc720d5dea817c7077605263bae52bca083cf8888fee77ff4c1b4797ee180" + vector4.wifPrivKey = b"KwDiCU5bs8xQwsRgxjhkcJcVuR7NE4Mei8X9uSAVviVTE7JmMoS6" + vector4.children = [] + + children = testChildKey() + children.path = b"m/44'/0'/0'/0/0'" + children.privKey = b"xprvA3cqPFaMpr7n1wRh6BPtYfwdYRoKCaPzgDdQnUmgMrz1WxWNEW3EmbBr9ieh9BJAsRGKFPLvotb4p4Aq79jddUVKPVJt7exVzLHcv777JVf" + children.pubKey = b"xpub6GcBnm7FfDg5ERWACCvtuotN6Tdoc37r3SZ1asBHvCWzPkqWn3MVKPWKzy6GsfmdMUGanR3D12dH1cp5tJauuubwc4FAJDn67SH2uUjwAT1" + children.fingerprint = b"e371d69b" + children.identifier = b"e371d69b5dae6eacee832a130ee9f55545275a09" + children.chainCode = b"ca27553aa89617e982e621637d6478f564b32738f8bbe2e48d0a58a8e0f6da40" + children.hexPubKey = b"027c3591221e28939e45f8ea297d62c3640ebb09d7058b01d09c963d984a40ad49" + children.wifPrivKey = b"L3z3MSqZtDQ1FPHKi7oWf1nc9rMEGFtZUDCoFa7n4F695g5qZiSu" + children.childNUmber = FirstHardenedChild + children.depth = 5 + vector4.children.append(children) + + vector.append(vector4) + + # Test running + i = 1 + for v in vector: + print("Vector ", i) + VectorKeyPairs(v) + i += 1 + + +class testStruct: + err = skycoin.SKY_OK + base58 = b"" + + +def test_TestDeserializePrivateInvalidStrings(): + tests = [] + + childen = testStruct() + childen.err = skycoin.SKY_ErrSerializedKeyWrongSize + childen.base58 = b"xprv9s21ZrQH143K4YUcKrp6cVxQaX59ZFkN6MFdeZjt8CHVYNs55xxQSvZpHWfojWMv6zgjmzopCyWPSFAnV4RU33J4pwCcnhsB4R4mPEnTsM" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_bip32_ErrInvalidChecksum + childen.base58 = b"xprv9s21ZrQH143K3YSbAXLMPCzJso5QAarQksAGc5rQCyZCBfw4Rj2PqVLFNgezSBhktYkiL3Ta2stLPDF9yZtLMaxk6Spiqh3DNFG8p8MVeEc" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidPrivateKeyVersion + childen.base58 = b"xpub6DxSCdWu6jKqr4isjo7bsPeDD6s3J4YVQV1JSHZg12Eagdqnf7XX4fxqyW2sLhUoFWutL7tAELU2LiGZrEXtjVbvYptvTX5Eoa4Mamdjm9u" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidKeyVersion + childen.base58 = b"8FH81Rao5EgGmdScoN66TJAHsQP7phEMeyMTku9NBJd7hXgaj3HTvSNjqJjoqBpxdbuushwPEM5otvxXt2p9dcw33AqNKzZEPMqGHmz7Dpayi6Vb" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_bip32_ErrInvalidChecksum + childen.base58 = b"xprvQQQQQQQQQQQQQQQQCviVfJSKyQ1mDYahRjijr5idH2WwLsEd4Hsb2Tyh8RfQMuPh7f7RtyzTtdrbdqqsunu5Mm3wDvUAKRHSC34sJ7in334" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrSerializedKeyWrongSize + childen.base58 = b"HAsbc6CgKmTYEQg2CTz7m5STEPAB" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidFingerprint + childen.base58 = b"xprv9tnJFvAXAXPfPnMTKfwpwnkty7MzJwELVgp4NTBquaKXy4RndyfJJCJJf7zNaVpBpzrwVRutZNLRCVLEcZHcvuCNG3zGbGBcZn57FbNnmSP" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidPrivateKey + childen.base58 = b"xprv9s21ZrQH143K3yLysFvsu3n1dMwhNusmNHr7xArzAeCc7MQYqDBBStmqnZq6WLi668siBBNs3SjiyaexduHu9sXT9ixTsqptL67ADqcaBdm" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidChildNumber + childen.base58 = b"xprv9s21ZrQYdgnodnKW4Drm1Qg7poU6Gf2WUDsjPxvYiK7iLBMrsjbnF1wsZZQgmXNeMSG3s7jmHk1b3JrzhG5w8mwXGxqFxfrweico7k8DtxR" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidKeyVersion + childen.base58 = b"1111111111111adADjFaSNPxwXqLjHLj4mBfYxuewDPbw9hEj1uaXCzMxRPXDFF3cUoezTFYom4sEmEVSQmENPPR315cFk9YUFVek73wE9" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrSerializedKeyWrongSize + childen.base58 = b"9XpNiB4DberdMn4jZiMhNGtuZUd7xUrCEGw4MG967zsVNvUKBEC9XLrmVmFasanWGp15zXfTNw4vW4KdvUAynEwyKjdho9QdLMPA2H5uyt" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrSerializedKeyWrongSize + childen.base58 = b"7JJikZQ2NUXjSAnAF2SjFYE3KXbnnVxzRBNddFE1DjbDEHVGEJzYC7zqSgPoauBJS3cWmZwsER94oYSFrW9vZ4Ch5FtGeifdzmtS3FGYDB1vxFZsYKgMc" + tests.append(childen) + + for test in tests: + print(test.base58) + err, b = skycoin.SKY_base58_Decode(test.base58) + assert err == skycoin.SKY_OK + + err, _ = skycoin.SKY_bip32_DeserializePrivateKey(b) + assert err == test.err + + +def test_TestDeserializePublicInvalidStrings(): + tests = [] + + childen = testStruct() + childen.err = skycoin.SKY_ErrSerializedKeyWrongSize + childen.base58 = b"xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet888" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_bip32_ErrInvalidChecksum + childen.base58 = b"xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W11GMcet8" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidPublicKeyVersion + childen.base58 = b"xprv9uHRZZhk6KAJC1avXpDAp4MDc3sQKNxDiPvvkX8Br5ngLNv1TxvUxt4cV1rGL5hj6KCesnDYUhd7oWgT11eZG7XnxHrnYeSvkzY7d2bhkJ7" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidFingerprint + childen.base58 = b"xpub67tVq9SuNQCfm2PXBqjGRAtNZ935kx2uHJaURePth4JBpMfEy6jum7Euj7FTpbs7fnjhfZcNEktCucWHcJf74dbKLKNSTZCQozdDVwvkJhs" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidChildNumber + childen.base58 = b"xpub661MyMwTWkfYZq6BEh3ywGVXFvNj5hhzmWMhFBHSqmub31B1LZ9wbJ3DEYXZ8bHXGqnHKfepTud5a2XxGdnnePzZa2m2DyzTnFGBUXtaf9M" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidPublicKey + childen.base58 = b"xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gYymDsxxRe3WWeZQ7TadaLSdKUffezzczTCpB8j3JP96UwE2n6w1" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidKeyVersion + childen.base58 = b"8FH81Rao5EgGmdScoN66TJAHsQP7phEMeyMTku9NBJd7hXgaj3HTvSNjqJjoqBpxdbuushwPEM5otvxXt2p9dcw33AqNKzZEPMqGHmz7Dpayi6Vb" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrInvalidKeyVersion + childen.base58 = b"1111111111111adADjFaSNPxwXqLjHLj4mBfYxuewDPbw9hEj1uaXCzMxRPXDFF3cUoezTFYom4sEmEVSQmENPPR315cFk9YUFVek73wE9" + tests.append(childen) + + childen = testStruct() + childen.err = skycoin.SKY_ErrSerializedKeyWrongSize + childen.base58 = b"7JJikZQ2NUXjSAnAF2SjFYE3KXbnnVxzRBNddFE1DjbDEHVGEJzYC7zqSgPoauBJS3cWmZwsER94oYSFrW9vZ4Ch5FtGeifdzmtS3FGYDB1vxFZsYKgMc" + tests.append(childen) + + for test in tests: + print(test.base58) + err, b = skycoin.SKY_base58_Decode(test.base58) + assert err == skycoin.SKY_OK + + err, _ = skycoin.SKY_bip32_DeserializePublicKey(b) + assert err == test.err + + +def test_TestCantCreateHardenedPublicChild(): + err, b = skycoin.SKY_cipher_RandByte(32) + assert err == skycoin.SKY_OK + err, key = skycoin.SKY_bip32_NewMasterKey(b) + assert err == skycoin.SKY_OK + + # Test that it works for private keys + err, _ = skycoin.SKY_bip32_PrivateKey_NewPrivateChildKey(key, + FirstHardenedChild - 1) + assert err == skycoin.SKY_OK + err, _ = skycoin.SKY_bip32_PrivateKey_NewPrivateChildKey( + key, FirstHardenedChild) + assert err == skycoin.SKY_OK + err, _ = skycoin.SKY_bip32_PrivateKey_NewPrivateChildKey( + key, FirstHardenedChild + 1) + assert err == skycoin.SKY_OK + + # Test that it throws an error for public keys if hardened + err, pubkey = skycoin.SKY_bip32_PrivateKey_Publickey(key) + assert err == skycoin.SKY_OK + + err, _ = skycoin.SKY_bip32_PublicKey_NewPublicChildKey( + pubkey, FirstHardenedChild - 1) + assert err == skycoin.SKY_OK + err, _ = skycoin.SKY_bip32_PublicKey_NewPublicChildKey( + pubkey, FirstHardenedChild) + assert err == skycoin.SKY_ErrHardenedChildPublicKey + err, _ = skycoin.SKY_bip32_PublicKey_NewPublicChildKey( + pubkey, FirstHardenedChild + 1) + assert err == skycoin.SKY_ErrHardenedChildPublicKey + + +class case(): + seed = b"" + path = b"" + key = b"" + err = skycoin.SKY_OK + + +def test_TestNewPrivateKeyFromPath(): + cases = [] + childen = case() + childen.seed = b"6162636465666768696A6B6C6D6E6F707172737475767778797A" + childen.path = b"m" + childen.key = b"xprv9s21ZrQH143K3GfuLFf1UxUB4GzmFav1hrzTG1bPorBTejryu4YfYVxZn6LNmwfvsi6uj1Wyv9vLDPsfKDuuqwEqYier1ZsbgWVd9NCieNv" + cases.append(childen) + + childen = case() + childen.seed = b"6162636465666768696A6B6C6D6E6F707172737475767778797A" + childen.path = b"m/1'" + childen.key = b"xprv9uWf8oyvCHcAUg3kSjSroz67s7M3qJRWmNcdVwYGf91GFsaAatsVVp1bjH7z3WiWevqB7WK92B415oBwcahjoMvvb4mopPyqZUDeVW4168c" + cases.append(childen) + + childen = case() + childen.path = b"6162636465666768696A6B6C6D6E6F707172737475767778797A" + childen.path = b"m/1'/foo" + childen.err = skycoin.SKY_ErrPathNodeNotNumber + cases.append(childen) + + childen = case() + childen.seed = b"6162" + childen.path = b"m/1'" + childen.err = skycoin.SKY_ErrInvalidSeedLength + cases.append(childen) + + for tc in cases: + print(tc.path) + err, seed = skycoin.SKY_base58_String2Hex(tc.seed) + assert err == skycoin.SKY_OK + + err, k = skycoin.SKY_bip32_NewPrivateKeyFromPath(seed, tc.path) + if tc.err != skycoin.SKY_OK: + assert tc.err == err + return + + assert err == skycoin.SKY_OK + err, kStr = skycoin.SKY_bip32_PrivateKey_String(k) + assert err == skycoin.SKY_OK + assert tc.key == kStr + + +def test_TestMaxChildDepthError(): + err, b = skycoin.SKY_cipher_RandByte(32) + assert err == skycoin.SKY_OK + err, key = skycoin.SKY_bip32_NewMasterKey(b) + assert err == skycoin.SKY_OK + + reached = False + for i in range(256): + err, key = skycoin.SKY_bip32_PrivateKey_NewPrivateChildKey(key, 0) + if i == 255: + assert err == skycoin.SKY_ErrMaxDepthReached + reached = True + if i != 255: + assert err == skycoin.SKY_OK + assert reached == True + + +def test_TestParentPublicChildDerivation(): + # Generated using https://iancoleman.github.io/bip39/ + # Root key: + # xprv9s21ZrQH143K2Cfj4mDZBcEecBmJmawReGwwoAou2zZzG45bM6cFPJSvobVTCB55L6Ld2y8RzC61CpvadeAnhws3CHsMFhNjozBKGNgucYm + # Derivation Path m/44'/60'/0'/0: + # xprv9zy5o7z1GMmYdaeQdmabWFhUf52Ytbpe3G5hduA4SghboqWe7aDGWseN8BJy1GU72wPjkCbBE1hvbXYqpCecAYdaivxjNnBoSNxwYD4wHpW + # xpub6DxSCdWu6jKqr4isjo7bsPeDD6s3J4YVQV1JSHZg12Eagdqnf7XX4fxqyW2sLhUoFWutL7tAELU2LiGZrEXtjVbvYptvTX5Eoa4Mamdjm9u + + err, extendedMasterPublicBytes = skycoin.SKY_base58_Decode( + b"xpub6DxSCdWu6jKqr4isjo7bsPeDD6s3J4YVQV1JSHZg12Eagdqnf7XX4fxqyW2sLhUoFWutL7tAELU2LiGZrEXtjVbvYptvTX5Eoa4Mamdjm9u") + assert err == skycoin.SKY_OK + + err, extendedMasterPublic = skycoin.SKY_bip32_DeserializePublicKey( + extendedMasterPublicBytes) + assert err == skycoin.SKY_OK + + err, extendedMasterPrivateBytes = skycoin.SKY_base58_Decode( + b"xprv9zy5o7z1GMmYdaeQdmabWFhUf52Ytbpe3G5hduA4SghboqWe7aDGWseN8BJy1GU72wPjkCbBE1hvbXYqpCecAYdaivxjNnBoSNxwYD4wHpW") + assert err == skycoin.SKY_OK + + err, extendedMasterPrivate = skycoin.SKY_bip32_DeserializePrivateKey( + extendedMasterPrivateBytes) + assert err == skycoin.SKY_OK + + expectedChildren = [] + + childen = testChildKey() + childen.path = b"m/0" + childen.hexPubKey = b"0243187e1a2ba9ba824f5f81090650c8f4faa82b7baf93060d10b81f4b705afd46" + childen.wifPrivKey = b"KyNPkzzaQ9xa7d2iFacTBgjP4rM3SydTzUZW7uwDh6raePWRJkeM" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/1" + childen.hexPubKey = b"023790d11eb715c4320d8e31fba3a09b700051dc2cdbcce03f44b11c274d1e220b" + childen.wifPrivKey = b"KwVyk5XXaamsPPiGLHciv6AjhUV88CM7xTto7sRMCEy12GfwZzZQ" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/2" + childen.hexPubKey = b"0302c5749c3c75cea234878ae3f4d8f65b75d584bcd7ed0943b016d6f6b59a2bad" + childen.wifPrivKey = b"L1o7CpgTjkcBYmbeuNigVpypgJ9GKq87WNqz8QDjWMqdKVKFf826" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/3" + childen.hexPubKey = b"03f0440c94e5b14ea5b15875934597afff541bec287c6e65dc1102cafc07f69699" + childen.wifPrivKey = b"KzmYqf8WSUNzf2LhAWJjxv7pYX34XhFeLLxSoaSD8y9weJ4j6Z7q" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/4" + childen.hexPubKey = b"026419d0d8996707605508ac44c5871edc7fe206a79ef615b74f2eea09c5852e2b" + childen.wifPrivKey = b"KzezMKd7Yc4jwJd6ASji2DwXX8jB8XwNTggLoAJU78zPAfXhzRLD" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/5" + childen.hexPubKey = b"02f63c6f195eea98bdb163c4a094260dea71d264b21234bed4df3899236e6c2298" + childen.wifPrivKey = b"Kwxik5cHiQCZYy5g9gdfQmr7c3ivLDhFjpSF7McHKHeox6iu6MjL" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/6" + childen.hexPubKey = b"02d74709cd522081064858f393d009ead5a0ecd43ede3a1f57befcc942025cb5f9" + childen.wifPrivKey = b"KwGhZYHovZoczyfupFRgZcr2xz1nHTSKx79uZuWhuzDSU7L7LrxE" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/7" + childen.hexPubKey = b"03e54bb92630c943d38bbd8a4a2e65fca7605e672d30a0e545a7198cbb60729ceb" + childen.wifPrivKey = b"L4iGJ3JCfnMU1ia2bMQeF88hs6tkkS9QrmLbWPsj1ULHrUJid4KT" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/8" + childen.hexPubKey = b"027e9d5acd14d39c4938697fba388cd2e8f31fc1c5dc02fafb93a10a280de85199" + childen.wifPrivKey = b"L3xfynMTDMR8vs6G5VxxjoKLBQyihvtcBHF4KHY5wvFMwevLjZKU" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/9" + childen.hexPubKey = b"02a167a9f0d57468fb6abf2f3f7967e2cadf574314753a06a9ef29bc76c54638d2" + childen.wifPrivKey = b"KxiUV7CcdCuF3bLajqaP6qMFERQFvzsRj9aeCCf3TNWXioLwwJAm" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/100" + childen.hexPubKey = b"020db9ba00ddf68428e3f5bfe54252bbcd75b21e42f51bf3bfc4172bf0e5fa7905" + childen.wifPrivKey = b"L5ipKgExgKZYaxsQPEmyjrhoSepoxuSAxSWgK1GX5kaTUN3zGCU7" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/101" + childen.hexPubKey = b"0299e3790956570737d6164e6fcda5a3daa304065ca95ba46bc73d436b84f34d46" + childen.wifPrivKey = b"L1iUjHWpYSead5vYZycMdMzCZDFQzveG3S6NviAi5BvvGdnuQbi6" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/102" + childen.hexPubKey = b"0202e0732c4c5d2b1036af173640e01957998cfd4f9cdaefab6ffe76eb869e2c59" + childen.wifPrivKey = b"KybjnK4e985dgzxL5pgXTfq8YFagG8gB9HWAjLimagR4pdodCSNo" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/103" + childen.hexPubKey = b"03d050adbd996c0c5d737ff638402dfbb8c08e451fef10e6d62fb57887c1ac6cb2" + childen.wifPrivKey = b"Kx9bf5cyf29fp7uuMVnqn47692xRwXStVmnL75w9i1sLQDjbFHP5" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/104" + childen.hexPubKey = b"038d466399e2d68b4b16043ad4d88893b3b2f84fc443368729a973df1e66f4f530" + childen.wifPrivKey = b"L5myg7MNjKHcgVMS9ytmHgBftiWAi1awGpeC6p9dygsEQV9ZRvpz" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/105" + childen.hexPubKey = b"034811e2f0c8c50440c08c2c9799b99c911c036e877e8325386ff61723ae3ffdce" + childen.wifPrivKey = b"L1KHrLBPhaJnvysjKUYk5QwkyWDb6uHgDM8EmE4eKtfqyJ13a7HC" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/106" + childen.hexPubKey = b"026339fd5842921888e711a6ba9104a5f0c94cc0569855273cf5faefdfbcd3cc29" + childen.wifPrivKey = b"Kz4WPV43po7LRkatwHf9YGknGZRYfvo7TkvojinzxoFRXRYXyfDn" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/107" + childen.hexPubKey = b"02833705c1069fab2aa92c6b0dac27807290d72e9f52378d493ac44849ca003b22" + childen.wifPrivKey = b"L3PxeN4w336kTk1becdFsAnR8ihh8SeMYXRHEzSmRNQTjtmcUjr9" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/108" + childen.hexPubKey = b"032d2639bde1eb7bdf8444bd4f6cc26a9d1bdecd8ea15fac3b992c3da68d9d1df5" + childen.wifPrivKey = b"L2wf8FYiA888qrhDzHkFkZ3ZRBntysjtJa1QfcxE1eFiyDUZBRSi" + expectedChildren.append(childen) + + childen = testChildKey() + childen.path = b"m/109" + childen.hexPubKey = b"02479c6d4a64b93a2f4343aa862c938fbc658c99219dd7bebb4830307cbd76c9e9" + childen.wifPrivKey = b"L5A5hcupWnYTNJTLTWDDfWyb3hnrJgdDgyN7c4PuF17bsY1tNjxS" + expectedChildren.append(childen) + + childen = testChildKey() + childen + + for child in expectedChildren: + print(child.path) + err, path = skycoin.SKY_bip32_ParsePath(child.path) + assert err == skycoin.SKY_OK + assert skycoin.SKY_bip32_Path_Count(path)[1] == 2 + element_tmp = skycoin.bip32__PathNode() + err = skycoin.SKY_bip32_Path_GetElements(path, 1, element_tmp) + assert err == skycoin.SKY_OK + err, pubkey = skycoin.SKY_bip32_PublicKey_NewPublicChildKey( + extendedMasterPublic, element_tmp.ChildNumber) + assert err == skycoin.SKY_OK + err, pubkey_key = skycoin.SKY_bip32_PublicKey_GetKey(pubkey) + assert err == skycoin.SKY_OK + err, pubkey_hexpubkey = skycoin.SKY_base58_Hex2String(pubkey_key) + assert err == skycoin.SKY_OK + assert child.hexPubKey == pubkey_hexpubkey + + err, pubkey2 = skycoin.SKY_bip32_PrivateKey_NewPublicChildKey( + extendedMasterPrivate, element_tmp.ChildNumber) + assert err == skycoin.SKY_OK + assert utils.isPublicKeyEq(pubkey, pubkey2) == 1 + + err, privkey = skycoin.SKY_bip32_PrivateKey_NewPrivateChildKey( + extendedMasterPrivate, element_tmp.ChildNumber) + assert err == skycoin.SKY_OK + expectedPrivKey = skycoin.cipher_SecKey() + err = skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat( + child.wifPrivKey, expectedPrivKey) + assert err == skycoin.SKY_OK + + err, pubkey3 = skycoin.SKY_bip32_PrivateKey_Publickey(privkey) + assert err == skycoin.SKY_OK + assert utils.isPublicKeyEq(pubkey, pubkey3) == 1 diff --git a/lib/swig/tests/test_cipher_bip39.py b/lib/swig/tests/test_cipher_bip39.py index eeda2568..c637a8f7 100644 --- a/lib/swig/tests/test_cipher_bip39.py +++ b/lib/swig/tests/test_cipher_bip39.py @@ -48,7 +48,7 @@ def test_TestIsMnemonicValid(): m = b' '.join(ms) assert skycoin.SKY_bip39_IsMnemonicValid(m)[1] == False -# Invalid number of words + # Invalid number of words err, m = skycoin.SKY_bip39_NewDefaultMnemomic() assert err == skycoin.SKY_OK ms = m.split(b' ') diff --git a/lib/swig/tests/test_cipher_bip44.py b/lib/swig/tests/test_cipher_bip44.py new file mode 100644 index 00000000..32803685 --- /dev/null +++ b/lib/swig/tests/test_cipher_bip44.py @@ -0,0 +1,120 @@ +import skycoin +import tests.utils as utils + + +CoinTypeBitcoin = 0 +CoinTypeBitcoinTestnet = 1 +CoinTypeSkycoin = 8000 +ExternalChainIndex = 0 +ChangeChainIndex = 1 +FirstHardenedChild = 0x80000000 + + +def mustDefaultSeed(): + mnemonic = b'dizzy cigar grant ramp inmate uniform gold success able payment faith practice' + passphrase = b'' + err, seed = skycoin.SKY_bip39_NewSeed(mnemonic, passphrase) + err, strs = skycoin.SKY_base58_Hex2String(seed) + assert strs == b'24e563fb095d766df3862c70432cc1b2210b24d232da69af7af09d2ec86d28782ce58035bae29994c84081836aebe36a9b46af1578262fefc53e37efbe94be57' + return seed + + +def test_TestNewCoin(): + err, tmp = skycoin.SKY_cipher_RandByte(3) + assert err == skycoin.SKY_OK + err, coin = skycoin.SKY_bip44_NewCoin(tmp, CoinTypeBitcoin) + assert err == skycoin.SKY_ErrInvalidSeedLength + bad = mustDefaultSeed() + err, coin = skycoin.SKY_bip44_NewCoin(bad, FirstHardenedChild) + assert err == skycoin.SKY_ErrInvalidCoinType + err, coin = skycoin.SKY_bip44_NewCoin(bad, FirstHardenedChild + 1) + assert err == skycoin.SKY_ErrInvalidCoinType + + err, c = skycoin.SKY_bip44_NewCoin(bad, CoinTypeBitcoin) + assert err == skycoin.SKY_OK + + err, account = skycoin.SKY_bip44_Coin_Account(c, 0) + assert err == skycoin.SKY_OK + err, acc_string = skycoin.SKY_bip44_Account_String(account) + assert err == skycoin.SKY_OK + assert acc_string == b'xprv9yKAFQtFghZSe4mfdpdqFm1WWmGeQbYMB4MSGUB85zbKGQgSxty4duZb8k6hNoHVd2UR7Y3QhWU3rS9wox9ewgVG7gDLyYTL4yzEuqUCjvF' + err, privk = skycoin.SKY_bip44_Account_GetPrivateKey(account) + assert err == skycoin.SKY_OK + err, pubk = skycoin.SKY_bip32_PrivateKey_Publickey(privk) + assert err == skycoin.SKY_OK + err, pubk_string = skycoin.SKY_bip32_PublicKey_String(pubk) + assert pubk_string == b'xpub6CJWevR9X57jrYr8jrAqctxF4o78p4GCYHH34rajeL8J9D1bWSHKBht4yzwiTQ4FP4HyQpx99iLxvU54rbEbcxBUgxzTGGudBVXb1N2gcHF' + + err, account = skycoin.SKY_bip44_Coin_Account(c, 1) + assert err == skycoin.SKY_OK + err, acc_string = skycoin.SKY_bip44_Account_String(account) + assert err == skycoin.SKY_OK + assert acc_string == b'xprv9yKAFQtFghZSgShGXkxHsYQfFaqMyutf3izng8tV4Tmp7gidQUPB8kCuv66yukidivM2oSaUvGus8ffnYvYKChB7DME2H2AvUq8LM2rXUzF' + err, privk = skycoin.SKY_bip44_Account_GetPrivateKey(account) + assert err == skycoin.SKY_OK + err, pubk = skycoin.SKY_bip32_PrivateKey_Publickey(privk) + assert err == skycoin.SKY_OK + err, pubk_string = skycoin.SKY_bip32_PublicKey_String(pubk) + assert err == skycoin.SKY_OK + assert pubk_string == b'xpub6CJWevR9X57jtvmjdnVJEgMPocfrPNcWQwvPUXJ6coJnzV3mx1hRgYXPmQJh5vLQvrVCY8LtJB5xLLiPJVmpSwBe2yhonQLoQuSsCF8YPLN' + + err, _ = skycoin.SKY_bip44_Coin_Account(c, 0x80000000) + assert err == skycoin.SKY_ErrInvalidAccount + err, _ = skycoin.SKY_bip44_Coin_Account(c, 0x80000001) + assert err == skycoin.SKY_ErrInvalidAccount + + err, external = skycoin.SKY_bip44_Account_External(account) + assert err == skycoin.SKY_OK + err, privk_string = skycoin.SKY_bip32_PrivateKey_String(external) + assert err == skycoin.SKY_OK + assert privk_string == b'xprv9zjsvjLiqSerDzbeRXPeXwz8tuQ7eRUABkgFAgLPHw1KzGKkgBhJhGaMYHM8j2KDXBZTCv4m19qjxrrD7gusrtdpZ7xzJywdXHaMZEjf3Uv' + err, pubk = skycoin.SKY_bip32_PrivateKey_Publickey(external) + assert err == skycoin.SKY_OK + err, pubk_string = skycoin.SKY_bip32_PublicKey_String(pubk) + assert err == skycoin.SKY_OK + assert pubk_string == b'xpub6DjELEscfpD9SUg7XYveu5vsSwEc3tC1Yybqy4jzrGYJs4euDj1ZF4tqPZYvViMn9cvBobHyubuuh69PZ1szaBBx5oxPiQzD492B6C4QDHe' + + err, external0 = skycoin.SKY_bip32_PrivateKey_NewPublicChildKey( + external, 0) + assert err == skycoin.SKY_OK + err, Key = skycoin.SKY_bip32_PublicKey_GetKey(external0) + assert err == skycoin.SKY_OK + err, KeyStr = skycoin.SKY_base58_Hex2String(Key) + assert err == skycoin.SKY_OK + assert KeyStr == b'034d36f3bcd74e19204e75b81b9c0726e41b799858b92bab73f4cd7498308c5c8b' + + err, external1 = skycoin.SKY_bip32_PrivateKey_NewPublicChildKey( + external, 1) + assert err == skycoin.SKY_OK + err, Key1 = skycoin.SKY_bip32_PublicKey_GetKey(external1) + assert err == skycoin.SKY_OK + err, Key1Str = skycoin.SKY_base58_Hex2String(Key1) + assert err == skycoin.SKY_OK + assert Key1Str == b'02f7309e9f559d847ee9cc9ee144cfa490791e33e908fdbde2dade50a389408b01' + + err, change = skycoin.SKY_bip44_Account_Change(account) + assert err == skycoin.SKY_OK + err, privk_string = skycoin.SKY_bip32_PrivateKey_String(change) + assert err == skycoin.SKY_OK + assert privk_string == b'xprv9zjsvjLiqSerGzJyBrpZgCaGpQCeFDnZEuAV714WigmFyHT4nFLhZLeuHzLNE19PgkZeQ5Uf2pjFZjQTHbkugDbmw5TAPAvgo2jsaTnZo2A' + err, pubk = skycoin.SKY_bip32_PrivateKey_Publickey(change) + assert err == skycoin.SKY_OK + err, pubk_string = skycoin.SKY_bip32_PublicKey_String(pubk) + assert err == skycoin.SKY_OK + assert pubk_string == b'xpub6DjELEscfpD9VUPSHtMa3LX1NS38egWQc865uPU8H2JEr5nDKnex78yP9GxhFr5cnCRgiQF1dkv7aR7moraPrv73KHwSkDaXdWookR1Sh9p' + + err, change0 = skycoin.SKY_bip32_PrivateKey_NewPublicChildKey(change, 0) + assert err == skycoin.SKY_OK + err, Key = skycoin.SKY_bip32_PublicKey_GetKey(change0) + assert err == skycoin.SKY_OK + err, KeyStr = skycoin.SKY_base58_Hex2String(Key) + assert err == skycoin.SKY_OK + assert KeyStr == b'026d3eb891e81ecabedfa8560166af383457aedaf172af9d57d00508faa5f57c4c' + + err, change1 = skycoin.SKY_bip32_PrivateKey_NewPublicChildKey(change, 1) + assert err == skycoin.SKY_OK + err, Key1 = skycoin.SKY_bip32_PublicKey_GetKey(change1) + assert err == skycoin.SKY_OK + err, Key1Str = skycoin.SKY_base58_Hex2String(Key1) + assert err == skycoin.SKY_OK + assert Key1Str == b'02681b301293fdf0292cd679b37d60b92a71b389fd994b2b57c8daf99532bfb4a5' diff --git a/lib/swig/tests/test_cipher_bitcoin.py b/lib/swig/tests/test_cipher_bitcoin.py index 898e683c..652b334d 100644 --- a/lib/swig/tests/test_cipher_bitcoin.py +++ b/lib/swig/tests/test_cipher_bitcoin.py @@ -1,40 +1,32 @@ import skycoin +import tests.utils as utils + + def test_TestBitcoinAddressFromBytes(): - public_key = skycoin.cipher_PubKey() - secret_key = skycoin.cipher_SecKey() - skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) - address = skycoin.cipher__BitcoinAddress() - skycoin.SKY_cipher_BitcoinAddressFromPubKey(public_key, address) - address_2 = skycoin.cipher__BitcoinAddress() - byte = skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes(address) - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes(byte, address_2) + p, s = utils.makecipher_PubKeyAndcipher_SecKey() + a = skycoin.cipher__BitcoinAddress() + err = skycoin.SKY_cipher_BitcoinAddressFromSecKey(s, a) assert err == skycoin.SKY_OK - assert address_2 == address - ## Invalid number of bytes - __ = skycoin.cipher__BitcoinAddress() - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes(byte[:len(byte) - 2], __) - assert err == skycoin.SKY_ErrAddressInvalidLength - ## Invalid checksum - byte_array = bytearray(byte) - byte_array[-1] = 1 - byte_new = bytes(byte_array) - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes(byte_new, __) - assert err == skycoin.SKY_ErrAddressInvalidChecksum - ## Invalid Version - address.Version = 2 - byte = skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes(address) - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes(byte, __) - assert err == skycoin.SKY_ErrAddressInvalidVersion + # Valid pubkey+address + err = skycoin.SKY_cipher_BitcoinAddress_Verify(a, p) + assert err == skycoin.SKY_OK + s = skycoin.cipher_SecKey() + err = skycoin.SKY_cipher_BitcoinAddressFromSecKey(s, a) + assert err == skycoin.SKY_ErrPubKeyFromNullSecKey + def test_TestBitcoinWIPRoundTrio(): public_key = skycoin.cipher_PubKey() secret_key_1 = skycoin.cipher_SecKey() secret_key_2 = skycoin.cipher_SecKey() skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key_1) - wip_1 = skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(secret_key_1) - err = skycoin.skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(wip_1, secret_key_2) + wip_1 = skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey( + secret_key_1) + err = skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat( + wip_1, secret_key_2) assert err == skycoin.SKY_OK - wip_2 = skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(secret_key_2) + wip_2 = skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey( + secret_key_2) _, secret_key_1_hex = skycoin.SKY_cipher_SecKey_Hex(secret_key_1) _, secret_key_2_hex = skycoin.SKY_cipher_SecKey_Hex(secret_key_2) assert secret_key_1_hex == secret_key_2_hex @@ -63,14 +55,112 @@ def test_TestBitcoinWIF(): for p in range(len(wips)): secret_key = skycoin.cipher_SecKey() public_key = skycoin.cipher_PubKey() - err = skycoin.skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(wips[p], secret_key) + err = skycoin.skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat( + wips[p], secret_key) assert err == skycoin.SKY_OK skycoin.SKY_cipher_PubKeyFromSecKey(secret_key, public_key) _, public_key_hex = skycoin.SKY_cipher_PubKey_Hex(public_key) assert public_key_hex == publics[p] bitcoin_addr = skycoin.cipher__BitcoinAddress() skycoin.SKY_cipher_BitcoinAddressFromPubKey(public_key, bitcoin_addr) - bitcoin_addr_str = skycoin.skycoin.SKY_cipher_BitcoinAddress_String(bitcoin_addr) + bitcoin_addr_str = skycoin.skycoin.SKY_cipher_BitcoinAddress_String( + bitcoin_addr) assert bitcoin_addr_str == address[p] +def test_TestDecodeBase58BitcoinAddress(): + public_key = skycoin.cipher_PubKey() + secret_key = skycoin.cipher_SecKey() + skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) + address = skycoin.cipher__BitcoinAddress() + skycoin.SKY_cipher_BitcoinAddressFromPubKey(public_key, address) + err = skycoin.SKY_cipher_BitcoinAddress_Verify(address, public_key) + assert err == skycoin.SKY_OK + address_2 = skycoin.cipher__BitcoinAddress() + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress(b'""', address_2) + assert err == skycoin.SKY_ERROR + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress(b'"cascs"', address_2) + assert err == skycoin.SKY_ERROR + byte = skycoin.SKY_cipher_BitcoinAddress_Bytes(address) + _, h = skycoin.SKY_base58_Hex2Base58(byte[:int(len(byte) / 2)]) + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress(h, address_2) + assert err == skycoin.SKY_ErrAddressInvalidLength + _, h = skycoin.SKY_base58_Hex2Base58(byte) + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress(h, address_2) + assert err == skycoin.SKY_OK + assert address == address_2 + addres_str = skycoin.SKY_cipher_BitcoinAddress_String(address) + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress(addres_str, address_2) + assert err == skycoin.SKY_OK + assert address == address_2 + # preceding whitespace is invalid + addres_2_str = b'" " + a_str' + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress( + addres_2_str, address_2) + assert err == skycoin.SKY_ERROR + # preceding zeroes are invalid + addres_2_str = b'"000" + a_str' + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress( + addres_2_str, address_2) + assert err == skycoin.SKY_ERROR + # trailing whitespace is invalid + addres_2_str = b'a_str + " "' + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress( + addres_2_str, address_2) + assert err == skycoin.SKY_ERROR + # trailing zeroes are invalid + addres_2_str = b'a_str + "000"' + err = skycoin.SKY_cipher_DecodeBase58BitcoinAddress( + addres_2_str, address_2) + assert err == skycoin.SKY_ERROR + + +def test_TestBitcoinAddressNull(): + a = skycoin.cipher__BitcoinAddress() + err = skycoin.SKY_cipher_BitcoinAddress_Null(a) + assert err == 1 + p = skycoin.cipher_PubKey() + s = skycoin.cipher_SecKey() + err = skycoin.SKY_cipher_GenerateKeyPair(p, s) + assert err == skycoin.SKY_OK + skycoin.SKY_cipher_BitcoinAddressFromPubKey(p, a) + err = skycoin.SKY_cipher_BitcoinAddress_Null(a) + assert err == 0 + + +def test_TestBitcoinAddressVerify(): + p = skycoin.cipher_PubKey() + s = skycoin.cipher_SecKey() + err = skycoin.SKY_cipher_GenerateKeyPair(p, s) + assert err == skycoin.SKY_OK + a = skycoin.cipher__BitcoinAddress() + skycoin.SKY_cipher_BitcoinAddressFromPubKey(p, a) + # Valid pubkey+address + err = skycoin.SKY_cipher_BitcoinAddress_Verify(a, p) + assert err == skycoin.SKY_OK + # Invalid pubkey + p = skycoin.cipher_PubKey() + err = skycoin.SKY_cipher_BitcoinAddress_Verify(a, p) + assert err == skycoin.SKY_ErrAddressInvalidPubKey + p2 = skycoin.cipher_PubKey() + err = skycoin.SKY_cipher_GenerateKeyPair(p2, s) + err = skycoin.SKY_cipher_BitcoinAddress_Verify(a, p2) + assert err == skycoin.SKY_ErrAddressInvalidPubKey + # Bad version + a.Version = 0x01 + err = skycoin.SKY_cipher_BitcoinAddress_Verify(a, p2) + assert err == skycoin.SKY_ErrAddressInvalidVersion + + +def test_TestBitcoinWIFRoundTrip(): + p, s = utils.makecipher_PubKeyAndcipher_SecKey() + wip1 = skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(s) + s2 = skycoin.cipher_SecKey() + err = skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(wip1, s2) + assert err == skycoin.SKY_OK + wip2 = skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(s2) + assert s == s2 + sh = skycoin.SKY_cipher_SecKey_Hex(s) + sh2 = skycoin.SKY_cipher_SecKey_Hex(s2) + assert sh == sh2 + assert wip1 == wip2 diff --git a/lib/swig/tests/test_cipher_crypto.py b/lib/swig/tests/test_cipher_crypto.py index 0f3b3e78..d2424a4c 100644 --- a/lib/swig/tests/test_cipher_crypto.py +++ b/lib/swig/tests/test_cipher_crypto.py @@ -1,21 +1,27 @@ import skycoin +import tests.utils as utils def test_TestNewPubKey(): public_key = skycoin.cipher_PubKey() _, data = skycoin.SKY_cipher_RandByte(31) - assert skycoin.SKY_cipher_NewPubKey(data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey + assert skycoin.SKY_cipher_NewPubKey( + data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey _, data = skycoin.SKY_cipher_RandByte(32) - assert skycoin.SKY_cipher_NewPubKey(data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey + assert skycoin.SKY_cipher_NewPubKey( + data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey _, data = skycoin.SKY_cipher_RandByte(34) - assert skycoin.SKY_cipher_NewPubKey(data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey + assert skycoin.SKY_cipher_NewPubKey( + data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey _, data = skycoin.SKY_cipher_RandByte(0) - assert skycoin.SKY_cipher_NewPubKey(data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey + assert skycoin.SKY_cipher_NewPubKey( + data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey _, data = skycoin.SKY_cipher_RandByte(100) - assert skycoin.SKY_cipher_NewPubKey(data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey + assert skycoin.SKY_cipher_NewPubKey( + data, public_key) == skycoin.SKY_ErrInvalidLengthPubKey _, data = skycoin.SKY_cipher_RandByte(33) - assert skycoin.SKY_cipher_NewPubKey(data, public_key) == skycoin.SKY_ErrInvalidPubKey - + assert skycoin.SKY_cipher_NewPubKey( + data, public_key) == skycoin.SKY_ErrInvalidPubKey pubkey = skycoin.cipher_PubKey() seckey = skycoin.cipher_SecKey() err = skycoin.SKY_cipher_GenerateKeyPair(pubkey, seckey) @@ -37,23 +43,24 @@ def test_TestPubKeyVerify(): if skycoin.SKY_cipher_PubKey_Verify(public_key) != None: failed = True break - assert failed is True + assert failed is True def test_TestPubKeyVerifyNil(): # Empty public key should not be valid public_key = skycoin.cipher_PubKey() - assert skycoin.SKY_cipher_PubKey_Verify(public_key) == skycoin.SKY_ErrInvalidPubKey + assert skycoin.SKY_cipher_PubKey_Verify( + public_key) == skycoin.SKY_ErrInvalidPubKey def test_TestPubKeyVerifyDefault1(): - # Generated pub key should be valid + # Generated pub key should be valid public_key = skycoin.cipher_PubKey() secret_key = skycoin.cipher_SecKey() skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) assert skycoin.SKY_cipher_PubKey_Verify(public_key) == skycoin.SKY_OK - + def test_TestPubKeyVerifyDefault2(): for _ in range(1024): public_key = skycoin.cipher_PubKey() @@ -61,18 +68,20 @@ def test_TestPubKeyVerifyDefault2(): skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) assert skycoin.SKY_cipher_PubKey_Verify(public_key) == skycoin.SKY_OK - + def test_TestPubKeyToAddress(): public_key = skycoin.cipher_PubKey() secret_key = skycoin.cipher_SecKey() skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) addres = skycoin.cipher__Address() - skycoin.SKY_cipher_AddressFromPubKey(public_key, addres) + skycoin.SKY_cipher_AddressFromPubKey(public_key, addres) # func (self Address) Verify(key PubKey) error - assert skycoin.SKY_cipher_Address_Verify(addres, public_key) == skycoin.SKY_OK + assert skycoin.SKY_cipher_Address_Verify( + addres, public_key) == skycoin.SKY_OK # func DecodeBase58Address(addr string) (Address, error) _, addres_str = skycoin.SKY_cipher_Address_String(addres) - assert skycoin.SKY_cipher_DecodeBase58Address(addres_str, addres) == skycoin.SKY_OK + assert skycoin.SKY_cipher_DecodeBase58Address( + addres_str, addres) == skycoin.SKY_OK def test_TestPubKeyToAddress2(): @@ -81,26 +90,33 @@ def test_TestPubKeyToAddress2(): secret_key = skycoin.cipher_SecKey() skycoin.SKY_cipher_GenerateKeyPair(public_key, secret_key) addres = skycoin.cipher__Address() - skycoin.SKY_cipher_AddressFromPubKey(public_key, addres) + skycoin.SKY_cipher_AddressFromPubKey(public_key, addres) # func (self Address) Verify(key PubKey) error - assert skycoin.SKY_cipher_Address_Verify(addres, public_key) == skycoin.SKY_OK + assert skycoin.SKY_cipher_Address_Verify( + addres, public_key) == skycoin.SKY_OK # func DecodeBase58Address(addr string) (Address, error) _, addres_str = skycoin.SKY_cipher_Address_String(addres) - assert skycoin.SKY_cipher_DecodeBase58Address(addres_str, addres) == skycoin.SKY_OK + assert skycoin.SKY_cipher_DecodeBase58Address( + addres_str, addres) == skycoin.SKY_OK + - def test_TestMustNewSecKey(): secret_key = skycoin.cipher_SecKey() _, data = skycoin.SKY_cipher_RandByte(31) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey _, data = skycoin.SKY_cipher_RandByte(33) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey _, data = skycoin.SKY_cipher_RandByte(34) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey _, data = skycoin.SKY_cipher_RandByte(0) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey _, data = skycoin.SKY_cipher_RandByte(100) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey _, data = skycoin.SKY_cipher_RandByte(32) assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_OK assert secret_key.toStr() == data @@ -144,15 +160,20 @@ def test_TestECDHloop(): def test_TestNewSig(): sig = skycoin.cipher_Sig() _, data = skycoin.SKY_cipher_RandByte(64) - assert skycoin.SKY_cipher_NewSig(data, sig) == skycoin.SKY_ErrInvalidLengthSig + assert skycoin.SKY_cipher_NewSig( + data, sig) == skycoin.SKY_ErrInvalidLengthSig _, data = skycoin.SKY_cipher_RandByte(66) - assert skycoin.SKY_cipher_NewSig(data, sig) == skycoin.SKY_ErrInvalidLengthSig + assert skycoin.SKY_cipher_NewSig( + data, sig) == skycoin.SKY_ErrInvalidLengthSig _, data = skycoin.SKY_cipher_RandByte(67) - assert skycoin.SKY_cipher_NewSig(data, sig) == skycoin.SKY_ErrInvalidLengthSig + assert skycoin.SKY_cipher_NewSig( + data, sig) == skycoin.SKY_ErrInvalidLengthSig _, data = skycoin.SKY_cipher_RandByte(0) - assert skycoin.SKY_cipher_NewSig(data, sig) == skycoin.SKY_ErrInvalidLengthSig + assert skycoin.SKY_cipher_NewSig( + data, sig) == skycoin.SKY_ErrInvalidLengthSig _, data = skycoin.SKY_cipher_RandByte(100) - assert skycoin.SKY_cipher_NewSig(data, sig) == skycoin.SKY_ErrInvalidLengthSig + assert skycoin.SKY_cipher_NewSig( + data, sig) == skycoin.SKY_ErrInvalidLengthSig _, data = skycoin.SKY_cipher_RandByte(65) assert skycoin.SKY_cipher_NewSig(data, sig) == skycoin.SKY_OK assert sig.toStr() == data @@ -181,11 +202,14 @@ def test_TestPubKeyFromSecKey(): skycoin.SKY_cipher_PubKeyFromSecKey(secret_key, public_key_2) assert public_key == public_key_2 secret_key_2 = skycoin.cipher_SecKey() - assert skycoin.SKY_cipher_PubKeyFromSecKey(secret_key_2, public_key) == skycoin.SKY_ErrPubKeyFromNullSecKey + assert skycoin.SKY_cipher_PubKeyFromSecKey( + secret_key_2, public_key) == skycoin.SKY_ErrPubKeyFromNullSecKey _, data = skycoin.SKY_cipher_RandByte(99) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey _, data = skycoin.SKY_cipher_RandByte(31) - assert skycoin.SKY_cipher_NewSecKey(data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey + assert skycoin.SKY_cipher_NewSecKey( + data, secret_key) == skycoin.SKY_ErrInvalidLengthSecKey def test_TestPubKeyFromSig(): @@ -198,11 +222,12 @@ def test_TestPubKeyFromSig(): sig_1 = skycoin.cipher_Sig() skycoin.SKY_cipher_SignHash(sha_sum, secret_key, sig_1) public_key_2 = skycoin.cipher_PubKey() - assert skycoin.SKY_cipher_PubKeyFromSig(sig_1, sha_sum, public_key_2) == skycoin.SKY_OK + assert skycoin.SKY_cipher_PubKeyFromSig( + sig_1, sha_sum, public_key_2) == skycoin.SKY_OK assert public_key == public_key_2 sig_2 = skycoin.cipher_Sig() - assert skycoin.SKY_cipher_PubKeyFromSig(sig_2, sha_sum, public_key_2) == skycoin.SKY_ErrInvalidSigPubKeyRecovery - + assert skycoin.SKY_cipher_PubKeyFromSig( + sig_2, sha_sum, public_key_2) == skycoin.SKY_ErrInvalidSigPubKeyRecovery def test_TestGenerateKeyPair(): @@ -219,13 +244,15 @@ def test_TestGenerateDeterministicKeyPair(): public_key = skycoin.cipher_PubKey() secret_key = skycoin.cipher_SecKey() _, seed = skycoin.SKY_cipher_RandByte(32) - skycoin.SKY_cipher_GenerateDeterministicKeyPair(seed, public_key, secret_key) + skycoin.SKY_cipher_GenerateDeterministicKeyPair( + seed, public_key, secret_key) assert skycoin.SKY_cipher_PubKey_Verify(public_key) == skycoin.SKY_OK assert skycoin.SKY_cipher_SecKey_Verify(secret_key) == skycoin.SKY_OK - skycoin.SKY_cipher_GenerateDeterministicKeyPair(seed, public_key, secret_key) + skycoin.SKY_cipher_GenerateDeterministicKeyPair( + seed, public_key, secret_key) assert skycoin.SKY_cipher_PubKey_Verify(public_key) == skycoin.SKY_OK assert skycoin.SKY_cipher_SecKey_Verify(secret_key) == skycoin.SKY_OK - + def test_TestSecKeyTest(): public_key = skycoin.cipher_PubKey() @@ -255,7 +282,44 @@ def test_TestSecKeyHashTest(): def test_TestGenerateDeterministicKeyPairsUsesAllBytes(): # Tests that if a seed >128 bits is used, the generator does not ignore bits > 128 seed = b"property diet little foster provide disagree witness mountain alley weekend kitten general" - secret_keys = skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, 3)[1:] - secret_keys_2 = skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(seed[:16], 3)[1:] + secret_keys = skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, 3)[ + 1:] + secret_keys_2 = skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(seed[:16], 3)[ + 1:] assert secret_keys != secret_keys_2 + +def test_TestPubKeyFromHex(): + p1 = skycoin.cipher_PubKey() + # Invalid hex + err = skycoin.SKY_cipher_PubKeyFromHex(b"", p1) + assert err == skycoin.SKY_ErrInvalidLengthPubKey + err = skycoin.SKY_cipher_PubKeyFromHex(b"cascs", p1) + assert err == skycoin.SKY_ErrInvalidPubKey + + +def test_TestPubKeyHex(): + p, sk = utils.makecipher_PubKeyAndcipher_SecKey() + err, s3 = skycoin.SKY_cipher_PubKey_Hex(p) + assert err == skycoin.SKY_OK + p2 = skycoin.cipher_PubKey() + err = skycoin.SKY_cipher_PubKeyFromHex(s3, p2) + assert err == skycoin.SKY_OK + assert p == p2 + err, s4 = skycoin.SKY_cipher_PubKey_Hex(p2) + assert err == skycoin.SKY_OK + assert s3 == s4 + + +def test_TestSecKeyFromHex(): + sk = skycoin.cipher_SecKey() + # Invalid hex + err = skycoin.SKY_cipher_SecKeyFromHex(b"", sk) + assert err == skycoin.SKY_ErrInvalidLengthSecKey + err = skycoin.SKY_cipher_SecKeyFromHex(b"cascs", sk) + assert err == skycoin.SKY_ErrInvalidSecKey + # INvalid hex length + err, b = skycoin.SKY_cipher_RandByte(32) + p = skycoin.cipher_SecKey() + err = skycoin.SKY_cipher_NewSecKey(b, p) + assert err == skycoin.SKY_OK diff --git a/lib/swig/tests/test_cipher_hash.py b/lib/swig/tests/test_cipher_hash.py index 9b8e8920..6da5cdbc 100644 --- a/lib/swig/tests/test_cipher_hash.py +++ b/lib/swig/tests/test_cipher_hash.py @@ -2,6 +2,7 @@ import tests.utils import base64 + def freshSumRipemd160(b): rp160 = skycoin.cipher_Ripemd160() skycoin.SKY_cipher_HashRipemd160(b, rp160) @@ -33,13 +34,17 @@ def test_TestHashRipemd160(): def test_TestRipemd160Set(): h = skycoin.cipher_Ripemd160() _, b = skycoin.SKY_cipher_RandByte(21) - assert skycoin.SKY_cipher_Ripemd160_Set(h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 + assert skycoin.SKY_cipher_Ripemd160_Set( + h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 _, b = skycoin.SKY_cipher_RandByte(100) - assert skycoin.SKY_cipher_Ripemd160_Set(h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 + assert skycoin.SKY_cipher_Ripemd160_Set( + h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 _, b = skycoin.SKY_cipher_RandByte(19) - assert skycoin.SKY_cipher_Ripemd160_Set(h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 + assert skycoin.SKY_cipher_Ripemd160_Set( + h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 _, b = skycoin.SKY_cipher_RandByte(0) - assert skycoin.SKY_cipher_Ripemd160_Set(h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 + assert skycoin.SKY_cipher_Ripemd160_Set( + h, b) == skycoin.SKY_ErrInvalidLengthRipemd160 _, b = skycoin.SKY_cipher_RandByte(20) assert skycoin.SKY_cipher_Ripemd160_Set(h, b) == skycoin.SKY_OK _, b1 = skycoin.SKY_cipher_RandByte(20) @@ -50,13 +55,17 @@ def test_TestRipemd160Set(): def test_TestSHA256Set(): h = skycoin.cipher_SHA256() _, b = skycoin.SKY_cipher_RandByte(33) - assert skycoin.SKY_cipher_SHA256_Set(h, b) == skycoin.SKY_ErrInvalidLengthSHA256 + assert skycoin.SKY_cipher_SHA256_Set( + h, b) == skycoin.SKY_ErrInvalidLengthSHA256 _, b = skycoin.SKY_cipher_RandByte(100) - assert skycoin.SKY_cipher_SHA256_Set(h, b) == skycoin.SKY_ErrInvalidLengthSHA256 + assert skycoin.SKY_cipher_SHA256_Set( + h, b) == skycoin.SKY_ErrInvalidLengthSHA256 _, b = skycoin.SKY_cipher_RandByte(31) - assert skycoin.SKY_cipher_SHA256_Set(h, b) == skycoin.SKY_ErrInvalidLengthSHA256 + assert skycoin.SKY_cipher_SHA256_Set( + h, b) == skycoin.SKY_ErrInvalidLengthSHA256 _, b = skycoin.SKY_cipher_RandByte(0) - assert skycoin.SKY_cipher_SHA256_Set(h, b) == skycoin.SKY_ErrInvalidLengthSHA256 + assert skycoin.SKY_cipher_SHA256_Set( + h, b) == skycoin.SKY_ErrInvalidLengthSHA256 _, b = skycoin.SKY_cipher_RandByte(32) assert skycoin.SKY_cipher_SHA256_Set(h, b) == skycoin.SKY_OK _, b = skycoin.SKY_cipher_RandByte(32) @@ -190,71 +199,70 @@ def test_TestSHA256Null(): _, isNull = skycoin.SKY_cipher_SHA256_Null(x) assert not isNull -def test_TestMerkle(): - hashlist = [] - h = skycoin.cipher_SHA256() - for _ in range(5): - hashlist.append(h) - - for i in range(5): - err, data = skycoin.SKY_cipher_RandByte(128) - assert err == skycoin.SKY_OK - err = skycoin.SKY_cipher_SumSHA256(data, hashlist[i]) - assert err == skycoin.SKY_OK - - # assert skycoin.SKY_cipher_Merkle(hashlist,h) == 45 - - - -# err, data = skycoin.SKY_cipher_RandByte(128) -# assert err == skycoin.SKY_OK -# h = skycoin.cipher_SHA256() -# err = skycoin.SKY_cipher_SumSHA256(data, h) -# assert err == skycoin.SKY_OK -# Single hash input returns hash -# a = [x for x in h] -# assert skycoin.SKY_cipher_Merkle(a,h) == 45 -# DoubleSHA256 double SHA256 -# func DoubleSHA256(b []byte) SHA256 { -# h1 := SumSHA256(b) -# h2 := SumSHA256(h1[:]) -# return h2 -# } - -# // AddSHA256 returns the SHA256 hash of to two concatenated hashes -# func AddSHA256(a SHA256, b SHA256) SHA256 { -# c := append(a[:], b[:]...) -# return SumSHA256(c) -# } - -# // Returns the next highest power of 2 above n, if n is not already a -# // power of 2 -# func nextPowerOfTwo(n uint64) uint64 { -# var k uint64 = 1 -# for k < n { -# k *= 2 -# } -# return k -# } - -# // Merkle computes the merkle root of a hash array -# // Array of hashes is padded with 0 hashes until next power of 2 -# func Merkle(h0 []SHA256) SHA256 { -# lh := uint64(len(h0)) -# np := nextPowerOfTwo(lh) -# h1 := append(h0, make([]SHA256, np-lh)...) -# for len(h1) != 1 { -# h2 := make([]SHA256, len(h1)/2) -# for i := 0; i < len(h2); i++ { -# h2[i] = AddSHA256(h1[2*i], h1[2*i+1]) -# } -# h1 = h2 -# } -# return h1[0] -# } - -# def merkle(h0): -# lh = base64.standard_b64decode(len(h0)) -# np = - -# def nextPowerOfTwo(): +# def test_TestMerkle(): +# hashlist = [] +# h = skycoin.cipher_SHA256() +# for _ in range(5): +# hashlist.append(h) + +# for i in range(5): +# err, data = skycoin.SKY_cipher_RandByte(128) +# assert err == skycoin.SKY_OK +# err = skycoin.SKY_cipher_SumSHA256(data, hashlist[i]) +# assert err == skycoin.SKY_OK + +# # assert skycoin.SKY_cipher_Merkle(hashlist,h) == 45 + + +# # err, data = skycoin.SKY_cipher_RandByte(128) +# # assert err == skycoin.SKY_OK +# # h = skycoin.cipher_SHA256() +# # err = skycoin.SKY_cipher_SumSHA256(data, h) +# # assert err == skycoin.SKY_OK +# # Single hash input returns hash +# # a = [x for x in h] +# # assert skycoin.SKY_cipher_Merkle(a,h) == 45 +# # DoubleSHA256 double SHA256 +# # func DoubleSHA256(b []byte) SHA256 { +# # h1 := SumSHA256(b) +# # h2 := SumSHA256(h1[:]) +# # return h2 +# # } + +# # // AddSHA256 returns the SHA256 hash of to two concatenated hashes +# # func AddSHA256(a SHA256, b SHA256) SHA256 { +# # c := append(a[:], b[:]...) +# # return SumSHA256(c) +# # } + +# # // Returns the next highest power of 2 above n, if n is not already a +# # // power of 2 +# # func nextPowerOfTwo(n uint64) uint64 { +# # var k uint64 = 1 +# # for k < n { +# # k *= 2 +# # } +# # return k +# # } + +# # // Merkle computes the merkle root of a hash array +# # // Array of hashes is padded with 0 hashes until next power of 2 +# # func Merkle(h0 []SHA256) SHA256 { +# # lh := uint64(len(h0)) +# # np := nextPowerOfTwo(lh) +# # h1 := append(h0, make([]SHA256, np-lh)...) +# # for len(h1) != 1 { +# # h2 := make([]SHA256, len(h1)/2) +# # for i := 0; i < len(h2); i++ { +# # h2[i] = AddSHA256(h1[2*i], h1[2*i+1]) +# # } +# # h1 = h2 +# # } +# # return h1[0] +# # } + +# # def merkle(h0): +# # lh = base64.standard_b64decode(len(h0)) +# # np = + +# # def nextPowerOfTwo(): diff --git a/lib/swig/tests/test_cipher_scrypt_chacha20poly1305_test.py b/lib/swig/tests/test_cipher_scrypt_chacha20poly1305_test.py index 9c6fdfdb..c881be29 100644 --- a/lib/swig/tests/test_cipher_scrypt_chacha20poly1305_test.py +++ b/lib/swig/tests/test_cipher_scrypt_chacha20poly1305_test.py @@ -4,12 +4,13 @@ import tests.utils define = { -"PLAINTEXT" : b"plaintext", -"PASSWORD" : b"password", -"ENCRYPTED" : b"dQB7Im4iOjUyNDI4OCwiciI6OCwicCI6MSwia2V5TGVuIjozMiwic2FsdCI6ImpiejUrSFNjTFFLWkI5T0tYblNNRmt2WDBPY3JxVGZ0ZFpDNm9KUFpaeHc9Iiwibm9uY2UiOiJLTlhOQmRQa1ZUWHZYNHdoIn3PQFmOot0ETxTuv//skTG7Q57UVamGCgG5", -"SCRYPTCHACHA20METALENGTHSIZE" : 2, + "PLAINTEXT": b"plaintext", + "PASSWORD": b"password", + "ENCRYPTED": b"dQB7Im4iOjUyNDI4OCwiciI6OCwicCI6MSwia2V5TGVuIjozMiwic2FsdCI6ImpiejUrSFNjTFFLWkI5T0tYblNNRmt2WDBPY3JxVGZ0ZFpDNm9KUFpaeHc9Iiwibm9uY2UiOiJLTlhOQmRQa1ZUWHZYNHdoIn3PQFmOot0ETxTuv//skTG7Q57UVamGCgG5", + "SCRYPTCHACHA20METALENGTHSIZE": 2, } + def test_TestScryptChacha20poly1305Encrypt(): for i in range(20)[1:]: crypto = skycoin.encrypt__ScryptChacha20poly1305() @@ -17,7 +18,8 @@ def test_TestScryptChacha20poly1305Encrypt(): crypto.P = 1 crypto.KeyLen = 32 crypto.N = 1 << i - _, encData = skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(crypto, define["PLAINTEXT"], define["PASSWORD"]) + _, encData = skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt( + crypto, define["PLAINTEXT"], define["PASSWORD"]) assert _ == skycoin.SKY_OK Data = base64.standard_b64decode(encData) ml_ = [x for x in Data] @@ -26,11 +28,11 @@ def test_TestScryptChacha20poly1305Encrypt(): _Data = [chr(x) for x in Data] D = "" for x in _Data: - D += x + D += x Data = D else: ml = ord(ml_[0]) - assert int(define["SCRYPTCHACHA20METALENGTHSIZE"]+ml) <= len(Data) + assert int(define["SCRYPTCHACHA20METALENGTHSIZE"] + ml) <= len(Data) m = json.loads(Data[define["SCRYPTCHACHA20METALENGTHSIZE"]:define["SCRYPTCHACHA20METALENGTHSIZE"] + ml]) print(m) assert m["n"] == 1 << i @@ -38,6 +40,7 @@ def test_TestScryptChacha20poly1305Encrypt(): assert m["p"] == 1 assert m["keyLen"] == 32 + def test_TestScryptChacha20poly1305Decrypt(): encrypto = b"dQB7Im4iOjUyNDI4OCwiciI6OCwicCI6MSwia2V5TGVuIjozMiwic2FsdCI6ImpiejUrSFNjTFFLWkI5T0tYblNNRmt2WDBPY3JxVGZ0ZFpDNm9KUFpaeHc9Iiwibm9uY2UiOiJLTlhOQmRQa1ZUWHZYNHdoIn3PQFmOot0ETxTuv//skTG7Q57UVamGCgG5" password = b"pwd" @@ -46,13 +49,15 @@ def test_TestScryptChacha20poly1305Decrypt(): crypto.R = 8 crypto.P = 1 crypto.KeyLen = 32 - crypto.N = 1 << 19 - err, decrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(crypto, encrypto, password) + crypto.N = 1 << 19 + err, decrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt( + crypto, encrypto, password) assert err == skycoin.SKY_OK and decrypted == define["PLAINTEXT"] # Wrong Password - err, decrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(crypto, encrypto, invalid_passwd) + err, decrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt( + crypto, encrypto, invalid_passwd) assert err == skycoin.SKY_ERROR # Missing Password - err, decrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(crypto, encrypto, b"") + err, decrypted = skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt( + crypto, encrypto, b"") assert err == skycoin.SKY_ERROR - diff --git a/lib/swig/tests/test_cipher_secp256k1.py b/lib/swig/tests/test_cipher_secp256k1.py new file mode 100644 index 00000000..12506549 --- /dev/null +++ b/lib/swig/tests/test_cipher_secp256k1.py @@ -0,0 +1,38 @@ +import skycoin +import tests.utils as utils +from random import randint + +_testSeckey = [ + b"08efb79385c9a8b0d1c6f5f6511be0c6f6c2902963d874a3a4bacc18802528d3", + b"78298d9ecdc0640c9ae6883201a53f4518055442642024d23c45858f45d0c3e6", + b"04e04fe65bfa6ded50a12769a3bd83d7351b2dbff08c9bac14662b23a3294b9e", + b"2f5141f1b75747996c5de77c911dae062d16ae48799052c04ead20ccd5afa113", + +] + + +def test_Test_Abnormal_Keys2(): + for tt in _testSeckey: + err, s = skycoin.SKY_base58_String2Hex(tt) + assert err == skycoin.SKY_OK + err, p = skycoin.SKY_secp256k1_PubkeyFromSeckey(s) + assert err == skycoin.SKY_OK + err = skycoin.SKY_secp256k1_VerifyPubkey(p) + + +def test_Test_Abnormal_Keys3(): + for tt in _testSeckey: + err, s = skycoin.SKY_base58_String2Hex(tt) + assert err == skycoin.SKY_OK + err, p = skycoin.SKY_secp256k1_PubkeyFromSeckey(s) + assert err == skycoin.SKY_OK + n = randint(0, len(_testSeckey) - 1) + err, s2 = skycoin.SKY_base58_String2Hex(_testSeckey[n]) + assert err == skycoin.SKY_OK + err, p2 = skycoin.SKY_secp256k1_PubkeyFromSeckey(s2) + assert err == skycoin.SKY_OK + err, puba = skycoin.SKY_secp256k1_ECDH(p, s2) + assert err == skycoin.SKY_OK + err, pubb = skycoin.SKY_secp256k1_ECDH(p2, s) + assert err == skycoin.SKY_OK + assert puba == pubb diff --git a/lib/swig/tests/test_coin_block.py b/lib/swig/tests/test_coin_block.py index 9f7fdd5a..51b54d01 100644 --- a/lib/swig/tests/test_coin_block.py +++ b/lib/swig/tests/test_coin_block.py @@ -12,19 +12,20 @@ def makeTestTransactions(): def makeNewBlock(uxHash): - bodyhash = skycoin.cipher_SHA256() transactions = makeTestTransactions() err, block = skycoin.SKY_coin_NewEmptyBlock(transactions) assert err == skycoin.SKY_OK - err, pBlock = skycoin.SKY_coin_GetBlockObject(block) + err, pBlockHeader = skycoin.SKY_coin_Block_GetBlockHeader(block) assert err == skycoin.SKY_OK - pBlock.Head.Version = 0x02 - pBlock.Head.Time = 100 - pBlock.Head.BkSeq = 0 - pBlock.Head.Fee = 10 - err, body = skycoin.SKY_coin_GetBlockBody(block) + err = skycoin.SKY_coin_BlockHeader_SetTime(pBlockHeader, 100) + assert err == skycoin.SKY_OK + err = skycoin.SKY_coin_BlockHeader_SetBkSeq(pBlockHeader, 0) assert err == skycoin.SKY_OK - err = skycoin.SKY_coin_BlockBody_Hash(body, bodyhash) + err = skycoin.SKY_coin_BlockHeader_SetVersion(pBlockHeader, 0x02) + assert err == skycoin.SKY_OK + err = skycoin.SKY_coin_BlockHeader_SetFee(pBlockHeader, 10) + assert err == skycoin.SKY_OK + err, body = skycoin.SKY_coin_GetBlockBody(block) assert err == skycoin.SKY_OK return skycoin.SKY_coin_NewBlock(block, int(100 + 200), uxHash, transactions, utils.feeCalc) @@ -45,15 +46,18 @@ def test_TestNewBlock(): pBlock.Head.Time = 100 pBlock.Head.BkSeq = 98 uxHash = utils.RandSHA256() - err, _ = skycoin.SKY_coin_NewBlock(block, 133, uxHash, txns, utils.badFeeCalculator) - assert err == skycoin.SKY_ERROR + err, _ = skycoin.SKY_coin_NewBlock( + block, 133, uxHash, txns, utils.badFeeCalculator) + assert err != skycoin.SKY_OK err, txns1 = skycoin.SKY_coin_Create_Transactions() assert err == skycoin.SKY_OK - err, _ = skycoin.SKY_coin_NewBlock(block, 133, uxHash, txns1, utils.feeCalc) - assert err == skycoin.SKY_ERROR + err, _ = skycoin.SKY_coin_NewBlock( + block, 133, uxHash, txns1, utils.feeCalc) + assert err != skycoin.SKY_OK fee = int(121) currentTime = int(133) - err, b = skycoin.SKY_coin_NewBlock(block, currentTime, uxHash, txns, utils.fix121FeeCalculator) + err, b = skycoin.SKY_coin_NewBlock( + block, currentTime, uxHash, txns, utils.fix121FeeCalculator) assert err == skycoin.SKY_OK err, pBlock = skycoin.SKY_coin_GetBlockObject(b) assert err == skycoin.SKY_OK @@ -69,7 +73,8 @@ def test_TestBlockHashHeader(): hash2 = skycoin.cipher_SHA256() err = skycoin.SKY_coin_Block_HashHeader(block, hash1) assert err == skycoin.SKY_OK - err = skycoin.SKY_coin_BlockHeader_Hash(pBlock.Head, hash2) + err, blockheader = skycoin.SKY_coin_Block_GetBlockHeader(block) + err = skycoin.SKY_coin_BlockHeader_Hash(blockheader, hash2) assert err == skycoin.SKY_OK assert hash1.toStr() == hash2.toStr() hash2 = skycoin.cipher_SHA256() @@ -101,9 +106,9 @@ def test_TestNewGenesisBlock(): genCoins = int(1000 * 1000 * 1000) genCoinHours = int(1000 * 1000) - err , pubkey, seckey, address = utils.makeKeysAndAddress() + err, pubkey, seckey, address = utils.makeKeysAndAddress() assert err == skycoin.SKY_OK - err , block = skycoin.SKY_coin_NewGenesisBlock(address, genCoins, genTime) + err, block = skycoin.SKY_coin_NewGenesisBlock(address, genCoins, genTime) assert err == skycoin.SKY_OK err, pBlock = skycoin.SKY_coin_GetBlockObject(block) assert err == skycoin.SKY_OK @@ -120,7 +125,7 @@ def test_TestNewGenesisBlock(): class testcase: index = 0 - failure = skycoin.SKY_OK + failure = 0 def test_TestCreateUnspent(): @@ -128,7 +133,8 @@ def test_TestCreateUnspent(): assert err == skycoin.SKY_OK hash1 = skycoin.cipher_SHA256() handle = utils.makeEmptyTransaction() - err = skycoin.SKY_coin_Transaction_PushOutput(handle, address, 11000000, 255) + err = skycoin.SKY_coin_Transaction_PushOutput( + handle, address, 11000000, 255) assert err == skycoin.SKY_OK bh = skycoin.coin__BlockHeader() bh.Time = 0 @@ -144,7 +150,7 @@ def test_TestCreateUnspent(): tests_count = len(t) for i in range(tests_count): err = skycoin.SKY_coin_CreateUnspent(bh, handle, t[i].index, ux) - if t[i].failure == skycoin.SKY_ERROR : + if t[i].failure == skycoin.SKY_ERROR: pass assert bh.Time == ux.Head.Time assert bh.BkSeq == ux.Head.BkSeq @@ -155,13 +161,13 @@ def test_TestCreateUnspents(): assert err == skycoin.SKY_OK hash1 = skycoin.cipher_SHA256() txn = utils.makeEmptyTransaction() - err = skycoin.SKY_coin_Transaction_PushOutput(txn, address, int(11e6), int(255)) + err = skycoin.SKY_coin_Transaction_PushOutput( + txn, address, int(11e6), int(255)) assert err == skycoin.SKY_OK bh = skycoin.coin__BlockHeader() bh.Time = 0 bh.BkSeq = 1 - err , uxouts = skycoin.SKY_coin_CreateUnspents(bh, txn) + err, uxouts = skycoin.SKY_coin_CreateUnspents(bh, txn) assert err == skycoin.SKY_OK assert err == skycoin.SKY_OK assert len(uxouts) == 1 - diff --git a/lib/swig/tests/test_coin_math.py b/lib/swig/tests/test_coin_math.py index 5cbab095..432480bd 100644 --- a/lib/swig/tests/test_coin_math.py +++ b/lib/swig/tests/test_coin_math.py @@ -3,17 +3,17 @@ def test_TestAddUint64(): - err, n = skycoin.SKY_coin_AddUint64(10, 11) + err, n = skycoin.SKY_util_AddUint64(10, 11) assert err == skycoin.SKY_OK assert int(21) == n - err, n = skycoin.SKY_coin_AddUint64(int(0xFFFFFFFFFFFFFFFF), 1) + err, n = skycoin.SKY_util_AddUint64(int(0xFFFFFFFFFFFFFFFF), 1) assert err == skycoin.SKY_ErrUint64AddOverflow class math_test: a = 0 b = 0 - err = skycoin.SKY_OK + err = 0 def test_TestUint64ToInt64(): @@ -33,7 +33,7 @@ def test_TestUint64ToInt64(): cases.append(values) for val in cases: s = int(val.a) - err, x = skycoin.SKY_coin_Uint64ToInt64(s) + err, x = skycoin.SKY_util_Uint64ToInt64(s) if err != skycoin.SKY_OK: assert skycoin.SKY_ErrUint64AddOverflow == val.err else: @@ -57,7 +57,7 @@ def test_TestInt64ToUint64(): cases.append(values) for val in cases: s = int(val.a) - err, x = skycoin.SKY_coin_Int64ToUint64(s) + err, x = skycoin.SKY_util_Int64ToUint64(s) if err != skycoin.SKY_OK: assert skycoin.SKY_ErrUint64AddOverflow == val.err else: diff --git a/lib/swig/tests/test_coin_math64bits.py b/lib/swig/tests/test_coin_math64bits.py index ea8fe452..e37f01ac 100644 --- a/lib/swig/tests/test_coin_math64bits.py +++ b/lib/swig/tests/test_coin_math64bits.py @@ -6,23 +6,20 @@ class StrTmp(): a = 0 b = ctypes.c_uint32(0) - err = skycoin.SKY_OK + err = 0 - def __init__(self, a, b, err=skycoin.SKY_OK): + def __init__(self, a, b, err=0): self.a = a self.b = b self.err = err -cases = [] - -cases.append(StrTmp((1 << 32), 0, skycoin.SKY_ErrIntOverflowsUint32)) -cases.append(StrTmp((1 << 32 - 1), (1 << 32 - 1))) - - def test_Test64BitIntToUint32(): + cases = [] + cases.append(StrTmp((1 << 32), 0, skycoin.SKY_ErrIntOverflowsUint32)) + cases.append(StrTmp((1 << 32 - 2), (1 << 32 - 2))) for tc in cases: - err, x = skycoin.SKY_coin_IntToUint32(tc.a) + err, x = skycoin.SKY_util_IntToUint32(tc.a) if err != skycoin.SKY_OK: assert tc.err == err else: diff --git a/lib/swig/tests/test_coin_outputs.py b/lib/swig/tests/test_coin_outputs.py index 118bee32..fea50a36 100644 --- a/lib/swig/tests/test_coin_outputs.py +++ b/lib/swig/tests/test_coin_outputs.py @@ -379,7 +379,7 @@ def test_TestUxArraySwap(): uxy = utils.make_UxOut() uxa[0] = uxx uxa[1] = uxy - err = skycoin.SKY_coin_UxArray_Swap(uxa, 0, 1) + err = skycoin.SKY_coin_UxArray_Swap(uxa, 0, 1) assert err == skycoin.SKY_OK uxa[0] = uxy uxa[1] = uxx @@ -565,7 +565,7 @@ def test_TestAddressUxOutsFlatten(): assert len(flatArray) == 3 for x in flatArray: assert x.Body.Address != emptyAddr - + if flatArray[0].Body.Address == uxa[0].Body.Address: assert flatArray[0] == uxa[0] assert flatArray[0].Body.Address == uxa[0].Body.Address diff --git a/lib/swig/tests/test_coin_transaction.py b/lib/swig/tests/test_coin_transaction.py index b901edb4..f7dc1e1c 100644 --- a/lib/swig/tests/test_coin_transaction.py +++ b/lib/swig/tests/test_coin_transaction.py @@ -44,8 +44,8 @@ def test_TestTransactionVerify(): h = skycoin.cipher_SHA256() assert skycoin.SKY_coin_Transaction_GetInputAt( handle, 0, h) == skycoin.SKY_OK - err, _ = skycoin.SKY_coin_Transaction_PushInput(handle, h) - assert err == skycoin.SKY_OK + r = skycoin.SKY_coin_Transaction_PushInput(handle, h) + assert r == skycoin.SKY_OK assert skycoin.SKY_coin_Transaction_ResetSignatures( handle, 0) == skycoin.SKY_OK secKeys = [] @@ -129,7 +129,7 @@ def test_TestTransactionVerifyInput(): handle, tx = utils.makeTransactionFromUxOut(ux, s) seckeys = [] seckeys.append(ux) - assert skycoin.SKY_coin_Transaction_VerifyInput( + assert skycoin.SKY_coin_VerifyInputSignatures( handle, seckeys) == skycoin.SKY_OK @@ -138,7 +138,7 @@ def test_TestTransactionPushInput(): ux = utils.makeUxOut() sha = skycoin.cipher_SHA256() assert skycoin.SKY_coin_UxOut_Hash(ux, sha) == skycoin.SKY_OK - _, r = skycoin.SKY_coin_Transaction_PushInput(handle, sha) + r = skycoin.SKY_coin_Transaction_PushInput(handle, sha) assert r == 0 _, count = skycoin.SKY_coin_Transaction_GetInputsCount(handle) assert count == 1 @@ -147,9 +147,8 @@ def test_TestTransactionPushInput(): assert sha == sha1 skycoin.SKY_coin_Transaction_ResetInputs(handle, 0) for _ in range(utils.MaxUint16): - err, _ = skycoin.SKY_coin_Transaction_PushInput( + skycoin.SKY_coin_Transaction_PushInput( handle, skycoin.cipher_SHA256()) - assert err == skycoin.SKY_OK ux = utils.makeUxOut() assert skycoin.SKY_coin_UxOut_Hash(ux, sha) == skycoin.SKY_OK @@ -190,7 +189,8 @@ def test_TestTransactionSignInputs(): handle = utils.makeEmptyTransaction() # Panics if txns already signed sig = skycoin.cipher_Sig() - assert skycoin.SKY_coin_Transaction_PushSignature(handle, sig) == skycoin.SKY_OK + assert skycoin.SKY_coin_Transaction_PushSignature( + handle, sig) == skycoin.SKY_OK secKeys = [] secKeys.append(skycoin.cipher_SecKey()) # Panics if not enough keys @@ -198,12 +198,10 @@ def test_TestTransactionSignInputs(): ux, s = utils.makeUxOutWithSecret() h = skycoin.cipher_SHA256() assert skycoin.SKY_coin_UxOut_Hash(ux, h) == skycoin.SKY_OK - err, _ = skycoin.SKY_coin_Transaction_PushInput(handle, h) - assert err == skycoin.SKY_OK + skycoin.SKY_coin_Transaction_PushInput(handle, h) ux2, s2 = utils.makeUxOutWithSecret() assert skycoin.SKY_coin_UxOut_Hash(ux2, h) == skycoin.SKY_OK - err, _ = skycoin.SKY_coin_Transaction_PushInput(handle, h) - assert err == skycoin.SKY_OK + skycoin.SKY_coin_Transaction_PushInput(handle, h) assert skycoin.SKY_coin_Transaction_PushOutput( handle, utils.makeAddress(), 40, 80) == skycoin.SKY_OK err, count = skycoin.SKY_coin_Transaction_GetSignaturesCount(handle) @@ -247,6 +245,7 @@ def test_TestTransactionSignInputs(): assert skycoin.SKY_coin_Transaction_GetSignatureAt( handle, 1, txsig1) == skycoin.SKY_OK + def test_TestTransactionHash(): handle, _ = utils.makeTransaction() h = skycoin.cipher_SHA256() @@ -257,6 +256,7 @@ def test_TestTransactionHash(): handle, h2) == skycoin.SKY_OK assert h != h2 + def test_TestTransactionUpdateHeader(): handle, tx = utils.makeTransaction() h = skycoin.cipher_SHA256() @@ -272,6 +272,7 @@ def test_TestTransactionUpdateHeader(): assert h1 == h assert h1 == h2 + def test_TestTransactionHashInner(): handle, tx = utils.makeTransaction() h = skycoin.cipher_SHA256() @@ -329,6 +330,7 @@ def test_TestTransactionHashInner(): handle2, sha2) == skycoin.SKY_OK assert sha1 == sha2 + def test_TestTransactionSerialization(): handle, tx = utils.makeTransaction() err, b = skycoin.SKY_coin_Transaction_Serialize(handle) @@ -339,6 +341,7 @@ def test_TestTransactionSerialization(): assert err == skycoin.SKY_OK assert tx == tx2 + def test_TestTransactionOutputHours(): handle = utils.makeEmptyTransaction() assert skycoin.SKY_coin_Transaction_PushOutput( @@ -358,6 +361,7 @@ def test_TestTransactionOutputHours(): err, _ = skycoin.SKY_coin_Transaction_OutputHours(handle) assert err == skycoin.SKY_ERROR + def test_TestTransactionsSize(): handle = utils.makeTransactions(10) size = 0 @@ -373,6 +377,7 @@ def test_TestTransactionsSize(): assert err == skycoin.SKY_OK assert sizetx == size + def test_TestTransactionsHashes(): handle = utils.makeTransactions(4) err, hashes = skycoin.SKY_coin_Transactions_Hashes(handle) @@ -387,6 +392,7 @@ def test_TestTransactionsHashes(): assert h == hashes[i] i += 1 + def test_TestTransactionsTruncateBytesTo(): handles = utils.makeTransactions(10) trunc = 0 @@ -476,17 +482,20 @@ def test_TestTransactionsTruncateBytesTo(): assert err == skycoin.SKY_OK assert count == trunc + class ux(): coins = 0 hours = 0 + class cases(): name = "" inUxs = [] outUxs = [] - err = skycoin.SKY_OK + err = 0 headTime = 0 + def test_TestVerifyTransactionCoinsSpending(): case = [] inu1 = ux() @@ -590,6 +599,7 @@ def test_TestVerifyTransactionCoinsSpending(): assert skycoin.SKY_coin_VerifyTransactionCoinsSpending( uxIn, uxOut) == tc.err + def test_TestVerifyTransactionHoursSpending(): case = [] # Case #1 @@ -748,12 +758,15 @@ def test_TestVerifyTransactionHoursSpending(): assert skycoin.SKY_coin_VerifyTransactionHoursSpending( tc.headTime, uxIn, uxOut) == tc.err + def calc(transactions): return skycoin.SKY_OK, 1 + def overflowCalc(transaction): return skycoin.SKY_ERROR, utils.MaxUint64 + def test_TestTransactionsFees(): txns = utils.makeTransactions(0) # Nil txns diff --git a/lib/swig/tests/test_testsuite.py b/lib/swig/tests/test_testsuite.py index b79325c7..23b478d2 100644 --- a/lib/swig/tests/test_testsuite.py +++ b/lib/swig/tests/test_testsuite.py @@ -1,160 +1,159 @@ -import skycoin -import base64 -import binascii - -# InputTestData contains hashes to be signed -class InputTestData(): - Hashes = [] - - -# SeedTestData contains data generated by Seed -class SeedTestData(): - Seed = [] - Keys = [] - - -# KeysTestData contains address, public key, secret key and list of signatures -class KeysTestData(): - Address = "" - Secret = "" - Public = "" - Signatures = [] - - -# InputTestDataFromJSON converts InputTestDataJSON to InputTestData -def InputTestDataFromJSON(InputTestDataJSON): - hashes = [] - for h in InputTestDataJSON.Hashes: - h2 = skycoin.cipher_SHA256() - err = skycoin.SKY_cipher_SHA256FromHex(h.encode(), h2) #ok python2 - hashes.append(h2) - if err != skycoin.SKY_OK: - return skycoin.SKY_ERROR, None - return skycoin.SKY_OK, hashes - - -# KeysTestDataFromJSON converts KeysTestDataJSON to KeysTestData -def KeysTestDataFromJSON(KeysTestDataJSON): - address = skycoin.cipher__Address() - err = skycoin.SKY_cipher_DecodeBase58Address(KeysTestDataJSON["address"].encode(), address) - if err != skycoin.SKY_OK: - return skycoin.SKY_ERROR, None - err, hex_str = skycoin.SKY_base58_String2Hex(KeysTestDataJSON["secret"].encode()) - assert err == skycoin.SKY_OK - secret_key = skycoin.cipher_SecKey() - err = skycoin.SKY_cipher_NewSecKey(hex_str, secret_key) - assert err == skycoin.SKY_OK - - err , secret_key_hex = skycoin.SKY_cipher_SecKey_Hex(secret_key) - if err != skycoin.SKY_OK: - return skycoin.SKY_ERROR, None - - err, hex_str = skycoin.SKY_base58_String2Hex(KeysTestDataJSON["public"].encode()) - assert err == skycoin.SKY_OK - public_key = skycoin.cipher_PubKey() - err = skycoin.SKY_cipher_NewPubKey(hex_str, public_key) - assert err == skycoin.SKY_OK - - err , public_key_hex = skycoin.SKY_cipher_PubKey_Hex(public_key) - if err != skycoin.SKY_OK: - return skycoin.SKY_ERROR, None - - r = KeysTestData() - r.Address = address - r.Public = public_key_hex - r.Secret = secret_key_hex - r.Signatures = 0 - if KeysTestDataJSON.get("signatures") == None: - return skycoin.SKY_OK, r - sigs = [] - if len(KeysTestDataJSON["signatures"]) >= 0: - for s in KeysTestDataJSON["signatures"]: - sig_fromHex = skycoin.cipher_Sig() - err = skycoin.SKY_cipher_SigFromHex(s.encode(), sig_fromHex) - assert err == skycoin.SKY_OK - sigs.append(sig_fromHex) - assert err == skycoin.SKY_OK - r.Signatures = sigs - return skycoin.SKY_OK, r - - -# SeedTestDataFromJSON converts SeedTestDataJSON to SeedTestData -def SeedTestDataFromJSON(SeedTestDataJSON): - seed = base64.standard_b64decode(SeedTestDataJSON.Seed) - keys = [] - for kj in SeedTestDataJSON.Keys: - err, k = KeysTestDataFromJSON(kj) - if err == skycoin.SKY_ERROR: - return skycoin.SKY_ERROR, None - keys.append(k) - r = SeedTestData() - r.Seed = seed - r.Keys = keys - return skycoin.SKY_OK, r - -# ValidateSeedData validates the provided SeedTestData against the current cipher library. -# inputData is required if SeedTestData contains signatures -def ValidateSeedData(SeedTestData = None, InputTestData = None): - err, keys = skycoin.SKY_cipher_GenerateDeterministicKeyPairs(SeedTestData.Seed, len(SeedTestData.Keys)) - assert err == skycoin.SKY_OK - if len(SeedTestData.Keys) != len(keys): - return skycoin.SKY_ERROR - for i, s in enumerate(keys): - secret_Key_null = skycoin.cipher_SecKey() - if s == secret_Key_null: - return skycoin.SKY_ErrInvalidSecKey - if (SeedTestData.Keys[i].Secret).decode() != binascii.hexlify(bytearray(s.toStr())).decode('ascii'): - assert err == skycoin.SKY_ERROR - p = skycoin.cipher_PubKey() - p_null = skycoin.cipher_PubKey() - err = skycoin.SKY_cipher_PubKeyFromSecKey(s, p) - if p == p_null: - return skycoin.SKY_ErrInvalidPubKey - if (SeedTestData.Keys[i].Public).decode() != binascii.hexlify(bytearray(p.toStr())).decode('ascii'): - return skycoin.SKY_ErrInvalidPubKey - addr1 = skycoin.cipher__Address() - addr_null = skycoin.cipher__Address() - err = skycoin.SKY_cipher_AddressFromPubKey(p, addr1) - assert err == skycoin.SKY_OK - if addr1 == addr_null: - return skycoin.SKY_ErrAddressInvalidPubKey - if not(SeedTestData.Keys[i].Address == addr1): - return skycoin.SKY_ErrAddressInvalidChecksum - addr2 = skycoin.cipher__Address() - err = skycoin.SKY_cipher_AddressFromSecKey(s, addr2) - assert err == skycoin.SKY_OK - if not(addr1 == addr2): - return skycoin.SKY_ErrAddressInvalidChecksum - - if InputTestData == None and SeedTestData.Keys[i].Signatures != 0: - return skycoin.SKY_ERROR - - if InputTestData != None: - if len(SeedTestData.Keys[i].Signatures) != len(InputTestData): - return skycoin.SKY_ERROR - - for j in range(len(InputTestData)): - sig = SeedTestData.Keys[i].Signatures[j] - sig_null = skycoin.cipher_Sig() - if sig == sig_null: - return skycoin.SKY_ERROR - - - err = skycoin.SKY_cipher_VerifySignedHash(sig, InputTestData[j]) - if err != skycoin.SKY_OK: - return skycoin.SKY_ERROR - - p2 = skycoin.cipher_PubKey() - err = skycoin.SKY_cipher_PubKeyFromSig(sig, InputTestData[j], p2) - if err != skycoin.SKY_OK: - return skycoin.SKY_ERROR - if not(p == p2): - return 1 - return skycoin.SKY_ERROR - - sig2 = skycoin.cipher_Sig() - skycoin.SKY_cipher_SignHash(InputTestData[j], s, sig2) - if sig2 == sig_null: - return skycoin.SKY_ERROR - return skycoin.SKY_OK - +# import skycoin +# import base64 +# import binascii + +# # InputTestData contains hashes to be signed +# class InputTestData(): +# Hashes = [] + + +# # SeedTestData contains data generated by Seed +# class SeedTestData(): +# Seed = [] +# Keys = [] + + +# # KeysTestData contains address, public key, secret key and list of signatures +# class KeysTestData(): +# Address = "" +# Secret = "" +# Public = "" +# Signatures = [] + + +# # InputTestDataFromJSON converts InputTestDataJSON to InputTestData +# def InputTestDataFromJSON(InputTestDataJSON): +# hashes = [] +# for h in InputTestDataJSON.Hashes: +# h2 = skycoin.cipher_SHA256() +# err = skycoin.SKY_cipher_SHA256FromHex(h.encode(), h2) #ok python2 +# hashes.append(h2) +# if err != skycoin.SKY_OK: +# return skycoin.SKY_ERROR, None +# return skycoin.SKY_OK, hashes + + +# # KeysTestDataFromJSON converts KeysTestDataJSON to KeysTestData +# def KeysTestDataFromJSON(KeysTestDataJSON): +# address = skycoin.cipher__Address() +# err = skycoin.SKY_cipher_DecodeBase58Address(KeysTestDataJSON["address"].encode(), address) +# if err != skycoin.SKY_OK: +# return skycoin.SKY_ERROR, None +# err, hex_str = skycoin.SKY_base58_String2Hex(KeysTestDataJSON["secret"].encode()) +# assert err == skycoin.SKY_OK +# secret_key = skycoin.cipher_SecKey() +# err = skycoin.SKY_cipher_NewSecKey(hex_str, secret_key) +# assert err == skycoin.SKY_OK + +# err , secret_key_hex = skycoin.SKY_cipher_SecKey_Hex(secret_key) +# if err != skycoin.SKY_OK: +# return skycoin.SKY_ERROR, None + +# err, hex_str = skycoin.SKY_base58_String2Hex(KeysTestDataJSON["public"].encode()) +# assert err == skycoin.SKY_OK +# public_key = skycoin.cipher_PubKey() +# err = skycoin.SKY_cipher_NewPubKey(hex_str, public_key) +# assert err == skycoin.SKY_OK + +# err , public_key_hex = skycoin.SKY_cipher_PubKey_Hex(public_key) +# if err != skycoin.SKY_OK: +# return skycoin.SKY_ERROR, None + +# r = KeysTestData() +# r.Address = address +# r.Public = public_key_hex +# r.Secret = secret_key_hex +# r.Signatures = 0 +# if KeysTestDataJSON.get("signatures") == None: +# return skycoin.SKY_OK, r +# sigs = [] +# if len(KeysTestDataJSON["signatures"]) >= 0: +# for s in KeysTestDataJSON["signatures"]: +# sig_fromHex = skycoin.cipher_Sig() +# err = skycoin.SKY_cipher_SigFromHex(s.encode(), sig_fromHex) +# assert err == skycoin.SKY_OK +# sigs.append(sig_fromHex) +# assert err == skycoin.SKY_OK +# r.Signatures = sigs +# return skycoin.SKY_OK, r + + +# # SeedTestDataFromJSON converts SeedTestDataJSON to SeedTestData +# def SeedTestDataFromJSON(SeedTestDataJSON): +# seed = base64.standard_b64decode(SeedTestDataJSON.Seed) +# keys = [] +# for kj in SeedTestDataJSON.Keys: +# err, k = KeysTestDataFromJSON(kj) +# if err == skycoin.SKY_ERROR: +# return skycoin.SKY_ERROR, None +# keys.append(k) +# r = SeedTestData() +# r.Seed = seed +# r.Keys = keys +# return skycoin.SKY_OK, r + +# # ValidateSeedData validates the provided SeedTestData against the current cipher library. +# # inputData is required if SeedTestData contains signatures +# def ValidateSeedData(SeedTestData = None, InputTestData = None): +# err, keys = skycoin.SKY_cipher_GenerateDeterministicKeyPairs(SeedTestData.Seed, len(SeedTestData.Keys)) +# assert err == skycoin.SKY_OK +# if len(SeedTestData.Keys) != len(keys): +# return skycoin.SKY_ERROR +# for i, s in enumerate(keys): +# secret_Key_null = skycoin.cipher_SecKey() +# if s == secret_Key_null: +# return skycoin.SKY_ErrInvalidSecKey +# if (SeedTestData.Keys[i].Secret).decode() != binascii.hexlify(bytearray(s.toStr())).decode('ascii'): +# assert err == skycoin.SKY_ERROR +# p = skycoin.cipher_PubKey() +# p_null = skycoin.cipher_PubKey() +# err = skycoin.SKY_cipher_PubKeyFromSecKey(s, p) +# if p == p_null: +# return skycoin.SKY_ErrInvalidPubKey +# if (SeedTestData.Keys[i].Public).decode() != binascii.hexlify(bytearray(p.toStr())).decode('ascii'): +# return skycoin.SKY_ErrInvalidPubKey +# addr1 = skycoin.cipher__Address() +# addr_null = skycoin.cipher__Address() +# err = skycoin.SKY_cipher_AddressFromPubKey(p, addr1) +# assert err == skycoin.SKY_OK +# if addr1 == addr_null: +# return skycoin.SKY_ErrAddressInvalidPubKey +# if not(SeedTestData.Keys[i].Address == addr1): +# return skycoin.SKY_ErrAddressInvalidChecksum +# addr2 = skycoin.cipher__Address() +# err = skycoin.SKY_cipher_AddressFromSecKey(s, addr2) +# assert err == skycoin.SKY_OK +# if not(addr1 == addr2): +# return skycoin.SKY_ErrAddressInvalidChecksum + +# if InputTestData == None and SeedTestData.Keys[i].Signatures != 0: +# return skycoin.SKY_ERROR + +# if InputTestData != None: +# if len(SeedTestData.Keys[i].Signatures) != len(InputTestData): +# return skycoin.SKY_ERROR + +# for j in range(len(InputTestData)): +# sig = SeedTestData.Keys[i].Signatures[j] +# sig_null = skycoin.cipher_Sig() +# if sig == sig_null: +# return skycoin.SKY_ERROR + + +# #err = skycoin.SKY_cipher_VerifySignedHash(sig, InputTestData[j]) +# #if err != skycoin.SKY_OK: +# # return skycoin.SKY_ERROR + +# p2 = skycoin.cipher_PubKey() +# err = skycoin.SKY_cipher_PubKeyFromSig(sig, InputTestData[j], p2) +# if err != skycoin.SKY_OK: +# return skycoin.SKY_ERROR +# if not(p == p2): +# return 1 +# return skycoin.SKY_ERROR + +# sig2 = skycoin.cipher_Sig() +# skycoin.SKY_cipher_SignHash(InputTestData[j], s, sig2) +# if sig2 == sig_null: +# return skycoin.SKY_ERROR +# return skycoin.SKY_OK diff --git a/lib/swig/tests/test_testsuite_test.py b/lib/swig/tests/test_testsuite_test.py index 5f328446..b4309bdc 100644 --- a/lib/swig/tests/test_testsuite_test.py +++ b/lib/swig/tests/test_testsuite_test.py @@ -1,58 +1,58 @@ -import skycoin -from . import test_testsuite -import json -import os -import re +# import skycoin +# from . import test_testsuite +# import json +# import os +# import re -# testdataDir = "./testdata/" -testdataDir = "./gopath/src/github.com/skycoin/skycoin/src/cipher/testsuite/testdata/" -manyAddressesFilename = "many-addresses.golden" -inputHashesFilename = "input-hashes.golden" -seedFileRegex = "seed-\d+.golden" +# # testdataDir = "./testdata/" +# testdataDir = "gopath/src/github.com/skycoin/libskycoin/vendor/github.com/skycoin/skycoin/src/cipher/testsuite/testdata/" +# manyAddressesFilename = "many-addresses.golden" +# inputHashesFilename = "input-hashes.golden" +# seedFileRegex = "seed-\d+.golden" -def test_TestManyAddresses(): - f = open(testdataDir+manyAddressesFilename,'r') - fn = f.read() - f_JSON = json.loads(fn) - dataJSON = test_testsuite.SeedTestData() - dataJSON.Seed = f_JSON["seed"] - dataJSON.Keys = f_JSON["keys"] - err, data = test_testsuite.SeedTestDataFromJSON(dataJSON) - assert err == skycoin.SKY_OK - err = test_testsuite.ValidateSeedData(data, None) - assert err == skycoin.SKY_OK +# def test_TestManyAddresses(): +# f = open(testdataDir+manyAddressesFilename,'r') +# fn = f.read() +# f_JSON = json.loads(fn) +# dataJSON = test_testsuite.SeedTestData() +# dataJSON.Seed = f_JSON["seed"] +# dataJSON.Keys = f_JSON["keys"] +# err, data = test_testsuite.SeedTestDataFromJSON(dataJSON) +# assert err == skycoin.SKY_OK +# err = test_testsuite.ValidateSeedData(data, None) +# assert err == skycoin.SKY_OK -def test_TestSeedSignatures(): - f = open(testdataDir+inputHashesFilename,'r') - fn = f.read() - f_JSON = json.loads(fn) - inputDataJSON = test_testsuite.InputTestData() - inputDataJSON.Hashes = f_JSON["hashes"] - err, inputData = test_testsuite.InputTestDataFromJSON(inputDataJSON) - assert err == skycoin.SKY_OK - err, seedFiles = traverseFiles() - assert err == skycoin.SKY_OK - for dir_f in seedFiles: - f = open(testdataDir+dir_f,'r') - fn = f.read() - f_JSON = json.loads(fn) - dataJSON = test_testsuite.SeedTestData() - dataJSON.Seed = f_JSON["seed"] - dataJSON.Keys = f_JSON["keys"] - err, data = test_testsuite.SeedTestDataFromJSON(dataJSON) - assert err == skycoin.SKY_OK - err = test_testsuite.ValidateSeedData(data, inputData) - assert err == skycoin.SKY_OK +# def test_TestSeedSignatures(): +# f = open(testdataDir+inputHashesFilename,'r') +# fn = f.read() +# f_JSON = json.loads(fn) +# inputDataJSON = test_testsuite.InputTestData() +# inputDataJSON.Hashes = f_JSON["hashes"] +# err, inputData = test_testsuite.InputTestDataFromJSON(inputDataJSON) +# assert err == skycoin.SKY_OK +# err, seedFiles = traverseFiles() +# assert err == skycoin.SKY_OK +# for dir_f in seedFiles: +# f = open(testdataDir+dir_f,'r') +# fn = f.read() +# f_JSON = json.loads(fn) +# dataJSON = test_testsuite.SeedTestData() +# dataJSON.Seed = f_JSON["seed"] +# dataJSON.Keys = f_JSON["keys"] +# err, data = test_testsuite.SeedTestDataFromJSON(dataJSON) +# assert err == skycoin.SKY_OK +# err = test_testsuite.ValidateSeedData(data, inputData) +# assert err == skycoin.SKY_OK -def traverseFiles(): - files = [] - root = os.listdir(testdataDir) - pattern = re.compile(seedFileRegex) - for path in root: - if pattern.match(path): - files.append(path) - if len(files) == 0: - return skycoin.SKY_ERROR, None - return skycoin.SKY_OK, files \ No newline at end of file +# def traverseFiles(): +# files = [] +# root = os.listdir(testdataDir) +# pattern = re.compile(seedFileRegex) +# for path in root: +# if pattern.match(path): +# files.append(path) +# if len(files) == 0: +# return skycoin.SKY_ERROR, None +# return skycoin.SKY_OK, files diff --git a/lib/swig/tests/test_util_droplet.py b/lib/swig/tests/test_util_droplet.py index eef0f949..d4673e17 100644 --- a/lib/swig/tests/test_util_droplet.py +++ b/lib/swig/tests/test_util_droplet.py @@ -5,13 +5,13 @@ class tmpstruct: s = "", n = 0, - e = skycoin.SKY_OK + e = 0 - def __init__(self, _s, _n, _e=skycoin.SKY_OK): + def __init__(self, _s, _n, _e=0): self.e = _e self.s = _s self.n = _n - + def test_TestFromString(): cases = [] @@ -49,7 +49,7 @@ def test_TestFromString(): for i in range(len(cases)): tc = cases[i] err, n = skycoin.SKY_droplet_FromString(tc.s) - + if tc.e == skycoin.SKY_OK: assert tc.e == err assert tc.n == n @@ -69,7 +69,7 @@ def test_TestToString(): cases.append(tmpstruct(b"999.000000", 999000000)) cases.append(tmpstruct(b"123.000456", 123000456)) cases.append(tmpstruct(b"", 9223372036854775808, skycoin.SKY_ErrTooLarge)) - + for tcc in cases: tc = tcc err, s = skycoin.SKY_droplet_ToString(tc.n) @@ -78,4 +78,4 @@ def test_TestToString(): assert tc.s == s else: assert tc.e == err - assert None == s \ No newline at end of file + assert None == s diff --git a/lib/swig/tests/test_util_fee.py b/lib/swig/tests/test_util_fee.py index 19a60777..d1a984f9 100644 --- a/lib/swig/tests/test_util_fee.py +++ b/lib/swig/tests/test_util_fee.py @@ -5,41 +5,54 @@ class verifyTxFeeTestCase: inputHours = 0 outputHours = 0 - err = skycoin.SKY_OK + err = 0 - def __init__(self, _inputHours, _outputHours, _err=skycoin.SKY_OK): + def __init__(self, _inputHours, _outputHours, _err=0): self.inputHours = _inputHours self.outputHours = _outputHours self.err = _err -burnFactor2verifyTxFeeTestCase = [] - -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(0, 0, skycoin.SKY_ErrTxnNoFee)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(1, 0, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(1, 1, skycoin.SKY_ErrTxnNoFee)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(2, 0, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(2, 1, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(2, 2, skycoin.SKY_ErrTxnNoFee)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(3, 0, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(3, 1, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(3, 2, skycoin.SKY_ErrTxnInsufficientFee)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(3, 3, skycoin.SKY_ErrTxnNoFee)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(4, 0, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(4, 1, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(4, 2, skycoin.SKY_OK)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(4, 3, skycoin.SKY_ErrTxnInsufficientFee)) -burnFactor2verifyTxFeeTestCase.append(verifyTxFeeTestCase(4, 4, skycoin.SKY_ErrTxnNoFee)) - - def test_TestVerifyTransactionFee(): + burnFactor2verifyTxFeeTestCase = [] + + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(0, 0, skycoin.SKY_ErrTxnNoFee)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(1, 0, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(1, 1, skycoin.SKY_ErrTxnNoFee)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(2, 0, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(2, 1, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(2, 2, skycoin.SKY_ErrTxnNoFee)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(3, 0, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(3, 1, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(3, 2, skycoin.SKY_ErrTxnInsufficientFee)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(3, 3, skycoin.SKY_ErrTxnNoFee)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(4, 0, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(4, 1, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(4, 2, skycoin.SKY_OK)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(4, 3, skycoin.SKY_ErrTxnInsufficientFee)) + burnFactor2verifyTxFeeTestCase.append( + verifyTxFeeTestCase(4, 4, skycoin.SKY_ErrTxnNoFee)) addr = utils.makeAddress() emptyTxn = utils.makeEmptyTransaction() err, hours = skycoin.SKY_coin_Transaction_OutputHours(emptyTxn) assert err == skycoin.SKY_OK assert 0 == hours - # A txn with no outputs hours and no coinhours burn fee is valid + # A txn with no outputs hours and no coinhours burn fee is valid err = skycoin.SKY_fee_VerifyTransactionFee(emptyTxn, 0, 2) assert err == skycoin.SKY_ErrTxnNoFee @@ -49,12 +62,12 @@ def test_TestVerifyTransactionFee(): txn = utils.makeEmptyTransaction() addr = utils.makeAddress() - err = skycoin.SKY_coin_Transaction_PushOutput(txn, addr , 0, int(1e6)) + err = skycoin.SKY_coin_Transaction_PushOutput(txn, addr, 0, int(1e6)) assert err == skycoin.SKY_OK - err = skycoin.SKY_coin_Transaction_PushOutput(txn, addr , 0, int(3e6)) + err = skycoin.SKY_coin_Transaction_PushOutput(txn, addr, 0, int(3e6)) assert err == skycoin.SKY_OK - err , hours = skycoin.SKY_coin_Transaction_OutputHours(txn) + err, hours = skycoin.SKY_coin_Transaction_OutputHours(txn) assert err == skycoin.SKY_OK assert hours == int(4e6) @@ -76,11 +89,13 @@ def test_TestVerifyTransactionFee(): assert err == skycoin.SKY_OK # fee + hours overflows - err = skycoin.SKY_fee_VerifyTransactionFee(txn, utils.MaxUint64 - int(3e6), 2) + err = skycoin.SKY_fee_VerifyTransactionFee( + txn, utils.MaxUint64 - int(3e6), 2) assert err == skycoin.SKY_ERROR # txn has overflowing output hours - err = skycoin.SKY_coin_Transaction_PushOutput(txn, addr, 0, int(utils.MaxUint64 - 1e6 - 3e6 + 1)) + err = skycoin.SKY_coin_Transaction_PushOutput( + txn, addr, 0, int(utils.MaxUint64 - 1e6 - 3e6 + 1)) assert err == skycoin.SKY_OK err = skycoin.SKY_fee_VerifyTransactionFee(txn, 10, 2) assert err == skycoin.SKY_ERROR @@ -89,9 +104,11 @@ def test_TestVerifyTransactionFee(): for tc in cases: txn = utils.makeEmptyTransaction() - err = skycoin.SKY_coin_Transaction_PushOutput(txn, addr, 0, tc.outputHours) + err = skycoin.SKY_coin_Transaction_PushOutput( + txn, addr, 0, tc.outputHours) assert tc.inputHours >= tc.outputHours - err = skycoin.SKY_fee_VerifyTransactionFee(txn, int(tc.inputHours - tc.outputHours), 2) + err = skycoin.SKY_fee_VerifyTransactionFee( + txn, int(tc.inputHours - tc.outputHours), 2) assert tc.err == err @@ -104,30 +121,29 @@ def __init__(self, _hours, _fee): self.fee = _fee -burnFactor2RequiredFeeTestCases = [] - -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(0, 0)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(1, 1)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(2, 1)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(3, 2)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(4, 2)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(5, 3)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(6, 3)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(7, 4)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(998, 499)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(999, 500)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(1000, 500)) -burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(1001, 501)) - - def test_TestRequiredFee(): + + burnFactor2RequiredFeeTestCases = [] + + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(0, 0)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(1, 1)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(2, 1)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(3, 2)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(4, 2)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(5, 3)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(6, 3)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(7, 4)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(998, 499)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(999, 500)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(1000, 500)) + burnFactor2RequiredFeeTestCases.append(requiredFeeTestCase(1001, 501)) cases = burnFactor2RequiredFeeTestCases for tc in cases: - err , fee = skycoin.SKY_fee_RequiredFee(tc.hours, 2) + err, fee = skycoin.SKY_fee_RequiredFee(tc.hours, 2) assert err == skycoin.SKY_OK assert tc.fee == fee - err , remainingHours = skycoin.SKY_fee_RemainingHours(tc.hours, 2) + err, remainingHours = skycoin.SKY_fee_RemainingHours(tc.hours, 2) assert err == skycoin.SKY_OK assert ((tc.hours - fee) == remainingHours) @@ -149,7 +165,7 @@ class tmpstruct: ins = [] headTime = 0 fee = 0 - err = skycoin.SKY_OK + err = 0 def __init__(self): self.name = "" @@ -157,64 +173,62 @@ def __init__(self): self.ins = [] self.headTime = 0 self.fee = 0 - self.err = skycoin.SKY_OK - - -headTime = int(1000) -nextTime = int(headTime + 3600) # 1 hour later - -cases = [] -# Test case with one output, one input -case1 = tmpstruct() -case1.fee = 5 -case1.headTime = 1000 -case1.out = [5] -case1.ins.append(uxInput(headTime, 10e6, 10)) -cases.append(case1) - -# Test case with multiple outputs, multiple inputs -case2 = tmpstruct() -case2.fee = 0 -case2.headTime = 1000 -case2.out = [5, 7, 3] -case2.ins.append(uxInput(headTime, int(10e6), 10)) -case2.ins.append(uxInput(headTime, int(10e6), 5)) -cases.append(case2) -# # Test case with multiple outputs, multiple inputs, and some inputs have more CoinHours once adjusted for HeadTime -case3 = tmpstruct() -case3.fee = 8 -case3.headTime = 1000 -case3.out.append(5) -case3.out.append(10) -case3.ins.append(uxInput(nextTime, 10e6, 10)) -case3.ins.append(uxInput(nextTime, 8e6, 5)) -# Test case with insufficient coin hours -case4 = tmpstruct() -case4.err = skycoin.SKY_ErrTxnInsufficientCoinHours -case4.out.append(5) -case4.out.append(10) -case4.out.append(1) -case4.ins.append(uxInput(headTime, 10e6, 10)) -case4.ins.append(uxInput(headTime, 8e6, 5)) -# Test case with overflowing input hours -case5 = tmpstruct() -case5.err = skycoin.SKY_ERROR -case5.out.append(0) -case5.ins.append(uxInput(headTime, 10e6, 10)) -case5.ins.append(uxInput(headTime, 10e6, utils.MaxUint64 - 9)) -case5.headTime = 1000 -# Test case with overflowing output hours -case6 = tmpstruct() -case6.err = skycoin.SKY_ERROR -case6.out.append(0) -case6.out.append(10) -case6.out.append(utils.MaxUint64 - 9) -case6.ins.append(uxInput(headTime, 10e6, 10)) -case6.ins.append(uxInput(headTime, 10e6, 100)) -case6.headTime = 1000 + self.err = 0 def test_TestTransactionFee(): + headTime = int(1000) + nextTime = int(headTime + 3600) # 1 hour later + + cases = [] + # Test case with one output, one input + case1 = tmpstruct() + case1.fee = 5 + case1.headTime = 1000 + case1.out = [5] + case1.ins.append(uxInput(headTime, 10e6, 10)) + cases.append(case1) + + # Test case with multiple outputs, multiple inputs + case2 = tmpstruct() + case2.fee = 0 + case2.headTime = 1000 + case2.out = [5, 7, 3] + case2.ins.append(uxInput(headTime, int(10e6), 10)) + case2.ins.append(uxInput(headTime, int(10e6), 5)) + cases.append(case2) + # # Test case with multiple outputs, multiple inputs, and some inputs have more CoinHours once adjusted for HeadTime + case3 = tmpstruct() + case3.fee = 8 + case3.headTime = 1000 + case3.out.append(5) + case3.out.append(10) + case3.ins.append(uxInput(nextTime, 10e6, 10)) + case3.ins.append(uxInput(nextTime, 8e6, 5)) + # Test case with insufficient coin hours + case4 = tmpstruct() + case4.err = skycoin.SKY_ErrTxnInsufficientCoinHours + case4.out.append(5) + case4.out.append(10) + case4.out.append(1) + case4.ins.append(uxInput(headTime, 10e6, 10)) + case4.ins.append(uxInput(headTime, 8e6, 5)) + # Test case with overflowing input hours + case5 = tmpstruct() + case5.err = skycoin.SKY_ERROR + case5.out.append(0) + case5.ins.append(uxInput(headTime, 10e6, 10)) + case5.ins.append(uxInput(headTime, 10e6, utils.MaxUint64 - 9)) + case5.headTime = 1000 + # Test case with overflowing output hours + case6 = tmpstruct() + case6.err = skycoin.SKY_ERROR + case6.out.append(0) + case6.out.append(10) + case6.out.append(utils.MaxUint64 - 9) + case6.ins.append(uxInput(headTime, 10e6, 10)) + case6.ins.append(uxInput(headTime, 10e6, 100)) + case6.headTime = 1000 addr = utils.makeAddress() for j in range(len(cases)): tc = cases[j] @@ -222,13 +236,13 @@ def test_TestTransactionFee(): for h in tc.out: err = skycoin.SKY_coin_Transaction_PushOutput(tx, addr, 0, h) assert err == skycoin.SKY_OK - + inUxs = utils.makeUxArray(len(tc.ins)) - for i in range(len(tc.ins)): + for i in range(len(tc.ins)): b = tc.ins[i] inUxs[i].Head.Time = b.time inUxs[i].Body.Coins = int(b.coins) inUxs[i].Body.Hours = int(b.hours) err, fee = skycoin.SKY_fee_TransactionFee(tx, int(tc.headTime), inUxs) assert err == tc.err - assert tc.fee == fee \ No newline at end of file + assert tc.fee == fee diff --git a/lib/swig/tests/test_util_param_distribution.py b/lib/swig/tests/test_util_param_distribution.py index 9aadf076..b0da459b 100644 --- a/lib/swig/tests/test_util_param_distribution.py +++ b/lib/swig/tests/test_util_param_distribution.py @@ -3,13 +3,17 @@ def test_TestDistributionAddressArrays(): - addrs = skycoin.SKY_params_GetDistributionAddresses() + err, dist = skycoin.SKY_params_Distribution_GetMainNetDistribution() + assert err == skycoin.SKY_OK + err, addrs = skycoin.SKY_params_Distribution_GetAddresses(dist) + assert err == skycoin.SKY_OK assert len(addrs) == 100 # At the time of this writing, there should be 25 addresses in the - # unlocked pool and 75 in the locked pool. - unlocked = skycoin.SKY_params_GetUnlockedDistributionAddresses() + # unlocked pool and 75 in the locked pool. + err, unlocked = skycoin.SKY_params_Distribution_UnlockedAddresses(dist) assert len(unlocked) == 25 - locked = skycoin.SKY_params_GetLockedDistributionAddresses() + assert err == skycoin.SKY_OK + err, locked = skycoin.SKY_params_Distribution_LockedAddresses(dist) assert len(locked) == 75 for i in range(len(addrs)): iStr = addrs[i] @@ -18,7 +22,7 @@ def test_TestDistributionAddressArrays(): break jStr = addrs[i + 1] assert iStr != jStr - + for i in range(len(unlocked)): iStr = unlocked[i] for j in range(i + 1): diff --git a/lib/swig/tests/utils/transutil.py b/lib/swig/tests/utils/transutil.py index 2a45926a..7474896d 100644 --- a/lib/swig/tests/utils/transutil.py +++ b/lib/swig/tests/utils/transutil.py @@ -5,10 +5,15 @@ MaxUint16 = 0xFFFF -def makeAddress(): +def makecipher_PubKeyAndcipher_SecKey(): p = skycoin.cipher_PubKey() s = skycoin.cipher_SecKey() - assert skycoin.SKY_cipher_GenerateKeyPair(p, s) == skycoin.SKY_OK + err = skycoin.SKY_cipher_GenerateKeyPair(p, s) + return p, s + + +def makeAddress(): + p, s = makecipher_PubKeyAndcipher_SecKey() a = skycoin.cipher__Address() assert skycoin.SKY_cipher_AddressFromPubKey(p, a) == skycoin.SKY_OK return a @@ -20,8 +25,7 @@ def makeTransactionFromUxOut(ux, s): h = skycoin.cipher_SHA256() assert skycoin.SKY_cipher_SecKey_Verify(s) == skycoin.SKY_OK assert skycoin.SKY_coin_UxOut_Hash(ux, h) == skycoin.SKY_OK - err, r = skycoin.SKY_coin_Transaction_PushInput(handle, h) - assert err == skycoin.SKY_OK + r = skycoin.SKY_coin_Transaction_PushInput(handle, h) assert skycoin.SKY_coin_Transaction_PushOutput( handle, makeAddress(), int(1e6), int(50)) == skycoin.SKY_OK assert skycoin.SKY_coin_Transaction_PushOutput( @@ -182,4 +186,113 @@ def makeKeysAndAddress(): paddress = skycoin.cipher__Address() err = skycoin.SKY_cipher_AddressFromPubKey(ppubkey, paddress) assert err == skycoin.SKY_OK - return err, ppubkey, pseckey, paddress \ No newline at end of file + return err, ppubkey, pseckey, paddress + + +def isPrivateKeyEq(handle1, handle2): + err, Version1 = skycoin.SKY_bip32_PrivateKey_GetVersion(handle1) + assert err == skycoin.SKY_OK + err, Version2 = skycoin.SKY_bip32_PrivateKey_GetVersion(handle2) + assert err == skycoin.SKY_OK + if(Version1 != Version2): + print("Version not equal\n") + return 0 + + err, Depth1 = skycoin.SKY_bip32_PrivateKey_GetDepth(handle1) + assert err == skycoin.SKY_OK + err, Depth2 = skycoin.SKY_bip32_PrivateKey_GetDepth(handle2) + assert err == skycoin.SKY_OK + if(Depth1 != Depth2): + + print("Depth not equal ,", Depth1, "and ", Depth2, "\n") + return 0 + + err, ParentFingerprint1 = skycoin.SKY_bip32_PrivateKey_GetParentFingerprint( + handle1) + assert err == skycoin.SKY_OK + err, ParentFingerprint2 = skycoin.SKY_bip32_PrivateKey_GetParentFingerprint( + handle2) + assert err == skycoin.SKY_OK + if(ParentFingerprint1 != ParentFingerprint2): + print("ParentFingerprint not equal \n") + return 0 + + err, childNumber1 = skycoin.SKY_bip32_PrivateKey_ChildNumber(handle1) + assert err == skycoin.SKY_OK + err, childNumber2 = skycoin.SKY_bip32_PrivateKey_ChildNumber(handle2) + assert err == skycoin.SKY_OK + if(childNumber1 != childNumber2): + print("childNumber not equal\n") + return 0 + + err, ChainCode1 = skycoin.SKY_bip32_PrivateKey_GetChainCode(handle1) + assert err == skycoin.SKY_OK + err, ChainCode2 = skycoin.SKY_bip32_PrivateKey_GetChainCode(handle2) + assert err == skycoin.SKY_OK + if(ChainCode1 != ChainCode2): + print("ChainCode not equal\n") + return 0 + + err, Key1 = skycoin.SKY_bip32_PrivateKey_GetKey(handle1) + assert err == skycoin.SKY_OK + err, Key2 = skycoin.SKY_bip32_PrivateKey_GetKey(handle2) + assert err == skycoin.SKY_OK + if(Key1 != Key2): + print("Key not equal\n") + return 0 + + return 1 + + +def isPublicKeyEq(handle1, handle2): + err, Version1 = skycoin.SKY_bip32_PublicKey_GetVersion(handle1) + assert err == skycoin.SKY_OK + err, Version2 = skycoin.SKY_bip32_PublicKey_GetVersion(handle2) + assert err == skycoin.SKY_OK + if(Version1 != Version2): + print("Version not equal\n") + return 0 + + err, Depth1 = skycoin.SKY_bip32_PublicKey_GetDepth(handle1) + assert err == skycoin.SKY_OK + err, Depth2 = skycoin.SKY_bip32_PublicKey_GetDepth(handle2) + assert err == skycoin.SKY_OK + if(Depth1 != Depth2): + print("Depth not equal \n") + return 0 + + err, ParentFingerprint1 = skycoin.SKY_bip32_PublicKey_GetParentFingerprint( + handle1) + assert err == skycoin.SKY_OK + err, ParentFingerprint2 = skycoin.SKY_bip32_PublicKey_GetParentFingerprint( + handle2) + assert err == skycoin.SKY_OK + if(ParentFingerprint1 != ParentFingerprint2): + print("ParentFingerprint not equal \n") + return 0 + + err, childNumber1 = skycoin.SKY_bip32_PublicKey_ChildNumber(handle1) + assert err == skycoin.SKY_OK + err, childNumber2 = skycoin.SKY_bip32_PublicKey_ChildNumber(handle2) + assert err == skycoin.SKY_OK + if(childNumber1 != childNumber2): + print("childNumber not equal\n") + return 0 + + err, ChainCode1 = skycoin.SKY_bip32_PublicKey_GetChainCode(handle1) + assert err == skycoin.SKY_OK + err, ChainCode2 = skycoin.SKY_bip32_PublicKey_GetChainCode(handle2) + assert err == skycoin.SKY_OK + if(ChainCode1 != ChainCode2): + print("ChainCode not equal\n") + return 0 + + err, Key1 = skycoin.SKY_bip32_PublicKey_GetKey(handle1) + assert err == skycoin.SKY_OK + err, Key2 = skycoin.SKY_bip32_PublicKey_GetKey(handle2) + assert err == skycoin.SKY_OK + if(Key1 != Key2): + print("Key not equal\n") + return 0 + + return 1 diff --git a/lib/swig/tox.ini b/lib/swig/tox.ini index 033a8dc7..76bc8325 100644 --- a/lib/swig/tox.ini +++ b/lib/swig/tox.ini @@ -11,25 +11,25 @@ # and also to help confirm pull requests to this project. [tox] -envlist = py27,py34,py35, py36, py37 +envlist = py34,py35, py36, py37, py38 [testenv] basepython = - py27: python2.7 py34: python3.4 py35: python3.5 py36: python3.6 py37: python3.7 + py38: python3.8 deps = check-manifest readme_renderer flake8 pytest commands = - check-manifest --ignore tox.ini,tests* + check-manifest --ignore tox.ini,tests*,swig # python setup.py check -m -s # flake8 . py.test -v tests [flake8] -exclude = .tox,*.egg,build,data +exclude = .tox,*.egg,build,data,Dockerfile select = E,W,F diff --git a/requirements.dev.txt b/requirements.dev.txt index aeaad9b4..2a5944b7 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,3 +1,9 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 + coverage>=4.0.3 nose>=1.3.7 pluggy>=0.3.1 @@ -9,4 +15,7 @@ pytest-runner tox tox-pyenv wheel +autopep8 +pylint +yamllint