diff --git a/.gitignore b/.gitignore index a0d422f5..e87c4f45 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ __pycache__/ *.orig Pyskycoin-* eggs +wheelhouse/ *~ @@ -25,9 +26,14 @@ tests/mytest.py .tox .cache +# Temp files *.swp *.swo # IDES .idea/ -.vscode/ \ No newline at end of file +.vscode/ + +# SWIG +*.kbk + diff --git a/.travis.yml b/.travis.yml index 5d304c77..c11ca914 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,8 @@ matrix: dist: xenial python: 3.7 sudo: true + services: + - docker env: - TOXENV=py37 - PYTHON=3.7 @@ -58,40 +60,74 @@ matrix: - PYTHON=3.7.1 - TOXENV=py37 before_install: -- cd gopath/src/github.com/skycoin/skycoin && git checkout develop && 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)"; +- 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 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 +- 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 +script: +# Test PySkycoin +- make test-ci after_failure: - cat ./.tox/${TOXENV}/log/${TOXENV}-*.log -script: make test-ci 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 deploy: - provider: pypi - user: olemis - distributions: sdist bdist_wheel +- 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: oWPiupPzGPN4jIn8cPAus5XuQ5/sSwLs3mewMoDpnBt/N7rhvJU2QcWbKcWffKAimcOK+BEjGiqFRR2zi8J6HWa7dgumovyVX9Ojp+y8yPWeTkQ2tHLa4vlf/DaMtGTxSVqIWlpr2RANJ/aFmc7gLthnl7PiuC+EZ5mqRTRgirQkXDk+3I1BevQtvjXlYQMTSu9UaabxjX9RCHgB3uDSYTKwQhmv4ye5X501RkgB+dziq3okGbBtmGDD7I195sc0veeq7lgcCJnTC0CL9HUZKPj8i7j4zfk14ID/cv+XC3A4zZCoD5BnR3+c0PoG1vs/cLWqCgJb3GnbadEN9cDLXLLSCqCRkbOav4SpMIskOTfEjgCVkLocDaJLen3MEmj/4hyc8ayUjSulKuLgndWYTCYvQ0mXWHDHgTlsNw4zR8x+ETJPBMp69wGhHqgLivWdjdkfgMCgn5cUR47l1OD0TIWWvHMvqoXY2rL9OVT+iXdiqBvt6hQvqZQBs0BT+3DiiqTlCxi0czzhDklp/WkwA9WDo05A3SQ9CB1XjbZhcw0ulYxeOV8jC8JeWIXPH6F0ahzJqTjWXcze+AR21lbJkVgythJplRjvIPZGQRPaodNZ/jqOHARAFI5hm2Hme21K2U7UvdmsSjLSNgPN4ElzNjdIPuqCGJ5meIZYrWLmdcY= + 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: "$TOXENV = py37" + condition: $TRAVIS_OS_NAME = "osx" +# TODO: Upload manylinux wheels to PyPI diff --git a/.travis/build_wheels.sh b/.travis/build_wheels.sh new file mode 100755 index 00000000..4b76f02e --- /dev/null +++ b/.travis/build_wheels.sh @@ -0,0 +1,20 @@ +#!/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)" + +# Compile wheels +for PYBIN in /opt/python/*/bin; do + "${PYBIN}/pip" install -r /io/requirements.dev.txt + "${PYBIN}/pip" wheel /io/ -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/check_wheels.sh b/.travis/check_wheels.sh new file mode 100644 index 00000000..d34f9847 --- /dev/null +++ b/.travis/check_wheels.sh @@ -0,0 +1,12 @@ + +#!/bin/bash +set -e -x + +# Code that follows assumes that wheels have been generated by build_wheels.sh + +# Install packages and test +for PYBIN in /opt/python/*/bin/; do + "${PYBIN}/pip" install pyskycoin --no-index -f /io/wheelhouse + (cd /io ; "${PYBIN}/python" -m pytest --showlocals tests ) +done + diff --git a/.travis/install-linux.sh b/.travis/install-linux.sh index 1888a98f..1cb68edf 100644 --- a/.travis/install-linux.sh +++ b/.travis/install-linux.sh @@ -2,17 +2,27 @@ set -ev +# Environment checks +if [ "$PIP" == "" ]; then + export PIP='python -m pip' +fi + +# Repository root path +REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/.." +echo "Install Linux packages from $REPO_ROOT" + # Install gimme -curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme -chmod +x ~/bin/gimme +curl -sL -o "$HOME/bin/gimme" https://raw.githubusercontent.com/travis-ci/gimme/master/gimme +chmod +x "$HOME/bin/gimme" -#Install Python libraries -python -m pip install --upgrade pip setuptools wheel tox tox-travis tox-pyenv pytest pytest-runner +# Install Python libraries +$PIP install --upgrade pip setuptools tox-travis +$PIP install -r "$REPO_ROOT/requirements.dev.txt" # Compile SWIG mkdir swig_build && \ cd swig_build && \ - wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz && \ + 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 && \ sudo ./configure --prefix=/usr && \ diff --git a/CHANGELOG.md b/CHANGELOG.md index d2dd9e99..c085bcd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Add `make help` - Add Python-specific SWIG interface files - Add `skycoin/skycoindev-python:develop` Docker image including Python `3.4`, `3.5`, `3.6`, and `3.7` +- Support for Skycoin `api`, `cipher`, `cli`, `coin`, `params`, `util`, `wallet`, `wallet_option`. ### Fixed diff --git a/MANIFEST.in b/MANIFEST.in index 6ec89f8e..336a214c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,6 +4,9 @@ recursive-include . *.md # Include the license file include LICENSE.txt +include requirements.txt +include requirements.dev.txt + include Makefile include gopath/src/github.com/skycoin/skycoin/Makefile recursive-exclude *.a diff --git a/Makefile b/Makefile index dc3c4017..4e187086 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +.DEFAULT_GOAL := help +.PHONY: configure build-libc build-swig develop build-libc-swig build +.PHONY: test test-ci help + # Compilation output .ONESHELL: SHELL := /bin/bash @@ -11,6 +15,7 @@ BUILDLIBC_DIR = $(SKYBUILD_DIR)/libskycoin LIBC_DIR = $(SKYCOIN_DIR)/lib/cgo LIBSWIG_DIR = swig BUILD_DIR = build +DIST_DIR = dist BIN_DIR = $(SKYCOIN_DIR)/bin INCLUDE_DIR = $(SKYCOIN_DIR)/include FULL_PATH_LIB = $(PWD)/$(BUILDLIBC_DIR) @@ -29,6 +34,7 @@ endif configure: ## 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 @@ -40,7 +46,7 @@ $(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a ## Build libskycoin C client library -build-swig: ## Generate Pyhton C module from SWIG interfaces +build-swig: ## 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 @@ -64,6 +70,7 @@ develop: ## Install PySkycoin for development build-libc-swig: build-libc build-swig build: build-libc-swig ## Build PySkycoin Python package + $(PYTHON_BIN) setup.py build test-ci: ## Run tests on (Travis) CI build tox @@ -71,5 +78,31 @@ test-ci: ## Run tests on (Travis) CI build test: build-libc build-swig develop ## Run project test suite $(PYTHON_BIN) setup.py test +sdist: ## Create source distribution archive + $(PYTHON_BIN) setup.py sdist --formats=gztar + +bdist_wheel: ## Create architecture-specific binary wheel distribution archive + $(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 + ls wheelhouse/ + cp -v wheelhouse/* $(DIST_DIR) + +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 + ls wheelhouse/ + cp -v wheelhouse/* $(DIST_DIR) + +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 + help: ## List available commands @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' diff --git a/README.md b/README.md index b57eaebf..fbc9e9c0 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ The project has two branches: `master` and `develop`. 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 -imajor and minor version numbers followed by `dev` suffix e.g. `0.25dev`. +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. @@ -224,10 +224,10 @@ $ make test 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. Update files in https://github.com/skycoin/repo-info/tree/master/repos/skycoin/remote for `skycoin/skycoin-python` Docker image, adding a new file for the new version and adjusting any configuration text that may have changed 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. 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). @@ -243,7 +243,7 @@ make integration-test #### Creating release builds -Release builds should be created from `master` branch . After [updating release version](#update-the-version) it is necessary to follow these steps +Release builds should be created from git tags . After [updating release version](#update-the-version) it is necessary to follow these steps ```sh cd /path/to/pyskycoin diff --git a/docker/images/dev-cli/Dockerfile b/docker/images/dev-cli/Dockerfile index 8caf6c53..344d3702 100644 --- a/docker/images/dev-cli/Dockerfile +++ b/docker/images/dev-cli/Dockerfile @@ -39,12 +39,21 @@ RUN set -ex \ wget \ python-pip \ python3-pip \ - && pip install --upgrade pip \ - && pip3 install --upgrade pip + && pip install --upgrade pip virtualenv \ + && pip3 install --upgrade pip virtualenv \ + && mkdir -p /srv/venv/pysky27 \ + && mkdir -p /srv/venv/pysky34 \ + && mkdir -p /srv/venv/pysky35 \ + && mkdir -p /srv/venv/pysky36 \ + && mkdir -p /srv/venv/pysky37 \ + && virtualenv -p python2.7 /srv/venv/pysky27 \ + && /bin/bash -c "source /srv/venv/pysky27/bin/activate && pip install pyskycoin && deactivate" \ + && virtualenv -p python3.5 /srv/venv/pysky35 \ + && /bin/bash -c "source /srv/venv/pysky35/bin/activate && pip install pyskycoin && deactivate" # Install Python 3.7 # runtime dependencies -ENV PYTHON_VERSION 3.7.1 +ENV PYTHON_VERSION="3.7.2" RUN set -ex \ && buildDeps=" \ libexpat1-dev \ @@ -55,14 +64,14 @@ RUN set -ex \ " \ && 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" \ + && wget -qO python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ + && wget -qO 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 --no-tty -q --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 \ @@ -93,7 +102,7 @@ RUN set -ex \ # Install Python 3.6 # runtime dependencies -ENV PYTHON_VERSION 3.6.7 +ENV PYTHON_VERSION="3.6.8" RUN set -ex \ && buildDeps=" \ libexpat1-dev \ @@ -104,14 +113,14 @@ RUN set -ex \ " \ && 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" \ + && wget -qO python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ + && wget -qO 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 --no-tty -q --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 \ @@ -142,7 +151,7 @@ RUN set -ex \ # Install Python 3.4 # runtime dependencies -ENV PYTHON_VERSION 3.4.9 +ENV PYTHON_VERSION="3.4.9" RUN set -ex \ && buildDeps=" \ # as of Stretch, "gpg" is no longer included by default @@ -150,14 +159,14 @@ RUN set -ex \ " \ && 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" \ + && wget -qO python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ + && wget -qO 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 --no-tty -q --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 \ @@ -191,7 +200,7 @@ RUN set -ex \ && rm -rf /usr/src/python # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 18.1 +ENV PYTHON_PIP_VERSION="18.1" RUN set -ex; \ \ wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \ @@ -225,11 +234,18 @@ RUN set -ex; \ rm -f get-pip.py # Install packages in PIP_PACKAGES +# Create python virtualenv with pyskycoin pre-installed 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 + && python3.4 -m pip install --upgrade $PIP_PACKAGES \ + && python3.6 -m pip install --upgrade $PIP_PACKAGES \ + && python3.7 -m pip install --upgrade $PIP_PACKAGES \ + && virtualenv -p python3.4 /srv/venv/pysky34 \ + && /bin/bash -c "source /srv/venv/pysky34/bin/activate && pip install pyskycoin && deactivate" \ + && virtualenv -p python3.6 /srv/venv/pysky36 \ + && /bin/bash -c "source /srv/venv/pysky36/bin/activate && pip install pyskycoin && deactivate" \ + && virtualenv -p python3.7 /srv/venv/pysky37 \ + && /bin/bash -c "source /srv/venv/pysky37/bin/activate && 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..046a9077 100644 --- a/docker/images/dev-cli/README.md +++ b/docker/images/dev-cli/README.md @@ -2,10 +2,9 @@ ## Simple Tags -- [`develop` (*docker/images/dev/Dockerfile*)](https://github.com/simelo/pyskycoin/blob/develop/docker/images/dev/Dockerfile) -- [`dind` (*docker/images/dev/Dockerfile*)](https://github.com/simelo/pyskycoin/blob/develop/docker/images/dev/Dockerfile) +- [`develop, dind, vscode, vscode-dind` (*docker/images/dev-cli/Dockerfile*)](https://github.com/skycoin/pyskycoin/blob/develop/docker/images/dev-cli/Dockerfile) -# Pyskycoin CLI/DIND development image +## Pyskycoin CLI/DIND development image This image (CLI) has the necessary tools to build, test, edit, lint and version the Pyskycoin source code. It comes with some versions of Python (2.7, 3.4, 3.5 and 3.6) and with Vim editor installed, along with some plugins @@ -14,15 +13,15 @@ to ease go development and version control with git. Besides it is possible to use Docker in Docker (DIND) Pyskycoin development image, it is based on `skycoin/skycoindev-cli:dind` and provides all tools included in Pyskycoin CLI image. -# How to use this image +## How to use this image -## Initialize your development environment. +## Initialize your development environment ```sh $ mkdir src $ docker run --rm \ -v ${PWD}/src:/usr/local/src skycoin/skycoindev-python:develop \ - git clone https://github.com/simelo/pyskycoin.git \ + git clone https://github.com/skycoin/pyskycoin.git \ $ sudo chown -R `whoami` src ``` @@ -30,6 +29,21 @@ This downloads the pyskycoin source to src/pyskycoin and changes the owner to your user. This is necessary, because all processes inside the container run as root and the files created by it are therefore owned by root. +## Pre-installed pip packages + +In order to provide a good development environment for you, some pip packages has been installed: + +- [setuptools](https://pypi.org/project/setuptools/) +- [wheel](https://pypi.org/project/wheel/) +- [tox](https://pypi.org/project/tox/) +- [tox-pyenv](https://pypi.org/project/tox-pyenv/) +- [tox-travis](https://pypi.org/project/tox-travis/) +- [pytest](https://pypi.org/project/pytest/) +- [pytest-runner](https://pypi.org/project/pytest-runner/) +- [virtualenv](https://pypi.org/project/virtualenv/) +- [pylint](https://pypi.org/project/pylint/) +- [flake8](https://pypi.org/project/flake8/) + ## Running commands inside the container You can run commands by just passing them to the image. Everything is run @@ -56,7 +70,8 @@ $ docker run --rm \ ### Start a daemon instance ```sh -$ docker run --privileged --name some-name -d skycoin/skycoindev-python:dind +$ docker run --privileged --name some-name \ + -d skycoin/skycoindev-python:dind ``` ### Where to store data @@ -70,41 +85,91 @@ The downside is that you need to make sure that the directory exists, and that e ```sh $ docker run --privileged --name some-name \ - -v /my/own/var-lib-docker:/var/lib/docker \ + -v /my/own/var-lib-docker:/var/lib/docker \ -d skycoin/skycoindev-python:dind ``` -# Build your own images +### Use Visual Studio Code + +In order to use Visual Studio Code on development process, please read carefull +the [documentation of oficial Skycoin Visual Studio Code dev image](https://github.com/skycoin/skycoin/tree/develop/docker/images/dev-vscode#initialize-your-development-environment) + +#### Pre-installed extensions + +- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) +- [Python Docstring](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring) +- [Trailing Spaces](https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces) + +#### Add extensions to Visual Studio Code + +Like Skycoin Visual Studio Code dev image, you must pass `VS_EXTENSIONS` environment variable +to the command-line with extensions you prefer. **Pass it if you use a docker image with Visual Studio Code** + +```sh +$ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix \ + -v $PWD:/go/src/github.com/skycoin/pyskycoin \ + -w $GOPATH/src/github.com/skycoin/pyskycoin \ + -e DISPLAY=$DISPLAY \ + -e VS_EXTENSIONS="ms-python.python rebornix.Ruby" \ + skycoindev-python:vscode +``` + +## Build your own images The build process relies on the following parameters - `SOURCE_COMMIT`: the SHA1 hash of the commit being tested. - `IMAGE_NAME`: the name and tag of the Docker repository being built. - `DOCKERFILE_PATH`: the dockerfile currently being built. +- `PIP_PACKAGES`: pip packages to install inside docker image. +- `VS_EXTENSIONS` Visual Studio Code extensions to add on docker image. In order to build image from `skycoindev-cli:develop` execute the following shell command ```sh -$ cd skycoin +$ cd pyskycoin $ SOURCE_COMMIT=$(git rev-parse HEAD) $ IMAGE_NAME=skycoin/skycoindev-python:develop -$ DOCKERFILE_PATH=docker/images/dev/Dockerfile +$ DOCKERFILE_PATH=docker/images/dev-cli/Dockerfile $ docker build --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg SCOMMIT=$SOURCE_COMMIT \ + --build-arg PIP_PACKAGES="Twisted tox" \ -f $DOCKERFILE_PATH \ -t "$IMAGE_NAME" . ``` -If you prefer to use `skycoindev-cli:dind` then run: +If do you prefer to use `skycoindev-cli:dind` then run: ```sh -$ cd skycoin +$ cd pyskycoin +$ IMAGE_FROM="skycoin/skycoindev-cli:dind" $ SOURCE_COMMIT=$(git rev-parse HEAD) $ IMAGE_NAME=skycoin/skycoindev-python:dind -$ DOCKERFILE_PATH=docker/images/dev/Dockerfile -$ docker build --build-arg IMAGE_FROM="skycoin/skycoindev-cli:dind" \ +$ DOCKERFILE_PATH=docker/images/dev-cli/Dockerfile +$ docker build --build-arg IMAGE_FROM="$IMAGE_FROM" \ + --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ + --build-arg SCOMMIT=$SOURCE_COMMIT \ + --build-arg PIP_PACKAGES="Twisted tox" \ + -f $DOCKERFILE_PATH \ + -t "$IMAGE_NAME" . +``` + +Nevertheless, if do you like use Visual Studio Code instead of CLI, you can change `IMAGE_FROM` to build it. **When base image use Visual Studio Code, you can use `VS_EXTENSIONS` build arg** + +```sh +$ cd pyskycoin +$ git submodule update --init --recursive +$ # Move to vscode folder to avoid file errors with vscode docker image +$ cd gopath/src/github.com/skycoin/skycoin/docker/images/dev-vscode/ +$ IMAGE_FROM="skycoin/skycoindev-python:develop" +$ SOURCE_COMMIT=$(git rev-parse HEAD) +$ IMAGE_NAME=skycoin/skycoindev-python:vscode +$ DOCKERFILE_PATH=docker/images/dev-cli/Dockerfile +$ docker build --build-arg IMAGE_FROM="$IMAGE_FROM" --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg SCOMMIT=$SOURCE_COMMIT \ + --build-arg PIP_PACKAGES="matplotlib tox" \ + --build-arg VS_EXTENSIONS="almenon.arepl ms-python.python" \ -f $DOCKERFILE_PATH \ -t "$IMAGE_NAME" . ``` @@ -116,4 +181,3 @@ and `master` branch on every push made after merging. The same process is triggered for all feature branches matching the pattern `/^([^_]+)_t([0-9]+)_.*docker.*/`. The tag generated for such images will be of the form `feature-{\1}-{\2}`. - diff --git a/docker/images/dev-cli/hooks/build b/docker/images/dev-cli/hooks/build index 326e811e..e3f85d0a 100644 --- a/docker/images/dev-cli/hooks/build +++ b/docker/images/dev-cli/hooks/build @@ -12,24 +12,46 @@ # IMAGE_NAME: the name and tag of the Docker repository being built. # (This variable is a combination of DOCKER_REPO:CACHE_TAG.) # PIP_PACKAGES: pip packages to install inside docker image. +# VS_EXTENSIONS: Visual Studio Code extensions to add on docker image, +# only if base image is not CLI purpose. echo "Build hook running" -pwd +cd ../../../ # Build :develop tag docker build --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg SCOMMIT=$SOURCE_COMMIT \ - --build-arg PIP_PACKAGES="setuptools wheel tox tox-pyenv tox-travis pytest pytest-runner" \ + --build-arg PIP_PACKAGES="setuptools wheel tox tox-pyenv tox-travis pytest pytest-runner virtualenv pylint flake8" \ -f $DOCKERFILE_PATH \ -t "$IMAGE_NAME" . -# Build :dind tag -if [ "$CACHE_TAG" -eq "develop" ]; then - docker build --build-arg IMAGE_FROM="skycoin/skycoindev-cli:dind" \ +# Build :dind, :vscode and :vscode-dind tag +# Only build if docker tag is develop +if [ "$CACHE_TAG" == "develop" ]; then + docker build --build-arg IMAGE_FROM="skycoin/skycoindev-cli:dind" \ --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg SCOMMIT=$SOURCE_COMMIT \ - --build-arg PIP_PACKAGES="setuptools wheel tox tox-pyenv tox-travis pytest pytest-runner" \ + --build-arg PIP_PACKAGES="setuptools wheel tox tox-pyenv tox-travis pytest pytest-runner virtualenv pylint flake8" \ -f $DOCKERFILE_PATH \ -t "$DOCKER_REPO:dind" . + + # Move to vscode folder to avoid file errors with vscode docker image + cd gopath/src/github.com/skycoin/skycoin/docker/images/dev-vscode/ + + docker build --build-arg IMAGE_FROM="$IMAGE_NAME" \ + --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ + --build-arg SCOMMIT=$SOURCE_COMMIT \ + --build-arg PIP_PACKAGES="setuptools wheel tox tox-pyenv tox-travis pytest pytest-runner virtualenv pylint flake8" \ + --build-arg VS_EXTENSIONS="ms-python.python njpwerner.autodocstring shardulm94.trailing-spaces VisualStudioExptTeam.vscodeintellicode" \ + -f Dockerfile \ + -t "$DOCKER_REPO:vscode" . + + docker build --build-arg IMAGE_FROM="$DOCKER_REPO:dind" \ + --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ + --build-arg SCOMMIT=$SOURCE_COMMIT \ + --build-arg PIP_PACKAGES="setuptools wheel tox tox-pyenv tox-travis pytest pytest-runner virtualenv pylint flake8" \ + --build-arg VS_EXTENSIONS="ms-python.python njpwerner.autodocstring shardulm94.trailing-spaces VisualStudioExptTeam.vscodeintellicode" \ + -f Dockerfile \ + -t "$DOCKER_REPO:vscode-dind" . fi diff --git a/docker/images/dev-cli/hooks/push b/docker/images/dev-cli/hooks/push index f9e243fc..3ae43b49 100644 --- a/docker/images/dev-cli/hooks/push +++ b/docker/images/dev-cli/hooks/push @@ -2,6 +2,8 @@ docker push $IMAGE_NAME -if [ "$CACHE_TAG" -eq "develop" ]; then - docker push $DOCKER_REPO:dind +if [ "$CACHE_TAG" == "develop" ]; then + docker push "$DOCKER_REPO:dind" + docker push "$DOCKER_REPO:vscode" + docker push "$DOCKER_REPO:vscode-dind" fi diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 438f338f..dbf18a06 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 438f338fff7f58c14abf10265574625988e36cbf +Subproject commit dbf18a068d25132bcb74d2d88954008955868168 diff --git a/requirements.dev.txt b/requirements.dev.txt new file mode 100644 index 00000000..38f0acc0 --- /dev/null +++ b/requirements.dev.txt @@ -0,0 +1,7 @@ + +pytest +pytest-runner +tox +tox-pyenv +wheel + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..b28b04f6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ + + + diff --git a/setup.py b/setup.py index 31f7c3cb..1e86abc4 100644 --- a/setup.py +++ b/setup.py @@ -89,6 +89,7 @@ def build_extension(self, ext): version=__version__, # Required description="Skycoin Python Library", long_description=long_description, + long_description_content_type="text/markdown", url="https://github.com/simelo/pyskycoin", author="Ratmil Torres", # Optional author_email="skycoin@simelo.tech", diff --git a/skycoin/__init__.py b/skycoin/__init__.py index 3fc52b7f..21db169c 100644 --- a/skycoin/__init__.py +++ b/skycoin/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.25.0" +__version__ = "0.25.1.dev" init_error = None def _print2stderr(msg): diff --git a/skycoin/skycoin.py b/skycoin/skycoin.py index 9b02a7be..bde837bf 100644 --- a/skycoin/skycoin.py +++ b/skycoin/skycoin.py @@ -641,9 +641,89 @@ def __init__(self): GoSlice_swigregister(GoSlice) -def SKY_api_NewWalletResponse(p0): - return _skycoin.SKY_api_NewWalletResponse(p0) -SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse +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_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_cli_GenerateAddressesInFile(p0, p1, p2): return _skycoin.SKY_cli_GenerateAddressesInFile(p0, p1, p2) @@ -661,169 +741,157 @@ def SKY_cli_AddressesToStrings(p0): return _skycoin.SKY_cli_AddressesToStrings(p0) SKY_cli_AddressesToStrings = _skycoin.SKY_cli_AddressesToStrings -def SKY_wallet_NewReadableEntry(p0, p1): - return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) -SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry +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_wallet_LoadReadableWallet(p0): - return _skycoin.SKY_wallet_LoadReadableWallet(p0) -SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet +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_wallet_ReadableWallet_Save(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Save(p0, p1) -SKY_wallet_ReadableWallet_Save = _skycoin.SKY_wallet_ReadableWallet_Save +def SKY_coin_NewGenesisBlock(p0, p1, p2): + return _skycoin.SKY_coin_NewGenesisBlock(p0, p1, p2) +SKY_coin_NewGenesisBlock = _skycoin.SKY_coin_NewGenesisBlock -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_coin_Block_HashHeader(p0, p1): + return _skycoin.SKY_coin_Block_HashHeader(p0, p1) +SKY_coin_Block_HashHeader = _skycoin.SKY_coin_Block_HashHeader -def SKY_wallet_ReadableWallet_Erase(p0): - return _skycoin.SKY_wallet_ReadableWallet_Erase(p0) -SKY_wallet_ReadableWallet_Erase = _skycoin.SKY_wallet_ReadableWallet_Erase +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_logging_EnableColors(): - return _skycoin.SKY_logging_EnableColors() -SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors +def SKY_coin_Block_Time(p0): + return _skycoin.SKY_coin_Block_Time(p0) +SKY_coin_Block_Time = _skycoin.SKY_coin_Block_Time -def SKY_logging_DisableColors(): - return _skycoin.SKY_logging_DisableColors() -SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors +def SKY_coin_Block_Seq(p0): + return _skycoin.SKY_coin_Block_Seq(p0) +SKY_coin_Block_Seq = _skycoin.SKY_coin_Block_Seq -def SKY_logging_Disable(): - return _skycoin.SKY_logging_Disable() -SKY_logging_Disable = _skycoin.SKY_logging_Disable +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_fee_VerifyTransactionFee(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1, p2) -SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee +def SKY_coin_Block_Size(p0): + return _skycoin.SKY_coin_Block_Size(p0) +SKY_coin_Block_Size = _skycoin.SKY_coin_Block_Size -def SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2) -SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours +def SKY_coin_Block_String(p0): + return _skycoin.SKY_coin_Block_String(p0) +SKY_coin_Block_String = _skycoin.SKY_coin_Block_String -def SKY_fee_RequiredFee(p0, p1): - return _skycoin.SKY_fee_RequiredFee(p0, p1) -SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee +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_fee_RemainingHours(p0, p1): - return _skycoin.SKY_fee_RemainingHours(p0, p1) -SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours +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_fee_TransactionFee(*args): - return _skycoin.SKY_fee_TransactionFee(*args) -SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee +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_JsonEncode_Handle(p0): - return _skycoin.SKY_JsonEncode_Handle(p0) -SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle +def SKY_coin_BlockHeader_Bytes(p0): + return _skycoin.SKY_coin_BlockHeader_Bytes(p0) +SKY_coin_BlockHeader_Bytes = _skycoin.SKY_coin_BlockHeader_Bytes -def SKY_Handle_Progress_GetCurrent(p0): - return _skycoin.SKY_Handle_Progress_GetCurrent(p0) -SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent +def SKY_coin_BlockHeader_String(p0): + return _skycoin.SKY_coin_BlockHeader_String(p0) +SKY_coin_BlockHeader_String = _skycoin.SKY_coin_BlockHeader_String -def SKY_Handle_Block_GetHeadSeq(p0): - return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) -SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq +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_Handle_Block_GetHeadHash(p0): - return _skycoin.SKY_Handle_Block_GetHeadHash(p0) -SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash +def SKY_coin_BlockBody_Size(): + return _skycoin.SKY_coin_BlockBody_Size() +SKY_coin_BlockBody_Size = _skycoin.SKY_coin_BlockBody_Size -def SKY_Handle_Block_GetPreviousBlockHash(p0): - return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) -SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash +def SKY_coin_BlockBody_Bytes(p0): + return _skycoin.SKY_coin_BlockBody_Bytes(p0) +SKY_coin_BlockBody_Bytes = _skycoin.SKY_coin_BlockBody_Bytes -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_coin_CreateUnspents(*args): + return _skycoin.SKY_coin_CreateUnspents(*args) +SKY_coin_CreateUnspents = _skycoin.SKY_coin_CreateUnspents -def SKY_Handle_Blocks_GetCount(p0): - return _skycoin.SKY_Handle_Blocks_GetCount(p0) -SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount +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_Handle_Connections_GetCount(p0): - return _skycoin.SKY_Handle_Connections_GetCount(p0) -SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount +def SKY_coin_GetBlockObject(p0): + return _skycoin.SKY_coin_GetBlockObject(p0) +SKY_coin_GetBlockObject = _skycoin.SKY_coin_GetBlockObject -def SKY_Handle_Strings_GetCount(p0): - return _skycoin.SKY_Handle_Strings_GetCount(p0) -SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount +def SKY_coin_GetBlockBody(p0): + return _skycoin.SKY_coin_GetBlockBody(p0) +SKY_coin_GetBlockBody = _skycoin.SKY_coin_GetBlockBody -def SKY_Handle_Strings_Sort(p0): - return _skycoin.SKY_Handle_Strings_Sort(p0) -SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort +def SKY_coin_NewEmptyBlock(p0): + return _skycoin.SKY_coin_NewEmptyBlock(p0) +SKY_coin_NewEmptyBlock = _skycoin.SKY_coin_NewEmptyBlock -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_httphelper_Address_UnmarshalJSON(p0, p1): + return _skycoin.SKY_httphelper_Address_UnmarshalJSON(p0, p1) +SKY_httphelper_Address_UnmarshalJSON = _skycoin.SKY_httphelper_Address_UnmarshalJSON -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_httphelper_Address_MarshalJSON(p0): + return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) +SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON -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_httphelper_Coins_UnmarshalJSON(p1): + return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) +SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON -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_httphelper_Coins_MarshalJSON(): + return _skycoin.SKY_httphelper_Coins_MarshalJSON() +SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON -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_httphelper_Coins_Value(): + return _skycoin.SKY_httphelper_Coins_Value() +SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value -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_httphelper_Hours_UnmarshalJSON(p1): + return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) +SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON -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_httphelper_Hours_MarshalJSON(): + return _skycoin.SKY_httphelper_Hours_MarshalJSON() +SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON -def SKY_api_Handle_WalletResponseIsEncrypted(p0): - return _skycoin.SKY_api_Handle_WalletResponseIsEncrypted(p0) -SKY_api_Handle_WalletResponseIsEncrypted = _skycoin.SKY_api_Handle_WalletResponseIsEncrypted +def SKY_httphelper_Hours_Value(): + return _skycoin.SKY_httphelper_Hours_Value() +SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value -def SKY_api_Handle_WalletResponseGetCryptoType(p0): - return _skycoin.SKY_api_Handle_WalletResponseGetCryptoType(p0) -SKY_api_Handle_WalletResponseGetCryptoType = _skycoin.SKY_api_Handle_WalletResponseGetCryptoType +def SKY_wallet_NewBalance(p0, p1, p2): + return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) +SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance -def SKY_api_Handle_WalletsResponseGetCount(p0): - return _skycoin.SKY_api_Handle_WalletsResponseGetCount(p0) -SKY_api_Handle_WalletsResponseGetCount = _skycoin.SKY_api_Handle_WalletsResponseGetCount +def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): + return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) +SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut -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_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_api_Handle_GetWalletFolderAddress(p0): - return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) -SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress +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_api_Handle_GetWalletSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletSeed(p0) -SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed +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_api_Handle_GetWalletLastSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) -SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed +def SKY_wallet_Balance_IsZero(p0): + return _skycoin.SKY_wallet_Balance_IsZero(p0) +SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero -def SKY_api_Handle_GetBuildInfoData(p0): - return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) -SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData +def SKY_wallet_CryptoTypeFromString(p0): + return _skycoin.SKY_wallet_CryptoTypeFromString(p0) +SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString def SKY_cli_AddPrivateKey(p0, p1): return _skycoin.SKY_cli_AddPrivateKey(p0, p1) @@ -833,433 +901,529 @@ def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile -def SKY_coin_Create_Transaction(): - return _skycoin.SKY_coin_Create_Transaction() -SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction +def SKY_api_NewCreateTransactionResponse(p0, p1): + return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) +SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse -def SKY_coin_Transaction_Copy(p0): - return _skycoin.SKY_coin_Transaction_Copy(p0) -SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy +def SKY_api_NewCreatedTransaction(p0, p1): + return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) +SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction -def SKY_coin_GetTransactionObject(p0): - return _skycoin.SKY_coin_GetTransactionObject(p0) -SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject +def SKY_api_CreatedTransaction_ToTransaction(p0): + return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) +SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction -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_api_NewCreatedTransactionOutput(p0, p1): + return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) +SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput -def SKY_coin_Transaction_GetInputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) -SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount +def SKY_api_NewCreatedTransactionInput(p0): + return _skycoin.SKY_api_NewCreatedTransactionInput(p0) +SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput -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_logging_EnableColors(): + return _skycoin.SKY_logging_EnableColors() +SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors -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_logging_DisableColors(): + return _skycoin.SKY_logging_DisableColors() +SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors -def SKY_coin_Transaction_GetOutputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) -SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount +def SKY_logging_Disable(): + return _skycoin.SKY_logging_Disable() +SKY_logging_Disable = _skycoin.SKY_logging_Disable -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_file_InitDataDir(p0): + return _skycoin.SKY_file_InitDataDir(p0) +SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir -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_file_UserHome(): + return _skycoin.SKY_file_UserHome() +SKY_file_UserHome = _skycoin.SKY_file_UserHome -def SKY_coin_Transaction_GetSignaturesCount(p0): - return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) -SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount +def SKY_file_ResolveResourceDirectory(p0): + return _skycoin.SKY_file_ResolveResourceDirectory(p0) +SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory -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_file_DetermineResourcePath(p0, p1, p2): + return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) +SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath -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_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 -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_cli_LoadConfig(): + return _skycoin.SKY_cli_LoadConfig() +SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig -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_cli_Config_FullWalletPath(p0): + return _skycoin.SKY_cli_Config_FullWalletPath(p0) +SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath -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_cli_Config_FullDBPath(p0): + return _skycoin.SKY_cli_Config_FullDBPath(p0) +SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath -def SKY_coin_Transaction_Verify(p0): - return _skycoin.SKY_coin_Transaction_Verify(p0) -SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify +def SKY_cli_NewApp(p0): + return _skycoin.SKY_cli_NewApp(p0) +SKY_cli_NewApp = _skycoin.SKY_cli_NewApp -def SKY_coin_Transaction_VerifyInput(*args): - return _skycoin.SKY_coin_Transaction_VerifyInput(*args) -SKY_coin_Transaction_VerifyInput = _skycoin.SKY_coin_Transaction_VerifyInput +def SKY_cli_RPCClientFromContext(p0): + return _skycoin.SKY_cli_RPCClientFromContext(p0) +SKY_cli_RPCClientFromContext = _skycoin.SKY_cli_RPCClientFromContext -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_cli_ConfigFromContext(p0): + return _skycoin.SKY_cli_ConfigFromContext(p0) +SKY_cli_ConfigFromContext = _skycoin.SKY_cli_ConfigFromContext -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_cli_PasswordFromBytes_Password(): + return _skycoin.SKY_cli_PasswordFromBytes_Password() +SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password -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_cli_PasswordFromTerm_Password(): + return _skycoin.SKY_cli_PasswordFromTerm_Password() +SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password -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_UxOut_Hash(p0, p1): + return _skycoin.SKY_coin_UxOut_Hash(p0, p1) +SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash -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_UxOut_SnapshotHash(p0, p1): + return _skycoin.SKY_coin_UxOut_SnapshotHash(p0, p1) +SKY_coin_UxOut_SnapshotHash = _skycoin.SKY_coin_UxOut_SnapshotHash -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_UxBody_Hash(p0, p1): + return _skycoin.SKY_coin_UxBody_Hash(p0, p1) +SKY_coin_UxBody_Hash = _skycoin.SKY_coin_UxBody_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_UxOut_CoinHours(p0, p1): + return _skycoin.SKY_coin_UxOut_CoinHours(p0, p1) +SKY_coin_UxOut_CoinHours = _skycoin.SKY_coin_UxOut_CoinHours -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_UxArray_Hashes(*args): + return _skycoin.SKY_coin_UxArray_Hashes(*args) +SKY_coin_UxArray_Hashes = _skycoin.SKY_coin_UxArray_Hashes -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_UxArray_HasDupes(*args): + return _skycoin.SKY_coin_UxArray_HasDupes(*args) +SKY_coin_UxArray_HasDupes = _skycoin.SKY_coin_UxArray_HasDupes -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_UxArray_Sort(): + return _skycoin.SKY_coin_UxArray_Sort() +SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort -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_UxArray_Len(): + return _skycoin.SKY_coin_UxArray_Len() +SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len -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_UxArray_Less(*args): + return _skycoin.SKY_coin_UxArray_Less(*args) +SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less -def SKY_coin_TransactionDeserialize(p0): - return _skycoin.SKY_coin_TransactionDeserialize(p0) -SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize +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_Transaction_OutputHours(p0): - return _skycoin.SKY_coin_Transaction_OutputHours(p0) -SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours +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_Create_Transactions(): - return _skycoin.SKY_coin_Create_Transactions() -SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions +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_GetTransactionsObject(p0, p1): - return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) -SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject +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_Transactions_Length(p0): - return _skycoin.SKY_coin_Transactions_Length(p0) -SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length +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_Transactions_Add(p0, p1): - return _skycoin.SKY_coin_Transactions_Add(p0, p1) -SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add +def SKY_coin_NewAddressUxOuts(*args): + return _skycoin.SKY_coin_NewAddressUxOuts(*args) +SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts -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_AddressUxOuts_Keys(*args): + return _skycoin.SKY_coin_AddressUxOuts_Keys(*args) +SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys -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_AddressUxOuts_Flatten(*args): + return _skycoin.SKY_coin_AddressUxOuts_Flatten(*args) +SKY_coin_AddressUxOuts_Flatten = _skycoin.SKY_coin_AddressUxOuts_Flatten -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_AddressUxOuts_Sub(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_Sub(p0, p1) +SKY_coin_AddressUxOuts_Sub = _skycoin.SKY_coin_AddressUxOuts_Sub -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_AddressUxOuts_Add(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_Add(p0, p1) +SKY_coin_AddressUxOuts_Add = _skycoin.SKY_coin_AddressUxOuts_Add -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_AddressUxOuts_Get(*args): + return _skycoin.SKY_coin_AddressUxOuts_Get(*args) +SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get -def SKY_coin_SortTransactions(p0, p1): - return _skycoin.SKY_coin_SortTransactions(p0, p1) -SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions +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_NewSortableTransactions(p0, p1, p2): - return _skycoin.SKY_coin_NewSortableTransactions(p0, p1, p2) -SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions +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_SortableTransactions_Sort(p0): - return _skycoin.SKY_coin_SortableTransactions_Sort(p0) -SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort +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_SortableTransactions_Len(p0): - return _skycoin.SKY_coin_SortableTransactions_Len(p0) -SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len +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_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_cipher_RandByte(p0): + return _skycoin.SKY_cipher_RandByte(p0) +SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte -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_cipher_NewPubKey(p0, p1): + return _skycoin.SKY_cipher_NewPubKey(p0, p1) +SKY_cipher_NewPubKey = _skycoin.SKY_cipher_NewPubKey -def SKY_coin_VerifyTransactionCoinsSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) -SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending +def SKY_cipher_PubKeyFromHex(p0, p1): + return _skycoin.SKY_cipher_PubKeyFromHex(p0, p1) +SKY_cipher_PubKeyFromHex = _skycoin.SKY_cipher_PubKeyFromHex -def SKY_coin_VerifyTransactionHoursSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) -SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending +def SKY_cipher_PubKeyFromSecKey(p0, p1): + return _skycoin.SKY_cipher_PubKeyFromSecKey(p0, p1) +SKY_cipher_PubKeyFromSecKey = _skycoin.SKY_cipher_PubKeyFromSecKey -def SKY_testutil_MakeAddress(p0): - return _skycoin.SKY_testutil_MakeAddress(p0) -SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress +def SKY_cipher_PubKeyFromSig(p0, p1, p2): + return _skycoin.SKY_cipher_PubKeyFromSig(p0, p1, p2) +SKY_cipher_PubKeyFromSig = _skycoin.SKY_cipher_PubKeyFromSig -def SKY_wallet_NewError(p0): - return _skycoin.SKY_wallet_NewError(p0) -SKY_wallet_NewError = _skycoin.SKY_wallet_NewError +def SKY_cipher_PubKey_Verify(p0): + return _skycoin.SKY_cipher_PubKey_Verify(p0) +SKY_cipher_PubKey_Verify = _skycoin.SKY_cipher_PubKey_Verify -def SKY_wallet_NewWallet(p0, p1): - return _skycoin.SKY_wallet_NewWallet(p0, p1) -SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet +def SKY_cipher_PubKey_Hex(p0): + return _skycoin.SKY_cipher_PubKey_Hex(p0) +SKY_cipher_PubKey_Hex = _skycoin.SKY_cipher_PubKey_Hex -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_cipher_PubKeyRipemd160(p0, p1): + return _skycoin.SKY_cipher_PubKeyRipemd160(p0, p1) +SKY_cipher_PubKeyRipemd160 = _skycoin.SKY_cipher_PubKeyRipemd160 -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_cipher_NewSecKey(p0, p1): + return _skycoin.SKY_cipher_NewSecKey(p0, p1) +SKY_cipher_NewSecKey = _skycoin.SKY_cipher_NewSecKey -def SKY_wallet_Load(p0): - return _skycoin.SKY_wallet_Load(p0) -SKY_wallet_Load = _skycoin.SKY_wallet_Load +def SKY_cipher_SecKeyFromHex(p0, p1): + return _skycoin.SKY_cipher_SecKeyFromHex(p0, p1) +SKY_cipher_SecKeyFromHex = _skycoin.SKY_cipher_SecKeyFromHex -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_cipher_SecKey_Verify(p0): + return _skycoin.SKY_cipher_SecKey_Verify(p0) +SKY_cipher_SecKey_Verify = _skycoin.SKY_cipher_SecKey_Verify -def SKY_wallet_Wallet_Validate(p0): - return _skycoin.SKY_wallet_Wallet_Validate(p0) -SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate +def SKY_cipher_SecKey_Hex(p0): + return _skycoin.SKY_cipher_SecKey_Hex(p0) +SKY_cipher_SecKey_Hex = _skycoin.SKY_cipher_SecKey_Hex -def SKY_wallet_Wallet_Type(p0): - return _skycoin.SKY_wallet_Wallet_Type(p0) -SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type +def SKY_cipher_ECDH(p0, p1): + return _skycoin.SKY_cipher_ECDH(p0, p1) +SKY_cipher_ECDH = _skycoin.SKY_cipher_ECDH -def SKY_wallet_Wallet_Version(p0): - return _skycoin.SKY_wallet_Wallet_Version(p0) -SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version +def SKY_cipher_NewSig(p0, p1): + return _skycoin.SKY_cipher_NewSig(p0, p1) +SKY_cipher_NewSig = _skycoin.SKY_cipher_NewSig -def SKY_wallet_Wallet_Filename(p0): - return _skycoin.SKY_wallet_Wallet_Filename(p0) -SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename +def SKY_cipher_SigFromHex(p0, p1): + return _skycoin.SKY_cipher_SigFromHex(p0, p1) +SKY_cipher_SigFromHex = _skycoin.SKY_cipher_SigFromHex -def SKY_wallet_Wallet_Label(p0): - return _skycoin.SKY_wallet_Wallet_Label(p0) -SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label +def SKY_cipher_Sig_Hex(p0): + return _skycoin.SKY_cipher_Sig_Hex(p0) +SKY_cipher_Sig_Hex = _skycoin.SKY_cipher_Sig_Hex -def SKY_wallet_Wallet_IsEncrypted(p0): - return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) -SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted +def SKY_cipher_SignHash(p0, p1, p2): + return _skycoin.SKY_cipher_SignHash(p0, p1, p2) +SKY_cipher_SignHash = _skycoin.SKY_cipher_SignHash -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_cipher_VerifyAddressSignedHash(p0, p1, p2): + return _skycoin.SKY_cipher_VerifyAddressSignedHash(p0, p1, p2) +SKY_cipher_VerifyAddressSignedHash = _skycoin.SKY_cipher_VerifyAddressSignedHash -def SKY_wallet_Wallet_GetAddresses(p0): - return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) -SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses +def SKY_cipher_VerifySignedHash(p0, p1): + return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) +SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash -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_cipher_VerifyPubKeySignedHash(p0, p1, p2): + return _skycoin.SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2) +SKY_cipher_VerifyPubKeySignedHash = _skycoin.SKY_cipher_VerifyPubKeySignedHash -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_cipher_GenerateKeyPair(p0, p1): + return _skycoin.SKY_cipher_GenerateKeyPair(p0, p1) +SKY_cipher_GenerateKeyPair = _skycoin.SKY_cipher_GenerateKeyPair -def SKY_wallet_DistributeSpendHours(p0, p1, p2): - return _skycoin.SKY_wallet_DistributeSpendHours(p0, p1, p2) -SKY_wallet_DistributeSpendHours = _skycoin.SKY_wallet_DistributeSpendHours +def SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2): + return _skycoin.SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2) +SKY_cipher_GenerateDeterministicKeyPair = _skycoin.SKY_cipher_GenerateDeterministicKeyPair -def SKY_wallet_DistributeCoinHoursProportional(p0, p1): - return _skycoin.SKY_wallet_DistributeCoinHoursProportional(p0, p1) -SKY_wallet_DistributeCoinHoursProportional = _skycoin.SKY_wallet_DistributeCoinHoursProportional +def SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3): + return _skycoin.SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3) +SKY_cipher_DeterministicKeyPairIterator = _skycoin.SKY_cipher_DeterministicKeyPairIterator -def SKY_wallet_NewUxBalances(p0): - return _skycoin.SKY_wallet_NewUxBalances(p0) -SKY_wallet_NewUxBalances = _skycoin.SKY_wallet_NewUxBalances +def SKY_cipher_GenerateDeterministicKeyPairs(*args): + return _skycoin.SKY_cipher_GenerateDeterministicKeyPairs(*args) +SKY_cipher_GenerateDeterministicKeyPairs = _skycoin.SKY_cipher_GenerateDeterministicKeyPairs -def SKY_wallet_NewUxBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewUxBalance(p0, p1, p2) -SKY_wallet_NewUxBalance = _skycoin.SKY_wallet_NewUxBalance +def SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1): + return _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1) +SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed -def SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts +def SKY_cipher_CheckSecKey(p0): + return _skycoin.SKY_cipher_CheckSecKey(p0) +SKY_cipher_CheckSecKey = _skycoin.SKY_cipher_CheckSecKey -def SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts +def SKY_cipher_CheckSecKeyHash(p0, p1): + return _skycoin.SKY_cipher_CheckSecKeyHash(p0, p1) +SKY_cipher_CheckSecKeyHash = _skycoin.SKY_cipher_CheckSecKeyHash -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 +def SKY_droplet_FromString(p0): + return _skycoin.SKY_droplet_FromString(p0) +SKY_droplet_FromString = _skycoin.SKY_droplet_FromString -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_droplet_ToString(p0): + return _skycoin.SKY_droplet_ToString(p0) +SKY_droplet_ToString = _skycoin.SKY_droplet_ToString + +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_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_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_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_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_api_Client_AddressUxOuts(p0, p1): + return _skycoin.SKY_api_Client_AddressUxOuts(p0, p1) +SKY_api_Client_AddressUxOuts = _skycoin.SKY_api_Client_AddressUxOuts -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_api_Client_Wallet(p0, p1): + return _skycoin.SKY_api_Client_Wallet(p0, p1) +SKY_api_Client_Wallet = _skycoin.SKY_api_Client_Wallet -def SKY_cli_NewTransaction(p0, p1, p2): - return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) -SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction +def SKY_api_Client_Wallets(p0): + return _skycoin.SKY_api_Client_Wallets(p0) +SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets -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_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_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_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_cli_CheckWalletBalance(p0, p1, p2): - return _skycoin.SKY_cli_CheckWalletBalance(p0, p1, p2) -SKY_cli_CheckWalletBalance = _skycoin.SKY_cli_CheckWalletBalance +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_cli_GetBalanceOfAddresses(p0, p1, p2): - return _skycoin.SKY_cli_GetBalanceOfAddresses(p0, p1, p2) -SKY_cli_GetBalanceOfAddresses = _skycoin.SKY_cli_GetBalanceOfAddresses +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_cli_GetWalletOutputsFromFile(p0, p1, p2): - return _skycoin.SKY_cli_GetWalletOutputsFromFile(p0, p1, p2) -SKY_cli_GetWalletOutputsFromFile = _skycoin.SKY_cli_GetWalletOutputsFromFile +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_cli_GetWalletOutputs(p0, p2): - return _skycoin.SKY_cli_GetWalletOutputs(p0, p2) -SKY_cli_GetWalletOutputs = _skycoin.SKY_cli_GetWalletOutputs +def SKY_api_Client_CreateTransaction(p0): + return _skycoin.SKY_api_Client_CreateTransaction(p0) +SKY_api_Client_CreateTransaction = _skycoin.SKY_api_Client_CreateTransaction -def SKY_coin_AddUint64(p0, p1): - return _skycoin.SKY_coin_AddUint64(p0, p1) -SKY_coin_AddUint64 = _skycoin.SKY_coin_AddUint64 +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_coin_Uint64ToInt64(p0): - return _skycoin.SKY_coin_Uint64ToInt64(p0) -SKY_coin_Uint64ToInt64 = _skycoin.SKY_coin_Uint64ToInt64 +def SKY_api_Client_WalletFolderName(p0): + return _skycoin.SKY_api_Client_WalletFolderName(p0) +SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName -def SKY_coin_Int64ToUint64(p0): - return _skycoin.SKY_coin_Int64ToUint64(p0) -SKY_coin_Int64ToUint64 = _skycoin.SKY_coin_Int64ToUint64 +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_coin_IntToUint32(p0): - return _skycoin.SKY_coin_IntToUint32(p0) -SKY_coin_IntToUint32 = _skycoin.SKY_coin_IntToUint32 +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_handle_close(p0): - return _skycoin.SKY_handle_close(p0) -SKY_handle_close = _skycoin.SKY_handle_close +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_handle_copy(p0): - return _skycoin.SKY_handle_copy(p0) -SKY_handle_copy = _skycoin.SKY_handle_copy +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_file_InitDataDir(p0): - return _skycoin.SKY_file_InitDataDir(p0) -SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir +def SKY_api_Client_NetworkDefaultPeers(p0): + return _skycoin.SKY_api_Client_NetworkDefaultPeers(p0) +SKY_api_Client_NetworkDefaultPeers = _skycoin.SKY_api_Client_NetworkDefaultPeers -def SKY_file_UserHome(): - return _skycoin.SKY_file_UserHome() -SKY_file_UserHome = _skycoin.SKY_file_UserHome +def SKY_api_Client_NetworkTrustedPeers(p0): + return _skycoin.SKY_api_Client_NetworkTrustedPeers(p0) +SKY_api_Client_NetworkTrustedPeers = _skycoin.SKY_api_Client_NetworkTrustedPeers -def SKY_file_ResolveResourceDirectory(p0): - return _skycoin.SKY_file_ResolveResourceDirectory(p0) -SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory +def SKY_api_Client_NetworkExchangedPeers(p0): + return _skycoin.SKY_api_Client_NetworkExchangedPeers(p0) +SKY_api_Client_NetworkExchangedPeers = _skycoin.SKY_api_Client_NetworkExchangedPeers -def SKY_file_DetermineResourcePath(p0, p1, p2): - return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) -SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath +def SKY_api_Client_PendingTransactions(p0): + return _skycoin.SKY_api_Client_PendingTransactions(p0) +SKY_api_Client_PendingTransactions = _skycoin.SKY_api_Client_PendingTransactions -def SKY_iputil_LocalhostIP(): - return _skycoin.SKY_iputil_LocalhostIP() -SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP +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_iputil_IsLocalhost(p0): - return _skycoin.SKY_iputil_IsLocalhost(p0) -SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost +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_iputil_SplitAddr(p0): - return _skycoin.SKY_iputil_SplitAddr(p0) -SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr +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_cipher_DecodeBase58BitcoinAddress(p0, p1): - return _skycoin.SKY_cipher_DecodeBase58BitcoinAddress(p0, p1) -SKY_cipher_DecodeBase58BitcoinAddress = _skycoin.SKY_cipher_DecodeBase58BitcoinAddress +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_cipher_BitcoinAddressFromPubKey(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromPubKey(p0, p1) -SKY_cipher_BitcoinAddressFromPubKey = _skycoin.SKY_cipher_BitcoinAddressFromPubKey +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_cipher_BitcoinAddressFromSecKey(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromSecKey(p0, p1) -SKY_cipher_BitcoinAddressFromSecKey = _skycoin.SKY_cipher_BitcoinAddressFromSecKey +def SKY_api_Client_ResendUnconfirmedTransactions(p0): + return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) +SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions -def SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0): - return _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0) -SKY_cipher_BitcoinWalletImportFormatFromSeckey = _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey +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_cipher_BitcoinAddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromBytes(p0, p1) -SKY_cipher_BitcoinAddressFromBytes = _skycoin.SKY_cipher_BitcoinAddressFromBytes +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_cipher_SecKeyFromBitcoinWalletImportFormat(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(p0, p1) -SKY_cipher_SecKeyFromBitcoinWalletImportFormat = _skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat +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_cipher_BitcoinAddress_Null(p0): - return _skycoin.SKY_cipher_BitcoinAddress_Null(p0) -SKY_cipher_BitcoinAddress_Null = _skycoin.SKY_cipher_BitcoinAddress_Null +def SKY_api_Client_AddressCount(p0): + return _skycoin.SKY_api_Client_AddressCount(p0) +SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount -def SKY_cipher_BitcoinAddress_Bytes(p0): - return _skycoin.SKY_cipher_BitcoinAddress_Bytes(p0) -SKY_cipher_BitcoinAddress_Bytes = _skycoin.SKY_cipher_BitcoinAddress_Bytes +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_cipher_BitcoinAddress_Verify(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddress_Verify(p0, p1) -SKY_cipher_BitcoinAddress_Verify = _skycoin.SKY_cipher_BitcoinAddress_Verify +def SKY_api_Client_Health(p0): + return _skycoin.SKY_api_Client_Health(p0) +SKY_api_Client_Health = _skycoin.SKY_api_Client_Health -def SKY_cipher_BitcoinAddress_String(p0): - return _skycoin.SKY_cipher_BitcoinAddress_String(p0) -SKY_cipher_BitcoinAddress_String = _skycoin.SKY_cipher_BitcoinAddress_String +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_cipher_BitcoinAddress_Checksum(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddress_Checksum(p0, p1) -SKY_cipher_BitcoinAddress_Checksum = _skycoin.SKY_cipher_BitcoinAddress_Checksum +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_map_Get(p1): return _skycoin.SKY_map_Get(p1) @@ -1273,353 +1437,357 @@ def SKY_map_Close(): return _skycoin.SKY_map_Close() SKY_map_Close = _skycoin.SKY_map_Close -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_wallet_NewError(p0): + return _skycoin.SKY_wallet_NewError(p0) +SKY_wallet_NewError = _skycoin.SKY_wallet_NewError -def SKY_wallet_CryptoTypeFromString(p0): - return _skycoin.SKY_wallet_CryptoTypeFromString(p0) -SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString +def SKY_wallet_NewWallet(p0, p1): + return _skycoin.SKY_wallet_NewWallet(p0, p1) +SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet -def SKY_cipher_RandByte(p0): - return _skycoin.SKY_cipher_RandByte(p0) -SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte +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_cipher_NewPubKey(p0, p1): - return _skycoin.SKY_cipher_NewPubKey(p0, p1) -SKY_cipher_NewPubKey = _skycoin.SKY_cipher_NewPubKey +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_cipher_PubKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromHex(p0, p1) -SKY_cipher_PubKeyFromHex = _skycoin.SKY_cipher_PubKeyFromHex +def SKY_wallet_Load(p0): + return _skycoin.SKY_wallet_Load(p0) +SKY_wallet_Load = _skycoin.SKY_wallet_Load -def SKY_cipher_PubKeyFromSecKey(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromSecKey(p0, p1) -SKY_cipher_PubKeyFromSecKey = _skycoin.SKY_cipher_PubKeyFromSecKey +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_cipher_PubKeyFromSig(p0, p1, p2): - return _skycoin.SKY_cipher_PubKeyFromSig(p0, p1, p2) -SKY_cipher_PubKeyFromSig = _skycoin.SKY_cipher_PubKeyFromSig +def SKY_wallet_Wallet_Validate(p0): + return _skycoin.SKY_wallet_Wallet_Validate(p0) +SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate -def SKY_cipher_PubKey_Verify(p0): - return _skycoin.SKY_cipher_PubKey_Verify(p0) -SKY_cipher_PubKey_Verify = _skycoin.SKY_cipher_PubKey_Verify +def SKY_wallet_Wallet_Type(p0): + return _skycoin.SKY_wallet_Wallet_Type(p0) +SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type -def SKY_cipher_PubKey_Hex(p0): - return _skycoin.SKY_cipher_PubKey_Hex(p0) -SKY_cipher_PubKey_Hex = _skycoin.SKY_cipher_PubKey_Hex +def SKY_wallet_Wallet_Version(p0): + return _skycoin.SKY_wallet_Wallet_Version(p0) +SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version -def SKY_cipher_PubKeyRipemd160(p0, p1): - return _skycoin.SKY_cipher_PubKeyRipemd160(p0, p1) -SKY_cipher_PubKeyRipemd160 = _skycoin.SKY_cipher_PubKeyRipemd160 +def SKY_wallet_Wallet_Filename(p0): + return _skycoin.SKY_wallet_Wallet_Filename(p0) +SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename -def SKY_cipher_NewSecKey(p0, p1): - return _skycoin.SKY_cipher_NewSecKey(p0, p1) -SKY_cipher_NewSecKey = _skycoin.SKY_cipher_NewSecKey +def SKY_wallet_Wallet_Label(p0): + return _skycoin.SKY_wallet_Wallet_Label(p0) +SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label -def SKY_cipher_SecKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromHex(p0, p1) -SKY_cipher_SecKeyFromHex = _skycoin.SKY_cipher_SecKeyFromHex +def SKY_wallet_Wallet_IsEncrypted(p0): + return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) +SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted -def SKY_cipher_SecKey_Verify(p0): - return _skycoin.SKY_cipher_SecKey_Verify(p0) -SKY_cipher_SecKey_Verify = _skycoin.SKY_cipher_SecKey_Verify +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_cipher_SecKey_Hex(p0): - return _skycoin.SKY_cipher_SecKey_Hex(p0) -SKY_cipher_SecKey_Hex = _skycoin.SKY_cipher_SecKey_Hex +def SKY_wallet_Wallet_GetAddresses(p0): + return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) +SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses -def SKY_cipher_ECDH(p0, p1): - return _skycoin.SKY_cipher_ECDH(p0, p1) -SKY_cipher_ECDH = _skycoin.SKY_cipher_ECDH +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_cipher_NewSig(p0, p1): - return _skycoin.SKY_cipher_NewSig(p0, p1) -SKY_cipher_NewSig = _skycoin.SKY_cipher_NewSig +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_cipher_SigFromHex(p0, p1): - return _skycoin.SKY_cipher_SigFromHex(p0, p1) -SKY_cipher_SigFromHex = _skycoin.SKY_cipher_SigFromHex +def SKY_wallet_DistributeSpendHours(p0, p1, p2): + return _skycoin.SKY_wallet_DistributeSpendHours(p0, p1, p2) +SKY_wallet_DistributeSpendHours = _skycoin.SKY_wallet_DistributeSpendHours -def SKY_cipher_Sig_Hex(p0): - return _skycoin.SKY_cipher_Sig_Hex(p0) -SKY_cipher_Sig_Hex = _skycoin.SKY_cipher_Sig_Hex +def SKY_wallet_DistributeCoinHoursProportional(p0, p1): + return _skycoin.SKY_wallet_DistributeCoinHoursProportional(p0, p1) +SKY_wallet_DistributeCoinHoursProportional = _skycoin.SKY_wallet_DistributeCoinHoursProportional -def SKY_cipher_SignHash(p0, p1, p2): - return _skycoin.SKY_cipher_SignHash(p0, p1, p2) -SKY_cipher_SignHash = _skycoin.SKY_cipher_SignHash +def SKY_wallet_NewUxBalances(p0): + return _skycoin.SKY_wallet_NewUxBalances(p0) +SKY_wallet_NewUxBalances = _skycoin.SKY_wallet_NewUxBalances -def SKY_cipher_VerifyAddressSignedHash(p0, p1, p2): - return _skycoin.SKY_cipher_VerifyAddressSignedHash(p0, p1, p2) -SKY_cipher_VerifyAddressSignedHash = _skycoin.SKY_cipher_VerifyAddressSignedHash +def SKY_wallet_NewUxBalance(p0, p1, p2): + return _skycoin.SKY_wallet_NewUxBalance(p0, p1, p2) +SKY_wallet_NewUxBalance = _skycoin.SKY_wallet_NewUxBalance -def SKY_cipher_VerifySignedHash(p0, p1): - return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) -SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash +def SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2): + return _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2) +SKY_wallet_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts -def SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2): - return _skycoin.SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2) -SKY_cipher_VerifyPubKeySignedHash = _skycoin.SKY_cipher_VerifyPubKeySignedHash +def SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2): + return _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2) +SKY_wallet_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts -def SKY_cipher_GenerateKeyPair(p0, p1): - return _skycoin.SKY_cipher_GenerateKeyPair(p0, p1) -SKY_cipher_GenerateKeyPair = _skycoin.SKY_cipher_GenerateKeyPair +def SKY_cipher_DecodeBase58BitcoinAddress(p0, p1): + return _skycoin.SKY_cipher_DecodeBase58BitcoinAddress(p0, p1) +SKY_cipher_DecodeBase58BitcoinAddress = _skycoin.SKY_cipher_DecodeBase58BitcoinAddress -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_BitcoinAddressFromPubKey(p0, p1): + return _skycoin.SKY_cipher_BitcoinAddressFromPubKey(p0, p1) +SKY_cipher_BitcoinAddressFromPubKey = _skycoin.SKY_cipher_BitcoinAddressFromPubKey -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_BitcoinAddressFromSecKey(p0, p1): + return _skycoin.SKY_cipher_BitcoinAddressFromSecKey(p0, p1) +SKY_cipher_BitcoinAddressFromSecKey = _skycoin.SKY_cipher_BitcoinAddressFromSecKey -def SKY_cipher_GenerateDeterministicKeyPairs(*args): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairs(*args) -SKY_cipher_GenerateDeterministicKeyPairs = _skycoin.SKY_cipher_GenerateDeterministicKeyPairs +def SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0): + return _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0) +SKY_cipher_BitcoinWalletImportFormatFromSeckey = _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey -def SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1) -SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed +def SKY_cipher_BitcoinAddressFromBytes(p0, p1): + return _skycoin.SKY_cipher_BitcoinAddressFromBytes(p0, p1) +SKY_cipher_BitcoinAddressFromBytes = _skycoin.SKY_cipher_BitcoinAddressFromBytes -def SKY_cipher_CheckSecKey(p0): - return _skycoin.SKY_cipher_CheckSecKey(p0) -SKY_cipher_CheckSecKey = _skycoin.SKY_cipher_CheckSecKey +def SKY_cipher_SecKeyFromBitcoinWalletImportFormat(p0, p1): + return _skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(p0, p1) +SKY_cipher_SecKeyFromBitcoinWalletImportFormat = _skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat -def SKY_cipher_CheckSecKeyHash(p0, p1): - return _skycoin.SKY_cipher_CheckSecKeyHash(p0, p1) -SKY_cipher_CheckSecKeyHash = _skycoin.SKY_cipher_CheckSecKeyHash +def SKY_cipher_BitcoinAddress_Null(p0): + return _skycoin.SKY_cipher_BitcoinAddress_Null(p0) +SKY_cipher_BitcoinAddress_Null = _skycoin.SKY_cipher_BitcoinAddress_Null -def SKY_api_NewCreateTransactionResponse(p0, p1): - return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) -SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse +def SKY_cipher_BitcoinAddress_Bytes(p0): + return _skycoin.SKY_cipher_BitcoinAddress_Bytes(p0) +SKY_cipher_BitcoinAddress_Bytes = _skycoin.SKY_cipher_BitcoinAddress_Bytes -def SKY_api_NewCreatedTransaction(p0, p1): - return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) -SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction +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_api_CreatedTransaction_ToTransaction(p0): - return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) -SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction +def SKY_cipher_BitcoinAddress_String(p0): + return _skycoin.SKY_cipher_BitcoinAddress_String(p0) +SKY_cipher_BitcoinAddress_String = _skycoin.SKY_cipher_BitcoinAddress_String -def SKY_api_NewCreatedTransactionOutput(p0, p1): - return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) -SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput +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_api_NewCreatedTransactionInput(p0): - return _skycoin.SKY_api_NewCreatedTransactionInput(p0) -SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput +def SKY_coin_Create_Transaction(): + return _skycoin.SKY_coin_Create_Transaction() +SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction -def SKY_base58_String2Hex(p0): - return _skycoin.SKY_base58_String2Hex(p0) -SKY_base58_String2Hex = _skycoin.SKY_base58_String2Hex +def SKY_coin_Transaction_Copy(p0): + return _skycoin.SKY_coin_Transaction_Copy(p0) +SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy -def SKY_base58_Base58_ToInt(p0): - return _skycoin.SKY_base58_Base58_ToInt(p0) -SKY_base58_Base58_ToInt = _skycoin.SKY_base58_Base58_ToInt +def SKY_coin_GetTransactionObject(p0): + return _skycoin.SKY_coin_GetTransactionObject(p0) +SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject -def SKY_base58_Base58_ToHex(p0): - return _skycoin.SKY_base58_Base58_ToHex(p0) -SKY_base58_Base58_ToHex = _skycoin.SKY_base58_Base58_ToHex +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_base58_Base58_Base582Int(p0): - return _skycoin.SKY_base58_Base58_Base582Int(p0) -SKY_base58_Base58_Base582Int = _skycoin.SKY_base58_Base58_Base582Int +def SKY_coin_Transaction_GetInputsCount(p0): + return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) +SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount -def SKY_base58_Base582Hex(p0): - return _skycoin.SKY_base58_Base582Hex(p0) -SKY_base58_Base582Hex = _skycoin.SKY_base58_Base582Hex +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_base58_Base58_BitHex(p0): - return _skycoin.SKY_base58_Base58_BitHex(p0) -SKY_base58_Base58_BitHex = _skycoin.SKY_base58_Base58_BitHex +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_base58_Int2Base58(p0): - return _skycoin.SKY_base58_Int2Base58(p0) -SKY_base58_Int2Base58 = _skycoin.SKY_base58_Int2Base58 +def SKY_coin_Transaction_GetOutputsCount(p0): + return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) +SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount -def SKY_base58_Hex2Base58(p0): - return _skycoin.SKY_base58_Hex2Base58(p0) -SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 +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_base58_Hex2Base58String(p0): - return _skycoin.SKY_base58_Hex2Base58String(p0) -SKY_base58_Hex2Base58String = _skycoin.SKY_base58_Hex2Base58String +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_base58_Hex2Base58Str(p0): - return _skycoin.SKY_base58_Hex2Base58Str(p0) -SKY_base58_Hex2Base58Str = _skycoin.SKY_base58_Hex2Base58Str +def SKY_coin_Transaction_GetSignaturesCount(p0): + return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) +SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount -def SKY_webrpc_NewClient(p0): - return _skycoin.SKY_webrpc_NewClient(p0) -SKY_webrpc_NewClient = _skycoin.SKY_webrpc_NewClient +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_webrpc_Client_CSRF(p0): - return _skycoin.SKY_webrpc_Client_CSRF(p0) -SKY_webrpc_Client_CSRF = _skycoin.SKY_webrpc_Client_CSRF +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_webrpc_Client_InjectTransaction(p0, p1): - return _skycoin.SKY_webrpc_Client_InjectTransaction(p0, p1) -SKY_webrpc_Client_InjectTransaction = _skycoin.SKY_webrpc_Client_InjectTransaction +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_webrpc_Client_GetStatus(p0, p1): - return _skycoin.SKY_webrpc_Client_GetStatus(p0, p1) -SKY_webrpc_Client_GetStatus = _skycoin.SKY_webrpc_Client_GetStatus +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_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_coin_Transaction_ResetSignatures(p0, p1): + return _skycoin.SKY_coin_Transaction_ResetSignatures(p0, p1) +SKY_coin_Transaction_ResetSignatures = _skycoin.SKY_coin_Transaction_ResetSignatures -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_coin_Transaction_Verify(p0): + return _skycoin.SKY_coin_Transaction_Verify(p0) +SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify -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_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_webrpc_Client_GetBlocksBySeq(p0, p1): - return _skycoin.SKY_webrpc_Client_GetBlocksBySeq(p0, p1) -SKY_webrpc_Client_GetBlocksBySeq = _skycoin.SKY_webrpc_Client_GetBlocksBySeq +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_webrpc_Client_GetLastBlocks(p0, p1): - return _skycoin.SKY_webrpc_Client_GetLastBlocks(p0, p1) -SKY_webrpc_Client_GetLastBlocks = _skycoin.SKY_webrpc_Client_GetLastBlocks +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_cli_LoadConfig(): - return _skycoin.SKY_cli_LoadConfig() -SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig +def SKY_coin_Transaction_SignInputs(*args): + return _skycoin.SKY_coin_Transaction_SignInputs(*args) +SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs -def SKY_cli_Config_FullWalletPath(p0): - return _skycoin.SKY_cli_Config_FullWalletPath(p0) -SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath +def SKY_coin_Transaction_Size(p0): + return _skycoin.SKY_coin_Transaction_Size(p0) +SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size -def SKY_cli_Config_FullDBPath(p0): - return _skycoin.SKY_cli_Config_FullDBPath(p0) -SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath +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_cli_NewApp(p0): - return _skycoin.SKY_cli_NewApp(p0) -SKY_cli_NewApp = _skycoin.SKY_cli_NewApp +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_cli_RPCClientFromContext(p0): - return _skycoin.SKY_cli_RPCClientFromContext(p0) -SKY_cli_RPCClientFromContext = _skycoin.SKY_cli_RPCClientFromContext +def SKY_coin_Transaction_TxID(p0): + return _skycoin.SKY_coin_Transaction_TxID(p0) +SKY_coin_Transaction_TxID = _skycoin.SKY_coin_Transaction_TxID -def SKY_cli_ConfigFromContext(p0): - return _skycoin.SKY_cli_ConfigFromContext(p0) -SKY_cli_ConfigFromContext = _skycoin.SKY_cli_ConfigFromContext +def SKY_coin_Transaction_TxIDHex(p0): + return _skycoin.SKY_coin_Transaction_TxIDHex(p0) +SKY_coin_Transaction_TxIDHex = _skycoin.SKY_coin_Transaction_TxIDHex -def SKY_cli_PasswordFromBytes_Password(): - return _skycoin.SKY_cli_PasswordFromBytes_Password() -SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password +def SKY_coin_Transaction_UpdateHeader(p0): + return _skycoin.SKY_coin_Transaction_UpdateHeader(p0) +SKY_coin_Transaction_UpdateHeader = _skycoin.SKY_coin_Transaction_UpdateHeader -def SKY_cli_PasswordFromTerm_Password(): - return _skycoin.SKY_cli_PasswordFromTerm_Password() -SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password +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_cli_GenerateWallet(p0, p2): - return _skycoin.SKY_cli_GenerateWallet(p0, p2) -SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet +def SKY_coin_Transaction_Serialize(p0): + return _skycoin.SKY_coin_Transaction_Serialize(p0) +SKY_coin_Transaction_Serialize = _skycoin.SKY_coin_Transaction_Serialize -def SKY_cli_MakeAlphanumericSeed(): - return _skycoin.SKY_cli_MakeAlphanumericSeed() -SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed +def SKY_coin_TransactionDeserialize(p0): + return _skycoin.SKY_coin_TransactionDeserialize(p0) +SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize -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_Transaction_OutputHours(p0): + return _skycoin.SKY_coin_Transaction_OutputHours(p0) +SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours -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_Create_Transactions(): + return _skycoin.SKY_coin_Create_Transactions() +SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions -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_GetTransactionsObject(p0, p1): + return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) +SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject -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_Transactions_Length(p0): + return _skycoin.SKY_coin_Transactions_Length(p0) +SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length -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_Transactions_Add(p0, p1): + return _skycoin.SKY_coin_Transactions_Add(p0, p1) +SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add -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_Transactions_Fees(p0, p1): + return _skycoin.SKY_coin_Transactions_Fees(p0, p1) +SKY_coin_Transactions_Fees = _skycoin.SKY_coin_Transactions_Fees -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_Transactions_GetAt(p0, p1): + return _skycoin.SKY_coin_Transactions_GetAt(p0, p1) +SKY_coin_Transactions_GetAt = _skycoin.SKY_coin_Transactions_GetAt -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_Transactions_Hashes(*args): + return _skycoin.SKY_coin_Transactions_Hashes(*args) +SKY_coin_Transactions_Hashes = _skycoin.SKY_coin_Transactions_Hashes -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_Transactions_Size(p0): + return _skycoin.SKY_coin_Transactions_Size(p0) +SKY_coin_Transactions_Size = _skycoin.SKY_coin_Transactions_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_Transactions_TruncateBytesTo(p0, p1): + return _skycoin.SKY_coin_Transactions_TruncateBytesTo(p0, p1) +SKY_coin_Transactions_TruncateBytesTo = _skycoin.SKY_coin_Transactions_TruncateBytesTo -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_SortTransactions(p0, p1): + return _skycoin.SKY_coin_SortTransactions(p0, p1) +SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions -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_NewSortableTransactions(p0, p1, p2): + return _skycoin.SKY_coin_NewSortableTransactions(p0, p1, p2) +SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions -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_SortableTransactions_Sort(p0): + return _skycoin.SKY_coin_SortableTransactions_Sort(p0) +SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort -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_SortableTransactions_Len(p0): + return _skycoin.SKY_coin_SortableTransactions_Len(p0) +SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len -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_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_BlockBody_Hash(p0, p1): - return _skycoin.SKY_coin_BlockBody_Hash(p0, p1) -SKY_coin_BlockBody_Hash = _skycoin.SKY_coin_BlockBody_Hash +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_BlockBody_Size(): - return _skycoin.SKY_coin_BlockBody_Size() -SKY_coin_BlockBody_Size = _skycoin.SKY_coin_BlockBody_Size +def SKY_coin_VerifyTransactionCoinsSpending(*args): + return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) +SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending -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_VerifyTransactionHoursSpending(*args): + return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) +SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending -def SKY_coin_CreateUnspents(*args): - return _skycoin.SKY_coin_CreateUnspents(*args) -SKY_coin_CreateUnspents = _skycoin.SKY_coin_CreateUnspents +def SKY_cli_GenerateWallet(p0, p2): + return _skycoin.SKY_cli_GenerateWallet(p0, p2) +SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet -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_cli_MakeAlphanumericSeed(): + return _skycoin.SKY_cli_MakeAlphanumericSeed() +SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed -def SKY_coin_GetBlockObject(p0): - return _skycoin.SKY_coin_GetBlockObject(p0) -SKY_coin_GetBlockObject = _skycoin.SKY_coin_GetBlockObject +def SKY_cli_GetWalletOutputsFromFile(p0, p1, p2): + return _skycoin.SKY_cli_GetWalletOutputsFromFile(p0, p1, p2) +SKY_cli_GetWalletOutputsFromFile = _skycoin.SKY_cli_GetWalletOutputsFromFile -def SKY_coin_GetBlockBody(p0): - return _skycoin.SKY_coin_GetBlockBody(p0) -SKY_coin_GetBlockBody = _skycoin.SKY_coin_GetBlockBody +def SKY_cli_GetWalletOutputs(p0, p2): + return _skycoin.SKY_cli_GetWalletOutputs(p0, p2) +SKY_cli_GetWalletOutputs = _skycoin.SKY_cli_GetWalletOutputs -def SKY_coin_NewEmptyBlock(p0): - return _skycoin.SKY_coin_NewEmptyBlock(p0) -SKY_coin_NewEmptyBlock = _skycoin.SKY_coin_NewEmptyBlock +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_App_Run(p0, p1): return _skycoin.SKY_cli_App_Run(p0, p1) @@ -1645,49 +1813,37 @@ def SKY_cli_Setenv(p0, p1): return _skycoin.SKY_cli_Setenv(p0, p1) SKY_cli_Setenv = _skycoin.SKY_cli_Setenv -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_coin_AddUint64(p0, p1): + return _skycoin.SKY_coin_AddUint64(p0, p1) +SKY_coin_AddUint64 = _skycoin.SKY_coin_AddUint64 -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_coin_Uint64ToInt64(p0): + return _skycoin.SKY_coin_Uint64ToInt64(p0) +SKY_coin_Uint64ToInt64 = _skycoin.SKY_coin_Uint64ToInt64 -def SKY_cipher_SumSHA256(p0, p1): - return _skycoin.SKY_cipher_SumSHA256(p0, p1) -SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 +def SKY_coin_Int64ToUint64(p0): + return _skycoin.SKY_coin_Int64ToUint64(p0) +SKY_coin_Int64ToUint64 = _skycoin.SKY_coin_Int64ToUint64 -def SKY_cipher_SHA256FromHex(p0, p1): - return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) -SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex +def SKY_coin_IntToUint32(p0): + return _skycoin.SKY_coin_IntToUint32(p0) +SKY_coin_IntToUint32 = _skycoin.SKY_coin_IntToUint32 -def SKY_cipher_DoubleSHA256(p0, p1): - return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) -SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 +def SKY_iputil_LocalhostIP(): + return _skycoin.SKY_iputil_LocalhostIP() +SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP -def SKY_cipher_AddSHA256(p0, p1, p2): - return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) -SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 +def SKY_iputil_IsLocalhost(p0): + return _skycoin.SKY_iputil_IsLocalhost(p0) +SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost -def SKY_cipher_Merkle(p0, p1): - return _skycoin.SKY_cipher_Merkle(p0, p1) -SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle +def SKY_iputil_SplitAddr(p0): + return _skycoin.SKY_iputil_SplitAddr(p0) +SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr -def SKY_cipher_SHA256_Null(p0): - return _skycoin.SKY_cipher_SHA256_Null(p0) -SKY_cipher_SHA256_Null = _skycoin.SKY_cipher_SHA256_Null +def SKY_certutil_NewTLSCertPair(p0, p1, p2): + return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) +SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair def SKY_cipher_DecodeBase58Address(p0, p1): return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) @@ -1725,41 +1881,25 @@ 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_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_NewReadableEntry(p0, p1): + return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) +SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry -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_LoadReadableWallet(p0): + return _skycoin.SKY_wallet_LoadReadableWallet(p0) +SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet -def SKY_apputil_CatchInterruptPanic(): - return _skycoin.SKY_apputil_CatchInterruptPanic() -SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic +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_apputil_CatchDebug(): - return _skycoin.SKY_apputil_CatchDebug() -SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug +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_apputil_PrintProgramStatus(): - return _skycoin.SKY_apputil_PrintProgramStatus() -SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus +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_Entry_Verify(p0): return _skycoin.SKY_wallet_Entry_Verify(p0) @@ -1769,349 +1909,209 @@ def SKY_wallet_Entry_VerifyPublic(p0): return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic -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_certutil_NewTLSCertPair(p0, p1, p2): - return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) -SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair - -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_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_JsonEncode_Handle(p0): + return _skycoin.SKY_JsonEncode_Handle(p0) +SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle -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_Handle_Progress_GetCurrent(p0): + return _skycoin.SKY_Handle_Progress_GetCurrent(p0) +SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent -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_Handle_Block_GetHeadSeq(p0): + return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) +SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq -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_Handle_Block_GetHeadHash(p0): + return _skycoin.SKY_Handle_Block_GetHeadHash(p0) +SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash -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_Handle_Block_GetPreviousBlockHash(p0): + return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) +SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash -def SKY_api_Client_BlockchainMetadata(p0): - return _skycoin.SKY_api_Client_BlockchainMetadata(p0) -SKY_api_Client_BlockchainMetadata = _skycoin.SKY_api_Client_BlockchainMetadata +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_api_Client_BlockchainProgress(p0): - return _skycoin.SKY_api_Client_BlockchainProgress(p0) -SKY_api_Client_BlockchainProgress = _skycoin.SKY_api_Client_BlockchainProgress +def SKY_Handle_Blocks_GetCount(p0): + return _skycoin.SKY_Handle_Blocks_GetCount(p0) +SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount -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_Handle_Connections_GetCount(p0): + return _skycoin.SKY_Handle_Connections_GetCount(p0) +SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount -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_Handle_Strings_GetCount(p0): + return _skycoin.SKY_Handle_Strings_GetCount(p0) +SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount -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_Handle_Strings_Sort(p0): + return _skycoin.SKY_Handle_Strings_Sort(p0) +SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort -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_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_Client_Wallets(p0): - return _skycoin.SKY_api_Client_Wallets(p0) -SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets +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_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_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_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_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_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_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_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_Handle_GetWalletMeta(p0): + return _skycoin.SKY_api_Handle_GetWalletMeta(p0) +SKY_api_Handle_GetWalletMeta = _skycoin.SKY_api_Handle_GetWalletMeta -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_Handle_GetWalletEntriesCount(p0): + return _skycoin.SKY_api_Handle_GetWalletEntriesCount(p0) +SKY_api_Handle_GetWalletEntriesCount = _skycoin.SKY_api_Handle_GetWalletEntriesCount -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_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_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_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_Client_WalletFolderName(p0): - return _skycoin.SKY_api_Client_WalletFolderName(p0) -SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName +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_Client_NewSeed(p0, p1): - return _skycoin.SKY_api_Client_NewSeed(p0, p1) -SKY_api_Client_NewSeed = _skycoin.SKY_api_Client_NewSeed +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_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_Handle_WalletResponseGetCryptoType(p0): + return _skycoin.SKY_api_Handle_WalletResponseGetCryptoType(p0) +SKY_api_Handle_WalletResponseGetCryptoType = _skycoin.SKY_api_Handle_WalletResponseGetCryptoType -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_Handle_WalletsResponseGetCount(p0): + return _skycoin.SKY_api_Handle_WalletsResponseGetCount(p0) +SKY_api_Handle_WalletsResponseGetCount = _skycoin.SKY_api_Handle_WalletsResponseGetCount -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_Handle_WalletsResponseGetAt(p0, p1): + return _skycoin.SKY_api_Handle_WalletsResponseGetAt(p0, p1) +SKY_api_Handle_WalletsResponseGetAt = _skycoin.SKY_api_Handle_WalletsResponseGetAt -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_Handle_GetWalletFolderAddress(p0): + return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) +SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress -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_Handle_GetWalletSeed(p0): + return _skycoin.SKY_api_Handle_GetWalletSeed(p0) +SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed -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_Handle_GetWalletLastSeed(p0): + return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) +SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed -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_Handle_GetBuildInfoData(p0): + return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) +SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData -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_NewWalletResponse(p0): + return _skycoin.SKY_api_NewWalletResponse(p0) +SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse -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_webrpc_NewClient(p0): + return _skycoin.SKY_webrpc_NewClient(p0) +SKY_webrpc_NewClient = _skycoin.SKY_webrpc_NewClient -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_webrpc_Client_CSRF(p0): + return _skycoin.SKY_webrpc_Client_CSRF(p0) +SKY_webrpc_Client_CSRF = _skycoin.SKY_webrpc_Client_CSRF -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_webrpc_Client_InjectTransaction(p0, p1): + return _skycoin.SKY_webrpc_Client_InjectTransaction(p0, p1) +SKY_webrpc_Client_InjectTransaction = _skycoin.SKY_webrpc_Client_InjectTransaction -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_webrpc_Client_GetStatus(p0, p1): + return _skycoin.SKY_webrpc_Client_GetStatus(p0, p1) +SKY_webrpc_Client_GetStatus = _skycoin.SKY_webrpc_Client_GetStatus -def SKY_api_Client_ResendUnconfirmedTransactions(p0): - return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) -SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions +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_api_Client_RawTransaction(p0, p1): - return _skycoin.SKY_api_Client_RawTransaction(p0, p1) -SKY_api_Client_RawTransaction = _skycoin.SKY_api_Client_RawTransaction +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_api_Client_AddressTransactions(p0, p1): - return _skycoin.SKY_api_Client_AddressTransactions(p0, p1) -SKY_api_Client_AddressTransactions = _skycoin.SKY_api_Client_AddressTransactions +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_api_Client_Richlist(p0, p1): - return _skycoin.SKY_api_Client_Richlist(p0, p1) -SKY_api_Client_Richlist = _skycoin.SKY_api_Client_Richlist +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_api_Client_AddressCount(p0): - return _skycoin.SKY_api_Client_AddressCount(p0) -SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount +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_api_Client_UnloadWallet(p0, p1): - return _skycoin.SKY_api_Client_UnloadWallet(p0, p1) -SKY_api_Client_UnloadWallet = _skycoin.SKY_api_Client_UnloadWallet +def SKY_bip39_NewDefaultMnemomic(): + return _skycoin.SKY_bip39_NewDefaultMnemomic() +SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic -def SKY_api_Client_Health(p0): - return _skycoin.SKY_api_Client_Health(p0) -SKY_api_Client_Health = _skycoin.SKY_api_Client_Health +def SKY_bip39_NewEntropy(p0): + return _skycoin.SKY_bip39_NewEntropy(p0) +SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy -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_bip39_NewMnemonic(p0): + return _skycoin.SKY_bip39_NewMnemonic(p0) +SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic -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_bip39_MnemonicToByteArray(p0): + return _skycoin.SKY_bip39_MnemonicToByteArray(p0) +SKY_bip39_MnemonicToByteArray = _skycoin.SKY_bip39_MnemonicToByteArray -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_bip39_IsMnemonicValid(p0): + return _skycoin.SKY_bip39_IsMnemonicValid(p0) +SKY_bip39_IsMnemonicValid = _skycoin.SKY_bip39_IsMnemonicValid -def SKY_httphelper_Address_MarshalJSON(p0): - return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) -SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON +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_httphelper_Coins_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) -SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON +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_httphelper_Coins_MarshalJSON(): - return _skycoin.SKY_httphelper_Coins_MarshalJSON() -SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON +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_httphelper_Coins_Value(): - return _skycoin.SKY_httphelper_Coins_Value() -SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value +def SKY_cli_NewTransaction(p0, p1, p2): + return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) +SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction -def SKY_httphelper_Hours_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) -SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON +def SKY_testutil_MakeAddress(p0): + return _skycoin.SKY_testutil_MakeAddress(p0) +SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress -def SKY_httphelper_Hours_MarshalJSON(): - return _skycoin.SKY_httphelper_Hours_MarshalJSON() -SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON +def SKY_apputil_CatchInterruptPanic(): + return _skycoin.SKY_apputil_CatchInterruptPanic() +SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic -def SKY_httphelper_Hours_Value(): - return _skycoin.SKY_httphelper_Hours_Value() -SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value +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 class api__RichlistParams(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, api__RichlistParams, name, value) diff --git a/swig/pyskycoin_wrap.c b/swig/pyskycoin_wrap.c index 55a0174e..10312447 100644 --- a/swig/pyskycoin_wrap.c +++ b/swig/pyskycoin_wrap.c @@ -4168,15 +4168,15 @@ SWIG_From_long_SS_long (long long value) SWIGINTERN int -SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +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 > UINT_MAX)) { + if ((v > UCHAR_MAX)) { return SWIG_OverflowError; } else { - if (val) *val = (unsigned int)(v); + if (val) *val = (unsigned char)(v); } } return res; @@ -4184,15 +4184,15 @@ SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) +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 > UCHAR_MAX)) { + if ((v > UINT_MAX)) { return SWIG_OverflowError; } else { - if (val) *val = (unsigned char)(v); + if (val) *val = (unsigned int)(v); } } return res; @@ -9066,133 +9066,117 @@ SWIGINTERN PyObject *GoSlice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObje return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Handle temp2 ; + 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; { - arg2 = &temp2; + 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; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) 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_cipher_Ripemd160_Set', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])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_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_HashRipemd160(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 ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; 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; + 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_cli_GenerateAddressesInFile', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_HashRipemd160', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&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_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)); - } + 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_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(unsigned char (*)[20])arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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; } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJSON', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SHA256_Set', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + result = (GoUint32)SKY_cipher_SHA256_Set((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_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -9203,19 +9187,16 @@ SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUN temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJoinedArray",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Hex",&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; + 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_cli_FormatAddressesAsJoinedArray(arg1,arg2); + 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 )); @@ -9227,142 +9208,149 @@ SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + 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; } - 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; + 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_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 ); + 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_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SumSHA256(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 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableEntry",&obj0,&obj1)) SWIG_fail; + 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_wallet_NewReadableEntry', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SumSHA256', 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 *""'"); + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - 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)); + 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_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - Handle temp2 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableWallet",&obj0)) SWIG_fail; + 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_wallet_LoadReadableWallet', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SHA256FromHex', 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)); + 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_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; 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); - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Save', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DoubleSHA256', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + { + 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: @@ -9370,29 +9358,42 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; + 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 *)"OO:SKY_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_AddSHA256",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_wallet_ReadableWallet_Load', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->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_wallet_ReadableWallet_Load(arg1,arg2); + { + 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: @@ -9400,17 +9401,31 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; + 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 *)"O:SKY_wallet_ReadableWallet_Erase",&obj0)) SWIG_fail; + 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); { - 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_wallet_ReadableWallet_Erase(arg1); + result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -9418,154 +9433,213 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_EnableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_EnableColors(); + 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_logging_DisableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_DisableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_DisableColors(); + { + 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_logging_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_Disable")) SWIG_fail; - result = (GoUint32)SKY_logging_Disable(); + 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_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToHex(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 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; 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); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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); + 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_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(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 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; 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); + 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_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(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 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3 = 0; - arg3 = &temp3; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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); + 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_From_long( *arg3 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -9573,39 +9647,36 @@ SWIGINTERN PyObject *_wrap_SKY_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), P } -SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(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 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3 = 0; - arg3 = &temp3; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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); + 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_From_long( *arg3 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -9613,47 +9684,32 @@ SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(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 ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - 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""'"); + 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""'"); } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + 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( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -9661,66 +9717,9 @@ SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_1(PyObject *SWIGUNUSEDPA } -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_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -9731,11 +9730,19 @@ SWIGINTERN PyObject *_wrap_SKY_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_JsonEncode_Handle",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_JsonEncode_Handle(arg1,arg2); + 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 )); @@ -9747,63 +9754,9 @@ SWIGINTERN PyObject *_wrap_SKY_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58String(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 ; + GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -9814,11 +9767,19 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58String",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_Handle_Block_GetHeadHash(arg1,arg2); + 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 )); @@ -9830,9 +9791,9 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -9843,11 +9804,19 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGU temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetPreviousBlockHash",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58Str",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_Handle_Block_GetPreviousBlockHash(arg1,arg2); + 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 )); @@ -9859,34 +9828,60 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + GoString arg1 ; GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; unsigned long long val2 ; int ecode2 = 0 ; - Handle temp3 ; + void *argp3 ; + int res3 = 0 ; + GoSlice_ temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Blocks_GetAt",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GenerateAddressesInFile",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_Handle_Blocks_GetAt" "', argument " "2"" of type '" "GoUint64""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "2"" of type '" "GoUint64""'"); } arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + { + 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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); } return resultobj; fail: @@ -9894,26 +9889,36 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = 0; - arg2 = &temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJSON",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_Handle_Blocks_GetCount(arg1,arg2); + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -9921,26 +9926,36 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = 0; - arg2 = &temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJoinedArray",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_Handle_Connections_GetCount(arg1,arg2); + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -9948,27 +9963,37 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; 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); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + 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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -9976,84 +10001,138 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Strings__Handle arg1 ; + 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; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_Sort",&obj0)) SWIG_fail; + { + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_coin_NewBlock",&obj0,&obj1,&obj2,&obj3,&obj4)) 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; + 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_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_SignedBlock_VerifySignature(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 ; + 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; - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&obj0,&obj1)) SWIG_fail; + arg1 = (coin__SignedBlock *)(argp1); { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - 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); + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(unsigned char (*)[33])arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg4 = &temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); } return resultobj; fail: @@ -10061,91 +10140,82 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashHeader",&obj0,&obj1)) 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 ); + 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_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) 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 ); + 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_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + temp2 = 0; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_Client_GetWalletFullPath",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Time",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); 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_From_long( *arg2 )); } return resultobj; fail: @@ -10153,25 +10223,26 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWI } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - Handle temp2 ; + 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_api_Handle_GetWalletMeta",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Seq",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -10179,37 +10250,37 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletEntriesCount",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) 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)); + { + 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_api_Handle_Client_GetWalletResponseEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; + Block__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 temp2 ; int res2 = SWIG_TMPOBJ ; @@ -10217,11 +10288,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(P GoUint32 result; arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletResponseEntriesCount",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Size",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + 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))); @@ -10235,94 +10306,74 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(P } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(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 ; + Block__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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 *""'"); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - arg3 = (cipher__Address *)(argp3); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(unsigned char (*)[33])arg4); + 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_api_Handle_WalletResponseGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(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 ; + 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; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + arg3 = &temp3; } + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletResponseGetEntry",&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; } - 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); + 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_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); + 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: @@ -10330,84 +10381,129 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseIsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseIsEncrypted",&obj0)) SWIG_fail; + 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); { - 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_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)); + 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_api_Handle_WalletResponseGetCryptoType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; + arg1 = (coin__BlockHeader *)(argp1); { - 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_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(unsigned char (*)[32])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) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + 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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -10415,34 +10511,32 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(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 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - 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); + 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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -10450,57 +10544,58 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletFolderAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) 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 ); + 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_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Handle temp1 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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); + arg1 = &temp1; } - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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: @@ -10508,28 +10603,29 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletLastSeed",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + 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->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -10537,50 +10633,38 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_1(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 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetBuildInfoData",&obj0)) SWIG_fail; + arg1 = (coin__BlockHeader *)(argp1); { - SWIG_AsVal_long(obj0, (long*)&arg1); + SWIG_AsVal_long(obj1, (long*)&arg2); } - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_coin_CreateUnspents(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 ); - } - { - 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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -10588,29 +10672,94 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - Wallet__Handle arg1 ; - GoString arg2 ; + 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 *)"OO:SKY_cli_AddPrivateKey",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); { - 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; + SWIG_AsVal_long(obj1, (long*)&arg2); } - result = (GoUint32)SKY_cli_AddPrivateKey(arg1,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: @@ -10618,72 +10767,26 @@ SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - void *argp3 ; - int res3 = 0 ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + coin__Block *temp2 ; 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; + temp2 = NULL; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockObject",&obj0)) SWIG_fail; { - 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_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transaction")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transaction(arg1); + result = (GoUint32)SKY_coin_GetBlockObject(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_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Block, 0 )); } return resultobj; fail: @@ -10691,10 +10794,10 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -10702,11 +10805,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(se { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Copy",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); + 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)); @@ -10717,26 +10820,25 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - coin__Transaction *temp2 ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = NULL; arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetTransactionObject",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); + result = (GoUint32)SKY_coin_NewEmptyBlock(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 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -10744,26 +10846,34 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 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_coin_Transaction_ResetInputs",&obj0,&obj1)) SWIG_fail; + 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); { - 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_httphelper_Address_UnmarshalJSON', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } - 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); + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -10771,27 +10881,33 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetInputsCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); + 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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -10799,101 +10915,99 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputsCount(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(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 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoSlice arg2 ; + GoUint64 temp1 ; 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); + temp1 = 0; + arg1 = &temp1; } - 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); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Coins_UnmarshalJSON",&obj0)) SWIG_fail; { - 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; + 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_coin_Transaction_GetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); + 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_coin_Transaction_SetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(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 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 temp1 ; + GoSlice_ temp2 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp1 = 0; + arg1 = &temp1; } - 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; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); + 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_coin_Transaction_GetOutputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp1 ; + GoUint64 temp2 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetOutputsCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp1 = 0; + arg1 = &temp1; } - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + { + 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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -10901,99 +11015,99 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputsCount(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(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 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoUint64 temp1 ; 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); + temp1 = 0; + arg1 = &temp1; } - 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 *""'"); + 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; } - arg3 = (coin__TransactionOutput *)(argp3); - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + 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_coin_Transaction_SetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(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 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 temp1 ; + GoSlice_ temp2 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp1 = 0; + arg1 = &temp1; } - 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - arg3 = (coin__TransactionOutput *)(argp3); - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + 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_coin_Transaction_GetSignaturesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp1 ; + GoUint64 temp2 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetSignaturesCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp1 = 0; + arg1 = &temp1; } - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + { + 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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -11001,36 +11115,39 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignaturesCount(PyObject *SWI } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - long long val2 ; + 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_coin_Transaction_GetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + 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_coin_Transaction_GetSignatureAt" "', argument " "2"" of type '" "GoInt""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_NewBalance" "', argument " "2"" of type '" "GoUint64""'"); } - 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; + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -11038,36 +11155,39 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignatureAt(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalanceFromUxOut(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 ; + 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_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""'"); + 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""'"); } - 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; + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + 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: @@ -11075,27 +11195,39 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 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 *)"OO:SKY_coin_Transaction_PushSignature",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(unsigned char (*)[65])arg2); + 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: @@ -11103,26 +11235,39 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Sub(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); + 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 *""'"); } - 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); + 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: @@ -11130,74 +11275,108 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetSignatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 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; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetSignatures",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - 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); + 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_coin_Transaction_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + 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; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + 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_coin_Transaction_VerifyInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_VerifyInput",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_CryptoTypeFromString",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_coin_Transaction_VerifyInput(arg1,arg2); + result = (GoUint32)SKY_wallet_CryptoTypeFromString(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -11205,124 +11384,81 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(PyObject *SW } -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) { +SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(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 ; + Wallet__Handle arg1 ; + GoString arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_AddPrivateKey",&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; + 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_coin_Transaction_PushInput(arg1,(unsigned char (*)[32])arg2,arg3); + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(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 ; + 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_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); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_AddPrivateKeyToFile",&obj0,&obj1,&obj2)) SWIG_fail; { - 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; + 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; } { - 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); + 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: @@ -11330,60 +11466,59 @@ SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(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 ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp3 ; 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; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreateTransactionResponse",&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_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); + { + 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; } - 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); + 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_coin_Transaction_SignInputs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransaction",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -11392,94 +11527,42 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(PyObject *SWI 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"); + 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_coin_Transaction_SignInputs(arg1,arg2); + 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_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) { +SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + 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_coin_Transaction_Size",&obj0)) SWIG_fail; + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -11487,18 +11570,27 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + 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; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); @@ -11507,45 +11599,40 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(se cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(unsigned char (*)[32])arg2); + 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_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(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 ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + Handle temp2 ; 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); + arg2 = &temp2; } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(unsigned char (*)[32])arg3); + arg1 = (wallet__UxBalance *)(argp1); + result = (GoUint32)SKY_api_NewCreatedTransactionInput(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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -11553,76 +11640,38 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(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); + if (!PyArg_ParseTuple(args,(char *)":SKY_logging_EnableColors")) SWIG_fail; + result = (GoUint32)SKY_logging_EnableColors(); 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) { +SWIGINTERN PyObject *_wrap_SKY_logging_DisableColors(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); + if (!PyArg_ParseTuple(args,(char *)":SKY_logging_DisableColors")) SWIG_fail; + result = (GoUint32)SKY_logging_DisableColors(); 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) { +SWIGINTERN PyObject *_wrap_SKY_logging_Disable(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); + 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: @@ -11630,57 +11679,59 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; { - 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; + 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_coin_Transaction_HashInner(arg1,(unsigned char (*)[32])arg2); + 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_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; 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); + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; } - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + 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( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); } return resultobj; fail: @@ -11688,33 +11739,35 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_coin_TransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_file_ResolveResourceDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - arg2 = &temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_TransactionDeserialize",&obj0)) SWIG_fail; + 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_coin_TransactionDeserialize', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_ResolveResourceDirectory', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -11722,47 +11775,59 @@ SWIGINTERN PyObject *_wrap_SKY_coin_TransactionDeserialize(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp4 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; { - temp2 = 0; - arg2 = &temp2; + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_file_DetermineResourcePath",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - 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 )); + 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; } - 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; + 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; } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transactions")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); 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( arg4->p, arg4->n )); + free( (void*)arg4->p ); } return resultobj; fail: @@ -11770,113 +11835,119 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - void *argp2 = 0 ; - int res2 = 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; - 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 **""'"); + arg8 = &temp8; } - 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; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:SKY_wallet_CreateOptionsHandle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - 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)); + { + 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; } - 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); + 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); { - SWIG_AsVal_long(obj1, (long*)&arg2); + 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; } - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + { + 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_SKY_coin_Transactions_Fees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(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 ; + Config__Handle *arg1 = (Config__Handle *) 0 ; + Handle temp1 ; 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; + arg1 = &temp1; } - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + 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( *arg3 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); } return resultobj; fail: @@ -11884,34 +11955,28 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Fees(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullWalletPath(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 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_GetAt",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) 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); + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -11919,29 +11984,28 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); + 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->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -11949,67 +12013,25 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes__SWIG_1(PyObject *SWIGUN } -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) { +SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + 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_coin_Transactions_Size",&obj0)) SWIG_fail; + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + result = (GoUint32)SKY_cli_NewApp(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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -12017,34 +12039,25 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Size(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(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 ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_TruncateBytesTo",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromContext",&obj0)) 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); + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -12052,34 +12065,25 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_SKY_coin_SortTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(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 ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SortTransactions",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_ConfigFromContext",&obj0)) 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); + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -12087,63 +12091,93 @@ SWIGINTERN PyObject *_wrap_SKY_coin_SortTransactions(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_coin_NewSortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(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 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewSortableTransactions",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - arg2 = &temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&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 *""'"); + 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 ); } - arg3 = (SortableTransactionResult_Handle *)(argp3); - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); + { + 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_coin_SortableTransactions_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - void *argp1 ; + 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 *)"O:SKY_coin_SortableTransactions_Sort",&obj0)) SWIG_fail; + 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); { - 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)); - } + 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_SortableTransactions_Sort(arg1); + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -12151,147 +12185,111 @@ SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Sort(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - void *argp1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Len",&obj0)) SWIG_fail; + 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); { - 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)); - } + 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_SortableTransactions_Len(arg1,arg2); + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(unsigned char (*)[32])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) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp1 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; 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; + 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); { - 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)); - } + 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; } - 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); + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(unsigned char (*)[32])arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - void *argp1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; - long long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; + GoUint64 temp3 ; 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)); - } + temp3 = 0; + arg3 = &temp3; } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + 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_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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); + 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_VerifyTransactionCoinsSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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 ; @@ -12311,8 +12309,8 @@ SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(PyObj temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_VerifyTransactionCoinsSpending")) SWIG_fail; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + 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 )); @@ -12328,84 +12326,68 @@ SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(PyObj } -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[2] = { 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++) { + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(self, args); + return _wrap_SKY_coin_UxArray_Hashes__SWIG_1(self, args); } - if (argc == 2) { + if (argc == 1) { 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); - } + 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_VerifyTransactionCoinsSpending'.\n" + 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_VerifyTransactionCoinsSpending(coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray *,coin__UxArray *)\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_VerifyTransactionHoursSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__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 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoSlice_ temp1 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - 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); + 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( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->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: @@ -12413,139 +12395,146 @@ SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObj } -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[2] = { 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++) { + for (ii = 0; (ii < 1) && (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 == 0) { + return _wrap_SKY_coin_UxArray_HasDupes__SWIG_1(self, args); } - if (argc == 3) { + if (argc == 1) { int _v; { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); + _v = PyList_Check(argv[0]) ? 1 : 0; } 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); - } - } + 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_VerifyTransactionHoursSpending'.\n" + 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_VerifyTransactionHoursSpending(GoUint64,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin__UxArray *,coin__UxArray *)\n"); + " wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray *,GoUint8 *)\n" + " SKY_coin_UxArray_HasDupes(coin__UxArray *,GoUint8 *)\n"); return 0; } -SWIGINTERN PyObject *_wrap_SKY_testutil_MakeAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; 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 *""'"); + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_testutil_MakeAddress(arg1); + 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_wallet_NewError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInterface arg1 ; - void *argp1 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice_ temp1 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; 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)); - } + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_wallet_NewError(arg1); + 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_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; + 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; { - 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); + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + 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_From_long(*arg3)); + 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: @@ -12553,81 +12542,101 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); } - { - 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"); + 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); + } } - (&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"); + 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); + } + } } - (&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; + 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_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; + 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; { - 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; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + 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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } return resultobj; fail: @@ -12635,109 +12644,92 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(sel } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - { - arg2 = &temp2; + 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 (!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"); + 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); + } } - (&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"); + 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); + } + } } - (&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; + 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_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoSlice_ temp1 ; + GoUint64 temp2 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Type",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2 = 0; + arg2 = &temp2; } - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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: @@ -12745,114 +12737,76 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self) } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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 (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Version",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Coins__SWIG_1(self, args); } - 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 ); + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_Coins__SWIG_0(self, args); + } } - 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; + 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_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp3 = 0; + arg3 = &temp3; } - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } - 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -12860,211 +12814,183 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPAR } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + 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 (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); + } } - 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 ); + 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); + } + } } - return resultobj; + fail: - return NULL; + 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_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; GoSlice_ temp2 ; - PyObject * obj0 = 0 ; + 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; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + 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_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 *""'"); +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); } - 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 *""'"); + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Sub__SWIG_1(self, args); } - 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)); + 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); + } + } } - 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; + 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_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(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 ; + 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; { - temp4 = 0; - arg4 = &temp4; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } { - temp5.data = NULL; - temp5.len = 0; - temp5.cap = 0; - arg5 = (coin__UxArray *)&temp5; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } { - temp6 = 0; - arg6 = &temp6; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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); + 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_From_long( *arg4 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); - free( (void*)arg5->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg6 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -13072,46 +12998,71 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - 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 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + GoSlice_ temp1 ; + Handle temp2 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - 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; + arg2 = &temp2; } - 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); + 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( arg3->data, arg3->len )); - free( (void*)arg3->data ); + 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: @@ -13119,17 +13070,47 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject * } -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; +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; @@ -13137,123 +13118,156 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(sel temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&obj0)) SWIG_fail; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); + 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 ); } - { - 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) { +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; - 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 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Flatten",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg3 = (wallet__UxBalance *)(argp3); - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + 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_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - 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 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMinimizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Sub",&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_ChooseSpendsMinimizeUxOuts', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_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); + { + 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_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -13261,55 +13275,30 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Add(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 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Add",&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_ChooseSpendsMaximizeUxOuts', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_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); + { + 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_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -13317,98 +13306,38 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_SKY_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get__SWIG_1(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 ; + 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 ; - 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; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - { - 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; + 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 *""'"); } - 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); + 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_From_long(*arg8)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -13416,167 +13345,86 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPA } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_cli_CreateRawTxFromWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); } - { - 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"); + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; } - (&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"); + 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); + } } - (&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"); + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; } - (&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)); + 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); + } } } - 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; + 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_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_HasKey(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 ; + 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 ; - 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; + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_HasKey",&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_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)); - } + 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 *""'"); } - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); + 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: @@ -13584,81 +13432,36 @@ SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_GetOutputLength(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 ; + 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 ; - 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; + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_GetOutputLength",&obj0,&obj1)) 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; + 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 *""'"); } - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); + 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: @@ -13666,59 +13469,27 @@ SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), P } -SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - Handle temp4 ; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Length",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + 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: @@ -13726,59 +13497,38 @@ SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(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 ; + 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 ; - 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 *""'"); + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + 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( arg4->data, arg4->len )); - free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -13786,59 +13536,88 @@ SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject * } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + 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 (!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 *""'"); + 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); + } + } } - 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"); + 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); + } + } } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; } + +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_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; + { - 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; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); + 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( arg4->data, arg4->len )); - free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -13846,38 +13625,35 @@ SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt(PyObject * } -SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(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 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 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); - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewPubKey",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CheckWalletBalance', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewPubKey', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->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_CheckWalletBalance" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); + { + 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; } - arg3 = (BalanceResult_Handle *)(argp3); - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -13885,39 +13661,34 @@ SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(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 ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 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); - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromHex",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetBalanceOfAddresses', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_PubKeyFromHex', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg1)->p = buffer; + (&arg1)->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_GetBalanceOfAddresses" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); + { + 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; } - arg3 = (BalanceResult_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(unsigned char (*)[33])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -13925,38 +13696,32 @@ SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(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 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromSecKey",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } { - 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 *""'"); + 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; } - arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + 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: @@ -13964,105 +13729,99 @@ SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSig(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 ; + 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; { - arg2 = &temp2; + 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; } - 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 *""'"); + 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; } - 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)); + 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_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Verify(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 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Verify",&obj0)) SWIG_fail; { - temp3 = 0; - arg3 = &temp3; + 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; } - 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); + result = (GoUint32)SKY_cipher_PubKey_Verify((unsigned char (*)[33])arg1); 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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoInt64 temp2 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = 0; - arg2 = &temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&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); + 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_From_long( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -14070,115 +13829,136 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_coin_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoUint64 temp2 ; + 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; { - temp2 = 0; - arg2 = &temp2; + 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; } - 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 )); + 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_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_NewSecKey(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 ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 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)); + 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_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_close",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - SKY_handle_close(arg1); - resultobj = SWIG_Py_Void(); + { + 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_handle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Verify",&obj0)) SWIG_fail; { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_copy",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_handle_copy(arg1,arg2); + result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])arg1); 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_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -14189,18 +13969,16 @@ SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Hex",&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); + 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 )); @@ -14212,59 +13990,44 @@ SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; + 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; { - 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 ); + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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; - + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_ECDH",&obj0,&obj1)) SWIG_fail; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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; } - 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; + 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_file_ResolveResourceDirectory(arg1,arg2); + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -14272,133 +14035,82 @@ SWIGINTERN PyObject *_wrap_SKY_file_ResolveResourceDirectory(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_NewSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; 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; + 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_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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSig', 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 ); + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - 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; + 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; } - if (!PyArg_ParseTuple(args,(char *)":SKY_iputil_LocalhostIP")) SWIG_fail; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + result = (GoUint32)SKY_cipher_NewSig(arg1,(unsigned char (*)[65])arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_IsLocalhost",&obj0)) SWIG_fail; + 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_iputil_IsLocalhost', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SigFromHex', 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)); + { + 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_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; GoString temp2 ; - GoUint16 temp3 ; - int res3 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; @@ -14407,126 +14119,138 @@ SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), temp2.n = 0; arg2 = (GoString_ *)&temp2; } - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_SplitAddr",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&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; + 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_iputil_SplitAddr(arg1,arg2,arg3); + 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 ); } - 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_cipher_DecodeBase58BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 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 *)"OO:SKY_cipher_DecodeBase58BitcoinAddress",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SignHash",&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_DecodeBase58BitcoinAddress', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + 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; } - 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 *""'"); + { + 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; } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: + { + 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_BitcoinAddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyAddressSignedHash(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 ; + 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 *)"OO:SKY_cipher_BitcoinAddressFromPubKey",&obj0,&obj1)) SWIG_fail; + 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(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &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 *""'"); + { + 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; } - arg2 = (cipher__BitcoinAddress *)(argp2); - SKY_cipher_BitcoinAddressFromPubKey((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_Py_Void(); + 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_BitcoinAddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignedHash(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 ; + 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_BitcoinAddressFromSecKey",&obj0,&obj1)) SWIG_fail; + 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_SecKey, 0 | 0); + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)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 *""'"); + { + 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; } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((unsigned char (*)[32])arg1,arg2); + 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: @@ -14534,67 +14258,75 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromSecKey(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyPubKeySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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; } - 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); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &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 ); + 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_BitcoinAddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 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_BitcoinAddressFromBytes",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateKeyPair",&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; + 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_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + { + 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; } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + 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: @@ -14602,34 +14334,45 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 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 *)"OO:SKY_cipher_SecKeyFromBitcoinWalletImportFormat",&obj0,&obj1)) SWIG_fail; + 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_SecKeyFromBitcoinWalletImportFormat', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPair', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&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); + 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; - arg2 = &p->data; + arg3 = &p->data; } - result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(unsigned char (*)[32])arg2); + 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: @@ -14637,36 +14380,17 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(PyObje } -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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 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; @@ -14674,81 +14398,86 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Bytes(PyObject *SWIGUNUSEDP 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 *""'"); + 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; } - 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 ); + 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; } - 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); + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg4 = &p->data; } - result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(unsigned char (*)[33])arg2); + 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_BitcoinAddress_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(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 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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 *""'"); + 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; } - arg1 = (cipher__BitcoinAddress *)(argp1); - SKY_cipher_BitcoinAddress_String(arg1,arg2); - resultobj = SWIG_Py_Void(); + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -14756,74 +14485,116 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_String(PyObject *SWIGUNUSED } -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 ; +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - 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 *""'"); + 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); } - 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; + 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); + } + } } - SKY_cipher_BitcoinAddress_Checksum(arg1,(unsigned char (*)[4])arg2); - resultobj = SWIG_Py_Void(); - return resultobj; + 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: - return NULL; + 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_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Handle temp1 ; - GoString temp3 ; + 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; { - arg1 = &temp1; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_Get",&obj0)) SWIG_fail; + 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_map_Get', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairsSeed', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + 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_From_long(*arg1)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); } return resultobj; fail: @@ -14831,54 +14602,56 @@ SWIGINTERN PyObject *_wrap_SKY_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject } -SWIGINTERN PyObject *_wrap_SKY_map_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - Handle temp1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; - GoUint8 result; + GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_CheckSecKey",&obj0)) SWIG_fail; { - 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)); + 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_map_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKeyHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - Handle temp1 ; + 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; { - 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)); + 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; + } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_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_cipher_CheckSecKeyHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; @@ -14952,69 +14725,42 @@ SWIGINTERN PyObject *_wrap_SKY_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Handle arg1 ; PyObject * obj0 = 0 ; - GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_close",&obj0)) SWIG_fail; { - 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 ); + SWIG_AsVal_long(obj0, (long*)&arg1); } + SKY_handle_close(arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_handle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + arg2 = &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); + 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_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -15022,35 +14768,35 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), P } -SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 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 *)"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; - } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); + 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: @@ -15058,34 +14804,39 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 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 *)"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); + 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: @@ -15093,293 +14844,392 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 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; - 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; + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(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 ; + 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 ; - 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; + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 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; - 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; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - result = (GoUint32)SKY_cipher_PubKey_Verify((unsigned char (*)[33])arg1); + { + 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_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; +SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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 (!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; + 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); + } + } } - 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 ); + 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); + } + } + } } - return resultobj; + fail: - return NULL; + 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_cipher_PubKeyRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 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; - 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; + 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); { - 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; + 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; } - result = (GoUint32)SKY_cipher_PubKeyRipemd160((unsigned char (*)[33])arg1,(unsigned char (*)[20])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_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_cipher_NewSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 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; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSecKey",&obj0,&obj1)) SWIG_fail; + { + 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( obj0, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSecKey', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->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; + 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_cipher_NewSecKey(arg1,(unsigned char (*)[32])arg2); + 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_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; + { + 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_cipher_SecKeyFromHex', expecting string"); + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])arg1); + 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_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Hex",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Version",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_SecKey_Hex((unsigned char (*)[32])arg1,arg2); + result = (GoUint32)SKY_api_Client_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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -15387,44 +15237,25 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Outputs(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 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; 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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Outputs",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_ECDH((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); 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(*arg2)); } return resultobj; fail: @@ -15432,104 +15263,103 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObj } -SWIGINTERN PyObject *_wrap_SKY_cipher_NewSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSig",&obj0,&obj1)) SWIG_fail; + { + 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( obj0, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSig', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForAddresses', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SigFromHex",&obj0,&obj1)) SWIG_fail; + { + 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( obj0, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SigFromHex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForHashes', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CoinSupply",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_Sig_Hex((unsigned char (*)[65])arg1,arg2); + result = (GoUint32)SKY_api_Client_CoinSupply(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -15537,529 +15367,288 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(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 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; 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; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockByHash",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } { - 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; + 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_cipher_SignHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[65])arg3); + 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_cipher_VerifyAddressSignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(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 ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; 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; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&obj0,&obj1)) SWIG_fail; { - 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(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); + 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_cipher_VerifySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; 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; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Blocks",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_VerifySignedHash((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2); + { + 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_cipher_VerifyPubKeySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_LastBlocks(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 ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; 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; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_LastBlocks",&obj0,&obj1)) SWIG_fail; { - 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; + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; 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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainMetadata",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_GenerateKeyPair((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2); + 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_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; 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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainProgress",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(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 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DeterministicKeyPairIterator', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Balance', 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; + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(unsigned char (*)[33])arg3,(unsigned char (*)[32])arg4); + arg3 = (wallet__BalancePair *)(argp3); + result = (GoUint32)SKY_api_Client_Balance(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 ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(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 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UxOut",&obj0,&obj1)) SWIG_fail; { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairsSeed', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UxOut', 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; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_cipher_CheckSecKey((unsigned char (*)[32])arg1); + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - 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_api_NewCreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -16068,7 +15657,7 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUN { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreateTransactionResponse",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressUxOuts",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -16077,13 +15666,12 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUN 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressUxOuts', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); + 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)); @@ -16094,11 +15682,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -16107,7 +15695,7 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPAR { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransaction",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Wallet",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -16116,13 +15704,12 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPAR 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Wallet', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + 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)); @@ -16133,10 +15720,10 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -16144,11 +15731,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SW { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Wallets",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); + 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)); @@ -16159,39 +15746,58 @@ SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SW } -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(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 ; + 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; { - arg3 = &temp3; + arg5 = &temp5; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_CreateUnencryptedWallet",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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; + 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; } - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(unsigned char (*)[32])arg2,arg3); + { + 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(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); } return resultobj; fail: @@ -16199,29 +15805,70 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(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 ; + 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; { - arg2 = &temp2; + arg6 = &temp6; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_api_Client_CreateEncryptedWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + { + 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(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); } return resultobj; fail: @@ -16229,36 +15876,58 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NewWalletAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + arg5 = &temp5; + } + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_NewWalletAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_String2Hex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NewWalletAddress', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + 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_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); } return resultobj; fail: @@ -16266,106 +15935,144 @@ SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToInt",&obj0)) SWIG_fail; + 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( obj0, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToInt', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletBalance', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->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)); + 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_base58_Base58_ToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToHex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->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 ); + 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_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp2 ; + Handle temp3 ; 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; + arg2 = &temp2; } - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + { + 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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -16373,73 +16080,67 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UpdateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base582Hex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->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 ); + 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_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletFolderName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_BitHex",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_WalletFolderName",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + result = (GoUint32)SKY_api_Client_WalletFolderName(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -16447,32 +16148,37 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - 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""'"); + 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""'"); } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -16480,36 +16186,52 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp4 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletSeed', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_base58_Hex2Base58(arg1,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_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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); } return resultobj; fail: @@ -16517,36 +16239,37 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58String', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NetworkConnection', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + result = (GoUint32)SKY_api_Client_NetworkConnection(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -16554,36 +16277,34 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58String(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58Str",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnections",&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_base58_Hex2Base58Str', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -16591,32 +16312,29 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - arg2 = &temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_NewClient",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkDefaultPeers",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -16624,28 +16342,29 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkTrustedPeers",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); + 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->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -16653,33 +16372,29 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkExchangedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkExchangedPeers",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); 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( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -16687,46 +16402,46 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_PendingTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; 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); + arg2 = &temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_PendingTransactions",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (StatusResult_Handle *)(argp2); - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + 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_webrpc_Client_GetTransactionByID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; + Client__Handle arg1 ; GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; 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; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transaction",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -16735,41 +16450,36 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetTransactionByID(PyObject *SWIGUN 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Transaction', 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); + 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_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; + Client__Handle arg1 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetAddressUxOuts",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -16778,17 +16488,16 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUS 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"); + 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_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); + result = (GoUint32)SKY_api_Client_Transactions(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -16796,47 +16505,38 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_ConfirmedTransactions(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 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetBlocksInRange",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_ConfirmedTransactions",&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_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); + { + 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_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -16844,23 +16544,20 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; + Client__Handle arg1 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetBlocksBySeq",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -16869,17 +16566,16 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSED 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"); + 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_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -16887,38 +16583,33 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(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 ; + Client__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_InjectTransaction",&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); + { + 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->data, arg3->len )); - free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -16926,20 +16617,25 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle *arg1 = (Config__Handle *) 0 ; - Handle temp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; { - arg1 = &temp1; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_LoadConfig")) SWIG_fail; - result = (GoUint32)SKY_cli_LoadConfig(arg1); + 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(*arg1)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -16947,28 +16643,40 @@ SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullWalletPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_RawTransaction",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); + { + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -16976,28 +16684,37 @@ SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullWalletPath(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); + { + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -17005,25 +16722,34 @@ SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Handle temp2 ; + 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; { - arg2 = &temp2; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); + 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(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -17031,25 +16757,26 @@ SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObje } -SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; + 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_cli_RPCClientFromContext",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_AddressCount",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -17057,62 +16784,55 @@ SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Handle temp2 ; + Client__Handle arg1 ; + GoString arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_ConfigFromContext",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) 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)); + 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_cli_PasswordFromBytes_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Health",&obj0)) SWIG_fail; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromBytes_Password")) SWIG_fail; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); + result = (GoUint32)SKY_api_Client_Health(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -17120,72 +16840,97 @@ SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromTerm_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + arg4 = &temp4; } - 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)); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_EncryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + SWIG_AsVal_long(obj0, (long*)&arg1); } - return resultobj; -fail: + { + 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_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(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 ; + 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; { - arg2 = &temp2; + arg4 = &temp4; } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; { - arg4 = &temp4; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateWallet', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_DecryptWallet', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->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)); + 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)); } @@ -17195,23 +16940,43 @@ SWIGINTERN PyObject *_wrap_SKY_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Handle temp1 ; + GoString temp3 ; + PyObject * obj0 = 0 ; GoUint32 result; { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; + arg1 = &temp1; } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_MakeAlphanumericSeed")) SWIG_fail; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + { + 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_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); + 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: @@ -17219,58 +16984,32 @@ SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_map_HasKey(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 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + Handle temp1 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; + GoUint8 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); + arg1 = &temp1; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_HasKey",&obj0)) SWIG_fail; { - if (!PyCallable_Check(obj4)) SWIG_fail; - temp5.callback = _WrapperFeeCalculator; - temp5.context = obj4; - arg5 = &temp5; + 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 = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(unsigned char (*)[32])arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + result = (GoUint8)SKY_map_HasKey(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); } return resultobj; fail: @@ -17278,135 +17017,129 @@ SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyO } -SWIGINTERN PyObject *_wrap_SKY_coin_SignedBlock_VerifySignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_map_Close(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 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + Handle temp1 ; 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; + arg1 = &temp1; } - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(unsigned char (*)[33])arg2); + 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_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewError(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 ; + GoInterface arg1 ; + void *argp1 ; 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; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewError",&obj0)) SWIG_fail; { - 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 *""'"); + 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)); + } } - 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); + result = (GoUint32)SKY_wallet_NewError(arg1); 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Handle temp3 ; 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); + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewWallet",&obj0,&obj1)) SWIG_fail; { - 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; + 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; } - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(unsigned char (*)[32])arg2); + { + 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_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) 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; + 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; } - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(unsigned char (*)[32])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_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: @@ -17414,26 +17147,38 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp2 = 0; - arg2 = &temp2; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Time",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Unlock",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + { + 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( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -17441,26 +17186,32 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), P } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = 0; arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Seq",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Load",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_coin_Block_Seq(arg1,arg2); + 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 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -17468,27 +17219,29 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Wallet__Handle arg1 ; + GoString arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Save",&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; + 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_coin_Block_HashBody(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -17496,37 +17249,27 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + Wallet__Handle arg1 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Size",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Validate",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; + Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -17537,11 +17280,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(PyObject *SWIGUNUSEDPARM(self), temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Type",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); + 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 )); @@ -17553,45 +17296,28 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Version(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 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Version",&obj0)) 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); + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -17599,129 +17325,28 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(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 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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 *""'"); + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - arg1 = (coin__BlockHeader *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Filename",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); + 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->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -17729,12 +17354,10 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Bytes(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -17744,13 +17367,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM( 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + 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 )); @@ -17762,58 +17383,66 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) SWIG_fail; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_IsEncrypted",&obj0)) 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); + 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_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GenerateAddresses(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 ; + 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; { - arg1 = &temp1; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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)); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + SWIG_AsVal_long(obj0, (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)); + 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: @@ -17821,9 +17450,9 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - BlockBody__Handle arg1 ; + Wallet__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoSlice_ temp2 ; PyObject * obj0 = 0 ; @@ -17835,11 +17464,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(sel temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + 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 )); @@ -17851,38 +17480,45 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetEntry(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 ; + 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; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 *""'"); + 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 *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - { - SWIG_AsVal_long(obj1, (long*)&arg2); + 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 *""'"); } - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + arg3 = (wallet__Entry *)(argp3); + result = (GoUint32)SKY_wallet_Wallet_GetEntry(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 ); + 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: @@ -17890,121 +17526,143 @@ SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_1(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; +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 (!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 (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_AddEntry",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); - } - } + 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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(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 ; + 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 ; - void *argp4 = 0 ; - int res4 = 0 ; + GoUint64 temp4 ; + GoSlice_ temp5 ; + GoUint64 temp6 ; 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 *""'"); + { + temp4 = 0; + arg4 = &temp4; } - arg1 = (coin__BlockHeader *)(argp1); { - SWIG_AsVal_long(obj1, (long*)&arg2); + temp5.data = NULL; + temp5.len = 0; + temp5.cap = 0; + arg5 = (coin__UxArray *)&temp5; } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + { + 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_coin_CreateUnspent" "', argument " "3"" of type '" "GoInt""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "3"" of type '" "GoUint8""'"); } - 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); + 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_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - coin__Block *temp2 ; + 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; { - temp2 = NULL; - arg2 = &temp2; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockObject",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_DistributeCoinHoursProportional",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + 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_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Block, 0 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -18012,25 +17670,45 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Handle temp2 ; + 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; { - arg2 = &temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + 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_From_long(*arg2)); + 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: @@ -18038,84 +17716,151 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - Handle temp2 ; + 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; - { - arg2 = &temp2; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + arg3 = (wallet__UxBalance *)(argp3); + result = (GoUint32)SKY_wallet_NewUxBalance(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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - App__Handle arg1 ; - GoString arg2 ; + 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; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_App_Run",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_App_Run', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMinimizeUxOuts', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + (&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_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetCoin",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); } return resultobj; fail: @@ -18123,87 +17868,126 @@ SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetRPCAddress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + 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; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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_cli_RPCClientFromApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; + 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; { - arg2 = &temp2; + 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; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromApp",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((unsigned char (*)[32])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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; + 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_cli_Getenv",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinWalletImportFormatFromSeckey",&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; + 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_cli_Getenv(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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 ); @@ -18214,36 +17998,34 @@ SWIGINTERN PyObject *_wrap_SKY_cli_Getenv(PyObject *SWIGUNUSEDPARM(self), PyObje } -SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; + 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_cli_Setenv",&obj0,&obj1)) SWIG_fail; + 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_cli_Setenv', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_BitcoinAddressFromBytes', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&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_Setenv', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->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_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); } - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18251,35 +18033,34 @@ SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(PyObject *SWIGUNUSEDPARM(self), PyObje } -SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; - GoSlice arg2 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; 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; - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromBitcoinWalletImportFormat",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_Ripemd160_Set', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromBitcoinWalletImportFormat', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])arg1,arg2); + { + 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: @@ -18287,71 +18068,86 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_cipher_HashRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 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 ; - 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; + 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(); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoSlice arg2 ; + 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_SHA256_Set",&obj0,&obj1)) SWIG_fail; + 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(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 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; + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; } - result = (GoUint32)SKY_cipher_SHA256_Set((unsigned char (*)[32])arg1,arg2); + result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(unsigned char (*)[33])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18359,30 +18155,28 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 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_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; + 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 *""'"); } - result = (GoUint32)SKY_cipher_SHA256_Hex((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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 ); @@ -18393,183 +18187,187 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Checksum(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 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 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_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; + 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_SHA256, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; + 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_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Handle temp1 ; + GoUint32 result; + { - 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; + arg1 = &temp1; } - result = (GoUint32)SKY_cipher_SHA256_Xor((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); + 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_cipher_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; 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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Copy",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(unsigned char (*)[32])arg2); + 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_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + coin__Transaction *temp2 ; 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; + temp2 = NULL; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetTransactionObject",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(unsigned char (*)[32])arg2); + 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_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 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_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetInputs",&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; + 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; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(unsigned char (*)[32])arg2); + 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_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 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_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; - } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - 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; + 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); @@ -18578,7 +18376,7 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), 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); + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18586,31 +18384,36 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 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 *)"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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (GoSlice *)(argp1); + 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(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 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; - arg2 = &p->data; + arg3 = &p->data; } - result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18618,32 +18421,27 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyO } -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; + 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_cipher_SHA256_Null",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetOutputsCount",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_SHA256_Null((unsigned char (*)[32])arg1,arg2); + 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_unsigned_char, new_flags)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); } return resultobj; fail: @@ -18651,33 +18449,35 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 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 *)"OO:SKY_cipher_DecodeBase58Address",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetOutputAt",&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_DecodeBase58Address', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + 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_cipher_DecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); + 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 *""'"); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + 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: @@ -18685,34 +18485,35 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 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 *)"OO:SKY_cipher_AddressFromBytes",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetOutputAt",&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_AddressFromBytes', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_cipher_AddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); + 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 *""'"); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); + 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: @@ -18720,63 +18521,64 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignaturesCount(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 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromPubKey",&obj0,&obj1)) SWIG_fail; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetSignaturesCount",&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; - } - 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 *""'"); + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])arg1,arg2); + 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_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignatureAt(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; + 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 *)"OO:SKY_cipher_AddressFromSecKey",&obj0,&obj1)) SWIG_fail; + 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(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 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 *""'"); + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg3 = &p->data; } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18784,97 +18586,91 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(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 ; + 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; - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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)); + 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_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(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 ; + 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; { - 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 *""'"); + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + 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_cipher_Address_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(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 ; + 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_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); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetOutputs",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); + 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: @@ -18882,64 +18678,44 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetSignatures(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 ; + 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; { - 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 *""'"); + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + 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)); - { - 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) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Verify(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 ; + Transaction__Handle arg1 ; 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); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18947,159 +18723,154 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(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 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + 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_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; +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - 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 *""'"); + 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); } - 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 *""'"); + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(self, args); + } } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; + 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: - return NULL; + 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_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushInput(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 ; + 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 ; - 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 *""'"); + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 *""'"); + { + 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; } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + 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_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(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 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 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 (!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_wallet_Balance_Sub" "', argument " "1"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_TransactionOutput_UxID" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - 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 *""'"); + 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; } - 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 *""'"); + { + 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; } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + 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: @@ -19107,155 +18878,184 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushOutput(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 ; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; void *argp2 = 0 ; int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; + 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; - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_Transaction_PushOutput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + 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_Balance_Equals" "', argument " "2"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); } - arg2 = (wallet__Balance *)(argp2); - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + 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)); - 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) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(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 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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)); + { + 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_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; +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - 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 (!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); + } + } + } - 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; + 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_wallet_Entry_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + Transaction__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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 *""'"); + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Size",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_Verify(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_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(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: @@ -19263,23 +19063,37 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; + 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; { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + 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: @@ -19287,12 +19101,10 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt arg1 ; + Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -19303,13 +19115,11 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), 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); + 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 )); @@ -19321,9 +19131,9 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; + Transaction__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -19334,19 +19144,11 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewMnemonic",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxIDHex",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + 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 )); @@ -19358,145 +19160,109 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Transaction__Handle arg1 ; PyObject * obj0 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_UpdateHeader",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); 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) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_IsMnemonicValid",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_HashInner",&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_bip39_IsMnemonicValid', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + { + 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)); - 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_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(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 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + 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; { - temp5.data = NULL; - temp5.len = 0; - temp5.cap = 0; - arg5 = (coin__UxArray *)&temp5; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_certutil_NewTLSCertPair",&obj0,&obj1,&obj2)) SWIG_fail; + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + 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; + { - 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; + 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( obj2, &buffer, &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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_coin_TransactionDeserialize', expecting string"); } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); 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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -19504,95 +19270,74 @@ SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(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 ; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; 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 *""'"); + { + temp2 = 0; + arg2 = &temp2; } - arg1 = (coin__UxOut *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); + 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_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(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 ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Handle temp1 ; 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; + arg1 = &temp1; } - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(unsigned char (*)[32])arg2); + 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_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionsObject(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 ; + 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_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); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_GetTransactionsObject",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(unsigned char (*)[32])arg2); + 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: @@ -19600,39 +19345,27 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(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 ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Length",&obj0)) SWIG_fail; { - 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 *""'"); + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + 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: @@ -19640,105 +19373,123 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj1, (long*)&arg2); } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Hashes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + result = (GoUint32)SKY_coin_Transactions_Add(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; +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; - 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); + { + temp3 = 0; + arg3 = &temp3; } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Hashes__SWIG_1(self, args); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Fees",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (argc == 1) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_Hashes__SWIG_0(self, args); - } + { + 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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(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 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + arg3 = &temp3; } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_HasDupes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + 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_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - 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_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: @@ -19746,7 +19497,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 @@ -19758,81 +19509,55 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *a 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 = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transactions_Hashes__SWIG_0(self, args); + } } if (argc == 1) { int _v; { - _v = PyList_Check(argv[0]) ? 1 : 0; + _v = PyInt_Check(argv[0]) ? 1 : 0; } if (_v) { - return _wrap_SKY_coin_UxArray_HasDupes__SWIG_0(self, args); + 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_UxArray_HasDupes'.\n" + 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_UxArray_HasDupes(coin_UxOutArray *,GoUint8 *)\n" - " SKY_coin_UxArray_HasDupes(coin__UxArray *,GoUint8 *)\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_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) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice_ temp1 ; - GoInt temp2 ; + Transactions__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; 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)); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Size",&obj0)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + 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_long_long, new_flags)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); } return resultobj; fail: @@ -19840,52 +19565,34 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(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 ; + Transactions__Handle arg1 ; + GoUint32 arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + unsigned int val2 ; int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + arg3 = &temp3; } - 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 (!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_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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_TruncateBytesTo" "', argument " "2"" of type '" "GoUint32""'"); } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + 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_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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -19893,101 +19600,34 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_1(PyObject *SWIGUNUSEDPAR } -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) { +SWIGINTERN PyObject *_wrap_SKY_coin_SortTransactions(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 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + arg3 = &temp3; } - 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); + 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_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -19995,169 +19635,157 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_1(PyObject *SWIGUNUSEDPAR } -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) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewSortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoSlice_ temp1 ; - GoUint64 temp2 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } { - temp2 = 0; + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; 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 )); + 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_UxArray_Coins(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; +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 (!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); + 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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Len(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 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + 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; { - temp3 = 0; - arg3 = &temp3; + 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)); + } } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_CoinHours",&obj0)) SWIG_fail; - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val2); + ecode2 = SWIG_AsVal_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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "2"" of type '" "GoInt""'"); } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + 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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - 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: @@ -20165,61 +19793,58 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_1(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; +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 (!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); - } + 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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoSlice_ temp1 ; GoSlice_ temp2 ; - GoSlice_ temp3 ; GoUint32 result; { @@ -20234,14 +19859,8 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM 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); + 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 )); @@ -20251,17 +19870,13 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM 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) { +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 @@ -20274,7 +19889,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *self, PyObject *args) argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_SKY_coin_UxArray_Sub__SWIG_1(self, args); + return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(self, args); } if (argc == 2) { int _v; @@ -20286,36 +19901,32 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *self, PyObject *args) _v = PyList_Check(argv[1]) ? 1 : 0; } if (_v) { - return _wrap_SKY_coin_UxArray_Sub__SWIG_0(self, args); + 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_UxArray_Sub'.\n" + 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_UxArray_Sub(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_UxArray_Sub(coin__UxArray *,coin__UxArray *,coin__UxArray *)\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_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; + unsigned long long val1 ; + int ecode1 = 0 ; GoSlice_ temp2 ; GoSlice_ temp3 ; + PyObject * obj0 = 0 ; GoUint32 result; - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } { temp2.data = NULL; temp2.len = 0; @@ -20328,13 +19939,14 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM 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); + 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( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); free( (void*)arg2->data ); @@ -20349,135 +19961,125 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 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++) { + for (ii = 0; (ii < 3) && (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 == 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 == 2) { + if (argc == 3) { int _v; { - _v = PyList_Check(argv[0]) ? 1 : 0; + 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) { - return _wrap_SKY_coin_UxArray_Add__SWIG_0(self, args); + { + _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_UxArray_Add'.\n" + 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_UxArray_Add(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_UxArray_Add(coin__UxArray *,coin__UxArray *,coin__UxArray *)\n"); - return 0; + " 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_coin_NewAddressUxOuts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - GoSlice_ temp1 ; + 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; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + arg2 = &temp2; } { - arg2 = &temp2; + arg4 = &temp4; } - 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)); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GenerateWallet",&obj0,&obj1)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + 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_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) { +SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; 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); + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; } - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + 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( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); } return resultobj; fail: @@ -20485,140 +20087,73 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(PyObject *SWIGUNU } -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) { +SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; - { - 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; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetWalletOutputsFromFile",&obj0,&obj1,&obj2)) 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); + 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; } - if (argc == 1) { - int _v; - { - _v = PyInt_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(self, args); - } + 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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; + 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; { - arg3 = &temp3; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Sub",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GetWalletOutputs",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - SWIG_AsVal_long(obj1, (long*)&arg2); + 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 *""'"); } - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + 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(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -20626,193 +20161,137 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Sub(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; + 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; - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Add",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_CheckWalletBalance",&obj0,&obj1,&obj2)) 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( 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; } - 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)); + 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_coin_AddressUxOuts_Get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(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 ; + 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; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&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_GetBalanceOfAddresses', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->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_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); + 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 *""'"); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + arg3 = (BalanceResult_Handle *)(argp3); + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(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) { +SWIGINTERN PyObject *_wrap_SKY_cli_App_Run(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 ; + App__Handle arg1 ; + GoString arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_HasKey",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_App_Run",&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 *""'"); + { + 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; } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(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 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetCoin",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -20820,27 +20299,28 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_GetOutputLength(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Length",&obj0)) SWIG_fail; + { + 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_coin_AddressUxOuts_Length(arg1,arg2); + result = (GoUint32)SKY_cli_Config_GetRPCAddress(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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -20848,38 +20328,25 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Length(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromApp(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 ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromApp",&obj0)) 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); + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); 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(*arg2)); } return resultobj; fail: @@ -20887,116 +20354,112 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; +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; - 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); + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - 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 (!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; } - 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); - } - } - } + 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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - Handle temp2 ; + GoString arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewClient",&obj0)) SWIG_fail; + 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_api_NewClient', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', 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)); + 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_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - 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); + temp3 = 0; + arg3 = &temp3; } - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -21004,25 +20467,30 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), P } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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_api_Client_Version",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -21030,25 +20498,30 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Outputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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_api_Client_Outputs",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); + 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -21056,38 +20529,31 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Outputs(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoInt arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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); + 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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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: @@ -21095,38 +20561,58 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(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 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; GoUint32 result; { - arg3 = &temp3; + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForHashes",&obj0,&obj1)) SWIG_fail; + 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)); { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForHashes', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_iputil_IsLocalhost', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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: @@ -21134,25 +20620,45 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString temp2 ; + GoUint16 temp3 ; + int res3 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; { - arg2 = &temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CoinSupply",&obj0)) SWIG_fail; + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_SplitAddr",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_api_Client_CoinSupply(arg1,arg2); + result = (GoUint32)SKY_iputil_SplitAddr(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_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: @@ -21160,37 +20666,73 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + GoString arg1 ; GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + 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; { - arg3 = &temp3; + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockByHash",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_api_Client_BlockByHash', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); } (&arg2)->p = buffer; (&arg2)->n = size - 1; } - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + { + 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_From_long(*arg3)); + 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: @@ -21198,134 +20740,164 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(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 ; + 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; { - arg3 = &temp3; + 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; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&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_cipher_DecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); } - 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); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; 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); - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromBytes",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Blocks', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_AddressFromBytes', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->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)); + 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_api_Client_LastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(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 ; + 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; { - arg3 = &temp3; + 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; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_LastBlocks",&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_cipher_AddressFromPubKey" "', argument " "2"" of type '" "cipher__Address *""'"); } - 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); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])arg1,arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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; { - arg2 = &temp2; + 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; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainMetadata",&obj0)) 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_cipher_AddressFromSecKey" "', argument " "2"" of type '" "cipher__Address *""'"); } - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])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_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: @@ -21333,25 +20905,33 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainMetadata(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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; { - arg2 = &temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainProgress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + 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_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -21359,39 +20939,31 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(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 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 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_api_Client_Balance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); { - 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 *""'"); + 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; } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -21399,37 +20971,32 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + 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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -21437,49 +21004,45 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + 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; - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressUxOuts",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); { - 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; + 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_api_Client_AddressUxOuts(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 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 ; @@ -21488,21 +21051,23 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Wallet",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableEntry",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Wallet', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewReadableEntry', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + 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)); @@ -21513,10 +21078,10 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -21524,11 +21089,18 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self) { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Wallets",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableWallet",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_api_Client_Wallets(arg1,arg2); + 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)); @@ -21539,26 +21111,15 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + ReadableWallet__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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Save",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -21567,59 +21128,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(PyObject *SWIG 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Save', 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); + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + ReadableWallet__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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -21628,138 +21158,52 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(PyObject *SWIGUN 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Load', 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); + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(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 ; + ReadableWallet__Handle arg1 ; 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; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableWallet_Erase",&obj0)) 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); + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_Verify(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 ; + wallet__Entry *arg1 = (wallet__Entry *) 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_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 *""'"); + 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 *""'"); } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + arg1 = (wallet__Entry *)(argp1); + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -21767,71 +21211,21 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletBalance(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(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 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 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 *""'"); + 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 *""'"); } - arg6 = (SpendResult_Handle *)(argp6); - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + arg1 = (wallet__Entry *)(argp1); + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -21839,33 +21233,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_JsonEncode_Handle(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 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - arg2 = &temp2; - } - { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CreateTransaction",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_JsonEncode_Handle",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -21873,67 +21262,53 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_api_Client_UpdateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; 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); + temp2 = 0; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Progress_GetCurrent",&obj0)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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_WalletFolderName",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadSeq",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + 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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -21941,37 +21316,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletFolderName(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(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 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NewSeed",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) 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); + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); 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( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -21979,52 +21345,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletSeed",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetPreviousBlockHash",&obj0)) 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); + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22032,11 +21374,13 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletSeed(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; + Handle arg1 ; + GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -22045,21 +21389,16 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSED { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Blocks_GetAt",&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); + 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)); @@ -22070,34 +21409,26 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(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 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2 = 0; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnections",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&obj0)) 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); + 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(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -22105,29 +21436,26 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp2 = 0; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkDefaultPeers",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); + result = (GoUint32)SKY_Handle_Connections_GetCount(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -22135,29 +21463,27 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultPeers(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_GetCount",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); + result = (GoUint32)SKY_Handle_Strings_GetCount(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 ); + 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: @@ -22165,93 +21491,55 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedPeers(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkExchangedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Strings__Handle arg1 ; 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; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_Sort",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); 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) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + 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; { - arg3 = &temp3; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transaction",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&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); + 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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -22259,38 +21547,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Transaction(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transactions",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&obj0)) 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); + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22298,38 +21576,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_api_Client_ConfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_ConfirmedTransactions",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletFileName",&obj0)) 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); + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22337,38 +21605,28 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_ConfirmedTransactions(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_SKY_api_Client_UnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletLabel",&obj0)) 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); + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22376,10 +21634,10 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_UnconfirmedTransactions(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Client__Handle arg1 ; - Transaction__Handle arg2 ; + WalletResponse__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; GoString temp3 ; PyObject * obj0 = 0 ; @@ -22391,14 +21649,14 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(PyObject *SWIGUNUSED temp3.n = 0; arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; + 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_Client_InjectTransaction(arg1,arg2,arg3); + 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 )); @@ -22410,10 +21668,10 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -22421,11 +21679,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_ResendUnconfirmedTransactions",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletMeta",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + 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)); @@ -22436,40 +21694,27 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject } -SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletEntriesCount",&obj0)) 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); + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); + 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: @@ -22477,37 +21722,27 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletResponseEntriesCount",&obj0)) 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); + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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: @@ -22515,61 +21750,94 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(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 ; + 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; - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Handle_WalletGetEntry",&obj0,&obj1,&obj2,&obj3)) 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 *""'"); + 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 *""'"); } - arg2 = (api__RichlistParams *)(argp2); - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + arg3 = (cipher__Address *)(argp3); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + 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; { - temp2 = 0; - arg2 = &temp2; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_AddressCount",&obj0)) SWIG_fail; + { + 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); } - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + 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_From_long( *arg2 )); + 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: @@ -22577,55 +21845,56 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseIsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) SWIG_fail; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseIsEncrypted",&obj0)) 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); + 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_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetCryptoType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - arg2 = &temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Health",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22633,49 +21902,27 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) 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); + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + 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: @@ -22683,49 +21930,34 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; + 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 ; - PyObject * obj2 = 0 ; GoUint32 result; { - arg4 = &temp4; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&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_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); + 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(*arg4)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -22733,68 +21965,57 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletFolderAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + 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_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(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 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletSeed",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (httphelper__Address *)(argp1); - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + 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->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22802,34 +22023,28 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_MarshalJSON(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoUint64 temp1 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp1 = 0; - arg1 = &temp1; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Coins_UnmarshalJSON",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletLastSeed",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(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->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22837,33 +22052,50 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint64 temp1 ; - GoSlice_ temp2 ; + 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; { - temp1 = 0; - arg1 = &temp1; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + { + 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_From_long( *arg1 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + 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: @@ -22871,30 +22103,25 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp1 ; - GoUint64 temp2 ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; 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)); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + 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 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -22902,34 +22129,32 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoUint64 temp1 ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp1 = 0; - arg1 = &temp1; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Hours_UnmarshalJSON",&obj0)) SWIG_fail; + 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_httphelper_Hours_UnmarshalJSON', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_NewClient', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + result = (GoUint32)SKY_webrpc_NewClient(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: @@ -22937,33 +22162,28 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint64 temp1 ; - GoSlice_ temp2 ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; { - temp1 = 0; - arg1 = &temp1; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_fail; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + result = (GoUint32)SKY_webrpc_Client_CSRF(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -22971,30 +22191,33 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp1 ; - GoUint64 temp2 ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp1 = 0; - arg1 = &temp1; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; { - temp2 = 0; - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 )); + 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_From_long( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -23002,583 +22225,806 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetStatus(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 ; + 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: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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetStatus",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 *""'"); + 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 *""'"); } - arg1 = (api__RichlistParams *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); + 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_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetTransactionByID(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 ; + 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 *)"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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetTransactionByID",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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(); + { + 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_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; - BOOL result; + PyObject * obj1 = 0 ; + GoUint32 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 *""'"); + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - arg1 = (api__RichlistParams *)(argp1); - result = ((arg1)->IncludeDistribution); + 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_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) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 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; - 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 *""'"); + { + 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 ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + GoUint32 result; - 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 *""'"); + { + 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); } - 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetBlocksBySeq', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&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 ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; - GoString_ result; + PyObject * obj1 = 0 ; + GoUint32 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 *""'"); + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (api__NetworkConnectionsFilter *)(argp1); + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(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; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; + GoUint32 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 *""'"); + { + 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 ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *result = 0 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; - 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 ); + { + 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_delete_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; + GoUint32 result; - 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 *""'"); + { + 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 ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(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 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; + GoUint32 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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 *""'"); + 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 ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_bip39_IsMnemonicValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject *result = 0 ; + GoUint32 result; - 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 *""'"); + 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)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(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 ; + 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; - 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 *""'"); + { + 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)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 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 ; - GoUint8_ result; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + GoUint32 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 *""'"); + { + 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)); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(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 ; + 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; - 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 *""'"); + { + arg7 = &temp7; } - 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 (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; { - 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]""'"); + 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)); } - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + Handle temp4 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; - 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 *""'"); + { + 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)); } - 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) { +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:delete_cipher__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); + 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 '" "delete_cipher__Address" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_testutil_MakeAddress" "', argument " "1"" of type '" "cipher__Address *""'"); } arg1 = (cipher__Address *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); + result = (GoUint32)SKY_testutil_MakeAddress(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); 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_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_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + +SWIGINTERN PyObject *_wrap_SKY_apputil_CatchDebug(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; + GoUint32 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)); + 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_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_apputil_PrintProgramStatus(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 ; + GoUint32 result; - 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; + 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_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoUint8_ arg2 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; + long long 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 (!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 '" "cipher__BitcoinAddress_Version_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + arg1 = (api__RichlistParams *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_N_set" "', argument " "2"" of type '" "GoInt_""'"); } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Version = arg2; + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->N = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -23586,58 +23032,51 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ result; + GoInt_ 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 (!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 '" "cipher__BitcoinAddress_Version_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (GoUint8_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + 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_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoUint8_ *arg2 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned int val2 ; + int ecode2 = 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 (!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 '" "cipher__BitcoinAddress_Key_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - 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]""'"); + 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 = (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]""'"); - } - } + arg2 = (BOOL)(val2); + if (arg1) (arg1)->IncludeDistribution = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -23645,54 +23084,54 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + BOOL result; - 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 (!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 '" "cipher__BitcoinAddress_Key_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (GoUint8_ *) ((arg1)->Key); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + 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_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *result = 0 ; + api__RichlistParams *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 ); + 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_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 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 (!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_cipher__BitcoinAddress" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__RichlistParams" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); + arg1 = (api__RichlistParams *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -23701,36 +23140,39 @@ SWIGINTERN PyObject *_wrap_delete_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *cipher__BitcoinAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_cipher__BitcoinAddress, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_api__RichlistParams, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ 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 (!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 '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); } - 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; + 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: @@ -23738,51 +23180,54 @@ SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt_ result; + GoString_ 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 (!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 '" "encrypt__ScryptChacha20poly1305_N_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); + 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_encrypt__ScryptChacha20poly1305_R_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ 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 (!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 '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); } - 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; + 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: @@ -23790,177 +23235,178 @@ SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_set(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt_ result; + GoString_ 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 (!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 '" "encrypt__ScryptChacha20poly1305_R_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->R); - resultobj = SWIG_From_long_SS_long((long long)(result)); + 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_encrypt__ScryptChacha20poly1305_P_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_api__NetworkConnectionsFilter(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 ; + api__NetworkConnectionsFilter *result = 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(); + 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_encrypt__ScryptChacha20poly1305_P_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 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 (!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 '" "encrypt__ScryptChacha20poly1305_P_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__NetworkConnectionsFilter" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->P); - resultobj = SWIG_From_long_SS_long((long long)(result)); + arg1 = (api__NetworkConnectionsFilter *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + int result; - 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 (!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 '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address___eq__" "', argument " "1"" of type '" "cipher__Address *""'"); } - 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(); + 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_encrypt__ScryptChacha20poly1305_KeyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt_ result; + PyObject *result = 0 ; - 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 (!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 '" "encrypt__ScryptChacha20poly1305_KeyLen_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_toStr" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->KeyLen); - resultobj = SWIG_From_long_SS_long((long long)(result)); + arg1 = (cipher__Address *)(argp1); + result = (PyObject *)cipher__Address_toStr(arg1); + resultobj = result; return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *result = 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 *)":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 ); + 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_delete_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GoUint8_ result; - 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 (!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 '" "delete_encrypt__ScryptChacha20poly1305" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_get" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); + arg1 = (cipher__Address *)(argp1); + result = (GoUint8_) ((arg1)->Version); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); 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) { +SWIGINTERN PyObject *_wrap_cipher__Address_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *arg2 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -23968,23 +23414,23 @@ SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_set(PyObject *SWIGUNUSEDPARM(sel 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 (!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 '" "secp256k1go__Field_n_set" "', argument " "1"" of type '" "secp256k1go__Field *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_set" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + 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 '" "secp256k1go__Field_n_set" "', argument " "2"" of type '" "GoUint32_ [10]""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); } - arg2 = (GoUint32_ *)(argp2); + arg2 = (unsigned char *)(argp2); { if (arg2) { size_t ii = 0; - for (; ii < (size_t)10; ++ii) *(GoUint32_ *)&arg1->n[ii] = *((GoUint32_ *)arg2 + ii); + 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 '""n""' of type '""GoUint32_ [10]""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); } } resultobj = SWIG_Py_Void(); @@ -23994,54 +23440,54 @@ SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint32_ *result = 0 ; + GoUint8_ *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 (!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 '" "secp256k1go__Field_n_get" "', argument " "1"" of type '" "secp256k1go__Field *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_get" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); + 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_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__Field *result = 0 ; + cipher__Address *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 ); + 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_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 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 (!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_secp256k1go__Field" "', argument " "1"" of type '" "secp256k1go__Field *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__Address" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (secp256k1go__Field *)(argp1); + arg1 = (cipher__Address *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -24050,88 +23496,89 @@ SWIGINTERN PyObject *_wrap_delete_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *secp256k1go__Field_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_secp256k1go__Field, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_cipher__Address, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 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:secp256k1go__XY_X_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + 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 '" "secp256k1go__XY_X_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + 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 '" "secp256k1go__XY_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->X = *arg2; - resultobj = SWIG_Py_Void(); + 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_secp256k1go__XY_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; + PyObject *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 (!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 '" "secp256k1go__XY_X_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_toStr" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - arg1 = (secp256k1go__XY *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->X); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (PyObject *)cipher__BitcoinAddress_toStr(arg1); + resultobj = result; return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned char val2 ; + int ecode2 = 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Y = *arg2; + 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: @@ -24139,51 +23586,58 @@ SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_set(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; + GoUint8_ result; - 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 (!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 '" "secp256k1go__XY_Y_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - arg1 = (secp256k1go__XY *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + 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_secp256k1go__XY_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL arg2 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 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 (!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 '" "secp256k1go__XY_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - 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""'"); + 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 = (BOOL)(val2); - if (arg1) (arg1)->Infinity = arg2; + 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: @@ -24191,54 +23645,54 @@ SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_set(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - BOOL result; + GoUint8_ *result = 0 ; - 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 (!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 '" "secp256k1go__XY_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - arg1 = (secp256k1go__XY *)(argp1); - result = ((arg1)->Infinity); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *result = 0 ; + cipher__BitcoinAddress *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 ); + 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_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 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 (!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_secp256k1go__XY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__BitcoinAddress" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } - arg1 = (secp256k1go__XY *)(argp1); + arg1 = (cipher__BitcoinAddress *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -24247,36 +23701,36 @@ SWIGINTERN PyObject *_wrap_delete_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *secp256k1go__XY_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_secp256k1go__XY, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_cipher__BitcoinAddress, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + long long val2 ; + int ecode2 = 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 (!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 '" "secp256k1go__XYZ_X_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - 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; + 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: @@ -24284,51 +23738,51 @@ SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_set(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; + GoInt_ result; - 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 (!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 '" "secp256k1go__XYZ_X_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->X); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + 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_secp256k1go__XYZ_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + long long val2 ; + int ecode2 = 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Y = *arg2; + 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: @@ -24336,51 +23790,51 @@ SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_set(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; + GoInt_ result; - 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 (!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 '" "secp256k1go__XYZ_Y_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + 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_secp256k1go__XYZ_Z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + long long val2 ; + int ecode2 = 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Z = *arg2; + 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: @@ -24388,51 +23842,51 @@ SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_set(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; + GoInt_ result; - 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 (!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 '" "secp256k1go__XYZ_Z_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Z); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + 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_secp256k1go__XYZ_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL arg2 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; + long long 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 (!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 '" "secp256k1go__XYZ_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg1 = (secp256k1go__XYZ *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "2"" of type '" "GoInt_""'"); } - arg2 = (BOOL)(val2); - if (arg1) (arg1)->Infinity = arg2; + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->KeyLen = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24440,54 +23894,54 @@ SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_set(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - BOOL result; + GoInt_ 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 (!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 '" "secp256k1go__XYZ_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg1 = (secp256k1go__XYZ *)(argp1); - result = ((arg1)->Infinity); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *result = 0 ; + encrypt__ScryptChacha20poly1305 *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 ); + 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_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 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 (!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_secp256k1go__XYZ" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encrypt__ScryptChacha20poly1305" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } - arg1 = (secp256k1go__XYZ *)(argp1); + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -24496,39 +23950,43 @@ SWIGINTERN PyObject *_wrap_delete_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *secp256k1go__XYZ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_secp256k1go__XYZ, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ arg2 ; + 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:cli__SendAmount_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 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 '" "cli__SendAmount_Addr_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_set" "', argument " "1"" of type '" "secp256k1go__Field *""'"); } - arg1 = (cli__SendAmount *)(argp1); + 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); { - 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"); + 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]""'"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; } - if (arg1) (arg1)->Addr = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24536,107 +23994,92 @@ SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoString_ result; + GoUint32_ *result = 0 ; - 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 (!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 '" "cli__SendAmount_Addr_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_get" "', argument " "1"" of type '" "secp256k1go__Field *""'"); } - 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 ); + 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_cli__SendAmount_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_secp256k1go__Field(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 ; + secp256k1go__Field *result = 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(); + 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_cli__SendAmount_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 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 (!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 '" "cli__SendAmount_Coins_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__Field" "', argument " "1"" of type '" "secp256k1go__Field *""'"); } - arg1 = (cli__SendAmount *)(argp1); - result = (GoInt64_) ((arg1)->Coins); - resultobj = SWIG_From_long_SS_long((long long)(result)); + arg1 = (secp256k1go__Field *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); 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 *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_delete_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 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 *)"O:delete_cli__SendAmount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_DISOWN | 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 '" "delete_cli__SendAmount" "', argument " "1"" of type '" "cli__SendAmount *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - arg1 = (cli__SendAmount *)(argp1); - free((char *) arg1); + 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: @@ -24644,67 +24087,51 @@ SWIGINTERN PyObject *_wrap_delete_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self) } -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) { +SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; + secp256k1go__Field *result = 0 ; - 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - arg2 = (coin__Transaction *)(argp2); - result = (int)coin__Transaction___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); + 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_coin__Transaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ arg2 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 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 (!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 '" "coin__Transaction_Length_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - 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; + 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: @@ -24712,51 +24139,51 @@ SWIGINTERN PyObject *_wrap_coin__Transaction_Length_set(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_coin__Transaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt32_ result; + secp256k1go__Field *result = 0 ; - 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 (!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 '" "coin__Transaction_Length_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - arg1 = (coin__Transaction *)(argp1); - result = (GoInt32_) ((arg1)->Length); - resultobj = SWIG_From_int((int)(result)); + 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_coin__Transaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ arg2 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL arg2 ; void *argp1 = 0 ; int res1 = 0 ; - signed char val2 ; + unsigned int 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 (!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 '" "coin__Transaction_Type_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - arg1 = (coin__Transaction *)(argp1); - ecode2 = SWIG_AsVal_signed_SS_char(obj1, &val2); + arg1 = (secp256k1go__XY *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Type_set" "', argument " "2"" of type '" "GoInt8_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); } - arg2 = (GoInt8_)(val2); - if (arg1) (arg1)->Type = arg2; + arg2 = (BOOL)(val2); + if (arg1) (arg1)->Infinity = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24764,116 +24191,92 @@ SWIGINTERN PyObject *_wrap_coin__Transaction_Type_set(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_coin__Transaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt8_ result; + BOOL 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 (!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 '" "coin__Transaction_Type_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - arg1 = (coin__Transaction *)(argp1); - result = (GoInt8_) ((arg1)->Type); - resultobj = SWIG_From_signed_SS_char((signed char)(result)); + arg1 = (secp256k1go__XY *)(argp1); + result = ((arg1)->Infinity); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_secp256k1go__XY(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 ; + secp256k1go__XY *result = 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(); + 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_coin__Transaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 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 (!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 '" "coin__Transaction_InnerHash_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); } - arg1 = (coin__Transaction *)(argp1); - result = (GoUint8_ *) ((arg1)->InnerHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + arg1 = (secp256k1go__XY *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); 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 ; +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:coin__Transaction_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 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 '" "coin__Transaction_Sigs_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - 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)); - } + 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 *""'"); } - if (arg1) (arg1)->Sigs = arg2; + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->X = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24881,57 +24284,51 @@ SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_set(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoSlice_ result; + secp256k1go__Field *result = 0 ; - 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 (!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 '" "coin__Transaction_Sigs_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - 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 ); + 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_coin__Transaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 ; + void *argp2 = 0 ; 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 (!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 '" "coin__Transaction_In_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - 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)); - } + 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 *""'"); } - if (arg1) (arg1)->In = arg2; + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->Y = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24939,57 +24336,51 @@ SWIGINTERN PyObject *_wrap_coin__Transaction_In_set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_coin__Transaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoSlice_ result; + secp256k1go__Field *result = 0 ; - 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 (!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 '" "coin__Transaction_In_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - 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 ); + 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_coin__Transaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 ; + void *argp2 = 0 ; 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 (!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 '" "coin__Transaction_Out_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - 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)); - } + 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 *""'"); } - if (arg1) (arg1)->Out = arg2; + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->Z = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24997,123 +24388,147 @@ SWIGINTERN PyObject *_wrap_coin__Transaction_Out_set(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_coin__Transaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoSlice_ result; + secp256k1go__Field *result = 0 ; - 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 (!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 '" "coin__Transaction_Out_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - 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 ); + 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_new_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *result = 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 *)":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 ); + 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_delete_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + BOOL result; - 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 (!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 '" "delete_coin__Transaction" "', argument " "1"" of type '" "coin__Transaction *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - arg1 = (coin__Transaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); + arg1 = (secp256k1go__XYZ *)(argp1); + result = ((arg1)->Infinity); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); 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_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_coin__TransactionOutput___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + +SWIGINTERN PyObject *_wrap_delete_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XYZ" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); } - arg2 = (coin__TransactionOutput *)(argp2); - result = (int)coin__TransactionOutput___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); + arg1 = (secp256k1go__XYZ *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ 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__TransactionOutput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 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 '" "coin__TransactionOutput_Address_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); } - 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 *""'"); + 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; } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; + if (arg1) (arg1)->Addr = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25121,50 +24536,50 @@ SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_set(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; + GoString_ result; - 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 (!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 '" "coin__TransactionOutput_Address_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); } - arg1 = (coin__TransactionOutput *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + 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_coin__TransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long long val2 ; + 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 (!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 '" "coin__TransactionOutput_Coins_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); } - arg1 = (coin__TransactionOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + arg1 = (cli__SendAmount *)(argp1); + ecode2 = SWIG_AsVal_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_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cli__SendAmount_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); } - arg2 = (GoUint64_)(val2); + arg2 = (GoInt64_)(val2); if (arg1) (arg1)->Coins = arg2; resultobj = SWIG_Py_Void(); return resultobj; @@ -25173,106 +24588,54 @@ SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_set(PyObject *SWIGUNUSE } -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) { +SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint64_ result; + GoInt64_ 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 (!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 '" "coin__TransactionOutput_Hours_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); } - arg1 = (coin__TransactionOutput *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + 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_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__TransactionOutput *result = 0 ; + cli__SendAmount *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 ); + 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_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cli__SendAmount *arg1 = (cli__SendAmount *) 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 (!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_coin__TransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__SendAmount" "', argument " "1"" of type '" "cli__SendAmount *""'"); } - arg1 = (coin__TransactionOutput *)(argp1); + arg1 = (cli__SendAmount *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -25281,17 +24644,17 @@ SWIGINTERN PyObject *_wrap_delete_coin__TransactionOutput(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *coin__TransactionOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_coin__TransactionOutput, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_cli__SendAmount, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_coin__BlockHeader___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -25300,18 +24663,18 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader___eq__(PyObject *SWIGUNUSEDPARM(sel 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 (!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__BlockHeader___eq__" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction___eq__" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + 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__BlockHeader___eq__" "', argument " "2"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction___eq__" "', argument " "2"" of type '" "coin__Transaction *""'"); } - arg2 = (coin__BlockHeader *)(argp2); - result = (int)coin__BlockHeader___eq__(arg1,arg2); + arg2 = (coin__Transaction *)(argp2); + result = (int)coin__Transaction___eq__(arg1,arg2); resultobj = SWIG_From_int((int)(result)); return resultobj; fail: @@ -25319,29 +24682,29 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader___eq__(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ arg2 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; + 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 (!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__BlockHeader_Version_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_set" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + arg1 = (coin__Transaction *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Version_set" "', argument " "2"" of type '" "GoUint32_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Length_set" "', argument " "2"" of type '" "GoInt32_""'"); } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Version = arg2; + arg2 = (GoInt32_)(val2); + if (arg1) (arg1)->Length = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25349,51 +24712,51 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_set(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint32_ result; + GoInt32_ 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 (!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__BlockHeader_Version_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_get" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + arg1 = (coin__Transaction *)(argp1); + result = (GoInt32_) ((arg1)->Length); + resultobj = SWIG_From_int((int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long long val2 ; + signed char 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 (!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__BlockHeader_Time_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_set" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + 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__BlockHeader_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Type_set" "', argument " "2"" of type '" "GoInt8_""'"); } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; + arg2 = (GoInt8_)(val2); + if (arg1) (arg1)->Type = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25401,51 +24764,58 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint64_ result; + GoInt8_ 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 (!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__BlockHeader_Time_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_get" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + 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__BlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 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 (!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__BlockHeader_BkSeq_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_set" "', argument " "1"" of type '" "coin__Transaction *""'"); } - 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_""'"); + 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 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; + 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: @@ -25453,51 +24823,57 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint64_ result; + GoUint8_ *result = 0 ; - 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 (!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__BlockHeader_BkSeq_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_get" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + 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__BlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; + void *argp2 ; + int res2 = 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 (!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__BlockHeader_Fee_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_set" "', argument " "1"" of type '" "coin__Transaction *""'"); } - 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; + 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: @@ -25505,58 +24881,57 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint64_ result; + GoSlice_ 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 (!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__BlockHeader_Fee_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_get" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Fee); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + 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__BlockHeader_PrevHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; + void *argp2 ; 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 (!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__BlockHeader_PrevHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_set" "', argument " "1"" of type '" "coin__Transaction *""'"); } - 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); + arg1 = (coin__Transaction *)(argp1); { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->PrevHash[ii] = *((unsigned char *)arg2 + ii); + 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 { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""PrevHash""' of type '""unsigned char [32]""'"); + arg2 = *((GoSlice_ *)(argp2)); } } + if (arg1) (arg1)->In = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25564,58 +24939,57 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_set(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + GoSlice_ result; - 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 (!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__BlockHeader_PrevHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_get" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->PrevHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + 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__BlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; + void *argp2 ; 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 (!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__BlockHeader_BodyHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_set" "', argument " "1"" of type '" "coin__Transaction *""'"); } - 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); + arg1 = (coin__Transaction *)(argp1); { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->BodyHash[ii] = *((unsigned char *)arg2 + ii); + 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 { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BodyHash""' of type '""unsigned char [32]""'"); + arg2 = *((GoSlice_ *)(argp2)); } } + if (arg1) (arg1)->Out = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25623,113 +24997,54 @@ SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Transaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + GoSlice_ result; - 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 (!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__BlockHeader_BodyHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_get" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->BodyHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + 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_coin__BlockHeader_UxHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__Transaction(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 ; + coin__Transaction *result = 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(); + 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_coin__BlockHeader_UxHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__Transaction(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 ; + coin__Transaction *arg1 = (coin__Transaction *) 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 (!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__BlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Transaction" "', argument " "1"" of type '" "coin__Transaction *""'"); } - arg1 = (coin__BlockHeader *)(argp1); + arg1 = (coin__Transaction *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -25738,17 +25053,17 @@ SWIGINTERN PyObject *_wrap_delete_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *coin__BlockHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__BlockHeader, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_coin__Transaction, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_coin__BlockBody___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -25757,18 +25072,18 @@ SWIGINTERN PyObject *_wrap_coin__BlockBody___eq__(PyObject *SWIGUNUSEDPARM(self) 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 (!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__BlockBody___eq__" "', argument " "1"" of type '" "coin__BlockBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput___eq__" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - arg1 = (coin__BlockBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + 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__BlockBody___eq__" "', argument " "2"" of type '" "coin__BlockBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__TransactionOutput___eq__" "', argument " "2"" of type '" "coin__TransactionOutput *""'"); } - arg2 = (coin__BlockBody *)(argp2); - result = (int)coin__BlockBody___eq__(arg1,arg2); + arg2 = (coin__TransactionOutput *)(argp2); + result = (int)coin__TransactionOutput___eq__(arg1,arg2); resultobj = SWIG_From_int((int)(result)); return resultobj; fail: @@ -25776,35 +25091,29 @@ SWIGINTERN PyObject *_wrap_coin__BlockBody___eq__(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions arg2 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 ; + void *argp2 = 0 ; 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 (!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__BlockBody_Transactions_set" "', argument " "1"" of type '" "coin__BlockBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - 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)); - } + 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 *""'"); } - if (arg1) (arg1)->Transactions = arg2; + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->Address = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25812,92 +25121,103 @@ SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_set(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - coin__Transactions result; + cipher__Address *result = 0 ; - 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 (!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__BlockBody_Transactions_get" "', argument " "1"" of type '" "coin__BlockBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - 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 ); + 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_new_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockBody *result = 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 *)":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 ); + 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_delete_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GoUint64_ result; - 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 (!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 '" "delete_coin__BlockBody" "', argument " "1"" of type '" "coin__BlockBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - arg1 = (coin__BlockBody *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); + 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 *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) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned long long val2 ; + int ecode2 = 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 (!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__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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - arg2 = (coin__BlockHeader *)(argp2); - if (arg1) (arg1)->Head = *arg2; + 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: @@ -25905,106 +25225,54 @@ SWIGINTERN PyObject *_wrap_coin__Block_Head_set(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_coin__Block_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - coin__BlockHeader *result = 0 ; + GoUint64_ result; - 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 (!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__Block_Head_get" "', argument " "1"" of type '" "coin__Block *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - arg1 = (coin__Block *)(argp1); - result = (coin__BlockHeader *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + 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_coin__Block_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__TransactionOutput(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 ; + coin__TransactionOutput *result = 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(); + 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_coin__Block_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__TransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - arg1 = (coin__Block *)(argp1); + arg1 = (coin__TransactionOutput *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -26013,168 +25281,151 @@ SWIGINTERN PyObject *_wrap_delete_coin__Block(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *coin__Block_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__Block, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_coin__TransactionOutput, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *arg2 = (coin__Block *) 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__SignedBlock__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); + 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__SignedBlock__unnamed_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader___eq__" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__SignedBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Block, 0 | 0 ); + 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__SignedBlock__unnamed_set" "', argument " "2"" of type '" "coin__Block *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader___eq__" "', argument " "2"" of type '" "coin__BlockHeader *""'"); } - arg2 = (coin__Block *)(argp2); - if (arg1) (arg1)->_unnamed = *arg2; - resultobj = SWIG_Py_Void(); + 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__SignedBlock__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; - coin__Block *result = 0 ; + PyObject * obj1 = 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 (!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__SignedBlock__unnamed_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__SignedBlock *)(argp1); - result = (coin__Block *)& ((arg1)->_unnamed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, 0 | 0 ); + 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__SignedBlock_Sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *arg2 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + GoUint32_ result; - 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 (!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__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]""'"); - } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - resultobj = SWIG_Py_Void(); + 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__SignedBlock_Sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 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 ; - GoUint8_ *result = 0 ; + PyObject * obj1 = 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 (!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__SignedBlock_Sig_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - 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 ); + 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_delete_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GoUint64_ result; - 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 (!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 '" "delete_coin__SignedBlock" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__SignedBlock *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); + 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 *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) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -26183,18 +25434,18 @@ SWIGINTERN PyObject *_wrap_coin__UxHead_Time_set(PyObject *SWIGUNUSEDPARM(self), 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 (!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__UxHead_Time_set" "', argument " "1"" of type '" "coin__UxHead *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxHead *)(argp1); + 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__UxHead_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); } arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; + if (arg1) (arg1)->BkSeq = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -26202,21 +25453,21 @@ SWIGINTERN PyObject *_wrap_coin__UxHead_Time_set(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_coin__UxHead_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 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__UxHead_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + 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__UxHead_Time_get" "', argument " "1"" of type '" "coin__UxHead *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxHead *)(argp1); - result = (GoUint64_) ((arg1)->Time); + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint64_) ((arg1)->BkSeq); resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return resultobj; fail: @@ -26224,9 +25475,9 @@ SWIGINTERN PyObject *_wrap_coin__UxHead_Time_get(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -26235,18 +25486,18 @@ SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self) 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 (!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__UxHead_BkSeq_set" "', argument " "1"" of type '" "coin__UxHead *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxHead *)(argp1); + 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__UxHead_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Fee_set" "', argument " "2"" of type '" "GoUint64_""'"); } arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; + if (arg1) (arg1)->Fee = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -26254,21 +25505,21 @@ SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 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__UxHead_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + 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__UxHead_BkSeq_get" "', argument " "1"" of type '" "coin__UxHead *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxHead *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint64_) ((arg1)->Fee); resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return resultobj; fail: @@ -26276,96 +25527,68 @@ SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_get(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_new_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_set(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 ; + 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 *)"O:delete_coin__UxHead",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, SWIG_POINTER_DISOWN | 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 '" "delete_coin__UxHead" "', argument " "1"" of type '" "coin__UxHead *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - 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__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]""'"); + } } - arg1 = (coin__UxBody *)(argp1); - result = (PyObject *)coin__UxBody_GetSrcTransaction(arg1); - resultobj = result; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_coin__UxBody_SetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + GoUint8_ *result = 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 (!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__UxBody_SetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxBody *)(argp1); - arg2 = obj1; - coin__UxBody_SetSrcTransaction(arg1,arg2); - resultobj = SWIG_Py_Void(); + 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__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -26374,23 +25597,23 @@ SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDP 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 (!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__UxBody_SrcTransaction_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxBody *)(argp1); + 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__UxBody_SrcTransaction_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + 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->SrcTransaction[ii] = *((unsigned char *)arg2 + ii); + 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 '""SrcTransaction""' of type '""unsigned char [32]""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BodyHash""' of type '""unsigned char [32]""'"); } } resultobj = SWIG_Py_Void(); @@ -26400,21 +25623,21 @@ SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 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__UxBody_SrcTransaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 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__UxBody_SrcTransaction_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint8_ *) ((arg1)->SrcTransaction); + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint8_ *) ((arg1)->BodyHash); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: @@ -26422,10 +25645,10 @@ SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_get(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -26433,18 +25656,25 @@ SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(PyObject *SWIGUNUSEDPARM(sel 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 (!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__UxBody_Address_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + 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__UxBody_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); + 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]""'"); + } } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -26452,208 +25682,203 @@ SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_coin__UxBody_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; + GoUint8_ *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 (!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__UxBody_Address_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxBody *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + 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_coin__UxBody_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__BlockHeader(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 ; + coin__BlockHeader *result = 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(); + 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_coin__UxBody_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 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__UxBody_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 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 '" "coin__UxBody_Coins_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + arg1 = (coin__BlockHeader *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + int result; - 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 (!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__UxBody_Hours_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody___eq__" "', argument " "1"" of type '" "coin__BlockBody *""'"); } - 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(); + 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__UxBody_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; - GoUint64_ result; + PyObject * obj1 = 0 ; - 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 (!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__UxBody_Hours_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_set" "', argument " "1"" of type '" "coin__BlockBody *""'"); } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + 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_new_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *result = 0 ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__Transactions result; - 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 ); + 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_delete_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; + coin__BlockBody *result = 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(); + 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 *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) { +SWIGINTERN PyObject *_wrap_delete_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; + coin__BlockBody *arg1 = (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__UxOut___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockBody" "', argument " "1"" of type '" "coin__BlockBody *""'"); } - arg2 = (coin__UxOut *)(argp2); - result = (int)coin__UxOut___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); + arg1 = (coin__BlockBody *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *arg2 = (coin__UxHead *) 0 ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -26661,17 +25886,17 @@ SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), 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 (!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__UxOut_Head_set" "', argument " "1"" of type '" "coin__UxOut *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_set" "', argument " "1"" of type '" "coin__Block *""'"); } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + 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__UxOut_Head_set" "', argument " "2"" of type '" "coin__UxHead *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Head_set" "', argument " "2"" of type '" "coin__BlockHeader *""'"); } - arg2 = (coin__UxHead *)(argp2); + arg2 = (coin__BlockHeader *)(argp2); if (arg1) (arg1)->Head = *arg2; resultobj = SWIG_Py_Void(); return resultobj; @@ -26680,32 +25905,32 @@ SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_coin__UxOut_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Block_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__Block *arg1 = (coin__Block *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - coin__UxHead *result = 0 ; + coin__BlockHeader *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 (!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__UxOut_Head_get" "', argument " "1"" of type '" "coin__UxOut *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_get" "', argument " "1"" of type '" "coin__Block *""'"); } - arg1 = (coin__UxOut *)(argp1); - result = (coin__UxHead *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, 0 | 0 ); + 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__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Block_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *arg2 = (coin__UxBody *) 0 ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -26713,17 +25938,17 @@ SWIGINTERN PyObject *_wrap_coin__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), 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 (!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__UxOut_Body_set" "', argument " "1"" of type '" "coin__UxOut *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_set" "', argument " "1"" of type '" "coin__Block *""'"); } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + 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__UxOut_Body_set" "', argument " "2"" of type '" "coin__UxBody *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Body_set" "', argument " "2"" of type '" "coin__BlockBody *""'"); } - arg2 = (coin__UxBody *)(argp2); + arg2 = (coin__BlockBody *)(argp2); if (arg1) (arg1)->Body = *arg2; resultobj = SWIG_Py_Void(); return resultobj; @@ -26732,54 +25957,54 @@ SWIGINTERN PyObject *_wrap_coin__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_coin__UxOut_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__Block_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__Block *arg1 = (coin__Block *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - coin__UxBody *result = 0 ; + coin__BlockBody *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 (!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__UxOut_Body_get" "', argument " "1"" of type '" "coin__UxOut *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_get" "', argument " "1"" of type '" "coin__Block *""'"); } - arg1 = (coin__UxOut *)(argp1); - result = (coin__UxBody *)& ((arg1)->Body); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, 0 | 0 ); + 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__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *result = 0 ; + coin__Block *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 ); + 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__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__Block *arg1 = (coin__Block *) 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 (!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__UxOut" "', argument " "1"" of type '" "coin__UxOut *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Block" "', argument " "1"" of type '" "coin__Block *""'"); } - arg1 = (coin__UxOut *)(argp1); + arg1 = (coin__Block *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -26788,17 +26013,17 @@ SWIGINTERN PyObject *_wrap_delete_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *coin__UxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__UxOut, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_coin__Block, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *arg2 = (coin__Block *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -26806,17 +26031,17 @@ SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_set(PyObject *SWIGUNUSED 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 (!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 '" "httphelper__Address__unnamed_set" "', argument " "1"" of type '" "httphelper__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); } - arg1 = (httphelper__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + 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 '" "httphelper__Address__unnamed_set" "', argument " "2"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "2"" of type '" "coin__Block *""'"); } - arg2 = (cipher__Address *)(argp2); + arg2 = (coin__Block *)(argp2); if (arg1) (arg1)->_unnamed = *arg2; resultobj = SWIG_Py_Void(); return resultobj; @@ -26825,54 +26050,113 @@ SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_set(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; + coin__Block *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 (!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 '" "httphelper__Address__unnamed_get" "', argument " "1"" of type '" "httphelper__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); } - arg1 = (httphelper__Address *)(argp1); - result = (cipher__Address *)& ((arg1)->_unnamed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + 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_new_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Address *result = 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 *)":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; + 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_delete_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 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:delete_httphelper__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, SWIG_POINTER_DISOWN | 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 '" "delete_httphelper__Address" "', argument " "1"" of type '" "httphelper__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); } - arg1 = (httphelper__Address *)(argp1); + 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; @@ -26881,16 +26165,16 @@ SWIGINTERN PyObject *_wrap_delete_httphelper__Address(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *httphelper__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_httphelper__Address, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_coin__SignedBlock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxHead_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -26899,18 +26183,18 @@ SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(se 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 (!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 '" "wallet__Balance_Coins_set" "', argument " "1"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_set" "', argument " "1"" of type '" "coin__UxHead *""'"); } - arg1 = (wallet__Balance *)(argp1); + 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 '" "wallet__Balance_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); } arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; + if (arg1) (arg1)->Time = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -26918,21 +26202,21 @@ SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxHead_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; + coin__UxHead *arg1 = (coin__UxHead *) 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 (!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 '" "wallet__Balance_Coins_get" "', argument " "1"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_get" "', argument " "1"" of type '" "coin__UxHead *""'"); } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint64_) ((arg1)->Coins); + arg1 = (coin__UxHead *)(argp1); + result = (GoUint64_) ((arg1)->Time); resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return resultobj; fail: @@ -26940,9 +26224,9 @@ SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -26951,18 +26235,18 @@ SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(se 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 (!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 '" "wallet__Balance_Hours_set" "', argument " "1"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_set" "', argument " "1"" of type '" "coin__UxHead *""'"); } - arg1 = (wallet__Balance *)(argp1); + 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 '" "wallet__Balance_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); } arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; + if (arg1) (arg1)->BkSeq = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -26970,21 +26254,21 @@ SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; + coin__UxHead *arg1 = (coin__UxHead *) 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 (!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 '" "wallet__Balance_Hours_get" "', argument " "1"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_get" "', argument " "1"" of type '" "coin__UxHead *""'"); } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint64_) ((arg1)->Hours); + arg1 = (coin__UxHead *)(argp1); + result = (GoUint64_) ((arg1)->BkSeq); resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return resultobj; fail: @@ -26992,32 +26276,32 @@ SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_new_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *result = 0 ; + coin__UxHead *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 ); + 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_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; + coin__UxHead *arg1 = (coin__UxHead *) 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 (!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_wallet__Balance" "', argument " "1"" of type '" "wallet__Balance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxHead" "', argument " "1"" of type '" "coin__UxHead *""'"); } - arg1 = (wallet__Balance *)(argp1); + arg1 = (coin__UxHead *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -27026,69 +26310,63 @@ SWIGINTERN PyObject *_wrap_delete_wallet__Balance(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *wallet__Balance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_wallet__Balance, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxHead, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_GetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject *result = 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 (!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 '" "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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_GetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg2 = (wallet__Balance *)(argp2); - if (arg1) (arg1)->Confirmed = *arg2; - resultobj = SWIG_Py_Void(); + arg1 = (coin__UxBody *)(argp1); + result = (PyObject *)coin__UxBody_GetSrcTransaction(arg1); + resultobj = result; return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_SetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - wallet__Balance *result = 0 ; + PyObject * obj1 = 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 (!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 '" "wallet__BalancePair_Confirmed_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__BalancePair *)(argp1); - result = (wallet__Balance *)& ((arg1)->Confirmed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); + arg1 = (coin__UxBody *)(argp1); + arg2 = obj1; + coin__UxBody_SetSrcTransaction(arg1,arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -27096,18 +26374,25 @@ SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSE 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 (!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 '" "wallet__BalancePair_Predicted_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__BalancePair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + 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 '" "wallet__BalancePair_Predicted_set" "', argument " "2"" of type '" "wallet__Balance *""'"); + 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]""'"); + } } - arg2 = (wallet__Balance *)(argp2); - if (arg1) (arg1)->Predicted = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27115,72 +26400,31 @@ SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - wallet__Balance *result = 0 ; + GoUint8_ *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 (!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 '" "wallet__BalancePair_Predicted_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_get" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__BalancePair *)(argp1); - result = (wallet__Balance *)& ((arg1)->Predicted); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); + 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_new_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(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 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -27189,15 +26433,15 @@ SWIGINTERN PyObject *_wrap_wallet__Entry_Address_set(PyObject *SWIGUNUSEDPARM(se 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 (!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 '" "wallet__Entry_Address_set" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_set" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__Entry *)(argp1); + 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 '" "wallet__Entry_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); + 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; @@ -27208,20 +26452,20 @@ SWIGINTERN PyObject *_wrap_wallet__Entry_Address_set(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_wallet__Entry_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 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:wallet__Entry_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 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 '" "wallet__Entry_Address_get" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_get" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__Entry *)(argp1); + arg1 = (coin__UxBody *)(argp1); result = (cipher__Address *)& ((arg1)->Address); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); return resultobj; @@ -27230,36 +26474,29 @@ SWIGINTERN PyObject *_wrap_wallet__Entry_Address_get(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_wallet__Entry_Public_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned long long val2 ; + int ecode2 = 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 (!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 '" "wallet__Entry_Public_set" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_set" "', argument " "1"" of type '" "coin__UxBody *""'"); } - 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]""'"); + 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 = (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]""'"); - } - } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Coins = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27267,58 +26504,51 @@ SWIGINTERN PyObject *_wrap_wallet__Entry_Public_set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_wallet__Entry_Public_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + GoUint64_ result; - 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 (!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 '" "wallet__Entry_Public_get" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_get" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint8_ *) ((arg1)->Public); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + 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_wallet__Entry_Secret_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned long long val2 ; + int ecode2 = 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 (!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 '" "wallet__Entry_Secret_set" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_set" "', argument " "1"" of type '" "coin__UxBody *""'"); } - 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]""'"); + 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 = (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]""'"); - } - } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Hours = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27326,54 +26556,54 @@ SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_set(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + GoUint64_ result; - 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 (!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 '" "wallet__Entry_Secret_get" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_get" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint8_ *) ((arg1)->Secret); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + 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_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *result = 0 ; + coin__UxBody *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 ); + 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_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + coin__UxBody *arg1 = (coin__UxBody *) 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 (!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_wallet__Entry" "', argument " "1"" of type '" "wallet__Entry *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxBody" "', argument " "1"" of type '" "coin__UxBody *""'"); } - arg1 = (wallet__Entry *)(argp1); + arg1 = (coin__UxBody *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -27382,245 +26612,212 @@ SWIGINTERN PyObject *_wrap_delete_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *wallet__Entry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_wallet__Entry, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxBody, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_wallet__Note_TxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxOut___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; + 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:wallet__Note_TxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); + 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 '" "wallet__Note_TxID_set" "', argument " "1"" of type '" "wallet__Note *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut___eq__" "', argument " "1"" of type '" "coin__UxOut *""'"); } - 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; + 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 *""'"); } - if (arg1) (arg1)->TxID = arg2; - resultobj = SWIG_Py_Void(); + 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_wallet__Note_TxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 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 ; - GoString_ result; + PyObject * obj1 = 0 ; - 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 (!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 '" "wallet__Note_TxID_get" "', argument " "1"" of type '" "wallet__Note *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_set" "', argument " "1"" of type '" "coin__UxOut *""'"); } - 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 ); + 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_wallet__Note_Value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxOut_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + coin__UxHead *result = 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 (!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 '" "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; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_get" "', argument " "1"" of type '" "coin__UxOut *""'"); } - if (arg1) (arg1)->Value = arg2; - resultobj = SWIG_Py_Void(); + 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_wallet__Note_Value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 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 ; - GoString_ result; + PyObject * obj1 = 0 ; - 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 (!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 '" "wallet__Note_Value_get" "', argument " "1"" of type '" "wallet__Note *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_set" "', argument " "1"" of type '" "coin__UxOut *""'"); } - 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 ); + 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_delete_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_coin__UxOut_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 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:delete_wallet__Note",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, SWIG_POINTER_DISOWN | 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 '" "delete_wallet__Note" "', argument " "1"" of type '" "wallet__Note *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_get" "', argument " "1"" of type '" "coin__UxOut *""'"); } - arg1 = (wallet__Note *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); + 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 *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) { +SWIGINTERN PyObject *_wrap_new_coin__UxOut(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 ; + coin__UxOut *result = 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(); + 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_wallet__ReadableNote_TransactionID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + coin__UxOut *arg1 = (coin__UxOut *) 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 (!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 '" "wallet__ReadableNote_TransactionID_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxOut" "', argument " "1"" of type '" "coin__UxOut *""'"); } - 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 ); + arg1 = (coin__UxOut *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; + 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:wallet__ReadableNote_ActualNote_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 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 '" "wallet__ReadableNote_ActualNote_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_set" "', argument " "1"" of type '" "httphelper__Address *""'"); } - 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; + 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 *""'"); } - if (arg1) (arg1)->ActualNote = arg2; + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->_unnamed = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27628,54 +26825,54 @@ SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_set(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoString_ result; + cipher__Address *result = 0 ; - 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 (!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 '" "wallet__ReadableNote_ActualNote_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_get" "', argument " "1"" of type '" "httphelper__Address *""'"); } - 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 ); + 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_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__ReadableNote *result = 0 ; + httphelper__Address *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 ); + 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_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + httphelper__Address *arg1 = (httphelper__Address *) 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 (!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_wallet__ReadableNote" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_httphelper__Address" "', argument " "1"" of type '" "httphelper__Address *""'"); } - arg1 = (wallet__ReadableNote *)(argp1); + arg1 = (httphelper__Address *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -27684,43 +26881,36 @@ SWIGINTERN PyObject *_wrap_delete_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *wallet__ReadableNote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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_wallet__ReadableNote, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_httphelper__Address, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *arg2 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned long long val2 ; + int ecode2 = 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 (!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__UxBalance_Hash_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_set" "', argument " "1"" of type '" "wallet__Balance *""'"); } - 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]""'"); + 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 = (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]""'"); - } - } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Coins = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27728,51 +26918,51 @@ SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_set(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; + GoUint64_ result; - 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 (!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__UxBalance_Hash_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_get" "', argument " "1"" of type '" "wallet__Balance *""'"); } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint8_ *) ((arg1)->Hash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + 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__UxBalance_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - long long val2 ; + unsigned 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 (!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__UxBalance_BkSeq_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_set" "', argument " "1"" of type '" "wallet__Balance *""'"); } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + 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__UxBalance_BkSeq_set" "', argument " "2"" of type '" "GoInt64_""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Hours = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27780,103 +26970,92 @@ SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_set(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt64_ result; + GoUint64_ 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 (!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__UxBalance_BkSeq_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_get" "', argument " "1"" of type '" "wallet__Balance *""'"); } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->BkSeq); - resultobj = SWIG_From_long_SS_long((long long)(result)); + 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_wallet__UxBalance_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_wallet__Balance(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 ; + wallet__Balance *result = 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(); + 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_wallet__UxBalance_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + wallet__Balance *arg1 = (wallet__Balance *) 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 (!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 '" "wallet__UxBalance_Address_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Balance" "', argument " "1"" of type '" "wallet__Balance *""'"); } - arg1 = (wallet__UxBalance *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + arg1 = (wallet__Balance *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 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 (!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__UxBalance_Coins_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); } - 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; + 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: @@ -27884,51 +27063,51 @@ SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_set(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt64_ result; + wallet__Balance *result = 0 ; - 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 (!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__UxBalance_Coins_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->Coins); - resultobj = SWIG_From_long_SS_long((long long)(result)); + 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__UxBalance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 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 (!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__UxBalance_Hours_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); } - 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; + 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: @@ -27936,54 +27115,54 @@ SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_set(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - GoInt64_ result; + wallet__Balance *result = 0 ; - 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 (!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__UxBalance_Hours_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->Hours); - resultobj = SWIG_From_long_SS_long((long long)(result)); + 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__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *result = 0 ; + wallet__BalancePair *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 ); + 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__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 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 (!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__UxBalance" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__BalancePair" "', argument " "1"" of type '" "wallet__BalancePair *""'"); } - arg1 = (wallet__UxBalance *)(argp1); + arg1 = (wallet__BalancePair *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -27992,358 +27171,997 @@ SWIGINTERN PyObject *_wrap_delete_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *wallet__UxBalance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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__UxBalance, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__BalancePair, 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_api_NewWalletResponse", _wrap_SKY_api_NewWalletResponse, 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_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_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_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_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_cli_AddPrivateKey", _wrap_SKY_cli_AddPrivateKey, METH_VARARGS, NULL}, - { (char *)"SKY_cli_AddPrivateKeyToFile", _wrap_SKY_cli_AddPrivateKeyToFile, 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_testutil_MakeAddress", _wrap_SKY_testutil_MakeAddress, 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 *)"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_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_cli_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, 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_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_handle_close", _wrap_SKY_handle_close, METH_VARARGS, NULL}, - { (char *)"SKY_handle_copy", _wrap_SKY_handle_copy, 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_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_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_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_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, - { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, 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_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}, +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_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_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}, @@ -28354,25 +28172,10 @@ static PyMethodDef SwigMethods[] = { { (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_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_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_GenerateWallet", _wrap_SKY_cli_GenerateWallet, METH_VARARGS, NULL}, - { (char *)"SKY_cli_MakeAlphanumericSeed", _wrap_SKY_cli_MakeAlphanumericSeed, 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_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}, @@ -28396,49 +28199,44 @@ static PyMethodDef SwigMethods[] = { { (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_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_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_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_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_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_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_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_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_certutil_NewTLSCertPair", _wrap_SKY_certutil_NewTLSCertPair, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, 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_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_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_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_wallet_CreateOptionsHandle", _wrap_SKY_wallet_CreateOptionsHandle, 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_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}, @@ -28463,6 +28261,44 @@ static PyMethodDef SwigMethods[] = { { (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_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_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, + { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, 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_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_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_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}, @@ -28511,14 +28347,178 @@ static PyMethodDef SwigMethods[] = { { (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_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_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_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_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_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_cli_GenerateWallet", _wrap_SKY_cli_GenerateWallet, METH_VARARGS, NULL}, + { (char *)"SKY_cli_MakeAlphanumericSeed", _wrap_SKY_cli_MakeAlphanumericSeed, 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_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, 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_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_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_certutil_NewTLSCertPair", _wrap_SKY_certutil_NewTLSCertPair, 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_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_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_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_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_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_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_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 *)"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},