diff --git a/.travis.yml b/.travis.yml index c11ca914..ae8cb4bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ matrix: - os: osx languague: generic env: - - PYTHON=2.7 + - PYTHON=2.7.16 - TOXENV=py27 - os: osx languague: generic diff --git a/.travis/install-linux.sh b/.travis/install-linux.sh index 7ddf1a5d..90e4ec22 100644 --- a/.travis/install-linux.sh +++ b/.travis/install-linux.sh @@ -18,8 +18,8 @@ chmod +x "$HOME/bin/gimme" # Install Python libraries $PIP install --upgrade pip setuptools tox-travis $PIP install -r "$REPO_ROOT/requirements.dev.txt" -$PIP install -r "$REPO_ROOT/skyapi/requirements.txt" -$PIP install -r "$REPO_ROOT/skyapi/test-requirements.txt" +$PIP install -r "$REPO_ROOT/lib/skyapi/requirements.txt" +$PIP install -r "$REPO_ROOT/lib/skyapi/test-requirements.txt" # Compile SWIG mkdir swig_build && \ diff --git a/CHANGELOG.md b/CHANGELOG.md index c085bcd8..6a03c64f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## PySkycoin 0.25.1 - 2019/03/14 + +### Added + +- Add `skyapi`, a wrapper for Skycoin node REST API at version 0.25.1 + +### Fixed + +### Changed + +### Removed + +### Known issues + ## PySkycoin 0.25.0 - 2019/01/01 ### Added diff --git a/MANIFEST.in b/MANIFEST.in index 336a214c..7749b2f7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,7 +9,7 @@ include requirements.dev.txt include Makefile include gopath/src/github.com/skycoin/skycoin/Makefile -recursive-exclude *.a +recursive-exclude . *.a include skycoin.py recursive-include . *.s @@ -25,6 +25,10 @@ recursive-include gopath/src/github.com/skycoin/skycoin/include * recursive-exclude . *.orig exclude .github exclude .travis +exclude lib/skyapi +exclude .pytest_cache recursive-exclude .github * recursive-exclude .travis * +recursive-exclude lib/skyapi * +recursive-exclude .pytest_cache * diff --git a/Makefile b/Makefile index e9b17f22..dd384dbd 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ SRC_FILES = $(shell find $(SKYCOIN_DIR)/src -type f -name "*.go") SWIG_FILES = $(shell find $(LIBSWIG_DIR) -type f -name "*.i") HEADER_FILES = $(shell find $(SKYCOIN_DIR)/include -type f -name "*.h") -PYTHON_CLIENT_DIR = skyapi +PYTHON_CLIENT_DIR = lib/skyapi ifeq ($(shell uname -s),Linux) TEMP_DIR = tmp diff --git a/README.md b/README.md index fbc9e9c0..c294c0ee 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ A Python extension generated with SWIG to access Skycoin API from Python. - [Update the version](#update-the-version) - [Pre-release testing](#pre-release-testing) - [Creating release builds](#creating-release-builds) + - [Python wrapper for Skycoin Api](#python-wrapper-for-skycoin-api) ## Installation @@ -252,3 +253,22 @@ python3 -m pip install --user --upgrade twine twine upload --repository-url https://test.pypi.org/legacy/ dist/* ``` +#### Python wrapper for Skycoin Api + +This wrapper is Auto generated by openapi-generator directly from `Skycoin Api` code for version v0.25.1. + +For further details of usage of `Python wrapper for Skycoin Api` see [Autogenerated documentation](./skyapi/README.md) + +To use wrapper for specific node of Skycoin api, just do the next: + +```python + +# create an instance of the Configuration class +configuration = skyapi.Configuration() +# set new host +configuration.host = 'some_host' + +# create an instance of the API class with new configuration +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) + +``` \ No newline at end of file diff --git a/skyapi/.gitignore b/lib/skyapi/.gitignore similarity index 100% rename from skyapi/.gitignore rename to lib/skyapi/.gitignore diff --git a/skyapi/.openapi-generator-ignore b/lib/skyapi/.openapi-generator-ignore similarity index 100% rename from skyapi/.openapi-generator-ignore rename to lib/skyapi/.openapi-generator-ignore diff --git a/skyapi/.openapi-generator/VERSION b/lib/skyapi/.openapi-generator/VERSION similarity index 100% rename from skyapi/.openapi-generator/VERSION rename to lib/skyapi/.openapi-generator/VERSION diff --git a/skyapi/.travis.yml b/lib/skyapi/.travis.yml similarity index 100% rename from skyapi/.travis.yml rename to lib/skyapi/.travis.yml diff --git a/skyapi/README.md b/lib/skyapi/README.md similarity index 97% rename from skyapi/README.md rename to lib/skyapi/README.md index c16cd70b..e92132d7 100644 --- a/skyapi/README.md +++ b/lib/skyapi/README.md @@ -1,4 +1,5 @@ -# openapi-client +# Skycoin node API client + Skycoin is a next-generation cryptocurrency. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: @@ -24,7 +25,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git Then import the package: ```python -import openapi_client +import skyapi ``` ### Setuptools @@ -38,7 +39,7 @@ python setup.py install --user Then import the package: ```python -import openapi_client +import skyapi ``` ## Getting Started @@ -48,12 +49,12 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) try: # Returns the total number of unique address that have coins. @@ -160,6 +161,6 @@ Class | Method | HTTP request | Description ## Author -skycoin.doe@example.com +contact@skycoin.net diff --git a/skyapi/docs/Apiv1exploreraddressInputs.md b/lib/skyapi/docs/Apiv1exploreraddressInputs.md similarity index 100% rename from skyapi/docs/Apiv1exploreraddressInputs.md rename to lib/skyapi/docs/Apiv1exploreraddressInputs.md diff --git a/skyapi/docs/Apiv1exploreraddressOutputs.md b/lib/skyapi/docs/Apiv1exploreraddressOutputs.md similarity index 100% rename from skyapi/docs/Apiv1exploreraddressOutputs.md rename to lib/skyapi/docs/Apiv1exploreraddressOutputs.md diff --git a/skyapi/docs/Apiv1exploreraddressStatus.md b/lib/skyapi/docs/Apiv1exploreraddressStatus.md similarity index 100% rename from skyapi/docs/Apiv1exploreraddressStatus.md rename to lib/skyapi/docs/Apiv1exploreraddressStatus.md diff --git a/skyapi/docs/Apiv1pendingTxsTransaction.md b/lib/skyapi/docs/Apiv1pendingTxsTransaction.md similarity index 100% rename from skyapi/docs/Apiv1pendingTxsTransaction.md rename to lib/skyapi/docs/Apiv1pendingTxsTransaction.md diff --git a/skyapi/docs/Apiv1walletsEntries.md b/lib/skyapi/docs/Apiv1walletsEntries.md similarity index 100% rename from skyapi/docs/Apiv1walletsEntries.md rename to lib/skyapi/docs/Apiv1walletsEntries.md diff --git a/skyapi/docs/Apiv1walletsMeta.md b/lib/skyapi/docs/Apiv1walletsMeta.md similarity index 100% rename from skyapi/docs/Apiv1walletsMeta.md rename to lib/skyapi/docs/Apiv1walletsMeta.md diff --git a/skyapi/docs/Apiv1wallettransactionHoursSelection.md b/lib/skyapi/docs/Apiv1wallettransactionHoursSelection.md similarity index 100% rename from skyapi/docs/Apiv1wallettransactionHoursSelection.md rename to lib/skyapi/docs/Apiv1wallettransactionHoursSelection.md diff --git a/skyapi/docs/Apiv1wallettransactionTo.md b/lib/skyapi/docs/Apiv1wallettransactionTo.md similarity index 100% rename from skyapi/docs/Apiv1wallettransactionTo.md rename to lib/skyapi/docs/Apiv1wallettransactionTo.md diff --git a/skyapi/docs/Apiv1wallettransactionWallet.md b/lib/skyapi/docs/Apiv1wallettransactionWallet.md similarity index 100% rename from skyapi/docs/Apiv1wallettransactionWallet.md rename to lib/skyapi/docs/Apiv1wallettransactionWallet.md diff --git a/skyapi/docs/DefaultApi.md b/lib/skyapi/docs/DefaultApi.md similarity index 90% rename from skyapi/docs/DefaultApi.md rename to lib/skyapi/docs/DefaultApi.md index 58aa2041..82a9f7e4 100644 --- a/skyapi/docs/DefaultApi.md +++ b/lib/skyapi/docs/DefaultApi.md @@ -1,4 +1,4 @@ -# openapi_client.DefaultApi +# skyapi.DefaultApi All URIs are relative to *http://127.0.0.1:6420* @@ -66,12 +66,12 @@ Returns the total number of unique address that have coins. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: # Returns the total number of unique address that have coins. @@ -110,12 +110,12 @@ Returns the historical, spent outputs associated with an address ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() address = 'address_example' # str | address to filter by try: @@ -155,12 +155,12 @@ Returns the balance of one or more addresses, both confirmed and predicted. The ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() addrs = 'addrs_example' # str | command separated list of addresses try: @@ -203,18 +203,18 @@ Returns the balance of one or more addresses, both confirmed and predicted. The ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) addrs = 'addrs_example' # str | command separated list of addresses try: @@ -257,12 +257,12 @@ Returns a block by hash or seq. Note: only one of hash or seq is allowed ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() hash = 'hash_example' # str | (optional) seq = 56 # int | (optional) @@ -304,12 +304,12 @@ Returns the blockchain metadata. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: # Returns the blockchain metadata. @@ -346,12 +346,12 @@ Returns the blockchain sync progress. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: # Returns the blockchain sync progress. @@ -390,12 +390,12 @@ or an explicit list of sequences. If using start and end, the block sequences in ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() start = 56 # int | (optional) end = 56 # int | (optional) seqs = [56] # list[int] | (optional) @@ -444,18 +444,18 @@ or an explicit list of sequences. If using start and end, the block sequences in ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) start = 56 # int | (optional) end = 56 # int | (optional) seqs = [56] # list[int] | (optional) @@ -502,12 +502,12 @@ coinSupplyHandler returns coin distribution supply stats ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: api_instance.coin_supply() @@ -542,12 +542,12 @@ Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: # Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. @@ -584,12 +584,12 @@ defaultConnectionsHandler returns the list of default hardcoded bootstrap addres ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: # defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. @@ -628,12 +628,12 @@ Returns all transactions (confirmed and unconfirmed) for an address ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() address = 'address_example' # str | tags to filter by (optional) try: @@ -673,12 +673,12 @@ Returns node health data. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: # Returns node health data. @@ -717,12 +717,12 @@ Returns the most recent N blocks on the blockchain ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() num = 56 # int | try: @@ -762,12 +762,12 @@ This endpoint returns a specific connection. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() addr = 'addr_example' # str | Address port try: @@ -810,18 +810,18 @@ This endpoint returns all outgoings connections. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) states = 'states_example' # str | Connection status. (optional) direction = 'direction_example' # str | Direction of the connection. (optional) @@ -868,18 +868,18 @@ This endpoint disconnects a connection by ID or address ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Address id. try: @@ -920,12 +920,12 @@ This endpoint returns all connections found through peer exchange ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: api_response = api_instance.network_connections_exchange() @@ -963,18 +963,18 @@ trustConnectionsHandler returns all trusted connections.\\n They are not necessa ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) try: # trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. @@ -1011,12 +1011,12 @@ If neither addrs nor hashes are specificed, return all unspent outputs. If only ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() address = ['address_example'] # list[str] | (optional) hash = ['hash_example'] # list[str] | (optional) @@ -1061,18 +1061,18 @@ If neither addrs nor hashes are specificed, return all unspent outputs. If only ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) address = 'address_example' # str | (optional) hash = 'hash_example' # str | (optional) @@ -1117,12 +1117,12 @@ Returns pending (unconfirmed) transactions without verbose ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: api_response = api_instance.pending_txs() @@ -1162,18 +1162,18 @@ Broadcasts all unconfirmed transactions from the unconfirmed transaction pool ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) try: api_instance.resend_unconfirmed_txns() @@ -1208,12 +1208,12 @@ Returns the top skycoin holders. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() include_distribution = True # bool | include distribution addresses or not, default value false (optional) n = 'n_example' # str | include distribution addresses or not, default value false (optional) @@ -1258,12 +1258,12 @@ Returns a transaction identified by its txid hash with just id ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() txid = 'txid_example' # str | transaction hash encoded = True # bool | return as a raw encoded transaction. (optional) @@ -1307,18 +1307,18 @@ Broadcast a hex-encoded, serialized transaction to the network. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) rawtx = 'rawtx_example' # str | hex-encoded serialized transaction string. try: @@ -1359,12 +1359,12 @@ Returns the hex-encoded byte serialization of a transaction. The transaction may ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() txid = 'txid_example' # str | Transaction id hash (optional) try: @@ -1409,18 +1409,18 @@ Decode and verify an encoded transaction ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) try: api_response = api_instance.transaction_verify() @@ -1456,12 +1456,12 @@ Returns transactions that match the filters. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() addrs = 'addrs_example' # str | command separated list of addresses (optional) confirmed = 'confirmed_example' # str | Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] (optional) @@ -1506,18 +1506,18 @@ Returns transactions that match the filters. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) addrs = 'addrs_example' # str | command separated list of addresses (optional) confirmed = 'confirmed_example' # str | Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] (optional) @@ -1560,12 +1560,12 @@ Returns an unspent output by ID. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() uxid = 'uxid_example' # str | uxid to filter by (optional) try: @@ -1608,18 +1608,18 @@ Verifies a Skycoin address. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) address = 'address_example' # str | Address id. try: @@ -1662,12 +1662,12 @@ versionHandler returns the application version info ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: api_instance.version() @@ -1702,12 +1702,12 @@ Returns a wallet by id. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() id = 'id_example' # str | tags to filter by try: @@ -1748,12 +1748,12 @@ Returns the wallet's balance, both confirmed and predicted. The predicted balan ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() id = 'id_example' # str | tags to filter by try: @@ -1798,18 +1798,18 @@ Loads wallet from seed, will scan ahead N address and load addresses till the la ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) seed = 'seed_example' # str | Wallet seed. label = 'label_example' # str | Wallet label. scan = 56 # int | The number of addresses to scan ahead for balances. (optional) @@ -1859,18 +1859,18 @@ Decrypts wallet. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet id. password = 'password_example' # str | Wallet password. @@ -1915,18 +1915,18 @@ Encrypt wallet. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet id. password = 'password_example' # str | Wallet password. @@ -1971,12 +1971,12 @@ Returns the wallet directory path ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() addr = 'addr_example' # str | Address port try: @@ -2020,18 +2020,18 @@ Generates new addresses ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet Id num = 'num_example' # str | The number you want to generate (optional) password = 'password_example' # str | Wallet Password (optional) @@ -2077,12 +2077,12 @@ Returns the wallet directory path ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() entropy = 'entropy_example' # str | Entropy bitSize. (optional) try: @@ -2124,18 +2124,18 @@ Recovers an encrypted wallet by providing the seed. The first address will be ge ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet id. seed = 'seed_example' # str | Wallet seed. password = 'password_example' # str | Wallet password. (optional) @@ -2182,18 +2182,18 @@ This endpoint only works for encrypted wallets. If the wallet is unencrypted, Th ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet Id. password = 'password_example' # str | Wallet password. @@ -2238,18 +2238,18 @@ Verifies a wallet seed. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) seed = 'seed_example' # str | Seed to be verified. (optional) try: @@ -2294,18 +2294,18 @@ Creates and broadcasts a transaction sending money from one of our wallets to de ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet id dst = 'dst_example' # str | Recipient address coins = 'coins_example' # str | Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. @@ -2355,19 +2355,19 @@ Creates a signed transaction ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) -inline_object = openapi_client.InlineObject() # InlineObject | (optional) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +inline_object = skyapi.InlineObject() # InlineObject | (optional) try: api_response = api_instance.wallet_transaction(inline_object=inline_object) @@ -2408,12 +2408,12 @@ Returns returns all unconfirmed transactions for all addresses in a given wallet ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() id = 'id_example' # str | Wallet id. try: @@ -2455,18 +2455,18 @@ Unloads wallet from the wallet service. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet Id. try: @@ -2508,18 +2508,18 @@ Update the wallet. ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # Configure API key authorization: csrfAuth -configuration = openapi_client.Configuration() +configuration = skyapi.Configuration() configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' # create an instance of the API class -api_instance = openapi_client.DefaultApi(openapi_client.ApiClient(configuration)) +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) id = 'id_example' # str | Wallet Id. label = 'label_example' # str | The label the wallet will be updated to. @@ -2563,12 +2563,12 @@ Returns all loaded wallets ```python from __future__ import print_function import time -import openapi_client -from openapi_client.rest import ApiException +import skyapi +from skyapi.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = openapi_client.DefaultApi() +api_instance = skyapi.DefaultApi() try: api_response = api_instance.wallets() diff --git a/skyapi/docs/InlineObject.md b/lib/skyapi/docs/InlineObject.md similarity index 100% rename from skyapi/docs/InlineObject.md rename to lib/skyapi/docs/InlineObject.md diff --git a/skyapi/docs/InlineResponse200.md b/lib/skyapi/docs/InlineResponse200.md similarity index 100% rename from skyapi/docs/InlineResponse200.md rename to lib/skyapi/docs/InlineResponse200.md diff --git a/skyapi/docs/InlineResponse2001.md b/lib/skyapi/docs/InlineResponse2001.md similarity index 100% rename from skyapi/docs/InlineResponse2001.md rename to lib/skyapi/docs/InlineResponse2001.md diff --git a/skyapi/docs/InlineResponse2002.md b/lib/skyapi/docs/InlineResponse2002.md similarity index 100% rename from skyapi/docs/InlineResponse2002.md rename to lib/skyapi/docs/InlineResponse2002.md diff --git a/skyapi/docs/InlineResponse2003.md b/lib/skyapi/docs/InlineResponse2003.md similarity index 100% rename from skyapi/docs/InlineResponse2003.md rename to lib/skyapi/docs/InlineResponse2003.md diff --git a/skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md b/lib/skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md similarity index 100% rename from skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md rename to lib/skyapi/docs/InlineResponse2003UnconfirmedVerifyTransaction.md diff --git a/skyapi/docs/InlineResponse2004.md b/lib/skyapi/docs/InlineResponse2004.md similarity index 100% rename from skyapi/docs/InlineResponse2004.md rename to lib/skyapi/docs/InlineResponse2004.md diff --git a/skyapi/docs/InlineResponse2005.md b/lib/skyapi/docs/InlineResponse2005.md similarity index 100% rename from skyapi/docs/InlineResponse2005.md rename to lib/skyapi/docs/InlineResponse2005.md diff --git a/skyapi/docs/InlineResponse2006.md b/lib/skyapi/docs/InlineResponse2006.md similarity index 100% rename from skyapi/docs/InlineResponse2006.md rename to lib/skyapi/docs/InlineResponse2006.md diff --git a/skyapi/docs/InlineResponse2007.md b/lib/skyapi/docs/InlineResponse2007.md similarity index 100% rename from skyapi/docs/InlineResponse2007.md rename to lib/skyapi/docs/InlineResponse2007.md diff --git a/skyapi/docs/InlineResponse2007Data.md b/lib/skyapi/docs/InlineResponse2007Data.md similarity index 100% rename from skyapi/docs/InlineResponse2007Data.md rename to lib/skyapi/docs/InlineResponse2007Data.md diff --git a/skyapi/docs/InlineResponseDefault.md b/lib/skyapi/docs/InlineResponseDefault.md similarity index 100% rename from skyapi/docs/InlineResponseDefault.md rename to lib/skyapi/docs/InlineResponseDefault.md diff --git a/skyapi/git_push.sh b/lib/skyapi/git_push.sh similarity index 100% rename from skyapi/git_push.sh rename to lib/skyapi/git_push.sh diff --git a/skyapi/requirements.txt b/lib/skyapi/requirements.txt similarity index 100% rename from skyapi/requirements.txt rename to lib/skyapi/requirements.txt diff --git a/skyapi/setup.py b/lib/skyapi/setup.py similarity index 93% rename from skyapi/setup.py rename to lib/skyapi/setup.py index 54a2f8c4..3c36646b 100644 --- a/skyapi/setup.py +++ b/lib/skyapi/setup.py @@ -6,14 +6,14 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ from setuptools import setup, find_packages # noqa: H301 -NAME = "openapi-client" +NAME = "skyapi" VERSION = "1.0.0" # To install the library, run the following # diff --git a/lib/skyapi/skyapi/__init__.py b/lib/skyapi/skyapi/__init__.py new file mode 100644 index 00000000..8c1a463b --- /dev/null +++ b/lib/skyapi/skyapi/__init__.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.25.1 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +__version__ = "1.0.0" + +# import apis into sdk package +from skyapi.api.default_api import DefaultApi + +# import ApiClient +from skyapi.api_client import ApiClient +from skyapi.configuration import Configuration +# import models into sdk package +from skyapi.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs +from skyapi.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs +from skyapi.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus +from skyapi.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction +from skyapi.models.apiv1wallets_entries import Apiv1walletsEntries +from skyapi.models.apiv1wallets_meta import Apiv1walletsMeta +from skyapi.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection +from skyapi.models.apiv1wallettransaction_to import Apiv1wallettransactionTo +from skyapi.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet +from skyapi.models.inline_object import InlineObject +from skyapi.models.inline_response200 import InlineResponse200 +from skyapi.models.inline_response2001 import InlineResponse2001 +from skyapi.models.inline_response2002 import InlineResponse2002 +from skyapi.models.inline_response2003 import InlineResponse2003 +from skyapi.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction +from skyapi.models.inline_response2004 import InlineResponse2004 +from skyapi.models.inline_response2005 import InlineResponse2005 +from skyapi.models.inline_response2006 import InlineResponse2006 +from skyapi.models.inline_response2007 import InlineResponse2007 +from skyapi.models.inline_response2007_data import InlineResponse2007Data +from skyapi.models.inline_response_default import InlineResponseDefault diff --git a/skyapi/openapi_client/api/__init__.py b/lib/skyapi/skyapi/api/__init__.py similarity index 61% rename from skyapi/openapi_client/api/__init__.py rename to lib/skyapi/skyapi/api/__init__.py index c8f7c0ca..f911e521 100644 --- a/skyapi/openapi_client/api/__init__.py +++ b/lib/skyapi/skyapi/api/__init__.py @@ -3,4 +3,4 @@ # flake8: noqa # import apis into api package -from openapi_client.api.default_api import DefaultApi +from skyapi.api.default_api import DefaultApi diff --git a/skyapi/openapi_client/api/default_api.py b/lib/skyapi/skyapi/api/default_api.py similarity index 99% rename from skyapi/openapi_client/api/default_api.py rename to lib/skyapi/skyapi/api/default_api.py index 36440413..2f69e514 100644 --- a/skyapi/openapi_client/api/default_api.py +++ b/lib/skyapi/skyapi/api/default_api.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -18,7 +18,7 @@ # python 2 and python 3 compatibility library import six -from openapi_client.api_client import ApiClient +from skyapi.api_client import ApiClient class DefaultApi(object): diff --git a/skyapi/openapi_client/api_client.py b/lib/skyapi/skyapi/api_client.py similarity index 99% rename from skyapi/openapi_client/api_client.py rename to lib/skyapi/skyapi/api_client.py index af4f8264..2256be53 100644 --- a/skyapi/openapi_client/api_client.py +++ b/lib/skyapi/skyapi/api_client.py @@ -5,7 +5,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -23,9 +23,9 @@ import six from six.moves.urllib.parse import quote -from openapi_client.configuration import Configuration -import openapi_client.models -from openapi_client import rest +from skyapi.configuration import Configuration +import skyapi.models +from skyapi import rest class ApiClient(object): @@ -272,7 +272,7 @@ def __deserialize(self, data, klass): if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(openapi_client.models, klass) + klass = getattr(skyapi.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) diff --git a/skyapi/openapi_client/configuration.py b/lib/skyapi/skyapi/configuration.py similarity index 98% rename from skyapi/openapi_client/configuration.py rename to lib/skyapi/skyapi/configuration.py index 2d0cea62..476174ed 100644 --- a/skyapi/openapi_client/configuration.py +++ b/lib/skyapi/skyapi/configuration.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -63,7 +63,7 @@ def __init__(self): # Logging Settings self.logger = {} - self.logger["package_logger"] = logging.getLogger("openapi_client") + self.logger["package_logger"] = logging.getLogger("skyapi") self.logger["urllib3_logger"] = logging.getLogger("urllib3") # Log format self.logger_format = '%(asctime)s %(levelname)s %(message)s' diff --git a/lib/skyapi/skyapi/models/__init__.py b/lib/skyapi/skyapi/models/__init__.py new file mode 100644 index 00000000..6b11544a --- /dev/null +++ b/lib/skyapi/skyapi/models/__init__.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +# flake8: noqa +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + OpenAPI spec version: 0.25.1 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +# import models into model package +from skyapi.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs +from skyapi.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs +from skyapi.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus +from skyapi.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction +from skyapi.models.apiv1wallets_entries import Apiv1walletsEntries +from skyapi.models.apiv1wallets_meta import Apiv1walletsMeta +from skyapi.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection +from skyapi.models.apiv1wallettransaction_to import Apiv1wallettransactionTo +from skyapi.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet +from skyapi.models.inline_object import InlineObject +from skyapi.models.inline_response200 import InlineResponse200 +from skyapi.models.inline_response2001 import InlineResponse2001 +from skyapi.models.inline_response2002 import InlineResponse2002 +from skyapi.models.inline_response2003 import InlineResponse2003 +from skyapi.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction +from skyapi.models.inline_response2004 import InlineResponse2004 +from skyapi.models.inline_response2005 import InlineResponse2005 +from skyapi.models.inline_response2006 import InlineResponse2006 +from skyapi.models.inline_response2007 import InlineResponse2007 +from skyapi.models.inline_response2007_data import InlineResponse2007Data +from skyapi.models.inline_response_default import InlineResponseDefault diff --git a/skyapi/openapi_client/models/apiv1exploreraddress_inputs.py b/lib/skyapi/skyapi/models/apiv1exploreraddress_inputs.py similarity index 99% rename from skyapi/openapi_client/models/apiv1exploreraddress_inputs.py rename to lib/skyapi/skyapi/models/apiv1exploreraddress_inputs.py index a55876a5..ea29d32d 100644 --- a/skyapi/openapi_client/models/apiv1exploreraddress_inputs.py +++ b/lib/skyapi/skyapi/models/apiv1exploreraddress_inputs.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1exploreraddress_outputs.py b/lib/skyapi/skyapi/models/apiv1exploreraddress_outputs.py similarity index 99% rename from skyapi/openapi_client/models/apiv1exploreraddress_outputs.py rename to lib/skyapi/skyapi/models/apiv1exploreraddress_outputs.py index 4a19991d..2b560124 100644 --- a/skyapi/openapi_client/models/apiv1exploreraddress_outputs.py +++ b/lib/skyapi/skyapi/models/apiv1exploreraddress_outputs.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1exploreraddress_status.py b/lib/skyapi/skyapi/models/apiv1exploreraddress_status.py similarity index 99% rename from skyapi/openapi_client/models/apiv1exploreraddress_status.py rename to lib/skyapi/skyapi/models/apiv1exploreraddress_status.py index 1187268f..eb20d229 100644 --- a/skyapi/openapi_client/models/apiv1exploreraddress_status.py +++ b/lib/skyapi/skyapi/models/apiv1exploreraddress_status.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1pending_txs_transaction.py b/lib/skyapi/skyapi/models/apiv1pending_txs_transaction.py similarity index 99% rename from skyapi/openapi_client/models/apiv1pending_txs_transaction.py rename to lib/skyapi/skyapi/models/apiv1pending_txs_transaction.py index c16692a6..9300d99c 100644 --- a/skyapi/openapi_client/models/apiv1pending_txs_transaction.py +++ b/lib/skyapi/skyapi/models/apiv1pending_txs_transaction.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1wallets_entries.py b/lib/skyapi/skyapi/models/apiv1wallets_entries.py similarity index 99% rename from skyapi/openapi_client/models/apiv1wallets_entries.py rename to lib/skyapi/skyapi/models/apiv1wallets_entries.py index 1e178066..da67f1eb 100644 --- a/skyapi/openapi_client/models/apiv1wallets_entries.py +++ b/lib/skyapi/skyapi/models/apiv1wallets_entries.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1wallets_meta.py b/lib/skyapi/skyapi/models/apiv1wallets_meta.py similarity index 99% rename from skyapi/openapi_client/models/apiv1wallets_meta.py rename to lib/skyapi/skyapi/models/apiv1wallets_meta.py index 6fc73cfc..dd9741ba 100644 --- a/skyapi/openapi_client/models/apiv1wallets_meta.py +++ b/lib/skyapi/skyapi/models/apiv1wallets_meta.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1wallettransaction_hours_selection.py b/lib/skyapi/skyapi/models/apiv1wallettransaction_hours_selection.py similarity index 99% rename from skyapi/openapi_client/models/apiv1wallettransaction_hours_selection.py rename to lib/skyapi/skyapi/models/apiv1wallettransaction_hours_selection.py index 6e7698ad..0799b83f 100644 --- a/skyapi/openapi_client/models/apiv1wallettransaction_hours_selection.py +++ b/lib/skyapi/skyapi/models/apiv1wallettransaction_hours_selection.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1wallettransaction_to.py b/lib/skyapi/skyapi/models/apiv1wallettransaction_to.py similarity index 99% rename from skyapi/openapi_client/models/apiv1wallettransaction_to.py rename to lib/skyapi/skyapi/models/apiv1wallettransaction_to.py index af1d41c1..6993ada5 100644 --- a/skyapi/openapi_client/models/apiv1wallettransaction_to.py +++ b/lib/skyapi/skyapi/models/apiv1wallettransaction_to.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/apiv1wallettransaction_wallet.py b/lib/skyapi/skyapi/models/apiv1wallettransaction_wallet.py similarity index 99% rename from skyapi/openapi_client/models/apiv1wallettransaction_wallet.py rename to lib/skyapi/skyapi/models/apiv1wallettransaction_wallet.py index 6d81726f..5d02c9ac 100644 --- a/skyapi/openapi_client/models/apiv1wallettransaction_wallet.py +++ b/lib/skyapi/skyapi/models/apiv1wallettransaction_wallet.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_object.py b/lib/skyapi/skyapi/models/inline_object.py similarity index 99% rename from skyapi/openapi_client/models/inline_object.py rename to lib/skyapi/skyapi/models/inline_object.py index ae66dab0..45ff58d5 100644 --- a/skyapi/openapi_client/models/inline_object.py +++ b/lib/skyapi/skyapi/models/inline_object.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response200.py b/lib/skyapi/skyapi/models/inline_response200.py similarity index 99% rename from skyapi/openapi_client/models/inline_response200.py rename to lib/skyapi/skyapi/models/inline_response200.py index 3e294c4c..7af9b498 100644 --- a/skyapi/openapi_client/models/inline_response200.py +++ b/lib/skyapi/skyapi/models/inline_response200.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2001.py b/lib/skyapi/skyapi/models/inline_response2001.py similarity index 98% rename from skyapi/openapi_client/models/inline_response2001.py rename to lib/skyapi/skyapi/models/inline_response2001.py index dd4d1b47..02108c38 100644 --- a/skyapi/openapi_client/models/inline_response2001.py +++ b/lib/skyapi/skyapi/models/inline_response2001.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2002.py b/lib/skyapi/skyapi/models/inline_response2002.py similarity index 99% rename from skyapi/openapi_client/models/inline_response2002.py rename to lib/skyapi/skyapi/models/inline_response2002.py index 914c5c58..a55b17d6 100644 --- a/skyapi/openapi_client/models/inline_response2002.py +++ b/lib/skyapi/skyapi/models/inline_response2002.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2003.py b/lib/skyapi/skyapi/models/inline_response2003.py similarity index 99% rename from skyapi/openapi_client/models/inline_response2003.py rename to lib/skyapi/skyapi/models/inline_response2003.py index 434d1126..da81cb31 100644 --- a/skyapi/openapi_client/models/inline_response2003.py +++ b/lib/skyapi/skyapi/models/inline_response2003.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2003_unconfirmed_verify_transaction.py b/lib/skyapi/skyapi/models/inline_response2003_unconfirmed_verify_transaction.py similarity index 99% rename from skyapi/openapi_client/models/inline_response2003_unconfirmed_verify_transaction.py rename to lib/skyapi/skyapi/models/inline_response2003_unconfirmed_verify_transaction.py index a162a8b5..d7e08df4 100644 --- a/skyapi/openapi_client/models/inline_response2003_unconfirmed_verify_transaction.py +++ b/lib/skyapi/skyapi/models/inline_response2003_unconfirmed_verify_transaction.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2004.py b/lib/skyapi/skyapi/models/inline_response2004.py similarity index 99% rename from skyapi/openapi_client/models/inline_response2004.py rename to lib/skyapi/skyapi/models/inline_response2004.py index ea6527a6..dd9386d3 100644 --- a/skyapi/openapi_client/models/inline_response2004.py +++ b/lib/skyapi/skyapi/models/inline_response2004.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2005.py b/lib/skyapi/skyapi/models/inline_response2005.py similarity index 98% rename from skyapi/openapi_client/models/inline_response2005.py rename to lib/skyapi/skyapi/models/inline_response2005.py index 560a2fed..2cd43ff9 100644 --- a/skyapi/openapi_client/models/inline_response2005.py +++ b/lib/skyapi/skyapi/models/inline_response2005.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2006.py b/lib/skyapi/skyapi/models/inline_response2006.py similarity index 98% rename from skyapi/openapi_client/models/inline_response2006.py rename to lib/skyapi/skyapi/models/inline_response2006.py index 7018aedb..a67f5dfd 100644 --- a/skyapi/openapi_client/models/inline_response2006.py +++ b/lib/skyapi/skyapi/models/inline_response2006.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2007.py b/lib/skyapi/skyapi/models/inline_response2007.py similarity index 98% rename from skyapi/openapi_client/models/inline_response2007.py rename to lib/skyapi/skyapi/models/inline_response2007.py index af612e0a..1751f146 100644 --- a/skyapi/openapi_client/models/inline_response2007.py +++ b/lib/skyapi/skyapi/models/inline_response2007.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response2007_data.py b/lib/skyapi/skyapi/models/inline_response2007_data.py similarity index 98% rename from skyapi/openapi_client/models/inline_response2007_data.py rename to lib/skyapi/skyapi/models/inline_response2007_data.py index 55c20e1b..62f95baf 100644 --- a/skyapi/openapi_client/models/inline_response2007_data.py +++ b/lib/skyapi/skyapi/models/inline_response2007_data.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/models/inline_response_default.py b/lib/skyapi/skyapi/models/inline_response_default.py similarity index 98% rename from skyapi/openapi_client/models/inline_response_default.py rename to lib/skyapi/skyapi/models/inline_response_default.py index aaf9c42e..28019ad0 100644 --- a/skyapi/openapi_client/models/inline_response_default.py +++ b/lib/skyapi/skyapi/models/inline_response_default.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/openapi_client/rest.py b/lib/skyapi/skyapi/rest.py similarity index 99% rename from skyapi/openapi_client/rest.py rename to lib/skyapi/skyapi/rest.py index 3a71f8a9..53b8e28e 100644 --- a/skyapi/openapi_client/rest.py +++ b/lib/skyapi/skyapi/rest.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ diff --git a/skyapi/test-requirements.txt b/lib/skyapi/test-requirements.txt similarity index 100% rename from skyapi/test-requirements.txt rename to lib/skyapi/test-requirements.txt diff --git a/skyapi/test/__init__.py b/lib/skyapi/test/__init__.py similarity index 100% rename from skyapi/test/__init__.py rename to lib/skyapi/test/__init__.py diff --git a/skyapi/test/test_apiv1exploreraddress_inputs.py b/lib/skyapi/test/test_apiv1exploreraddress_inputs.py similarity index 67% rename from skyapi/test/test_apiv1exploreraddress_inputs.py rename to lib/skyapi/test/test_apiv1exploreraddress_inputs.py index 1d750a4a..0ce52299 100644 --- a/skyapi/test/test_apiv1exploreraddress_inputs.py +++ b/lib/skyapi/test/test_apiv1exploreraddress_inputs.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs # noqa: E501 +from skyapi.rest import ApiException class TestApiv1exploreraddressInputs(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1exploreraddressInputs(self): """Test Apiv1exploreraddressInputs""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1exploreraddress_inputs.Apiv1exploreraddressInputs() # noqa: E501 + # model = skyapi.models.apiv1exploreraddress_inputs.Apiv1exploreraddressInputs() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1exploreraddress_outputs.py b/lib/skyapi/test/test_apiv1exploreraddress_outputs.py similarity index 67% rename from skyapi/test/test_apiv1exploreraddress_outputs.py rename to lib/skyapi/test/test_apiv1exploreraddress_outputs.py index 28abb3c9..7e5031d2 100644 --- a/skyapi/test/test_apiv1exploreraddress_outputs.py +++ b/lib/skyapi/test/test_apiv1exploreraddress_outputs.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs # noqa: E501 +from skyapi.rest import ApiException class TestApiv1exploreraddressOutputs(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1exploreraddressOutputs(self): """Test Apiv1exploreraddressOutputs""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1exploreraddress_outputs.Apiv1exploreraddressOutputs() # noqa: E501 + # model = skyapi.models.apiv1exploreraddress_outputs.Apiv1exploreraddressOutputs() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1exploreraddress_status.py b/lib/skyapi/test/test_apiv1exploreraddress_status.py similarity index 67% rename from skyapi/test/test_apiv1exploreraddress_status.py rename to lib/skyapi/test/test_apiv1exploreraddress_status.py index d02dd99d..3a1be205 100644 --- a/skyapi/test/test_apiv1exploreraddress_status.py +++ b/lib/skyapi/test/test_apiv1exploreraddress_status.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus # noqa: E501 +from skyapi.rest import ApiException class TestApiv1exploreraddressStatus(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1exploreraddressStatus(self): """Test Apiv1exploreraddressStatus""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1exploreraddress_status.Apiv1exploreraddressStatus() # noqa: E501 + # model = skyapi.models.apiv1exploreraddress_status.Apiv1exploreraddressStatus() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1pending_txs_transaction.py b/lib/skyapi/test/test_apiv1pending_txs_transaction.py similarity index 67% rename from skyapi/test/test_apiv1pending_txs_transaction.py rename to lib/skyapi/test/test_apiv1pending_txs_transaction.py index f80edffc..72ed3161 100644 --- a/skyapi/test/test_apiv1pending_txs_transaction.py +++ b/lib/skyapi/test/test_apiv1pending_txs_transaction.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction # noqa: E501 +from skyapi.rest import ApiException class TestApiv1pendingTxsTransaction(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1pendingTxsTransaction(self): """Test Apiv1pendingTxsTransaction""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1pending_txs_transaction.Apiv1pendingTxsTransaction() # noqa: E501 + # model = skyapi.models.apiv1pending_txs_transaction.Apiv1pendingTxsTransaction() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1wallets_entries.py b/lib/skyapi/test/test_apiv1wallets_entries.py similarity index 68% rename from skyapi/test/test_apiv1wallets_entries.py rename to lib/skyapi/test/test_apiv1wallets_entries.py index 5aae69b0..0b658cb8 100644 --- a/skyapi/test/test_apiv1wallets_entries.py +++ b/lib/skyapi/test/test_apiv1wallets_entries.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1wallets_entries import Apiv1walletsEntries # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1wallets_entries import Apiv1walletsEntries # noqa: E501 +from skyapi.rest import ApiException class TestApiv1walletsEntries(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1walletsEntries(self): """Test Apiv1walletsEntries""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1wallets_entries.Apiv1walletsEntries() # noqa: E501 + # model = skyapi.models.apiv1wallets_entries.Apiv1walletsEntries() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1wallets_meta.py b/lib/skyapi/test/test_apiv1wallets_meta.py similarity index 69% rename from skyapi/test/test_apiv1wallets_meta.py rename to lib/skyapi/test/test_apiv1wallets_meta.py index a407dfad..c4c38656 100644 --- a/skyapi/test/test_apiv1wallets_meta.py +++ b/lib/skyapi/test/test_apiv1wallets_meta.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1wallets_meta import Apiv1walletsMeta # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1wallets_meta import Apiv1walletsMeta # noqa: E501 +from skyapi.rest import ApiException class TestApiv1walletsMeta(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1walletsMeta(self): """Test Apiv1walletsMeta""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1wallets_meta.Apiv1walletsMeta() # noqa: E501 + # model = skyapi.models.apiv1wallets_meta.Apiv1walletsMeta() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1wallettransaction_hours_selection.py b/lib/skyapi/test/test_apiv1wallettransaction_hours_selection.py similarity index 66% rename from skyapi/test/test_apiv1wallettransaction_hours_selection.py rename to lib/skyapi/test/test_apiv1wallettransaction_hours_selection.py index 5a74a866..4a45835f 100644 --- a/skyapi/test/test_apiv1wallettransaction_hours_selection.py +++ b/lib/skyapi/test/test_apiv1wallettransaction_hours_selection.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection # noqa: E501 +from skyapi.rest import ApiException class TestApiv1wallettransactionHoursSelection(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1wallettransactionHoursSelection(self): """Test Apiv1wallettransactionHoursSelection""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1wallettransaction_hours_selection.Apiv1wallettransactionHoursSelection() # noqa: E501 + # model = skyapi.models.apiv1wallettransaction_hours_selection.Apiv1wallettransactionHoursSelection() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1wallettransaction_to.py b/lib/skyapi/test/test_apiv1wallettransaction_to.py similarity index 68% rename from skyapi/test/test_apiv1wallettransaction_to.py rename to lib/skyapi/test/test_apiv1wallettransaction_to.py index 7920a714..5eb858f3 100644 --- a/skyapi/test/test_apiv1wallettransaction_to.py +++ b/lib/skyapi/test/test_apiv1wallettransaction_to.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1wallettransaction_to import Apiv1wallettransactionTo # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1wallettransaction_to import Apiv1wallettransactionTo # noqa: E501 +from skyapi.rest import ApiException class TestApiv1wallettransactionTo(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1wallettransactionTo(self): """Test Apiv1wallettransactionTo""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1wallettransaction_to.Apiv1wallettransactionTo() # noqa: E501 + # model = skyapi.models.apiv1wallettransaction_to.Apiv1wallettransactionTo() # noqa: E501 pass diff --git a/skyapi/test/test_apiv1wallettransaction_wallet.py b/lib/skyapi/test/test_apiv1wallettransaction_wallet.py similarity index 67% rename from skyapi/test/test_apiv1wallettransaction_wallet.py rename to lib/skyapi/test/test_apiv1wallettransaction_wallet.py index 6b056b39..a1f1e3db 100644 --- a/skyapi/test/test_apiv1wallettransaction_wallet.py +++ b/lib/skyapi/test/test_apiv1wallettransaction_wallet.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet # noqa: E501 +from skyapi.rest import ApiException class TestApiv1wallettransactionWallet(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testApiv1wallettransactionWallet(self): """Test Apiv1wallettransactionWallet""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.apiv1wallettransaction_wallet.Apiv1wallettransactionWallet() # noqa: E501 + # model = skyapi.models.apiv1wallettransaction_wallet.Apiv1wallettransactionWallet() # noqa: E501 pass diff --git a/skyapi/test/test_default_api.py b/lib/skyapi/test/test_default_api.py similarity index 97% rename from skyapi/test/test_default_api.py rename to lib/skyapi/test/test_default_api.py index c4afd6fa..6e1f2130 100644 --- a/skyapi/test/test_default_api.py +++ b/lib/skyapi/test/test_default_api.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,16 +15,16 @@ import unittest -import openapi_client -from openapi_client.api.default_api import DefaultApi # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.api.default_api import DefaultApi # noqa: E501 +from skyapi.rest import ApiException class TestDefaultApi(unittest.TestCase): """DefaultApi unit test stubs""" def setUp(self): - self.api = openapi_client.api.default_api.DefaultApi() # noqa: E501 + self.api = skyapi.api.default_api.DefaultApi() # noqa: E501 def tearDown(self): pass diff --git a/skyapi/test/test_inline_object.py b/lib/skyapi/test/test_inline_object.py similarity index 71% rename from skyapi/test/test_inline_object.py rename to lib/skyapi/test/test_inline_object.py index 421d9cc4..a09e4014 100644 --- a/skyapi/test/test_inline_object.py +++ b/lib/skyapi/test/test_inline_object.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_object import InlineObject # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_object import InlineObject # noqa: E501 +from skyapi.rest import ApiException class TestInlineObject(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineObject(self): """Test InlineObject""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_object.InlineObject() # noqa: E501 + # model = skyapi.models.inline_object.InlineObject() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response200.py b/lib/skyapi/test/test_inline_response200.py similarity index 69% rename from skyapi/test/test_inline_response200.py rename to lib/skyapi/test/test_inline_response200.py index b2d65e3b..a23ed842 100644 --- a/skyapi/test/test_inline_response200.py +++ b/lib/skyapi/test/test_inline_response200.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response200 import InlineResponse200 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response200 import InlineResponse200 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse200(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse200(self): """Test InlineResponse200""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response200.InlineResponse200() # noqa: E501 + # model = skyapi.models.inline_response200.InlineResponse200() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2001.py b/lib/skyapi/test/test_inline_response2001.py similarity index 69% rename from skyapi/test/test_inline_response2001.py rename to lib/skyapi/test/test_inline_response2001.py index c336f2b2..2509f7ea 100644 --- a/skyapi/test/test_inline_response2001.py +++ b/lib/skyapi/test/test_inline_response2001.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2001 import InlineResponse2001 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2001 import InlineResponse2001 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2001(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2001(self): """Test InlineResponse2001""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2001.InlineResponse2001() # noqa: E501 + # model = skyapi.models.inline_response2001.InlineResponse2001() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2002.py b/lib/skyapi/test/test_inline_response2002.py similarity index 69% rename from skyapi/test/test_inline_response2002.py rename to lib/skyapi/test/test_inline_response2002.py index 9380efa4..b6a216cb 100644 --- a/skyapi/test/test_inline_response2002.py +++ b/lib/skyapi/test/test_inline_response2002.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2002 import InlineResponse2002 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2002 import InlineResponse2002 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2002(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2002(self): """Test InlineResponse2002""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2002.InlineResponse2002() # noqa: E501 + # model = skyapi.models.inline_response2002.InlineResponse2002() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2003.py b/lib/skyapi/test/test_inline_response2003.py similarity index 69% rename from skyapi/test/test_inline_response2003.py rename to lib/skyapi/test/test_inline_response2003.py index 1eac22a8..9c8dc5ec 100644 --- a/skyapi/test/test_inline_response2003.py +++ b/lib/skyapi/test/test_inline_response2003.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2003 import InlineResponse2003 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2003 import InlineResponse2003 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2003(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2003(self): """Test InlineResponse2003""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2003.InlineResponse2003() # noqa: E501 + # model = skyapi.models.inline_response2003.InlineResponse2003() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py b/lib/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py similarity index 65% rename from skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py rename to lib/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py index a5396cc9..212ea07f 100644 --- a/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py +++ b/lib/skyapi/test/test_inline_response2003_unconfirmed_verify_transaction.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2003UnconfirmedVerifyTransaction(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2003UnconfirmedVerifyTransaction(self): """Test InlineResponse2003UnconfirmedVerifyTransaction""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2003_unconfirmed_verify_transaction.InlineResponse2003UnconfirmedVerifyTransaction() # noqa: E501 + # model = skyapi.models.inline_response2003_unconfirmed_verify_transaction.InlineResponse2003UnconfirmedVerifyTransaction() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2004.py b/lib/skyapi/test/test_inline_response2004.py similarity index 69% rename from skyapi/test/test_inline_response2004.py rename to lib/skyapi/test/test_inline_response2004.py index fd2d7bb4..744cd73f 100644 --- a/skyapi/test/test_inline_response2004.py +++ b/lib/skyapi/test/test_inline_response2004.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2004 import InlineResponse2004 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2004 import InlineResponse2004 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2004(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2004(self): """Test InlineResponse2004""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2004.InlineResponse2004() # noqa: E501 + # model = skyapi.models.inline_response2004.InlineResponse2004() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2005.py b/lib/skyapi/test/test_inline_response2005.py similarity index 69% rename from skyapi/test/test_inline_response2005.py rename to lib/skyapi/test/test_inline_response2005.py index 22525d19..fb7cdb80 100644 --- a/skyapi/test/test_inline_response2005.py +++ b/lib/skyapi/test/test_inline_response2005.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2005 import InlineResponse2005 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2005 import InlineResponse2005 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2005(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2005(self): """Test InlineResponse2005""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2005.InlineResponse2005() # noqa: E501 + # model = skyapi.models.inline_response2005.InlineResponse2005() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2006.py b/lib/skyapi/test/test_inline_response2006.py similarity index 69% rename from skyapi/test/test_inline_response2006.py rename to lib/skyapi/test/test_inline_response2006.py index 6351560b..bcc7f073 100644 --- a/skyapi/test/test_inline_response2006.py +++ b/lib/skyapi/test/test_inline_response2006.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2006 import InlineResponse2006 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2006 import InlineResponse2006 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2006(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2006(self): """Test InlineResponse2006""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2006.InlineResponse2006() # noqa: E501 + # model = skyapi.models.inline_response2006.InlineResponse2006() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2007.py b/lib/skyapi/test/test_inline_response2007.py similarity index 69% rename from skyapi/test/test_inline_response2007.py rename to lib/skyapi/test/test_inline_response2007.py index b1346e61..394a5921 100644 --- a/skyapi/test/test_inline_response2007.py +++ b/lib/skyapi/test/test_inline_response2007.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2007 import InlineResponse2007 # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2007 import InlineResponse2007 # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2007(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2007(self): """Test InlineResponse2007""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2007.InlineResponse2007() # noqa: E501 + # model = skyapi.models.inline_response2007.InlineResponse2007() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response2007_data.py b/lib/skyapi/test/test_inline_response2007_data.py similarity index 68% rename from skyapi/test/test_inline_response2007_data.py rename to lib/skyapi/test/test_inline_response2007_data.py index 71c29303..3a31771d 100644 --- a/skyapi/test/test_inline_response2007_data.py +++ b/lib/skyapi/test/test_inline_response2007_data.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response2007_data import InlineResponse2007Data # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response2007_data import InlineResponse2007Data # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponse2007Data(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponse2007Data(self): """Test InlineResponse2007Data""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response2007_data.InlineResponse2007Data() # noqa: E501 + # model = skyapi.models.inline_response2007_data.InlineResponse2007Data() # noqa: E501 pass diff --git a/skyapi/test/test_inline_response_default.py b/lib/skyapi/test/test_inline_response_default.py similarity index 68% rename from skyapi/test/test_inline_response_default.py rename to lib/skyapi/test/test_inline_response_default.py index 21776f66..5a006804 100644 --- a/skyapi/test/test_inline_response_default.py +++ b/lib/skyapi/test/test_inline_response_default.py @@ -6,7 +6,7 @@ Skycoin is a next-generation cryptocurrency. # noqa: E501 OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com + Contact: contact@skycoin.net Generated by: https://openapi-generator.tech """ @@ -15,9 +15,9 @@ import unittest -import openapi_client -from openapi_client.models.inline_response_default import InlineResponseDefault # noqa: E501 -from openapi_client.rest import ApiException +import skyapi +from skyapi.models.inline_response_default import InlineResponseDefault # noqa: E501 +from skyapi.rest import ApiException class TestInlineResponseDefault(unittest.TestCase): @@ -32,7 +32,7 @@ def tearDown(self): def testInlineResponseDefault(self): """Test InlineResponseDefault""" # FIXME: construct object with mandatory attributes with example values - # model = openapi_client.models.inline_response_default.InlineResponseDefault() # noqa: E501 + # model = skyapi.models.inline_response_default.InlineResponseDefault() # noqa: E501 pass diff --git a/skyapi/tox.ini b/lib/skyapi/tox.ini similarity index 100% rename from skyapi/tox.ini rename to lib/skyapi/tox.ini diff --git a/requirements.dev.txt b/requirements.dev.txt index 38f0acc0..aeaad9b4 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,3 +1,8 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 pytest pytest-runner diff --git a/requirements.txt b/requirements.txt index 7f65428d..894422e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,16 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.15.1 +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 + +pytest +pytest-runner +tox +tox-pyenv +wheel diff --git a/skyapi/openapi_client/__init__.py b/skyapi/openapi_client/__init__.py deleted file mode 100644 index f05ad86b..00000000 --- a/skyapi/openapi_client/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Skycoin REST API. - - Skycoin is a next-generation cryptocurrency. # noqa: E501 - - OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -__version__ = "1.0.0" - -# import apis into sdk package -from openapi_client.api.default_api import DefaultApi - -# import ApiClient -from openapi_client.api_client import ApiClient -from openapi_client.configuration import Configuration -# import models into sdk package -from openapi_client.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs -from openapi_client.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs -from openapi_client.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus -from openapi_client.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction -from openapi_client.models.apiv1wallets_entries import Apiv1walletsEntries -from openapi_client.models.apiv1wallets_meta import Apiv1walletsMeta -from openapi_client.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection -from openapi_client.models.apiv1wallettransaction_to import Apiv1wallettransactionTo -from openapi_client.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet -from openapi_client.models.inline_object import InlineObject -from openapi_client.models.inline_response200 import InlineResponse200 -from openapi_client.models.inline_response2001 import InlineResponse2001 -from openapi_client.models.inline_response2002 import InlineResponse2002 -from openapi_client.models.inline_response2003 import InlineResponse2003 -from openapi_client.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction -from openapi_client.models.inline_response2004 import InlineResponse2004 -from openapi_client.models.inline_response2005 import InlineResponse2005 -from openapi_client.models.inline_response2006 import InlineResponse2006 -from openapi_client.models.inline_response2007 import InlineResponse2007 -from openapi_client.models.inline_response2007_data import InlineResponse2007Data -from openapi_client.models.inline_response_default import InlineResponseDefault diff --git a/skyapi/openapi_client/models/__init__.py b/skyapi/openapi_client/models/__init__.py deleted file mode 100644 index 115a689c..00000000 --- a/skyapi/openapi_client/models/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Skycoin REST API. - - Skycoin is a next-generation cryptocurrency. # noqa: E501 - - OpenAPI spec version: 0.25.1 - Contact: skycoin.doe@example.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -# import models into model package -from openapi_client.models.apiv1exploreraddress_inputs import Apiv1exploreraddressInputs -from openapi_client.models.apiv1exploreraddress_outputs import Apiv1exploreraddressOutputs -from openapi_client.models.apiv1exploreraddress_status import Apiv1exploreraddressStatus -from openapi_client.models.apiv1pending_txs_transaction import Apiv1pendingTxsTransaction -from openapi_client.models.apiv1wallets_entries import Apiv1walletsEntries -from openapi_client.models.apiv1wallets_meta import Apiv1walletsMeta -from openapi_client.models.apiv1wallettransaction_hours_selection import Apiv1wallettransactionHoursSelection -from openapi_client.models.apiv1wallettransaction_to import Apiv1wallettransactionTo -from openapi_client.models.apiv1wallettransaction_wallet import Apiv1wallettransactionWallet -from openapi_client.models.inline_object import InlineObject -from openapi_client.models.inline_response200 import InlineResponse200 -from openapi_client.models.inline_response2001 import InlineResponse2001 -from openapi_client.models.inline_response2002 import InlineResponse2002 -from openapi_client.models.inline_response2003 import InlineResponse2003 -from openapi_client.models.inline_response2003_unconfirmed_verify_transaction import InlineResponse2003UnconfirmedVerifyTransaction -from openapi_client.models.inline_response2004 import InlineResponse2004 -from openapi_client.models.inline_response2005 import InlineResponse2005 -from openapi_client.models.inline_response2006 import InlineResponse2006 -from openapi_client.models.inline_response2007 import InlineResponse2007 -from openapi_client.models.inline_response2007_data import InlineResponse2007Data -from openapi_client.models.inline_response_default import InlineResponseDefault diff --git a/skycoin/skycoin.py b/skycoin/skycoin.py index a9f6847b..7d35c60d 100644 --- a/skycoin/skycoin.py +++ b/skycoin/skycoin.py @@ -641,113 +641,341 @@ def __init__(self): GoSlice_swigregister(GoSlice) -def SKY_cipher_RandByte(p0): - return _skycoin.SKY_cipher_RandByte(p0) -SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte +def SKY_cli_GenerateWallet(p0, p2): + return _skycoin.SKY_cli_GenerateWallet(p0, p2) +SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet -def SKY_cipher_NewPubKey(p0, p1): - return _skycoin.SKY_cipher_NewPubKey(p0, p1) -SKY_cipher_NewPubKey = _skycoin.SKY_cipher_NewPubKey +def SKY_cli_MakeAlphanumericSeed(): + return _skycoin.SKY_cli_MakeAlphanumericSeed() +SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed -def SKY_cipher_PubKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromHex(p0, p1) -SKY_cipher_PubKeyFromHex = _skycoin.SKY_cipher_PubKeyFromHex +def SKY_api_NewClient(p0): + return _skycoin.SKY_api_NewClient(p0) +SKY_api_NewClient = _skycoin.SKY_api_NewClient -def SKY_cipher_PubKeyFromSecKey(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromSecKey(p0, p1) -SKY_cipher_PubKeyFromSecKey = _skycoin.SKY_cipher_PubKeyFromSecKey +def SKY_api_Client_CSRF(p0): + return _skycoin.SKY_api_Client_CSRF(p0) +SKY_api_Client_CSRF = _skycoin.SKY_api_Client_CSRF -def SKY_cipher_PubKeyFromSig(p0, p1, p2): - return _skycoin.SKY_cipher_PubKeyFromSig(p0, p1, p2) -SKY_cipher_PubKeyFromSig = _skycoin.SKY_cipher_PubKeyFromSig +def SKY_api_Client_Version(p0): + return _skycoin.SKY_api_Client_Version(p0) +SKY_api_Client_Version = _skycoin.SKY_api_Client_Version -def SKY_cipher_PubKey_Verify(p0): - return _skycoin.SKY_cipher_PubKey_Verify(p0) -SKY_cipher_PubKey_Verify = _skycoin.SKY_cipher_PubKey_Verify +def SKY_api_Client_Outputs(p0): + return _skycoin.SKY_api_Client_Outputs(p0) +SKY_api_Client_Outputs = _skycoin.SKY_api_Client_Outputs -def SKY_cipher_PubKey_Hex(p0): - return _skycoin.SKY_cipher_PubKey_Hex(p0) -SKY_cipher_PubKey_Hex = _skycoin.SKY_cipher_PubKey_Hex +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_cipher_PubKeyRipemd160(p0, p1): - return _skycoin.SKY_cipher_PubKeyRipemd160(p0, p1) -SKY_cipher_PubKeyRipemd160 = _skycoin.SKY_cipher_PubKeyRipemd160 +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_cipher_NewSecKey(p0, p1): - return _skycoin.SKY_cipher_NewSecKey(p0, p1) -SKY_cipher_NewSecKey = _skycoin.SKY_cipher_NewSecKey +def SKY_api_Client_CoinSupply(p0): + return _skycoin.SKY_api_Client_CoinSupply(p0) +SKY_api_Client_CoinSupply = _skycoin.SKY_api_Client_CoinSupply -def SKY_cipher_SecKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromHex(p0, p1) -SKY_cipher_SecKeyFromHex = _skycoin.SKY_cipher_SecKeyFromHex +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_cipher_SecKey_Verify(p0): - return _skycoin.SKY_cipher_SecKey_Verify(p0) -SKY_cipher_SecKey_Verify = _skycoin.SKY_cipher_SecKey_Verify +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_cipher_SecKey_Hex(p0): - return _skycoin.SKY_cipher_SecKey_Hex(p0) -SKY_cipher_SecKey_Hex = _skycoin.SKY_cipher_SecKey_Hex +def SKY_api_Client_Blocks(p0, p1): + return _skycoin.SKY_api_Client_Blocks(p0, p1) +SKY_api_Client_Blocks = _skycoin.SKY_api_Client_Blocks + +def SKY_api_Client_LastBlocks(p0, p1): + return _skycoin.SKY_api_Client_LastBlocks(p0, p1) +SKY_api_Client_LastBlocks = _skycoin.SKY_api_Client_LastBlocks + +def SKY_api_Client_BlockchainMetadata(p0): + return _skycoin.SKY_api_Client_BlockchainMetadata(p0) +SKY_api_Client_BlockchainMetadata = _skycoin.SKY_api_Client_BlockchainMetadata + +def SKY_api_Client_BlockchainProgress(p0): + return _skycoin.SKY_api_Client_BlockchainProgress(p0) +SKY_api_Client_BlockchainProgress = _skycoin.SKY_api_Client_BlockchainProgress + +def SKY_api_Client_Balance(p0, p1, p2): + return _skycoin.SKY_api_Client_Balance(p0, p1, p2) +SKY_api_Client_Balance = _skycoin.SKY_api_Client_Balance + +def SKY_api_Client_UxOut(p0, p1): + return _skycoin.SKY_api_Client_UxOut(p0, p1) +SKY_api_Client_UxOut = _skycoin.SKY_api_Client_UxOut + +def SKY_api_Client_AddressUxOuts(p0, p1): + return _skycoin.SKY_api_Client_AddressUxOuts(p0, p1) +SKY_api_Client_AddressUxOuts = _skycoin.SKY_api_Client_AddressUxOuts + +def SKY_api_Client_Wallet(p0, p1): + return _skycoin.SKY_api_Client_Wallet(p0, p1) +SKY_api_Client_Wallet = _skycoin.SKY_api_Client_Wallet + +def SKY_api_Client_Wallets(p0): + return _skycoin.SKY_api_Client_Wallets(p0) +SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets + +def SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3): + return _skycoin.SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3) +SKY_api_Client_CreateUnencryptedWallet = _skycoin.SKY_api_Client_CreateUnencryptedWallet + +def SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4): + return _skycoin.SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4) +SKY_api_Client_CreateEncryptedWallet = _skycoin.SKY_api_Client_CreateEncryptedWallet + +def SKY_api_Client_NewWalletAddress(p0, p1, p2, p3): + return _skycoin.SKY_api_Client_NewWalletAddress(p0, p1, p2, p3) +SKY_api_Client_NewWalletAddress = _skycoin.SKY_api_Client_NewWalletAddress + +def SKY_api_Client_WalletBalance(p0, p1, p2): + return _skycoin.SKY_api_Client_WalletBalance(p0, p1, p2) +SKY_api_Client_WalletBalance = _skycoin.SKY_api_Client_WalletBalance + +def SKY_api_Client_Spend(p0, p1, p2, p3, p4, p5): + return _skycoin.SKY_api_Client_Spend(p0, p1, p2, p3, p4, p5) +SKY_api_Client_Spend = _skycoin.SKY_api_Client_Spend + +def SKY_api_Client_CreateTransaction(p0): + return _skycoin.SKY_api_Client_CreateTransaction(p0) +SKY_api_Client_CreateTransaction = _skycoin.SKY_api_Client_CreateTransaction + +def SKY_api_Client_UpdateWallet(p0, p1, p2): + return _skycoin.SKY_api_Client_UpdateWallet(p0, p1, p2) +SKY_api_Client_UpdateWallet = _skycoin.SKY_api_Client_UpdateWallet + +def SKY_api_Client_WalletFolderName(p0): + return _skycoin.SKY_api_Client_WalletFolderName(p0) +SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName + +def SKY_api_Client_NewSeed(p0, p1): + return _skycoin.SKY_api_Client_NewSeed(p0, p1) +SKY_api_Client_NewSeed = _skycoin.SKY_api_Client_NewSeed + +def SKY_api_Client_WalletSeed(p0, p1, p2): + return _skycoin.SKY_api_Client_WalletSeed(p0, p1, p2) +SKY_api_Client_WalletSeed = _skycoin.SKY_api_Client_WalletSeed + +def SKY_api_Client_NetworkConnection(p0, p1): + return _skycoin.SKY_api_Client_NetworkConnection(p0, p1) +SKY_api_Client_NetworkConnection = _skycoin.SKY_api_Client_NetworkConnection + +def SKY_api_Client_NetworkConnections(p0, p1): + return _skycoin.SKY_api_Client_NetworkConnections(p0, p1) +SKY_api_Client_NetworkConnections = _skycoin.SKY_api_Client_NetworkConnections + +def SKY_api_Client_NetworkDefaultPeers(p0): + return _skycoin.SKY_api_Client_NetworkDefaultPeers(p0) +SKY_api_Client_NetworkDefaultPeers = _skycoin.SKY_api_Client_NetworkDefaultPeers + +def SKY_api_Client_NetworkTrustedPeers(p0): + return _skycoin.SKY_api_Client_NetworkTrustedPeers(p0) +SKY_api_Client_NetworkTrustedPeers = _skycoin.SKY_api_Client_NetworkTrustedPeers + +def SKY_api_Client_NetworkExchangedPeers(p0): + return _skycoin.SKY_api_Client_NetworkExchangedPeers(p0) +SKY_api_Client_NetworkExchangedPeers = _skycoin.SKY_api_Client_NetworkExchangedPeers + +def SKY_api_Client_PendingTransactions(p0): + return _skycoin.SKY_api_Client_PendingTransactions(p0) +SKY_api_Client_PendingTransactions = _skycoin.SKY_api_Client_PendingTransactions + +def SKY_api_Client_Transaction(p0, p1): + return _skycoin.SKY_api_Client_Transaction(p0, p1) +SKY_api_Client_Transaction = _skycoin.SKY_api_Client_Transaction + +def SKY_api_Client_Transactions(p0, p1): + return _skycoin.SKY_api_Client_Transactions(p0, p1) +SKY_api_Client_Transactions = _skycoin.SKY_api_Client_Transactions + +def SKY_api_Client_ConfirmedTransactions(p0, p1): + return _skycoin.SKY_api_Client_ConfirmedTransactions(p0, p1) +SKY_api_Client_ConfirmedTransactions = _skycoin.SKY_api_Client_ConfirmedTransactions + +def SKY_api_Client_UnconfirmedTransactions(p0, p1): + return _skycoin.SKY_api_Client_UnconfirmedTransactions(p0, p1) +SKY_api_Client_UnconfirmedTransactions = _skycoin.SKY_api_Client_UnconfirmedTransactions + +def SKY_api_Client_InjectTransaction(p0, p1): + return _skycoin.SKY_api_Client_InjectTransaction(p0, p1) +SKY_api_Client_InjectTransaction = _skycoin.SKY_api_Client_InjectTransaction + +def SKY_api_Client_ResendUnconfirmedTransactions(p0): + return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) +SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions + +def SKY_api_Client_RawTransaction(p0, p1): + return _skycoin.SKY_api_Client_RawTransaction(p0, p1) +SKY_api_Client_RawTransaction = _skycoin.SKY_api_Client_RawTransaction + +def SKY_api_Client_AddressTransactions(p0, p1): + return _skycoin.SKY_api_Client_AddressTransactions(p0, p1) +SKY_api_Client_AddressTransactions = _skycoin.SKY_api_Client_AddressTransactions + +def SKY_api_Client_Richlist(p0, p1): + return _skycoin.SKY_api_Client_Richlist(p0, p1) +SKY_api_Client_Richlist = _skycoin.SKY_api_Client_Richlist + +def SKY_api_Client_AddressCount(p0): + return _skycoin.SKY_api_Client_AddressCount(p0) +SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount + +def SKY_api_Client_UnloadWallet(p0, p1): + return _skycoin.SKY_api_Client_UnloadWallet(p0, p1) +SKY_api_Client_UnloadWallet = _skycoin.SKY_api_Client_UnloadWallet + +def SKY_api_Client_Health(p0): + return _skycoin.SKY_api_Client_Health(p0) +SKY_api_Client_Health = _skycoin.SKY_api_Client_Health + +def SKY_api_Client_EncryptWallet(p0, p1, p2): + return _skycoin.SKY_api_Client_EncryptWallet(p0, p1, p2) +SKY_api_Client_EncryptWallet = _skycoin.SKY_api_Client_EncryptWallet + +def SKY_api_Client_DecryptWallet(p0, p1, p2): + return _skycoin.SKY_api_Client_DecryptWallet(p0, p1, p2) +SKY_api_Client_DecryptWallet = _skycoin.SKY_api_Client_DecryptWallet + +def SKY_api_NewCreateTransactionResponse(p0, p1): + return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) +SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse + +def SKY_api_NewCreatedTransaction(p0, p1): + return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) +SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction + +def SKY_api_CreatedTransaction_ToTransaction(p0): + return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) +SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction + +def SKY_api_NewCreatedTransactionOutput(p0, p1): + return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) +SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput + +def SKY_api_NewCreatedTransactionInput(p0): + return _skycoin.SKY_api_NewCreatedTransactionInput(p0) +SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput + +def SKY_api_NewWalletResponse(p0): + return _skycoin.SKY_api_NewWalletResponse(p0) +SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse + +def SKY_webrpc_NewClient(p0): + return _skycoin.SKY_webrpc_NewClient(p0) +SKY_webrpc_NewClient = _skycoin.SKY_webrpc_NewClient + +def SKY_webrpc_Client_CSRF(p0): + return _skycoin.SKY_webrpc_Client_CSRF(p0) +SKY_webrpc_Client_CSRF = _skycoin.SKY_webrpc_Client_CSRF + +def SKY_webrpc_Client_InjectTransaction(p0, p1): + return _skycoin.SKY_webrpc_Client_InjectTransaction(p0, p1) +SKY_webrpc_Client_InjectTransaction = _skycoin.SKY_webrpc_Client_InjectTransaction + +def SKY_webrpc_Client_GetStatus(p0, p1): + return _skycoin.SKY_webrpc_Client_GetStatus(p0, p1) +SKY_webrpc_Client_GetStatus = _skycoin.SKY_webrpc_Client_GetStatus + +def SKY_webrpc_Client_GetTransactionByID(p0, p1, p2): + return _skycoin.SKY_webrpc_Client_GetTransactionByID(p0, p1, p2) +SKY_webrpc_Client_GetTransactionByID = _skycoin.SKY_webrpc_Client_GetTransactionByID + +def SKY_webrpc_Client_GetAddressUxOuts(p0, p1): + return _skycoin.SKY_webrpc_Client_GetAddressUxOuts(p0, p1) +SKY_webrpc_Client_GetAddressUxOuts = _skycoin.SKY_webrpc_Client_GetAddressUxOuts + +def SKY_webrpc_Client_GetBlocksInRange(p0, p1, p2): + return _skycoin.SKY_webrpc_Client_GetBlocksInRange(p0, p1, p2) +SKY_webrpc_Client_GetBlocksInRange = _skycoin.SKY_webrpc_Client_GetBlocksInRange + +def SKY_webrpc_Client_GetBlocksBySeq(p0, p1): + return _skycoin.SKY_webrpc_Client_GetBlocksBySeq(p0, p1) +SKY_webrpc_Client_GetBlocksBySeq = _skycoin.SKY_webrpc_Client_GetBlocksBySeq + +def SKY_webrpc_Client_GetLastBlocks(p0, p1): + return _skycoin.SKY_webrpc_Client_GetLastBlocks(p0, p1) +SKY_webrpc_Client_GetLastBlocks = _skycoin.SKY_webrpc_Client_GetLastBlocks + +def SKY_cipher_DecodeBase58Address(p0, p1): + return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) +SKY_cipher_DecodeBase58Address = _skycoin.SKY_cipher_DecodeBase58Address + +def SKY_cipher_AddressFromBytes(p0, p1): + return _skycoin.SKY_cipher_AddressFromBytes(p0, p1) +SKY_cipher_AddressFromBytes = _skycoin.SKY_cipher_AddressFromBytes + +def SKY_cipher_AddressFromPubKey(p0, p1): + return _skycoin.SKY_cipher_AddressFromPubKey(p0, p1) +SKY_cipher_AddressFromPubKey = _skycoin.SKY_cipher_AddressFromPubKey + +def SKY_cipher_AddressFromSecKey(p0, p1): + return _skycoin.SKY_cipher_AddressFromSecKey(p0, p1) +SKY_cipher_AddressFromSecKey = _skycoin.SKY_cipher_AddressFromSecKey -def SKY_cipher_ECDH(p0, p1): - return _skycoin.SKY_cipher_ECDH(p0, p1) -SKY_cipher_ECDH = _skycoin.SKY_cipher_ECDH +def SKY_cipher_Address_Null(p0): + return _skycoin.SKY_cipher_Address_Null(p0) +SKY_cipher_Address_Null = _skycoin.SKY_cipher_Address_Null -def SKY_cipher_NewSig(p0, p1): - return _skycoin.SKY_cipher_NewSig(p0, p1) -SKY_cipher_NewSig = _skycoin.SKY_cipher_NewSig +def SKY_cipher_Address_Bytes(p0): + return _skycoin.SKY_cipher_Address_Bytes(p0) +SKY_cipher_Address_Bytes = _skycoin.SKY_cipher_Address_Bytes -def SKY_cipher_SigFromHex(p0, p1): - return _skycoin.SKY_cipher_SigFromHex(p0, p1) -SKY_cipher_SigFromHex = _skycoin.SKY_cipher_SigFromHex +def SKY_cipher_Address_Verify(p0, p1): + return _skycoin.SKY_cipher_Address_Verify(p0, p1) +SKY_cipher_Address_Verify = _skycoin.SKY_cipher_Address_Verify -def SKY_cipher_Sig_Hex(p0): - return _skycoin.SKY_cipher_Sig_Hex(p0) -SKY_cipher_Sig_Hex = _skycoin.SKY_cipher_Sig_Hex +def SKY_cipher_Address_String(p0): + return _skycoin.SKY_cipher_Address_String(p0) +SKY_cipher_Address_String = _skycoin.SKY_cipher_Address_String -def SKY_cipher_SignHash(p0, p1, p2): - return _skycoin.SKY_cipher_SignHash(p0, p1, p2) -SKY_cipher_SignHash = _skycoin.SKY_cipher_SignHash +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_cipher_VerifyAddressSignedHash(p0, p1, p2): - return _skycoin.SKY_cipher_VerifyAddressSignedHash(p0, p1, p2) -SKY_cipher_VerifyAddressSignedHash = _skycoin.SKY_cipher_VerifyAddressSignedHash +def SKY_base58_String2Hex(p0): + return _skycoin.SKY_base58_String2Hex(p0) +SKY_base58_String2Hex = _skycoin.SKY_base58_String2Hex -def SKY_cipher_VerifySignedHash(p0, p1): - return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) -SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash +def SKY_base58_Base58_ToInt(p0): + return _skycoin.SKY_base58_Base58_ToInt(p0) +SKY_base58_Base58_ToInt = _skycoin.SKY_base58_Base58_ToInt -def SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2): - return _skycoin.SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2) -SKY_cipher_VerifyPubKeySignedHash = _skycoin.SKY_cipher_VerifyPubKeySignedHash +def SKY_base58_Base58_ToHex(p0): + return _skycoin.SKY_base58_Base58_ToHex(p0) +SKY_base58_Base58_ToHex = _skycoin.SKY_base58_Base58_ToHex -def SKY_cipher_GenerateKeyPair(p0, p1): - return _skycoin.SKY_cipher_GenerateKeyPair(p0, p1) -SKY_cipher_GenerateKeyPair = _skycoin.SKY_cipher_GenerateKeyPair +def SKY_base58_Base58_Base582Int(p0): + return _skycoin.SKY_base58_Base58_Base582Int(p0) +SKY_base58_Base58_Base582Int = _skycoin.SKY_base58_Base58_Base582Int -def SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2) -SKY_cipher_GenerateDeterministicKeyPair = _skycoin.SKY_cipher_GenerateDeterministicKeyPair +def SKY_base58_Base582Hex(p0): + return _skycoin.SKY_base58_Base582Hex(p0) +SKY_base58_Base582Hex = _skycoin.SKY_base58_Base582Hex -def SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3): - return _skycoin.SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3) -SKY_cipher_DeterministicKeyPairIterator = _skycoin.SKY_cipher_DeterministicKeyPairIterator +def SKY_base58_Base58_BitHex(p0): + return _skycoin.SKY_base58_Base58_BitHex(p0) +SKY_base58_Base58_BitHex = _skycoin.SKY_base58_Base58_BitHex -def SKY_cipher_GenerateDeterministicKeyPairs(*args): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairs(*args) -SKY_cipher_GenerateDeterministicKeyPairs = _skycoin.SKY_cipher_GenerateDeterministicKeyPairs +def SKY_base58_Int2Base58(p0): + return _skycoin.SKY_base58_Int2Base58(p0) +SKY_base58_Int2Base58 = _skycoin.SKY_base58_Int2Base58 -def SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1) -SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed +def SKY_base58_Hex2Base58(p0): + return _skycoin.SKY_base58_Hex2Base58(p0) +SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 -def SKY_cipher_CheckSecKey(p0): - return _skycoin.SKY_cipher_CheckSecKey(p0) -SKY_cipher_CheckSecKey = _skycoin.SKY_cipher_CheckSecKey +def SKY_base58_Hex2Base58String(p0): + return _skycoin.SKY_base58_Hex2Base58String(p0) +SKY_base58_Hex2Base58String = _skycoin.SKY_base58_Hex2Base58String -def SKY_cipher_CheckSecKeyHash(p0, p1): - return _skycoin.SKY_cipher_CheckSecKeyHash(p0, p1) -SKY_cipher_CheckSecKeyHash = _skycoin.SKY_cipher_CheckSecKeyHash +def SKY_base58_Hex2Base58Str(p0): + return _skycoin.SKY_base58_Hex2Base58Str(p0) +SKY_base58_Hex2Base58Str = _skycoin.SKY_base58_Hex2Base58Str def SKY_cipher_DecodeBase58BitcoinAddress(p0, p1): return _skycoin.SKY_cipher_DecodeBase58BitcoinAddress(p0, p1) @@ -793,237 +1021,113 @@ 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_NewCreateTransactionResponse(p0, p1): - return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) -SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse - -def SKY_api_NewCreatedTransaction(p0, p1): - return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) -SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction - -def SKY_api_CreatedTransaction_ToTransaction(p0): - return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) -SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction - -def SKY_api_NewCreatedTransactionOutput(p0, p1): - return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) -SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput - -def SKY_api_NewCreatedTransactionInput(p0): - return _skycoin.SKY_api_NewCreatedTransactionInput(p0) -SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput - -def SKY_iputil_LocalhostIP(): - return _skycoin.SKY_iputil_LocalhostIP() -SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP - -def SKY_iputil_IsLocalhost(p0): - return _skycoin.SKY_iputil_IsLocalhost(p0) -SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost - -def SKY_iputil_SplitAddr(p0): - return _skycoin.SKY_iputil_SplitAddr(p0) -SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr - -def SKY_testutil_MakeAddress(p0): - return _skycoin.SKY_testutil_MakeAddress(p0) -SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress - -def SKY_coin_Create_Transaction(): - return _skycoin.SKY_coin_Create_Transaction() -SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction - -def SKY_coin_Transaction_Copy(p0): - return _skycoin.SKY_coin_Transaction_Copy(p0) -SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy - -def SKY_coin_GetTransactionObject(p0): - return _skycoin.SKY_coin_GetTransactionObject(p0) -SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject - -def SKY_coin_Transaction_ResetInputs(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetInputs(p0, p1) -SKY_coin_Transaction_ResetInputs = _skycoin.SKY_coin_Transaction_ResetInputs - -def SKY_coin_Transaction_GetInputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) -SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount - -def SKY_coin_Transaction_GetInputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetInputAt(p0, p1, p2) -SKY_coin_Transaction_GetInputAt = _skycoin.SKY_coin_Transaction_GetInputAt - -def SKY_coin_Transaction_SetInputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetInputAt(p0, p1, p2) -SKY_coin_Transaction_SetInputAt = _skycoin.SKY_coin_Transaction_SetInputAt - -def SKY_coin_Transaction_GetOutputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) -SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount - -def SKY_coin_Transaction_GetOutputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetOutputAt(p0, p1, p2) -SKY_coin_Transaction_GetOutputAt = _skycoin.SKY_coin_Transaction_GetOutputAt - -def SKY_coin_Transaction_SetOutputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetOutputAt(p0, p1, p2) -SKY_coin_Transaction_SetOutputAt = _skycoin.SKY_coin_Transaction_SetOutputAt - -def SKY_coin_Transaction_GetSignaturesCount(p0): - return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) -SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount - -def SKY_coin_Transaction_GetSignatureAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetSignatureAt(p0, p1, p2) -SKY_coin_Transaction_GetSignatureAt = _skycoin.SKY_coin_Transaction_GetSignatureAt - -def SKY_coin_Transaction_SetSignatureAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetSignatureAt(p0, p1, p2) -SKY_coin_Transaction_SetSignatureAt = _skycoin.SKY_coin_Transaction_SetSignatureAt - -def SKY_coin_Transaction_PushSignature(p0, p1): - return _skycoin.SKY_coin_Transaction_PushSignature(p0, p1) -SKY_coin_Transaction_PushSignature = _skycoin.SKY_coin_Transaction_PushSignature - -def SKY_coin_Transaction_ResetOutputs(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetOutputs(p0, p1) -SKY_coin_Transaction_ResetOutputs = _skycoin.SKY_coin_Transaction_ResetOutputs - -def SKY_coin_Transaction_ResetSignatures(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetSignatures(p0, p1) -SKY_coin_Transaction_ResetSignatures = _skycoin.SKY_coin_Transaction_ResetSignatures - -def SKY_coin_Transaction_Verify(p0): - return _skycoin.SKY_coin_Transaction_Verify(p0) -SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify - -def SKY_coin_Transaction_VerifyInput(*args): - return _skycoin.SKY_coin_Transaction_VerifyInput(*args) -SKY_coin_Transaction_VerifyInput = _skycoin.SKY_coin_Transaction_VerifyInput - -def SKY_coin_Transaction_PushInput(p0, p1): - return _skycoin.SKY_coin_Transaction_PushInput(p0, p1) -SKY_coin_Transaction_PushInput = _skycoin.SKY_coin_Transaction_PushInput - -def SKY_coin_TransactionOutput_UxID(p0, p1, p2): - return _skycoin.SKY_coin_TransactionOutput_UxID(p0, p1, p2) -SKY_coin_TransactionOutput_UxID = _skycoin.SKY_coin_TransactionOutput_UxID - -def SKY_coin_Transaction_PushOutput(p0, p1, p2, p3): - return _skycoin.SKY_coin_Transaction_PushOutput(p0, p1, p2, p3) -SKY_coin_Transaction_PushOutput = _skycoin.SKY_coin_Transaction_PushOutput - -def SKY_coin_Transaction_SignInputs(*args): - return _skycoin.SKY_coin_Transaction_SignInputs(*args) -SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs - -def SKY_coin_Transaction_Size(p0): - return _skycoin.SKY_coin_Transaction_Size(p0) -SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size +def SKY_cipher_RandByte(p0): + return _skycoin.SKY_cipher_RandByte(p0) +SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte -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_cipher_NewPubKey(p0, p1): + return _skycoin.SKY_cipher_NewPubKey(p0, p1) +SKY_cipher_NewPubKey = _skycoin.SKY_cipher_NewPubKey -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_cipher_PubKeyFromHex(p0, p1): + return _skycoin.SKY_cipher_PubKeyFromHex(p0, p1) +SKY_cipher_PubKeyFromHex = _skycoin.SKY_cipher_PubKeyFromHex -def SKY_coin_Transaction_TxID(p0): - return _skycoin.SKY_coin_Transaction_TxID(p0) -SKY_coin_Transaction_TxID = _skycoin.SKY_coin_Transaction_TxID +def SKY_cipher_PubKeyFromSecKey(p0, p1): + return _skycoin.SKY_cipher_PubKeyFromSecKey(p0, p1) +SKY_cipher_PubKeyFromSecKey = _skycoin.SKY_cipher_PubKeyFromSecKey -def SKY_coin_Transaction_TxIDHex(p0): - return _skycoin.SKY_coin_Transaction_TxIDHex(p0) -SKY_coin_Transaction_TxIDHex = _skycoin.SKY_coin_Transaction_TxIDHex +def SKY_cipher_PubKeyFromSig(p0, p1, p2): + return _skycoin.SKY_cipher_PubKeyFromSig(p0, p1, p2) +SKY_cipher_PubKeyFromSig = _skycoin.SKY_cipher_PubKeyFromSig -def SKY_coin_Transaction_UpdateHeader(p0): - return _skycoin.SKY_coin_Transaction_UpdateHeader(p0) -SKY_coin_Transaction_UpdateHeader = _skycoin.SKY_coin_Transaction_UpdateHeader +def SKY_cipher_PubKey_Verify(p0): + return _skycoin.SKY_cipher_PubKey_Verify(p0) +SKY_cipher_PubKey_Verify = _skycoin.SKY_cipher_PubKey_Verify -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_cipher_PubKey_Hex(p0): + return _skycoin.SKY_cipher_PubKey_Hex(p0) +SKY_cipher_PubKey_Hex = _skycoin.SKY_cipher_PubKey_Hex -def SKY_coin_Transaction_Serialize(p0): - return _skycoin.SKY_coin_Transaction_Serialize(p0) -SKY_coin_Transaction_Serialize = _skycoin.SKY_coin_Transaction_Serialize +def SKY_cipher_PubKeyRipemd160(p0, p1): + return _skycoin.SKY_cipher_PubKeyRipemd160(p0, p1) +SKY_cipher_PubKeyRipemd160 = _skycoin.SKY_cipher_PubKeyRipemd160 -def SKY_coin_TransactionDeserialize(p0): - return _skycoin.SKY_coin_TransactionDeserialize(p0) -SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize +def SKY_cipher_NewSecKey(p0, p1): + return _skycoin.SKY_cipher_NewSecKey(p0, p1) +SKY_cipher_NewSecKey = _skycoin.SKY_cipher_NewSecKey -def SKY_coin_Transaction_OutputHours(p0): - return _skycoin.SKY_coin_Transaction_OutputHours(p0) -SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours +def SKY_cipher_SecKeyFromHex(p0, p1): + return _skycoin.SKY_cipher_SecKeyFromHex(p0, p1) +SKY_cipher_SecKeyFromHex = _skycoin.SKY_cipher_SecKeyFromHex -def SKY_coin_Create_Transactions(): - return _skycoin.SKY_coin_Create_Transactions() -SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions +def SKY_cipher_SecKey_Verify(p0): + return _skycoin.SKY_cipher_SecKey_Verify(p0) +SKY_cipher_SecKey_Verify = _skycoin.SKY_cipher_SecKey_Verify -def SKY_coin_GetTransactionsObject(p0, p1): - return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) -SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject +def SKY_cipher_SecKey_Hex(p0): + return _skycoin.SKY_cipher_SecKey_Hex(p0) +SKY_cipher_SecKey_Hex = _skycoin.SKY_cipher_SecKey_Hex -def SKY_coin_Transactions_Length(p0): - return _skycoin.SKY_coin_Transactions_Length(p0) -SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length +def SKY_cipher_ECDH(p0, p1): + return _skycoin.SKY_cipher_ECDH(p0, p1) +SKY_cipher_ECDH = _skycoin.SKY_cipher_ECDH -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_cipher_NewSig(p0, p1): + return _skycoin.SKY_cipher_NewSig(p0, p1) +SKY_cipher_NewSig = _skycoin.SKY_cipher_NewSig -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_cipher_SigFromHex(p0, p1): + return _skycoin.SKY_cipher_SigFromHex(p0, p1) +SKY_cipher_SigFromHex = _skycoin.SKY_cipher_SigFromHex -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_cipher_Sig_Hex(p0): + return _skycoin.SKY_cipher_Sig_Hex(p0) +SKY_cipher_Sig_Hex = _skycoin.SKY_cipher_Sig_Hex -def SKY_coin_Transactions_Hashes(*args): - return _skycoin.SKY_coin_Transactions_Hashes(*args) -SKY_coin_Transactions_Hashes = _skycoin.SKY_coin_Transactions_Hashes +def SKY_cipher_SignHash(p0, p1, p2): + return _skycoin.SKY_cipher_SignHash(p0, p1, p2) +SKY_cipher_SignHash = _skycoin.SKY_cipher_SignHash -def SKY_coin_Transactions_Size(p0): - return _skycoin.SKY_coin_Transactions_Size(p0) -SKY_coin_Transactions_Size = _skycoin.SKY_coin_Transactions_Size +def SKY_cipher_VerifyAddressSignedHash(p0, p1, p2): + return _skycoin.SKY_cipher_VerifyAddressSignedHash(p0, p1, p2) +SKY_cipher_VerifyAddressSignedHash = _skycoin.SKY_cipher_VerifyAddressSignedHash -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_cipher_VerifySignedHash(p0, p1): + return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) +SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash -def SKY_coin_SortTransactions(p0, p1): - return _skycoin.SKY_coin_SortTransactions(p0, p1) -SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions +def SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2): + return _skycoin.SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2) +SKY_cipher_VerifyPubKeySignedHash = _skycoin.SKY_cipher_VerifyPubKeySignedHash -def SKY_coin_NewSortableTransactions(p0, p1, p2): - return _skycoin.SKY_coin_NewSortableTransactions(p0, p1, p2) -SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions +def SKY_cipher_GenerateKeyPair(p0, p1): + return _skycoin.SKY_cipher_GenerateKeyPair(p0, p1) +SKY_cipher_GenerateKeyPair = _skycoin.SKY_cipher_GenerateKeyPair -def SKY_coin_SortableTransactions_Sort(p0): - return _skycoin.SKY_coin_SortableTransactions_Sort(p0) -SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort +def SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2): + return _skycoin.SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2) +SKY_cipher_GenerateDeterministicKeyPair = _skycoin.SKY_cipher_GenerateDeterministicKeyPair -def SKY_coin_SortableTransactions_Len(p0): - return _skycoin.SKY_coin_SortableTransactions_Len(p0) -SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len +def SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3): + return _skycoin.SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3) +SKY_cipher_DeterministicKeyPairIterator = _skycoin.SKY_cipher_DeterministicKeyPairIterator -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_GenerateDeterministicKeyPairs(*args): + return _skycoin.SKY_cipher_GenerateDeterministicKeyPairs(*args) +SKY_cipher_GenerateDeterministicKeyPairs = _skycoin.SKY_cipher_GenerateDeterministicKeyPairs -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_GenerateDeterministicKeyPairsSeed(p0, p1): + return _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1) +SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed -def SKY_coin_VerifyTransactionCoinsSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) -SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending +def SKY_cipher_CheckSecKey(p0): + return _skycoin.SKY_cipher_CheckSecKey(p0) +SKY_cipher_CheckSecKey = _skycoin.SKY_cipher_CheckSecKey -def SKY_coin_VerifyTransactionHoursSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) -SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending +def SKY_cipher_CheckSecKeyHash(p0, p1): + return _skycoin.SKY_cipher_CheckSecKeyHash(p0, p1) +SKY_cipher_CheckSecKeyHash = _skycoin.SKY_cipher_CheckSecKeyHash def SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2): return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2) @@ -1033,101 +1137,133 @@ 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_cli_GenerateWallet(p0, p2): - return _skycoin.SKY_cli_GenerateWallet(p0, p2) -SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet +def SKY_bip39_NewDefaultMnemomic(): + return _skycoin.SKY_bip39_NewDefaultMnemomic() +SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic -def SKY_cli_MakeAlphanumericSeed(): - return _skycoin.SKY_cli_MakeAlphanumericSeed() -SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed +def SKY_bip39_NewEntropy(p0): + return _skycoin.SKY_bip39_NewEntropy(p0) +SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy -def SKY_cli_AddPrivateKey(p0, p1): - return _skycoin.SKY_cli_AddPrivateKey(p0, p1) -SKY_cli_AddPrivateKey = _skycoin.SKY_cli_AddPrivateKey +def SKY_bip39_NewMnemonic(p0): + return _skycoin.SKY_bip39_NewMnemonic(p0) +SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic -def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): - return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) -SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile +def SKY_bip39_MnemonicToByteArray(p0): + return _skycoin.SKY_bip39_MnemonicToByteArray(p0) +SKY_bip39_MnemonicToByteArray = _skycoin.SKY_bip39_MnemonicToByteArray -def SKY_base58_String2Hex(p0): - return _skycoin.SKY_base58_String2Hex(p0) -SKY_base58_String2Hex = _skycoin.SKY_base58_String2Hex +def SKY_bip39_IsMnemonicValid(p0): + return _skycoin.SKY_bip39_IsMnemonicValid(p0) +SKY_bip39_IsMnemonicValid = _skycoin.SKY_bip39_IsMnemonicValid -def SKY_base58_Base58_ToInt(p0): - return _skycoin.SKY_base58_Base58_ToInt(p0) -SKY_base58_Base58_ToInt = _skycoin.SKY_base58_Base58_ToInt +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_base58_Base58_ToHex(p0): - return _skycoin.SKY_base58_Base58_ToHex(p0) -SKY_base58_Base58_ToHex = _skycoin.SKY_base58_Base58_ToHex +def SKY_cipher_HashRipemd160(p0, p1): + return _skycoin.SKY_cipher_HashRipemd160(p0, p1) +SKY_cipher_HashRipemd160 = _skycoin.SKY_cipher_HashRipemd160 -def SKY_base58_Base58_Base582Int(p0): - return _skycoin.SKY_base58_Base58_Base582Int(p0) -SKY_base58_Base58_Base582Int = _skycoin.SKY_base58_Base58_Base582Int +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_base58_Base582Hex(p0): - return _skycoin.SKY_base58_Base582Hex(p0) -SKY_base58_Base582Hex = _skycoin.SKY_base58_Base582Hex +def SKY_cipher_SHA256_Hex(p0): + return _skycoin.SKY_cipher_SHA256_Hex(p0) +SKY_cipher_SHA256_Hex = _skycoin.SKY_cipher_SHA256_Hex -def SKY_base58_Base58_BitHex(p0): - return _skycoin.SKY_base58_Base58_BitHex(p0) -SKY_base58_Base58_BitHex = _skycoin.SKY_base58_Base58_BitHex +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_base58_Int2Base58(p0): - return _skycoin.SKY_base58_Int2Base58(p0) -SKY_base58_Int2Base58 = _skycoin.SKY_base58_Int2Base58 +def SKY_cipher_SumSHA256(p0, p1): + return _skycoin.SKY_cipher_SumSHA256(p0, p1) +SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 -def SKY_base58_Hex2Base58(p0): - return _skycoin.SKY_base58_Hex2Base58(p0) -SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 +def SKY_cipher_SHA256FromHex(p0, p1): + return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) +SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex -def SKY_base58_Hex2Base58String(p0): - return _skycoin.SKY_base58_Hex2Base58String(p0) -SKY_base58_Hex2Base58String = _skycoin.SKY_base58_Hex2Base58String +def SKY_cipher_DoubleSHA256(p0, p1): + return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) +SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 -def SKY_base58_Hex2Base58Str(p0): - return _skycoin.SKY_base58_Hex2Base58Str(p0) -SKY_base58_Hex2Base58Str = _skycoin.SKY_base58_Hex2Base58Str +def SKY_cipher_AddSHA256(p0, p1, p2): + return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) +SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 -def SKY_handle_close(p0): - return _skycoin.SKY_handle_close(p0) -SKY_handle_close = _skycoin.SKY_handle_close +def SKY_cipher_Merkle(p0, p1): + return _skycoin.SKY_cipher_Merkle(p0, p1) +SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle -def SKY_handle_copy(p0): - return _skycoin.SKY_handle_copy(p0) -SKY_handle_copy = _skycoin.SKY_handle_copy +def SKY_cipher_SHA256_Null(p0): + return _skycoin.SKY_cipher_SHA256_Null(p0) +SKY_cipher_SHA256_Null = _skycoin.SKY_cipher_SHA256_Null -def SKY_apputil_CatchInterruptPanic(): - return _skycoin.SKY_apputil_CatchInterruptPanic() -SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic +def SKY_cli_AddPrivateKey(p0, p1): + return _skycoin.SKY_cli_AddPrivateKey(p0, p1) +SKY_cli_AddPrivateKey = _skycoin.SKY_cli_AddPrivateKey -def SKY_apputil_CatchDebug(): - return _skycoin.SKY_apputil_CatchDebug() -SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug +def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): + return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) +SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile + +def SKY_cli_CheckWalletBalance(p0, p1, p2): + return _skycoin.SKY_cli_CheckWalletBalance(p0, p1, p2) +SKY_cli_CheckWalletBalance = _skycoin.SKY_cli_CheckWalletBalance + +def SKY_cli_GetBalanceOfAddresses(p0, p1, p2): + return _skycoin.SKY_cli_GetBalanceOfAddresses(p0, p1, p2) +SKY_cli_GetBalanceOfAddresses = _skycoin.SKY_cli_GetBalanceOfAddresses + +def SKY_cli_LoadConfig(): + return _skycoin.SKY_cli_LoadConfig() +SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig + +def SKY_cli_Config_FullWalletPath(p0): + return _skycoin.SKY_cli_Config_FullWalletPath(p0) +SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath + +def SKY_cli_Config_FullDBPath(p0): + return _skycoin.SKY_cli_Config_FullDBPath(p0) +SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath + +def SKY_cli_NewApp(p0): + return _skycoin.SKY_cli_NewApp(p0) +SKY_cli_NewApp = _skycoin.SKY_cli_NewApp + +def SKY_cli_RPCClientFromContext(p0): + return _skycoin.SKY_cli_RPCClientFromContext(p0) +SKY_cli_RPCClientFromContext = _skycoin.SKY_cli_RPCClientFromContext -def SKY_apputil_PrintProgramStatus(): - return _skycoin.SKY_apputil_PrintProgramStatus() -SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus +def SKY_cli_ConfigFromContext(p0): + return _skycoin.SKY_cli_ConfigFromContext(p0) +SKY_cli_ConfigFromContext = _skycoin.SKY_cli_ConfigFromContext -def SKY_fee_VerifyTransactionFee(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1, p2) -SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee +def SKY_cli_PasswordFromBytes_Password(): + return _skycoin.SKY_cli_PasswordFromBytes_Password() +SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password -def SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2) -SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours +def SKY_cli_PasswordFromTerm_Password(): + return _skycoin.SKY_cli_PasswordFromTerm_Password() +SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password -def SKY_fee_RequiredFee(p0, p1): - return _skycoin.SKY_fee_RequiredFee(p0, p1) -SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee +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_fee_RemainingHours(p0, p1): - return _skycoin.SKY_fee_RemainingHours(p0, p1) -SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours +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_fee_TransactionFee(*args): - return _skycoin.SKY_fee_TransactionFee(*args) -SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee +def SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5): + return _skycoin.SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5) +SKY_cli_CreateRawTx = _skycoin.SKY_cli_CreateRawTx + +def SKY_cli_NewTransaction(p0, p1, p2): + return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) +SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction def SKY_cli_GenerateAddressesInFile(p0, p1, p2): return _skycoin.SKY_cli_GenerateAddressesInFile(p0, p1, p2) @@ -1145,17 +1281,37 @@ def SKY_cli_AddressesToStrings(p0): return _skycoin.SKY_cli_AddressesToStrings(p0) SKY_cli_AddressesToStrings = _skycoin.SKY_cli_AddressesToStrings -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_GetWalletOutputsFromFile(p0, p1, p2): + return _skycoin.SKY_cli_GetWalletOutputsFromFile(p0, p1, p2) +SKY_cli_GetWalletOutputsFromFile = _skycoin.SKY_cli_GetWalletOutputsFromFile -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_GetWalletOutputs(p0, p2): + return _skycoin.SKY_cli_GetWalletOutputs(p0, p2) +SKY_cli_GetWalletOutputs = _skycoin.SKY_cli_GetWalletOutputs -def SKY_certutil_NewTLSCertPair(p0, p1, p2): - return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) -SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair +def SKY_cli_App_Run(p0, p1): + return _skycoin.SKY_cli_App_Run(p0, p1) +SKY_cli_App_Run = _skycoin.SKY_cli_App_Run + +def SKY_cli_Config_GetCoin(p0): + return _skycoin.SKY_cli_Config_GetCoin(p0) +SKY_cli_Config_GetCoin = _skycoin.SKY_cli_Config_GetCoin + +def SKY_cli_Config_GetRPCAddress(p0): + return _skycoin.SKY_cli_Config_GetRPCAddress(p0) +SKY_cli_Config_GetRPCAddress = _skycoin.SKY_cli_Config_GetRPCAddress + +def SKY_cli_RPCClientFromApp(p0): + return _skycoin.SKY_cli_RPCClientFromApp(p0) +SKY_cli_RPCClientFromApp = _skycoin.SKY_cli_RPCClientFromApp + +def SKY_cli_Getenv(p0): + return _skycoin.SKY_cli_Getenv(p0) +SKY_cli_Getenv = _skycoin.SKY_cli_Getenv + +def SKY_cli_Setenv(p0, p1): + return _skycoin.SKY_cli_Setenv(p0, p1) +SKY_cli_Setenv = _skycoin.SKY_cli_Setenv def SKY_coin_NewBlock(p0, p1, p2, p3, p4): return _skycoin.SKY_coin_NewBlock(p0, p1, p2, p3, p4) @@ -1249,138 +1405,6 @@ def SKY_coin_NewEmptyBlock(p0): return _skycoin.SKY_coin_NewEmptyBlock(p0) SKY_coin_NewEmptyBlock = _skycoin.SKY_coin_NewEmptyBlock -def SKY_wallet_NewError(p0): - return _skycoin.SKY_wallet_NewError(p0) -SKY_wallet_NewError = _skycoin.SKY_wallet_NewError - -def SKY_wallet_NewWallet(p0, p1): - return _skycoin.SKY_wallet_NewWallet(p0, p1) -SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet - -def SKY_wallet_Wallet_Lock(p0, p1, p2): - return _skycoin.SKY_wallet_Wallet_Lock(p0, p1, p2) -SKY_wallet_Wallet_Lock = _skycoin.SKY_wallet_Wallet_Lock - -def SKY_wallet_Wallet_Unlock(p0, p1): - return _skycoin.SKY_wallet_Wallet_Unlock(p0, p1) -SKY_wallet_Wallet_Unlock = _skycoin.SKY_wallet_Wallet_Unlock - -def SKY_wallet_Load(p0): - return _skycoin.SKY_wallet_Load(p0) -SKY_wallet_Load = _skycoin.SKY_wallet_Load - -def SKY_wallet_Wallet_Save(p0, p1): - return _skycoin.SKY_wallet_Wallet_Save(p0, p1) -SKY_wallet_Wallet_Save = _skycoin.SKY_wallet_Wallet_Save - -def SKY_wallet_Wallet_Validate(p0): - return _skycoin.SKY_wallet_Wallet_Validate(p0) -SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate - -def SKY_wallet_Wallet_Type(p0): - return _skycoin.SKY_wallet_Wallet_Type(p0) -SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type - -def SKY_wallet_Wallet_Version(p0): - return _skycoin.SKY_wallet_Wallet_Version(p0) -SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version - -def SKY_wallet_Wallet_Filename(p0): - return _skycoin.SKY_wallet_Wallet_Filename(p0) -SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename - -def SKY_wallet_Wallet_Label(p0): - return _skycoin.SKY_wallet_Wallet_Label(p0) -SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label - -def SKY_wallet_Wallet_IsEncrypted(p0): - return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) -SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted - -def SKY_wallet_Wallet_GenerateAddresses(p0, p1): - return _skycoin.SKY_wallet_Wallet_GenerateAddresses(p0, p1) -SKY_wallet_Wallet_GenerateAddresses = _skycoin.SKY_wallet_Wallet_GenerateAddresses - -def SKY_wallet_Wallet_GetAddresses(p0): - return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) -SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses - -def SKY_wallet_Wallet_GetEntry(p0, p1, p2): - return _skycoin.SKY_wallet_Wallet_GetEntry(p0, p1, p2) -SKY_wallet_Wallet_GetEntry = _skycoin.SKY_wallet_Wallet_GetEntry - -def SKY_wallet_Wallet_AddEntry(p0, p1): - return _skycoin.SKY_wallet_Wallet_AddEntry(p0, p1) -SKY_wallet_Wallet_AddEntry = _skycoin.SKY_wallet_Wallet_AddEntry - -def SKY_wallet_DistributeSpendHours(p0, p1, p2): - return _skycoin.SKY_wallet_DistributeSpendHours(p0, p1, p2) -SKY_wallet_DistributeSpendHours = _skycoin.SKY_wallet_DistributeSpendHours - -def SKY_wallet_DistributeCoinHoursProportional(p0, p1): - return _skycoin.SKY_wallet_DistributeCoinHoursProportional(p0, p1) -SKY_wallet_DistributeCoinHoursProportional = _skycoin.SKY_wallet_DistributeCoinHoursProportional - -def SKY_wallet_NewUxBalances(p0): - return _skycoin.SKY_wallet_NewUxBalances(p0) -SKY_wallet_NewUxBalances = _skycoin.SKY_wallet_NewUxBalances - -def SKY_wallet_NewUxBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewUxBalance(p0, p1, p2) -SKY_wallet_NewUxBalance = _skycoin.SKY_wallet_NewUxBalance - -def SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts - -def SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts - -def SKY_cli_GetWalletOutputsFromFile(p0, p1, p2): - return _skycoin.SKY_cli_GetWalletOutputsFromFile(p0, p1, p2) -SKY_cli_GetWalletOutputsFromFile = _skycoin.SKY_cli_GetWalletOutputsFromFile - -def SKY_cli_GetWalletOutputs(p0, p2): - return _skycoin.SKY_cli_GetWalletOutputs(p0, p2) -SKY_cli_GetWalletOutputs = _skycoin.SKY_cli_GetWalletOutputs - -def SKY_cipher_DecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) -SKY_cipher_DecodeBase58Address = _skycoin.SKY_cipher_DecodeBase58Address - -def SKY_cipher_AddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_AddressFromBytes(p0, p1) -SKY_cipher_AddressFromBytes = _skycoin.SKY_cipher_AddressFromBytes - -def SKY_cipher_AddressFromPubKey(p0, p1): - return _skycoin.SKY_cipher_AddressFromPubKey(p0, p1) -SKY_cipher_AddressFromPubKey = _skycoin.SKY_cipher_AddressFromPubKey - -def SKY_cipher_AddressFromSecKey(p0, p1): - return _skycoin.SKY_cipher_AddressFromSecKey(p0, p1) -SKY_cipher_AddressFromSecKey = _skycoin.SKY_cipher_AddressFromSecKey - -def SKY_cipher_Address_Null(p0): - return _skycoin.SKY_cipher_Address_Null(p0) -SKY_cipher_Address_Null = _skycoin.SKY_cipher_Address_Null - -def SKY_cipher_Address_Bytes(p0): - return _skycoin.SKY_cipher_Address_Bytes(p0) -SKY_cipher_Address_Bytes = _skycoin.SKY_cipher_Address_Bytes - -def SKY_cipher_Address_Verify(p0, p1): - return _skycoin.SKY_cipher_Address_Verify(p0, p1) -SKY_cipher_Address_Verify = _skycoin.SKY_cipher_Address_Verify - -def SKY_cipher_Address_String(p0): - return _skycoin.SKY_cipher_Address_String(p0) -SKY_cipher_Address_String = _skycoin.SKY_cipher_Address_String - -def SKY_cipher_Address_Checksum(p0, p1): - return _skycoin.SKY_cipher_Address_Checksum(p0, p1) -SKY_cipher_Address_Checksum = _skycoin.SKY_cipher_Address_Checksum - def SKY_coin_AddUint64(p0, p1): return _skycoin.SKY_coin_AddUint64(p0, p1) SKY_coin_AddUint64 = _skycoin.SKY_coin_AddUint64 @@ -1397,721 +1421,697 @@ def SKY_coin_IntToUint32(p0): return _skycoin.SKY_coin_IntToUint32(p0) SKY_coin_IntToUint32 = _skycoin.SKY_coin_IntToUint32 -def SKY_map_Get(p1): - return _skycoin.SKY_map_Get(p1) -SKY_map_Get = _skycoin.SKY_map_Get - -def SKY_map_HasKey(p1): - return _skycoin.SKY_map_HasKey(p1) -SKY_map_HasKey = _skycoin.SKY_map_HasKey - -def SKY_map_Close(): - return _skycoin.SKY_map_Close() -SKY_map_Close = _skycoin.SKY_map_Close - -def SKY_cli_CreateRawTxFromWallet(p0, p1, p2, p3, p4): - return _skycoin.SKY_cli_CreateRawTxFromWallet(p0, p1, p2, p3, p4) -SKY_cli_CreateRawTxFromWallet = _skycoin.SKY_cli_CreateRawTxFromWallet - -def SKY_cli_CreateRawTxFromAddress(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_cli_CreateRawTxFromAddress(p0, p1, p2, p3, p4, p5) -SKY_cli_CreateRawTxFromAddress = _skycoin.SKY_cli_CreateRawTxFromAddress - -def SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5) -SKY_cli_CreateRawTx = _skycoin.SKY_cli_CreateRawTx - -def SKY_cli_NewTransaction(p0, p1, p2): - return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) -SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction - -def SKY_file_InitDataDir(p0): - return _skycoin.SKY_file_InitDataDir(p0) -SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir - -def SKY_file_UserHome(): - return _skycoin.SKY_file_UserHome() -SKY_file_UserHome = _skycoin.SKY_file_UserHome - -def SKY_file_ResolveResourceDirectory(p0): - return _skycoin.SKY_file_ResolveResourceDirectory(p0) -SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory - -def SKY_file_DetermineResourcePath(p0, p1, p2): - return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) -SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath +def SKY_coin_UxOut_Hash(p0, p1): + return _skycoin.SKY_coin_UxOut_Hash(p0, p1) +SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash -def SKY_api_NewWalletResponse(p0): - return _skycoin.SKY_api_NewWalletResponse(p0) -SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse +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_wallet_CryptoTypeFromString(p0): - return _skycoin.SKY_wallet_CryptoTypeFromString(p0) -SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString +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_wallet_Entry_Verify(p0): - return _skycoin.SKY_wallet_Entry_Verify(p0) -SKY_wallet_Entry_Verify = _skycoin.SKY_wallet_Entry_Verify +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_wallet_Entry_VerifyPublic(p0): - return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) -SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic +def SKY_coin_UxArray_Hashes(*args): + return _skycoin.SKY_coin_UxArray_Hashes(*args) +SKY_coin_UxArray_Hashes = _skycoin.SKY_coin_UxArray_Hashes -def SKY_bip39_NewDefaultMnemomic(): - return _skycoin.SKY_bip39_NewDefaultMnemomic() -SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic +def SKY_coin_UxArray_HasDupes(*args): + return _skycoin.SKY_coin_UxArray_HasDupes(*args) +SKY_coin_UxArray_HasDupes = _skycoin.SKY_coin_UxArray_HasDupes -def SKY_bip39_NewEntropy(p0): - return _skycoin.SKY_bip39_NewEntropy(p0) -SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy +def SKY_coin_UxArray_Sort(): + return _skycoin.SKY_coin_UxArray_Sort() +SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort -def SKY_bip39_NewMnemonic(p0): - return _skycoin.SKY_bip39_NewMnemonic(p0) -SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic +def SKY_coin_UxArray_Len(): + return _skycoin.SKY_coin_UxArray_Len() +SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len -def SKY_bip39_MnemonicToByteArray(p0): - return _skycoin.SKY_bip39_MnemonicToByteArray(p0) -SKY_bip39_MnemonicToByteArray = _skycoin.SKY_bip39_MnemonicToByteArray +def SKY_coin_UxArray_Less(*args): + return _skycoin.SKY_coin_UxArray_Less(*args) +SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less -def SKY_bip39_IsMnemonicValid(p0): - return _skycoin.SKY_bip39_IsMnemonicValid(p0) -SKY_bip39_IsMnemonicValid = _skycoin.SKY_bip39_IsMnemonicValid +def SKY_coin_UxArray_Swap(*args): + return _skycoin.SKY_coin_UxArray_Swap(*args) +SKY_coin_UxArray_Swap = _skycoin.SKY_coin_UxArray_Swap -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_coin_UxArray_Coins(*args): + return _skycoin.SKY_coin_UxArray_Coins(*args) +SKY_coin_UxArray_Coins = _skycoin.SKY_coin_UxArray_Coins -def SKY_httphelper_Address_MarshalJSON(p0): - return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) -SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON +def SKY_coin_UxArray_CoinHours(*args): + return _skycoin.SKY_coin_UxArray_CoinHours(*args) +SKY_coin_UxArray_CoinHours = _skycoin.SKY_coin_UxArray_CoinHours -def SKY_httphelper_Coins_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) -SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON +def SKY_coin_UxArray_Sub(*args): + return _skycoin.SKY_coin_UxArray_Sub(*args) +SKY_coin_UxArray_Sub = _skycoin.SKY_coin_UxArray_Sub -def SKY_httphelper_Coins_MarshalJSON(): - return _skycoin.SKY_httphelper_Coins_MarshalJSON() -SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON +def SKY_coin_UxArray_Add(*args): + return _skycoin.SKY_coin_UxArray_Add(*args) +SKY_coin_UxArray_Add = _skycoin.SKY_coin_UxArray_Add -def SKY_httphelper_Coins_Value(): - return _skycoin.SKY_httphelper_Coins_Value() -SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value +def SKY_coin_NewAddressUxOuts(*args): + return _skycoin.SKY_coin_NewAddressUxOuts(*args) +SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts -def SKY_httphelper_Hours_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) -SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON +def SKY_coin_AddressUxOuts_Keys(*args): + return _skycoin.SKY_coin_AddressUxOuts_Keys(*args) +SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys -def SKY_httphelper_Hours_MarshalJSON(): - return _skycoin.SKY_httphelper_Hours_MarshalJSON() -SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON +def SKY_coin_AddressUxOuts_Flatten(*args): + return _skycoin.SKY_coin_AddressUxOuts_Flatten(*args) +SKY_coin_AddressUxOuts_Flatten = _skycoin.SKY_coin_AddressUxOuts_Flatten -def SKY_httphelper_Hours_Value(): - return _skycoin.SKY_httphelper_Hours_Value() -SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value +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_webrpc_NewClient(p0): - return _skycoin.SKY_webrpc_NewClient(p0) -SKY_webrpc_NewClient = _skycoin.SKY_webrpc_NewClient +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_webrpc_Client_CSRF(p0): - return _skycoin.SKY_webrpc_Client_CSRF(p0) -SKY_webrpc_Client_CSRF = _skycoin.SKY_webrpc_Client_CSRF +def SKY_coin_AddressUxOuts_Get(*args): + return _skycoin.SKY_coin_AddressUxOuts_Get(*args) +SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get -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_AddressUxOuts_HasKey(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_HasKey(p0, p1) +SKY_coin_AddressUxOuts_HasKey = _skycoin.SKY_coin_AddressUxOuts_HasKey -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_AddressUxOuts_GetOutputLength(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_GetOutputLength(p0, p1) +SKY_coin_AddressUxOuts_GetOutputLength = _skycoin.SKY_coin_AddressUxOuts_GetOutputLength -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_AddressUxOuts_Length(p0): + return _skycoin.SKY_coin_AddressUxOuts_Length(p0) +SKY_coin_AddressUxOuts_Length = _skycoin.SKY_coin_AddressUxOuts_Length -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_AddressUxOuts_Set(*args): + return _skycoin.SKY_coin_AddressUxOuts_Set(*args) +SKY_coin_AddressUxOuts_Set = _skycoin.SKY_coin_AddressUxOuts_Set -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_Create_Transaction(): + return _skycoin.SKY_coin_Create_Transaction() +SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction -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_Transaction_Copy(p0): + return _skycoin.SKY_coin_Transaction_Copy(p0) +SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy -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_GetTransactionObject(p0): + return _skycoin.SKY_coin_GetTransactionObject(p0) +SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject -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_ResetInputs(p0, p1): + return _skycoin.SKY_coin_Transaction_ResetInputs(p0, p1) +SKY_coin_Transaction_ResetInputs = _skycoin.SKY_coin_Transaction_ResetInputs -def SKY_cli_App_Run(p0, p1): - return _skycoin.SKY_cli_App_Run(p0, p1) -SKY_cli_App_Run = _skycoin.SKY_cli_App_Run +def SKY_coin_Transaction_GetInputsCount(p0): + return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) +SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount -def SKY_cli_Config_GetCoin(p0): - return _skycoin.SKY_cli_Config_GetCoin(p0) -SKY_cli_Config_GetCoin = _skycoin.SKY_cli_Config_GetCoin +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_cli_Config_GetRPCAddress(p0): - return _skycoin.SKY_cli_Config_GetRPCAddress(p0) -SKY_cli_Config_GetRPCAddress = _skycoin.SKY_cli_Config_GetRPCAddress +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_cli_RPCClientFromApp(p0): - return _skycoin.SKY_cli_RPCClientFromApp(p0) -SKY_cli_RPCClientFromApp = _skycoin.SKY_cli_RPCClientFromApp +def SKY_coin_Transaction_GetOutputsCount(p0): + return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) +SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount -def SKY_cli_Getenv(p0): - return _skycoin.SKY_cli_Getenv(p0) -SKY_cli_Getenv = _skycoin.SKY_cli_Getenv +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_cli_Setenv(p0, p1): - return _skycoin.SKY_cli_Setenv(p0, p1) -SKY_cli_Setenv = _skycoin.SKY_cli_Setenv +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_wallet_NewBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) -SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance +def SKY_coin_Transaction_GetSignaturesCount(p0): + return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) +SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount -def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) -SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut +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_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_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_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_coin_Transaction_PushSignature(p0, p1): + return _skycoin.SKY_coin_Transaction_PushSignature(p0, p1) +SKY_coin_Transaction_PushSignature = _skycoin.SKY_coin_Transaction_PushSignature -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_coin_Transaction_ResetOutputs(p0, p1): + return _skycoin.SKY_coin_Transaction_ResetOutputs(p0, p1) +SKY_coin_Transaction_ResetOutputs = _skycoin.SKY_coin_Transaction_ResetOutputs -def SKY_wallet_Balance_IsZero(p0): - return _skycoin.SKY_wallet_Balance_IsZero(p0) -SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero +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_droplet_FromString(p0): - return _skycoin.SKY_droplet_FromString(p0) -SKY_droplet_FromString = _skycoin.SKY_droplet_FromString +def SKY_coin_Transaction_Verify(p0): + return _skycoin.SKY_coin_Transaction_Verify(p0) +SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify -def SKY_droplet_ToString(p0): - return _skycoin.SKY_droplet_ToString(p0) -SKY_droplet_ToString = _skycoin.SKY_droplet_ToString +def SKY_coin_Transaction_VerifyInput(*args): + return _skycoin.SKY_coin_Transaction_VerifyInput(*args) +SKY_coin_Transaction_VerifyInput = _skycoin.SKY_coin_Transaction_VerifyInput -def SKY_wallet_NewReadableEntry(p0, p1): - return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) -SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry +def SKY_coin_Transaction_PushInput(p0, p1): + return _skycoin.SKY_coin_Transaction_PushInput(p0, p1) +SKY_coin_Transaction_PushInput = _skycoin.SKY_coin_Transaction_PushInput + +def SKY_coin_TransactionOutput_UxID(p0, p1, p2): + return _skycoin.SKY_coin_TransactionOutput_UxID(p0, p1, p2) +SKY_coin_TransactionOutput_UxID = _skycoin.SKY_coin_TransactionOutput_UxID -def SKY_wallet_LoadReadableWallet(p0): - return _skycoin.SKY_wallet_LoadReadableWallet(p0) -SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet +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_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_Transaction_SignInputs(*args): + return _skycoin.SKY_coin_Transaction_SignInputs(*args) +SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs -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_Transaction_Size(p0): + return _skycoin.SKY_coin_Transaction_Size(p0) +SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size -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_Transaction_Hash(p0, p1): + return _skycoin.SKY_coin_Transaction_Hash(p0, p1) +SKY_coin_Transaction_Hash = _skycoin.SKY_coin_Transaction_Hash -def SKY_cli_LoadConfig(): - return _skycoin.SKY_cli_LoadConfig() -SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig +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_Config_FullWalletPath(p0): - return _skycoin.SKY_cli_Config_FullWalletPath(p0) -SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath +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_Config_FullDBPath(p0): - return _skycoin.SKY_cli_Config_FullDBPath(p0) -SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath +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_NewApp(p0): - return _skycoin.SKY_cli_NewApp(p0) -SKY_cli_NewApp = _skycoin.SKY_cli_NewApp +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_RPCClientFromContext(p0): - return _skycoin.SKY_cli_RPCClientFromContext(p0) -SKY_cli_RPCClientFromContext = _skycoin.SKY_cli_RPCClientFromContext +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_ConfigFromContext(p0): - return _skycoin.SKY_cli_ConfigFromContext(p0) -SKY_cli_ConfigFromContext = _skycoin.SKY_cli_ConfigFromContext +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_PasswordFromBytes_Password(): - return _skycoin.SKY_cli_PasswordFromBytes_Password() -SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password +def SKY_coin_TransactionDeserialize(p0): + return _skycoin.SKY_coin_TransactionDeserialize(p0) +SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize -def SKY_cli_PasswordFromTerm_Password(): - return _skycoin.SKY_cli_PasswordFromTerm_Password() -SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password +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_UxOut_Hash(p0, p1): - return _skycoin.SKY_coin_UxOut_Hash(p0, p1) -SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash +def SKY_coin_Create_Transactions(): + return _skycoin.SKY_coin_Create_Transactions() +SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions -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_GetTransactionsObject(p0, p1): + return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) +SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject -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_Transactions_Length(p0): + return _skycoin.SKY_coin_Transactions_Length(p0) +SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length -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_Transactions_Add(p0, p1): + return _skycoin.SKY_coin_Transactions_Add(p0, p1) +SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add -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_Transactions_Fees(p0, p1): + return _skycoin.SKY_coin_Transactions_Fees(p0, p1) +SKY_coin_Transactions_Fees = _skycoin.SKY_coin_Transactions_Fees -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_Transactions_GetAt(p0, p1): + return _skycoin.SKY_coin_Transactions_GetAt(p0, p1) +SKY_coin_Transactions_GetAt = _skycoin.SKY_coin_Transactions_GetAt -def SKY_coin_UxArray_Sort(): - return _skycoin.SKY_coin_UxArray_Sort() -SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort +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_UxArray_Len(): - return _skycoin.SKY_coin_UxArray_Len() -SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len +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_UxArray_Less(*args): - return _skycoin.SKY_coin_UxArray_Less(*args) -SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less +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_UxArray_Swap(*args): - return _skycoin.SKY_coin_UxArray_Swap(*args) -SKY_coin_UxArray_Swap = _skycoin.SKY_coin_UxArray_Swap +def SKY_coin_SortTransactions(p0, p1): + return _skycoin.SKY_coin_SortTransactions(p0, p1) +SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions -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_NewSortableTransactions(p0, p1, p2): + return _skycoin.SKY_coin_NewSortableTransactions(p0, p1, p2) +SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions -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_SortableTransactions_Sort(p0): + return _skycoin.SKY_coin_SortableTransactions_Sort(p0) +SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort -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_SortableTransactions_Len(p0): + return _skycoin.SKY_coin_SortableTransactions_Len(p0) +SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len -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_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_NewAddressUxOuts(*args): - return _skycoin.SKY_coin_NewAddressUxOuts(*args) -SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts +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_AddressUxOuts_Keys(*args): - return _skycoin.SKY_coin_AddressUxOuts_Keys(*args) -SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys +def SKY_coin_VerifyTransactionCoinsSpending(*args): + return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) +SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending -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_VerifyTransactionHoursSpending(*args): + return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) +SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending -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_handle_close(p0): + return _skycoin.SKY_handle_close(p0) +SKY_handle_close = _skycoin.SKY_handle_close -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_handle_copy(p0): + return _skycoin.SKY_handle_copy(p0) +SKY_handle_copy = _skycoin.SKY_handle_copy -def SKY_coin_AddressUxOuts_Get(*args): - return _skycoin.SKY_coin_AddressUxOuts_Get(*args) -SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get +def SKY_JsonEncode_Handle(p0): + return _skycoin.SKY_JsonEncode_Handle(p0) +SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle -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_Handle_Progress_GetCurrent(p0): + return _skycoin.SKY_Handle_Progress_GetCurrent(p0) +SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent -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_Handle_Block_GetHeadSeq(p0): + return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) +SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq -def SKY_coin_AddressUxOuts_Length(p0): - return _skycoin.SKY_coin_AddressUxOuts_Length(p0) -SKY_coin_AddressUxOuts_Length = _skycoin.SKY_coin_AddressUxOuts_Length +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_AddressUxOuts_Set(*args): - return _skycoin.SKY_coin_AddressUxOuts_Set(*args) -SKY_coin_AddressUxOuts_Set = _skycoin.SKY_coin_AddressUxOuts_Set +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_NewClient(p0): - return _skycoin.SKY_api_NewClient(p0) -SKY_api_NewClient = _skycoin.SKY_api_NewClient +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_CSRF(p0): - return _skycoin.SKY_api_Client_CSRF(p0) -SKY_api_Client_CSRF = _skycoin.SKY_api_Client_CSRF +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_Version(p0): - return _skycoin.SKY_api_Client_Version(p0) -SKY_api_Client_Version = _skycoin.SKY_api_Client_Version +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_Outputs(p0): - return _skycoin.SKY_api_Client_Outputs(p0) -SKY_api_Client_Outputs = _skycoin.SKY_api_Client_Outputs +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_OutputsForAddresses(p0, p1): - return _skycoin.SKY_api_Client_OutputsForAddresses(p0, p1) -SKY_api_Client_OutputsForAddresses = _skycoin.SKY_api_Client_OutputsForAddresses +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_OutputsForHashes(p0, p1): - return _skycoin.SKY_api_Client_OutputsForHashes(p0, p1) -SKY_api_Client_OutputsForHashes = _skycoin.SKY_api_Client_OutputsForHashes +def SKY_Handle_Strings_GetAt(p0, p1): + return _skycoin.SKY_Handle_Strings_GetAt(p0, p1) +SKY_Handle_Strings_GetAt = _skycoin.SKY_Handle_Strings_GetAt + +def SKY_api_Handle_Client_GetWalletDir(p0): + return _skycoin.SKY_api_Handle_Client_GetWalletDir(p0) +SKY_api_Handle_Client_GetWalletDir = _skycoin.SKY_api_Handle_Client_GetWalletDir -def SKY_api_Client_CoinSupply(p0): - return _skycoin.SKY_api_Client_CoinSupply(p0) -SKY_api_Client_CoinSupply = _skycoin.SKY_api_Client_CoinSupply +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_BlockByHash(p0, p1): - return _skycoin.SKY_api_Client_BlockByHash(p0, p1) -SKY_api_Client_BlockByHash = _skycoin.SKY_api_Client_BlockByHash +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_BlockBySeq(p0, p1): - return _skycoin.SKY_api_Client_BlockBySeq(p0, p1) -SKY_api_Client_BlockBySeq = _skycoin.SKY_api_Client_BlockBySeq +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_Blocks(p0, p1): - return _skycoin.SKY_api_Client_Blocks(p0, p1) -SKY_api_Client_Blocks = _skycoin.SKY_api_Client_Blocks +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_LastBlocks(p0, p1): - return _skycoin.SKY_api_Client_LastBlocks(p0, p1) -SKY_api_Client_LastBlocks = _skycoin.SKY_api_Client_LastBlocks +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_BlockchainMetadata(p0): - return _skycoin.SKY_api_Client_BlockchainMetadata(p0) -SKY_api_Client_BlockchainMetadata = _skycoin.SKY_api_Client_BlockchainMetadata +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_BlockchainProgress(p0): - return _skycoin.SKY_api_Client_BlockchainProgress(p0) -SKY_api_Client_BlockchainProgress = _skycoin.SKY_api_Client_BlockchainProgress +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_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_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_UxOut(p0, p1): - return _skycoin.SKY_api_Client_UxOut(p0, p1) -SKY_api_Client_UxOut = _skycoin.SKY_api_Client_UxOut +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_AddressUxOuts(p0, p1): - return _skycoin.SKY_api_Client_AddressUxOuts(p0, p1) -SKY_api_Client_AddressUxOuts = _skycoin.SKY_api_Client_AddressUxOuts +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_Wallet(p0, p1): - return _skycoin.SKY_api_Client_Wallet(p0, p1) -SKY_api_Client_Wallet = _skycoin.SKY_api_Client_Wallet +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_Wallets(p0): - return _skycoin.SKY_api_Client_Wallets(p0) -SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets +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_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_GetWalletFolderAddress(p0): + return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) +SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress -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_GetWalletSeed(p0): + return _skycoin.SKY_api_Handle_GetWalletSeed(p0) +SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed -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_GetWalletLastSeed(p0): + return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) +SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed -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_GetBuildInfoData(p0): + return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) +SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData -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_map_Get(p1): + return _skycoin.SKY_map_Get(p1) +SKY_map_Get = _skycoin.SKY_map_Get -def SKY_api_Client_CreateTransaction(p0): - return _skycoin.SKY_api_Client_CreateTransaction(p0) -SKY_api_Client_CreateTransaction = _skycoin.SKY_api_Client_CreateTransaction +def SKY_map_HasKey(p1): + return _skycoin.SKY_map_HasKey(p1) +SKY_map_HasKey = _skycoin.SKY_map_HasKey -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_map_Close(): + return _skycoin.SKY_map_Close() +SKY_map_Close = _skycoin.SKY_map_Close -def SKY_api_Client_WalletFolderName(p0): - return _skycoin.SKY_api_Client_WalletFolderName(p0) -SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName +def SKY_testutil_MakeAddress(p0): + return _skycoin.SKY_testutil_MakeAddress(p0) +SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress -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_apputil_CatchInterruptPanic(): + return _skycoin.SKY_apputil_CatchInterruptPanic() +SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic -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_apputil_CatchDebug(): + return _skycoin.SKY_apputil_CatchDebug() +SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug -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_apputil_PrintProgramStatus(): + return _skycoin.SKY_apputil_PrintProgramStatus() +SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus -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_certutil_NewTLSCertPair(p0, p1, p2): + return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) +SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair -def SKY_api_Client_NetworkDefaultPeers(p0): - return _skycoin.SKY_api_Client_NetworkDefaultPeers(p0) -SKY_api_Client_NetworkDefaultPeers = _skycoin.SKY_api_Client_NetworkDefaultPeers +def SKY_droplet_FromString(p0): + return _skycoin.SKY_droplet_FromString(p0) +SKY_droplet_FromString = _skycoin.SKY_droplet_FromString -def SKY_api_Client_NetworkTrustedPeers(p0): - return _skycoin.SKY_api_Client_NetworkTrustedPeers(p0) -SKY_api_Client_NetworkTrustedPeers = _skycoin.SKY_api_Client_NetworkTrustedPeers +def SKY_droplet_ToString(p0): + return _skycoin.SKY_droplet_ToString(p0) +SKY_droplet_ToString = _skycoin.SKY_droplet_ToString -def SKY_api_Client_NetworkExchangedPeers(p0): - return _skycoin.SKY_api_Client_NetworkExchangedPeers(p0) -SKY_api_Client_NetworkExchangedPeers = _skycoin.SKY_api_Client_NetworkExchangedPeers +def SKY_fee_VerifyTransactionFee(p0, p1, p2): + return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1, p2) +SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee -def SKY_api_Client_PendingTransactions(p0): - return _skycoin.SKY_api_Client_PendingTransactions(p0) -SKY_api_Client_PendingTransactions = _skycoin.SKY_api_Client_PendingTransactions +def SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2): + return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2) +SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours -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_fee_RequiredFee(p0, p1): + return _skycoin.SKY_fee_RequiredFee(p0, p1) +SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee -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_fee_RemainingHours(p0, p1): + return _skycoin.SKY_fee_RemainingHours(p0, p1) +SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours -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_fee_TransactionFee(*args): + return _skycoin.SKY_fee_TransactionFee(*args) +SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee -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_file_InitDataDir(p0): + return _skycoin.SKY_file_InitDataDir(p0) +SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir -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_file_UserHome(): + return _skycoin.SKY_file_UserHome() +SKY_file_UserHome = _skycoin.SKY_file_UserHome -def SKY_api_Client_ResendUnconfirmedTransactions(p0): - return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) -SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions +def SKY_file_ResolveResourceDirectory(p0): + return _skycoin.SKY_file_ResolveResourceDirectory(p0) +SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory -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_file_DetermineResourcePath(p0, p1, p2): + return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) +SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath -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_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_Client_Richlist(p0, p1): - return _skycoin.SKY_api_Client_Richlist(p0, p1) -SKY_api_Client_Richlist = _skycoin.SKY_api_Client_Richlist +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_Client_AddressCount(p0): - return _skycoin.SKY_api_Client_AddressCount(p0) -SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount +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_Client_UnloadWallet(p0, p1): - return _skycoin.SKY_api_Client_UnloadWallet(p0, p1) -SKY_api_Client_UnloadWallet = _skycoin.SKY_api_Client_UnloadWallet +def SKY_httphelper_Coins_MarshalJSON(): + return _skycoin.SKY_httphelper_Coins_MarshalJSON() +SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON -def SKY_api_Client_Health(p0): - return _skycoin.SKY_api_Client_Health(p0) -SKY_api_Client_Health = _skycoin.SKY_api_Client_Health +def SKY_httphelper_Coins_Value(): + return _skycoin.SKY_httphelper_Coins_Value() +SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value -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_httphelper_Hours_UnmarshalJSON(p1): + return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) +SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON -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_httphelper_Hours_MarshalJSON(): + return _skycoin.SKY_httphelper_Hours_MarshalJSON() +SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON + +def SKY_httphelper_Hours_Value(): + return _skycoin.SKY_httphelper_Hours_Value() +SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value -def SKY_cipher_Ripemd160_Set(p0, p1): - return _skycoin.SKY_cipher_Ripemd160_Set(p0, p1) -SKY_cipher_Ripemd160_Set = _skycoin.SKY_cipher_Ripemd160_Set +def SKY_iputil_LocalhostIP(): + return _skycoin.SKY_iputil_LocalhostIP() +SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP -def SKY_cipher_HashRipemd160(p0, p1): - return _skycoin.SKY_cipher_HashRipemd160(p0, p1) -SKY_cipher_HashRipemd160 = _skycoin.SKY_cipher_HashRipemd160 +def SKY_iputil_IsLocalhost(p0): + return _skycoin.SKY_iputil_IsLocalhost(p0) +SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost -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_iputil_SplitAddr(p0): + return _skycoin.SKY_iputil_SplitAddr(p0) +SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr -def SKY_cipher_SHA256_Hex(p0): - return _skycoin.SKY_cipher_SHA256_Hex(p0) -SKY_cipher_SHA256_Hex = _skycoin.SKY_cipher_SHA256_Hex +def SKY_logging_EnableColors(): + return _skycoin.SKY_logging_EnableColors() +SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors -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_logging_DisableColors(): + return _skycoin.SKY_logging_DisableColors() +SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors -def SKY_cipher_SumSHA256(p0, p1): - return _skycoin.SKY_cipher_SumSHA256(p0, p1) -SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 +def SKY_logging_Disable(): + return _skycoin.SKY_logging_Disable() +SKY_logging_Disable = _skycoin.SKY_logging_Disable -def SKY_cipher_SHA256FromHex(p0, p1): - return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) -SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex +def SKY_wallet_NewBalance(p0, p1, p2): + return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) +SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance -def SKY_cipher_DoubleSHA256(p0, p1): - return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) -SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 +def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): + return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) +SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut -def SKY_cipher_AddSHA256(p0, p1, p2): - return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) -SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 +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_cipher_Merkle(p0, p1): - return _skycoin.SKY_cipher_Merkle(p0, p1) -SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle +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_cipher_SHA256_Null(p0): - return _skycoin.SKY_cipher_SHA256_Null(p0) -SKY_cipher_SHA256_Null = _skycoin.SKY_cipher_SHA256_Null +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_JsonEncode_Handle(p0): - return _skycoin.SKY_JsonEncode_Handle(p0) -SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle +def SKY_wallet_Balance_IsZero(p0): + return _skycoin.SKY_wallet_Balance_IsZero(p0) +SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero -def SKY_Handle_Progress_GetCurrent(p0): - return _skycoin.SKY_Handle_Progress_GetCurrent(p0) -SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent +def SKY_wallet_CryptoTypeFromString(p0): + return _skycoin.SKY_wallet_CryptoTypeFromString(p0) +SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString -def SKY_Handle_Block_GetHeadSeq(p0): - return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) -SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq +def SKY_wallet_Entry_Verify(p0): + return _skycoin.SKY_wallet_Entry_Verify(p0) +SKY_wallet_Entry_Verify = _skycoin.SKY_wallet_Entry_Verify -def SKY_Handle_Block_GetHeadHash(p0): - return _skycoin.SKY_Handle_Block_GetHeadHash(p0) -SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash +def SKY_wallet_Entry_VerifyPublic(p0): + return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) +SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic -def SKY_Handle_Block_GetPreviousBlockHash(p0): - return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) -SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash +def SKY_wallet_NewReadableEntry(p0, p1): + return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) +SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry -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_wallet_LoadReadableWallet(p0): + return _skycoin.SKY_wallet_LoadReadableWallet(p0) +SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet -def SKY_Handle_Blocks_GetCount(p0): - return _skycoin.SKY_Handle_Blocks_GetCount(p0) -SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount +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_Handle_Connections_GetCount(p0): - return _skycoin.SKY_Handle_Connections_GetCount(p0) -SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount +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_Handle_Strings_GetCount(p0): - return _skycoin.SKY_Handle_Strings_GetCount(p0) -SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount +def SKY_wallet_ReadableWallet_Erase(p0): + return _skycoin.SKY_wallet_ReadableWallet_Erase(p0) +SKY_wallet_ReadableWallet_Erase = _skycoin.SKY_wallet_ReadableWallet_Erase -def SKY_Handle_Strings_Sort(p0): - return _skycoin.SKY_Handle_Strings_Sort(p0) -SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort +def SKY_wallet_NewError(p0): + return _skycoin.SKY_wallet_NewError(p0) +SKY_wallet_NewError = _skycoin.SKY_wallet_NewError -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_wallet_NewWallet(p0, p1): + return _skycoin.SKY_wallet_NewWallet(p0, p1) +SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet -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_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_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_wallet_Wallet_Unlock(p0, p1): + return _skycoin.SKY_wallet_Wallet_Unlock(p0, p1) +SKY_wallet_Wallet_Unlock = _skycoin.SKY_wallet_Wallet_Unlock -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_wallet_Load(p0): + return _skycoin.SKY_wallet_Load(p0) +SKY_wallet_Load = _skycoin.SKY_wallet_Load -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_wallet_Wallet_Save(p0, p1): + return _skycoin.SKY_wallet_Wallet_Save(p0, p1) +SKY_wallet_Wallet_Save = _skycoin.SKY_wallet_Wallet_Save -def SKY_api_Handle_GetWalletMeta(p0): - return _skycoin.SKY_api_Handle_GetWalletMeta(p0) -SKY_api_Handle_GetWalletMeta = _skycoin.SKY_api_Handle_GetWalletMeta +def SKY_wallet_Wallet_Validate(p0): + return _skycoin.SKY_wallet_Wallet_Validate(p0) +SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate -def SKY_api_Handle_GetWalletEntriesCount(p0): - return _skycoin.SKY_api_Handle_GetWalletEntriesCount(p0) -SKY_api_Handle_GetWalletEntriesCount = _skycoin.SKY_api_Handle_GetWalletEntriesCount +def SKY_wallet_Wallet_Type(p0): + return _skycoin.SKY_wallet_Wallet_Type(p0) +SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type -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_wallet_Wallet_Version(p0): + return _skycoin.SKY_wallet_Wallet_Version(p0) +SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version -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_wallet_Wallet_Filename(p0): + return _skycoin.SKY_wallet_Wallet_Filename(p0) +SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename -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_wallet_Wallet_Label(p0): + return _skycoin.SKY_wallet_Wallet_Label(p0) +SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label -def SKY_api_Handle_WalletResponseIsEncrypted(p0): - return _skycoin.SKY_api_Handle_WalletResponseIsEncrypted(p0) -SKY_api_Handle_WalletResponseIsEncrypted = _skycoin.SKY_api_Handle_WalletResponseIsEncrypted +def SKY_wallet_Wallet_IsEncrypted(p0): + return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) +SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted -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_Wallet_GenerateAddresses(p0, p1): + return _skycoin.SKY_wallet_Wallet_GenerateAddresses(p0, p1) +SKY_wallet_Wallet_GenerateAddresses = _skycoin.SKY_wallet_Wallet_GenerateAddresses -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_Wallet_GetAddresses(p0): + return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) +SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses -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_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_api_Handle_GetWalletFolderAddress(p0): - return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) -SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress +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_api_Handle_GetWalletSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletSeed(p0) -SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed +def SKY_wallet_DistributeSpendHours(p0, p1, p2): + return _skycoin.SKY_wallet_DistributeSpendHours(p0, p1, p2) +SKY_wallet_DistributeSpendHours = _skycoin.SKY_wallet_DistributeSpendHours -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_DistributeCoinHoursProportional(p0, p1): + return _skycoin.SKY_wallet_DistributeCoinHoursProportional(p0, p1) +SKY_wallet_DistributeCoinHoursProportional = _skycoin.SKY_wallet_DistributeCoinHoursProportional -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_NewUxBalances(p0): + return _skycoin.SKY_wallet_NewUxBalances(p0) +SKY_wallet_NewUxBalances = _skycoin.SKY_wallet_NewUxBalances -def SKY_logging_EnableColors(): - return _skycoin.SKY_logging_EnableColors() -SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors +def SKY_wallet_NewUxBalance(p0, p1, p2): + return _skycoin.SKY_wallet_NewUxBalance(p0, p1, p2) +SKY_wallet_NewUxBalance = _skycoin.SKY_wallet_NewUxBalance -def SKY_logging_DisableColors(): - return _skycoin.SKY_logging_DisableColors() -SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors +def SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2): + return _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2) +SKY_wallet_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts -def SKY_logging_Disable(): - return _skycoin.SKY_logging_Disable() -SKY_logging_Disable = _skycoin.SKY_logging_Disable +def SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2): + return _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2) +SKY_wallet_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts + +def SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6): + return _skycoin.SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6) +SKY_wallet_CreateOptionsHandle = _skycoin.SKY_wallet_CreateOptionsHandle class api__RichlistParams(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, api__RichlistParams, name, value) diff --git a/swig/pyskycoin_wrap.c b/swig/pyskycoin_wrap.c index 5fc6fe92..c2e98d4d 100644 --- a/swig/pyskycoin_wrap.c +++ b/swig/pyskycoin_wrap.c @@ -9066,33 +9066,49 @@ SWIGINTERN PyObject *GoSlice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObje return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; + 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; { - 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""'"); + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GenerateWallet",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateWallet', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_cli_GenerateWallet" "', argument " "3"" of type '" "GoUint64""'"); } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + 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_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); } return resultobj; fail: @@ -9100,203 +9116,176 @@ 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_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; 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; + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; } + if (!PyArg_ParseTuple(args,(char *)":SKY_cli_MakeAlphanumericSeed")) SWIG_fail; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); } - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromHex",&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_PubKeyFromHex', 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_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(*arg2)); } - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CSRF",&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_cipher_PubKeyFromSecKey((unsigned char (*)[32])arg1,(unsigned char (*)[33])arg2); + 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_PubKeyFromSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(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 ; + 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_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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Version",&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_api_Client_Version(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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(*arg2)); } - 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_api_Client_Outputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Verify",&obj0)) SWIG_fail; { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; + arg2 = &temp2; } - result = (GoUint32)SKY_cipher_PubKey_Verify((unsigned char (*)[33])arg1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Outputs",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + GoSlice 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_cipher_PubKey_Hex",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForAddresses",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_PubKey_Hex((unsigned char (*)[33])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_OutputsForAddresses', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -9304,160 +9293,176 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 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_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; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForHashes",&obj0,&obj1)) SWIG_fail; { - 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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_PubKeyRipemd160((unsigned char (*)[33])arg1,(unsigned char (*)[20])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_OutputsForHashes', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_NewSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - 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_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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CoinSupply",&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_NewSecKey(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockByHash",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( 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_SecKeyFromHex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_BlockByHash', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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(*arg3)); } - 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_BlockBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - 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; + arg3 = &temp3; } - result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])arg1); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_BlockBySeq" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + Client__Handle arg1 ; + GoSlice 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_cipher_SecKey_Hex",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Blocks",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cipher_SecKey_Hex((unsigned char (*)[32])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_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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -9465,44 +9470,34 @@ 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_LastBlocks(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 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_ECDH",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; + 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_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); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_LastBlocks" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -9510,402 +9505,420 @@ 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_BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 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_NewSig",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSig', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_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); } - result = (GoUint32)SKY_cipher_NewSig(arg1,(unsigned char (*)[65])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_SigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 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_SigFromHex",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SigFromHex', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + 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_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); } - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(unsigned char (*)[65])arg2); + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString 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.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&obj0)) SWIG_fail; { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; + 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; } - 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 ); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_Balance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); } + arg3 = (wallet__BalancePair *)(argp3); + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(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_UxOut",&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_UxOut', 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_UxOut(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyAddressSignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(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 ; + 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_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 *""'"); + { + arg3 = &temp3; } - arg1 = (cipher__Address *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressUxOuts",&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); } { - 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( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressUxOuts', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])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)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__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_Wallet",&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_Wallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyPubKeySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(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 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Handle temp2 ; 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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Wallets",&obj0)) 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); } + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); + 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(*arg2)); } - 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_CreateUnencryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + long long val4 ; + int ecode4 = 0 ; + Handle temp5 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; GoUint32 result; - 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; + arg5 = &temp5; } + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_CreateUnencryptedWallet",&obj0,&obj1,&obj2,&obj3)) 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); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "4"" of type '" "GoInt""'"); + } + arg4 = (GoInt)(val4); + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(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 ; + 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; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_GenerateDeterministicKeyPair",&obj0,&obj1,&obj2)) SWIG_fail; + { + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_api_Client_CreateEncryptedWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( 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_GenerateDeterministicKeyPair', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg2)->p = buffer; + (&arg2)->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; + 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; } { - 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; + 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; } - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(unsigned char (*)[33])arg2,(unsigned char (*)[32])arg3); + ecode5 = SWIG_AsVal_long_SS_long(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "5"" of type '" "GoInt""'"); + } + arg5 = (GoInt)(val5); + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NewWalletAddress(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 ; + 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 *)"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_NewWalletAddress', 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)->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); { - 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; + 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_cipher_DeterministicKeyPairIterator(arg1,arg2,(unsigned char (*)[33])arg3,(unsigned char (*)[32])arg4); + 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: @@ -9913,163 +9926,144 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(PyObject *SWI } -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletBalance(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 ; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; { - 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_cipher_GenerateDeterministicKeyPairs",&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_GenerateDeterministicKeyPairs', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletBalance', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - 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 ); + 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_cipher_GenerateDeterministicKeyPairs(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; +SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + unsigned long long val4 ; + int ecode4 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + GoUint32 result; - if (!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 *)"OOOOOO:SKY_api_Client_Spend",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); - } + { + 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; } - 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; + { + 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"); } - 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); - } + (&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: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(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 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp2 ; + Handle temp3 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + arg2 = &temp2; } { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CreateTransaction",&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_GenerateDeterministicKeyPairsSeed', 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_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_api_Client_CreateTransaction(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(*arg2)); } { - 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: @@ -10077,22 +10071,41 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject } -SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UpdateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_CheckSecKey",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_UpdateWallet",&obj0,&obj1,&obj2)) 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_CheckSecKey((unsigned char (*)[32])arg1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -10100,162 +10113,154 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKey(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKeyHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletFolderName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 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_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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_WalletFolderName",&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_CheckSecKeyHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoString temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58BitcoinAddress",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DecodeBase58BitcoinAddress', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NewSeed",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_NewSeed" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletSeed(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 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromPubKey",&obj0,&obj1)) SWIG_fail; { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletSeed",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (cipher__BitcoinAddress *)(argp2); - SKY_cipher_BitcoinAddressFromPubKey((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromSecKey",&obj0,&obj1)) SWIG_fail; { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; + 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; } - 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 *""'"); + { + 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; } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((unsigned char (*)[32])arg1,arg2); + result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - 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_cipher_BitcoinWalletImportFormatFromSeckey",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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 ); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NetworkConnection', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -10263,106 +10268,108 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObje } -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + Client__Handle arg1 ; + api__NetworkConnectionsFilter *arg2 = (api__NetworkConnectionsFilter *) 0 ; + Handle *arg3 = (Handle *) 0 ; void *argp2 = 0 ; int res2 = 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromBytes",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_BitcoinAddressFromBytes', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + arg3 = &temp3; } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnections",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_api_Client_NetworkConnections" "', argument " "2"" of type '" "api__NetworkConnectionsFilter *""'"); } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + arg2 = (api__NetworkConnectionsFilter *)(argp2); + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromBitcoinWalletImportFormat",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromBitcoinWalletImportFormat', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkDefaultPeers",&obj0)) SWIG_fail; { - 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_SecKeyFromBitcoinWalletImportFormat(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - GoUint8 result; + GoUint32 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkTrustedPeers",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } - 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_api_Client_NetworkExchangedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + Client__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; GoSlice_ temp2 ; PyObject * obj0 = 0 ; + GoUint32 result; { temp2.data = NULL; @@ -10370,14 +10377,12 @@ 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 *)"O:SKY_api_Client_NetworkExchangedPeers",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (cipher__BitcoinAddress *)(argp1); - SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); - resultobj = SWIG_Py_Void(); + result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); free( (void*)arg2->data ); @@ -10388,106 +10393,75 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Bytes(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_PendingTransactions(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 ; + 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_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 *""'"); + { + arg2 = &temp2; } - arg1 = (cipher__BitcoinAddress *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_PendingTransactions",&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_cipher_BitcoinAddress_Verify(arg1,(unsigned char (*)[33])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_cipher_BitcoinAddress_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Transaction(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 ; + 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; - } - 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 *""'"); + arg3 = &temp3; } - arg1 = (cipher__BitcoinAddress *)(argp1); - SKY_cipher_BitcoinAddress_String(arg1,arg2); - resultobj = SWIG_Py_Void(); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transaction",&obj0,&obj1)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + SWIG_AsVal_long(obj0, (long*)&arg1); } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddress_Checksum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Checksum" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + { + 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; } - arg1 = (cipher__BitcoinAddress *)(argp1); + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } - SKY_cipher_BitcoinAddress_Checksum(arg1,(unsigned char (*)[4])arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + Client__Handle arg1 ; GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle *arg3 = (Handle *) 0 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -10496,7 +10470,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_Transactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -10505,13 +10479,13 @@ 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_Transactions', expecting string"); } (&arg2)->data = buffer; (&arg2)->len = size - 1; (&arg2)->cap = size; } - result = (GoUint32)SKY_api_NewCreateTransactionResponse(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_From_long(*arg3)); @@ -10522,11 +10496,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_ConfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + Client__Handle arg1 ; GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Handle *arg3 = (Handle *) 0 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -10535,7 +10509,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_ConfirmedTransactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -10544,13 +10518,13 @@ 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_ConfirmedTransactions', expecting string"); } (&arg2)->data = buffer; (&arg2)->len = size - 1; (&arg2)->cap = size; } - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); @@ -10561,25 +10535,38 @@ 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_UnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - arg2 = &temp2; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(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_UnconfirmedTransactions', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -10587,39 +10574,33 @@ 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_InjectTransaction(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 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 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_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 *)"OO:SKY_api_Client_InjectTransaction",&obj0,&obj1)) 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; + SWIG_AsVal_long(obj1, (long*)&arg2); } - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(unsigned char (*)[32])arg2,arg3); + result = (GoUint32)SKY_api_Client_InjectTransaction(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: @@ -10627,12 +10608,10 @@ 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_ResendUnconfirmedTransactions(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 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -10640,13 +10619,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUS { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewCreatedTransactionInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionInput" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_ResendUnconfirmedTransactions",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); @@ -10657,23 +10634,40 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)":SKY_iputil_LocalhostIP")) SWIG_fail; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_RawTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_RawTransaction', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -10681,34 +10675,37 @@ SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_iputil_IsLocalhost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_IsLocalhost",&obj0)) SWIG_fail; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj1, &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_api_Client_AddressTransactions', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + result = (GoUint32)SKY_api_Client_AddressTransactions(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_unsigned_char, new_flags)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -10716,45 +10713,34 @@ SWIGINTERN PyObject *_wrap_SKY_iputil_IsLocalhost(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString temp2 ; - GoUint16 temp3 ; - int res3 = SWIG_TMPOBJ ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg3 = &temp3; } - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_SplitAddr",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&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_SplitAddr', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + 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_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)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -10762,53 +10748,67 @@ SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_testutil_MakeAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_testutil_MakeAddress",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_testutil_MakeAddress" "', argument " "1"" of type '" "cipher__Address *""'"); + { + temp2 = 0; + arg2 = &temp2; } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_testutil_MakeAddress(arg1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_AddressCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Handle temp1 ; + Client__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) SWIG_fail; { - 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); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UnloadWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -10816,11 +10816,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_api_Client_Health",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_Copy(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_From_long(*arg2)); @@ -10831,26 +10831,49 @@ 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_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - coin__Transaction *temp2 ; + 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; { - temp2 = NULL; - arg2 = &temp2; + arg4 = &temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetTransactionObject",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_EncryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_GetTransactionObject(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_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_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Transaction, 0 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); } return resultobj; fail: @@ -10858,54 +10881,88 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 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; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetInputs",&obj0,&obj1)) SWIG_fail; + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&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_ResetInputs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetInputs(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_DecryptWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_DecryptWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetInputsCount",&obj0)) SWIG_fail; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreateTransactionResponse",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(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_NewCreateTransactionResponse', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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(*arg3)); } return resultobj; fail: @@ -10913,101 +10970,104 @@ 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_api_NewCreatedTransaction(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 ; + GoSlice arg2 ; + CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Handle temp3 ; 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; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransaction",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetInputAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewCreatedTransaction', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } - result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); + 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_SetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(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 ; + CreatedTransaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg2 = &temp2; } - 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); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetOutputsCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg3 = &temp3; } - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransactionOutput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(unsigned char (*)[32])arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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(*arg3)); } return resultobj; fail: @@ -11015,99 +11075,88 @@ 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_api_NewCreatedTransactionInput(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 ; + 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 ; - 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); + arg2 = &temp2; } - 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_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 *""'"); } - arg3 = (coin__TransactionOutput *)(argp3); - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + arg1 = (wallet__UxBalance *)(argp1); + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(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 ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg2 = &temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg3 = (coin__TransactionOutput *)(argp3); - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignaturesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetSignaturesCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg2 = &temp2; } - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_NewClient",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_NewClient', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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)); } return resultobj; fail: @@ -11115,101 +11164,89 @@ 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_webrpc_Client_CSRF(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 ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - 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); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(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 ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; 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; + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - 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; + SWIG_AsVal_long(obj1, (long*)&arg2); } - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushSignature",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetStatus",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(unsigned char (*)[65])arg2); + arg2 = (StatusResult_Handle *)(argp2); + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -11217,26 +11254,38 @@ 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_webrpc_Client_GetTransactionByID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long 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:SKY_coin_Transaction_ResetOutputs",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetTransactionByID",&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_ResetOutputs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(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_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: @@ -11244,74 +11293,133 @@ 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_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 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:SKY_coin_Transaction_ResetSignatures",&obj0,&obj1)) SWIG_fail; + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetAddressUxOuts",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetAddressUxOuts', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + 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:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; + { + 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); } - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetBlocksInRange" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_webrpc_Client_GetBlocksInRange" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_webrpc_Client_GetBlocksInRange(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_VerifyInput",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetBlocksBySeq",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_Transaction_VerifyInput(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_webrpc_Client_GetBlocksBySeq', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( 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: @@ -11319,82 +11427,38 @@ 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_webrpc_Client_GetLastBlocks(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 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1)) SWIG_fail; { - 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_Transaction_PushInput(arg1,(unsigned char (*)[32])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_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)); - 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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -11402,41 +11466,33 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushInput(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(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 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 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 *)"OO:SKY_cipher_DecodeBase58Address",&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_cipher_DecodeBase58Address', 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; + 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 *""'"); } - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -11444,44 +11500,34 @@ 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_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + GoSlice arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_Transaction_PushOutput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromBytes",&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_AddressFromBytes', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); } arg2 = (cipher__Address *)(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -11489,30 +11535,31 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushOutput(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; + 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_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromPubKey",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -11520,80 +11567,63 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(PyObject *SWI } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; - if (!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 (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromSecKey",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; } - 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); - } - } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromSecKey" "', argument " "2"" of type '" "cipher__Address *""'"); } - + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; fail: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; + 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_coin_Transaction_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + 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_int, new_flags)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); } return resultobj; fail: @@ -11601,106 +11631,78 @@ 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_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 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_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&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; - arg2 = &p->data; + 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_coin_Transaction_Hash(arg1,(unsigned char (*)[32])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_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(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 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SizeHash",&obj0,&obj1)) 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); { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &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; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxID",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; } - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -11710,11 +11712,13 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM 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); + 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_coin_Transaction_TxIDHex(arg1,arg2); + arg1 = (cipher__Address *)(argp1); + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); @@ -11726,45 +11730,31 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_UpdateHeader",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_HashInner",&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); { 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; } - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -11772,9 +11762,9 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; + GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoSlice_ temp2 ; PyObject * obj0 = 0 ; @@ -11786,11 +11776,18 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPA temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Serialize",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_String2Hex",&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_String2Hex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + 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 )); @@ -11802,33 +11799,34 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_coin_TransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_TransactionDeserialize",&obj0)) SWIG_fail; + 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_coin_TransactionDeserialize', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToInt', 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_base58_Base58_ToInt(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + 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: @@ -11836,26 +11834,36 @@ SWIGINTERN PyObject *_wrap_SKY_coin_TransactionDeserialize(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(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 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = 0; - arg2 = &temp2; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToHex",&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_Base58_ToHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); + result = (GoUint32)SKY_base58_Base58_ToHex(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: @@ -11863,20 +11871,34 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Handle temp1 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; GoUint32 result; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_Base582Int",&obj0)) SWIG_fail; { - arg1 = &temp1; + 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; } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transactions")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); } return resultobj; fail: @@ -11884,54 +11906,73 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(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 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_GetTransactionsObject",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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 **""'"); + 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; } - arg2 = (coin__UxArray **)(argp2); - result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Length",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + 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)); - 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: @@ -11939,58 +11980,69 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Int2Base58",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_base58_Int2Base58" "', argument " "1"" of type '" "GoInt""'"); + } + arg1 = (GoInt)(val1); + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - SWIG_AsVal_long(obj1, (long*)&arg2); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Fees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - FeeCalculator temp2 ; - GoUint64 temp3 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Fees",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58",&obj0)) SWIG_fail; { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - arg2 = &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_base58_Hex2Base58', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + result = (GoUint32)SKY_base58_Hex2Base58(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: @@ -11998,34 +12050,36 @@ 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_base58_Hex2Base58String(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 ; + GoSlice 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_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; } - 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_base58_Hex2Base58String(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: @@ -12033,29 +12087,36 @@ 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_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + GoSlice 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_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_coin_Transactions_Hashes(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->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: @@ -12063,201 +12124,164 @@ 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_cipher_DecodeBase58BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + GoString arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Size",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58BitcoinAddress",&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_DecodeBase58BitcoinAddress', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_DecodeBase58BitcoinAddress" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromPubKey(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 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 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_BitcoinAddressFromPubKey",&obj0,&obj1)) SWIG_fail; { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_TruncateBytesTo",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_TruncateBytesTo" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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_coin_SortTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromSecKey(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 ; + 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; { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SortTransactions",&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; } - { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - arg2 = &temp2; + 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_coin_SortTransactions(arg1,arg2,arg3); + 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(*arg3)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_NewSortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(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 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewSortableTransactions",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinWalletImportFormatFromSeckey",&obj0)) SWIG_fail; { - if (!PyCallable_Check(obj1)) SWIG_fail; - temp2.callback = _WrapperFeeCalculator; - temp2.context = obj1; - 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; } - 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 *""'"); + 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 ); } - arg3 = (SortableTransactionResult_Handle *)(argp3); - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - void *argp1 ; - int res1 = 0 ; + GoSlice arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Sort",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromBytes",&obj0,&obj1)) 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)); + 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; } - result = (GoUint32)SKY_coin_SortableTransactions_Sort(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_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -12265,176 +12289,153 @@ 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_cipher_SecKeyFromBitcoinWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - void *argp1 ; - int res1 = 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + GoString 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_SortableTransactions_Len",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromBitcoinWalletImportFormat",&obj0,&obj1)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } else { - arg1 = *((SortableTransactionResult_Handle *)(argp1)); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromBitcoinWalletImportFormat', expecting string"); } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - 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)); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; } + result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Less(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp1 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 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; + GoUint8 result; - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Less",&obj0,&obj1,&obj2)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); - } else { - arg1 = *((SortableTransactionResult_Handle *)(argp1)); - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + 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_coin_SortableTransactions_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - void *argp1 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; + GoSlice_ temp2 ; 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)); - } + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_Bytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Bytes" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); + resultobj = SWIG_Py_Void(); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; + 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; - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + 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); { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + 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; } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_VerifyTransactionCoinsSpending")) SWIG_fail; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(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: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_String",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_String" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); } + arg1 = (cipher__BitcoinAddress *)(argp1); + SKY_cipher_BitcoinAddress_String(arg1,arg2); + resultobj = SWIG_Py_Void(); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->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: @@ -12442,54 +12443,44 @@ SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(PyObj } -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(self, args); + if (!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 (argc == 2) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(self, args); - } - } + arg1 = (cipher__BitcoinAddress *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); + cipher_Checksum* p = (cipher_Checksum*)argp; + arg2 = &p->data; } - + SKY_cipher_BitcoinAddress_Checksum(arg1,(unsigned char (*)[4])arg2); + resultobj = SWIG_Py_Void(); + return resultobj; fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionCoinsSpending'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray *,coin__UxArray *)\n"); - return 0; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoUint64 arg1 ; + GoInt arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val1 ; + long long val1 ; int ecode1 = 0 ; GoSlice_ temp2 ; - GoSlice_ temp3 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -12499,273 +12490,221 @@ SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObj temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_VerifyTransactionHoursSpending",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!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_coin_VerifyTransactionHoursSpending" "', argument " "1"" of type '" "GoUint64""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_cipher_RandByte" "', argument " "1"" of type '" "GoInt""'"); } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + arg1 = (GoInt)(val1); + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); free( (void*)arg2->data ); } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewPubKey",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewPubKey', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; } + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; - if (!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 *)"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; } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(self, args); - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[2]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_0(self, args); - } - } - } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; } - + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionHoursSpending'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin__UxArray *,coin__UxArray *)\n"); - return 0; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(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 ; + 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 *)"OO:SKY_cipher_PubKeyFromSecKey",&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_Encrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Encrypt', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + 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( 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; + 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_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((unsigned char (*)[32])arg1,(unsigned char (*)[33])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_encrypt_ScryptChacha20poly1305_Decrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSig(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 ; + 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; { - 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 *""'"); + 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; } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + 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( 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; + 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_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); + 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)); - { - 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_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; - GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - Handle temp2 ; - unsigned long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; + 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; { - arg2 = &temp2; - } - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GenerateWallet",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateWallet', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + 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; } - 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); + 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(*arg2)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_MakeAlphanumericSeed")) SWIG_fail; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Hex",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKey_Hex((unsigned char (*)[33])arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -12773,29 +12712,32 @@ SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString arg2 ; + 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_cli_AddPrivateKey",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyRipemd160",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } { - 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; + 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_AddPrivateKey(arg1,arg2); + 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: @@ -12803,51 +12745,35 @@ SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_NewSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - void *argp3 ; - int res3 = 0 ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_AddPrivateKeyToFile",&obj0,&obj1,&obj2)) SWIG_fail; + 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_cli_AddPrivateKeyToFile', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKeyToFile', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSecKey', 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_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)); - } + 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_cli_AddPrivateKeyToFile(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -12855,108 +12781,91 @@ SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_String2Hex",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; { char* buffer = 0; size_t size = 0; int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_String2Hex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromHex', 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 ); + 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_base58_Base58_ToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToInt",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Verify",&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; + 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_base58_Base58_ToInt(arg1,arg2); + result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])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_long_long, new_flags)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + 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_base58_Base58_ToHex",&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_base58_Base58_ToHex', 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_base58_Base58_ToHex(arg1,arg2); + 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->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: @@ -12964,34 +12873,44 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToHex(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - 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; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_ECDH",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_ECDH((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -12999,86 +12918,81 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_NewSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base582Hex",&obj0)) SWIG_fail; + 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_base58_Base582Hex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSig', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - 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 ); + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; } + result = (GoUint32)SKY_cipher_NewSig(arg1,(unsigned char (*)[65])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_BitHex",&obj0)) SWIG_fail; + 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_base58_Base58_BitHex', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SigFromHex', expecting string"); } (&arg1)->p = buffer; (&arg1)->n = size - 1; } - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + 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_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt arg1 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; - long long val1 ; - int ecode1 = 0 ; GoString temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -13088,13 +13002,16 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Int2Base58",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_base58_Int2Base58" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_Sig_Hex((unsigned char (*)[65])arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); @@ -13106,228 +13023,239 @@ SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SignHash",&obj0,&obj1,&obj2)) SWIG_fail; { - 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_base58_Hex2Base58",&obj0)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_base58_Hex2Base58(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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_base58_Hex2Base58String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyAddressSignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58String",&obj0)) SWIG_fail; + arg1 = (cipher__Address *)(argp1); { - 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; + 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_base58_Hex2Base58String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; } + result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_VerifySignedHash",&obj0,&obj1)) SWIG_fail; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&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 *)"O:SKY_base58_Hex2Base58Str",&obj0)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58Str', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_base58_Hex2Base58Str(arg1,arg2); + result = (GoUint32)SKY_cipher_VerifySignedHash((unsigned char (*)[65])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_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyPubKeySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + 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 *)"O:SKY_handle_close",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_VerifyPubKeySignedHash",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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; } - SKY_handle_close(arg1); - resultobj = SWIG_Py_Void(); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_VerifyPubKeySignedHash((unsigned char (*)[33])arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_handle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateKeyPair",&obj0,&obj1)) SWIG_fail; { - 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_handle_copy",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_handle_copy(arg1,arg2); + result = (GoUint32)SKY_cipher_GenerateKeyPair((unsigned char (*)[33])arg1,(unsigned char (*)[32])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_apputil_CatchInterruptPanic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchInterruptPanic")) SWIG_fail; - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_CatchDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchDebug")) SWIG_fail; - result = (GoUint32)SKY_apputil_CatchDebug(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_PrintProgramStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_PrintProgramStatus")) SWIG_fail; - result = (GoUint32)SKY_apputil_PrintProgramStatus(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - GoUint32 arg3 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_GenerateDeterministicKeyPair",&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_cipher_GenerateDeterministicKeyPair', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_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); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(unsigned char (*)[33])arg2,(unsigned char (*)[32])arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -13335,119 +13263,57 @@ SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(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 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFeeForHours",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "3"" of type '" "GoUint32""'"); - } - arg3 = (GoUint32)(val3); - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint32 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - { - temp3 = 0; - arg3 = &temp3; + 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); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_DeterministicKeyPairIterator",&obj0,&obj1,&obj2)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + 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; } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint32 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - { - temp3 = 0; - arg3 = &temp3; + 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; } - 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); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg4 = &p->data; + } + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(unsigned char (*)[33])arg3,(unsigned char (*)[32])arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -13455,16 +13321,14 @@ 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_cipher_GenerateDeterministicKeyPairs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 arg2 ; + GoSlice arg1 ; + GoInt arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - unsigned long long val2 ; + long long val2 ; int ecode2 = 0 ; GoSlice_ temp3 ; - GoUint64 temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; @@ -13475,142 +13339,142 @@ SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_1(PyObject *SWIGUNUSEDPA temp3.cap = 0; arg3 = (coin__UxArray *)&temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; { - temp4 = 0; - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_TransactionFee",&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_GenerateDeterministicKeyPairs', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + ecode2 = SWIG_AsVal_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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + 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 ); } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 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 < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { - _v = PyInt_Check(argv[0]) ? 1 : 0; + 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_unsigned_SS_long_SS_long(argv[1], NULL); + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_SKY_fee_TransactionFee__SWIG_1(self, args); + return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(self, args); } } } - if (argc == 3) { + if (argc == 2) { int _v; { - _v = PyInt_Check(argv[0]) ? 1 : 0; + 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_unsigned_SS_long_SS_long(argv[1], NULL); + int res = SWIG_AsVal_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 _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(self, args); } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_fee_TransactionFee'.\n" + 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_fee_TransactionFee(Transaction__Handle,GoUint64,coin_UxOutArray *,GoUint64 *)\n" - " SKY_fee_TransactionFee(Transaction__Handle,GoUint64,coin__UxArray *,GoUint64 *)\n"); + " wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,cipher_SecKeys *)\n" + " SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,coin__UxArray *)\n"); return 0; } -SWIGINTERN PyObject *_wrap_SKY_cli_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; + long long val2 ; int ecode2 = 0 ; - void *argp3 ; - int res3 = 0 ; + GoSlice_ temp3 ; GoSlice_ temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } { temp4.data = NULL; temp4.len = 0; temp4.cap = 0; arg4 = (coin__UxArray *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GenerateAddressesInFile",&obj0,&obj1,&obj2)) 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_cli_GenerateAddressesInFile', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairsSeed', 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); + ecode2 = SWIG_AsVal_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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); } - arg2 = (GoUint64)(val2); + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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)); - } + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); free( (void*)arg4->data ); @@ -13621,111 +13485,115 @@ SWIGINTERN PyObject *_wrap_SKY_cli_GenerateAddressesInFile(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; PyObject * obj0 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_CheckSecKey",&obj0)) SWIG_fail; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJSON",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJSON', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_FormatAddressesAsJSON(arg1,arg2); + result = (GoUint32)SKY_cipher_CheckSecKey((unsigned char (*)[32])arg1); 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_CheckSecKeyHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&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_FormatAddressesAsJoinedArray",&obj0)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJoinedArray', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + 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_FormatAddressesAsJoinedArray(arg1,arg2); + result = (GoUint32)SKY_cipher_CheckSecKeyHash((unsigned char (*)[32])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_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_AddressesToStrings",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Encrypt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( 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_AddressesToStrings', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Encrypt', 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_AddressesToStrings(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_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( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); } return resultobj; fail: @@ -13733,152 +13601,154 @@ SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt(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 ; + 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 *)"OOO:SKY_cli_CheckWalletBalance",&obj0,&obj1,&obj2)) 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_encrypt_ScryptChacha20poly1305_Decrypt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Decrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); { char* buffer = 0; size_t size = 0; int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CheckWalletBalance', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_CheckWalletBalance" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); + { + 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; } - arg3 = (BalanceResult_Handle *)(argp3); - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + 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_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetBalanceOfAddresses",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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)); { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetBalanceOfAddresses', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetBalanceOfAddresses" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); } - arg3 = (BalanceResult_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(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 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + long long val1 ; + int ecode1 = 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; - } - { - 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; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_certutil_NewTLSCertPair",&obj0,&obj1,&obj2)) SWIG_fail; + 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)); { - 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_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString 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; + 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( 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_bip39_NewMnemonic', 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_bip39_NewMnemonic(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_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -13886,58 +13756,36 @@ SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(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 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; GoUint32 result; { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_coin_NewBlock",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewBlock" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - { - SWIG_AsVal_long(obj3, (long*)&arg4); + 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; { - 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_bip39_MnemonicToByteArray', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(unsigned char (*)[32])arg3,arg4,arg5,arg6); + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -13945,107 +13793,106 @@ 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_bip39_IsMnemonicValid(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 ; + GoString 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_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); + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_IsMnemonicValid",&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; + 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_coin_SignedBlock_VerifySignature(arg1,(unsigned char (*)[33])arg2); + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + GoSlice arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Ripemd160_Set",&obj0,&obj1)) 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 *""'"); + 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; } - arg1 = (cipher__Address *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_Ripemd160_Set', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; } + result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_HashRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashHeader",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_HashRipemd160",&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_HashRipemd160', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 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 Ripemd160"); + cipher_Ripemd160* p = (cipher_Ripemd160*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(unsigned char (*)[20])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -14053,27 +13900,35 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256_Set",&obj0,&obj1)) SWIG_fail; { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 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; - arg2 = &p->data; + arg1 = &p->data; } - result = (GoUint32)SKY_coin_Block_PreHashHeader(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_cipher_SHA256_Set', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_cipher_SHA256_Set((unsigned char (*)[32])arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -14081,26 +13936,33 @@ 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_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 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_Block_Time",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Hex",&obj0)) 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; } - result = (GoUint32)SKY_coin_Block_Time(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_From_long( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -14108,44 +13970,68 @@ 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_cipher_SHA256_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 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 = 0; - arg2 = &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_coin_Block_Seq",&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_Seq(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(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_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; + GoSlice arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SumSHA256",&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_SumSHA256', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } { void *argp = 0; @@ -14155,7 +14041,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -14163,83 +14049,95 @@ 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_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Size",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256FromHex",&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_SHA256FromHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + { + 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_coin_Block_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; { - 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_DoubleSHA256', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&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_String(arg1,arg2); + result = (GoUint32)SKY_cipher_DoubleSHA256(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_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Handle temp3 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_AddSHA256",&obj0,&obj1,&obj2)) SWIG_fail; { - arg3 = &temp3; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; } { void *argp = 0; @@ -14249,53 +14147,38 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPAR cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(unsigned char (*)[32])arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; } + result = (GoUint32)SKY_cipher_AddSHA256((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoSlice *arg1 = (GoSlice *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_coin_NewBlockHeader",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!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_coin_NewBlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Merkle" "', argument " "1"" of type '" "GoSlice *""'"); } - arg1 = (coin__BlockHeader *)(argp1); + arg1 = (GoSlice *)(argp1); { void *argp = 0; int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); @@ -14304,25 +14187,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewBlockHeader" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_NewBlockHeader" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - { - SWIG_AsVal_long(obj4, (long*)&arg5); - } - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_coin_NewBlockHeader" "', argument " "6"" of type '" "coin__BlockHeader *""'"); - } - arg6 = (coin__BlockHeader *)(argp6); - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(unsigned char (*)[32])arg2,arg3,arg4,arg5,arg6); + result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -14330,126 +14195,153 @@ SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(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 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + 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_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); + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Null",&obj0)) SWIG_fail; { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 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; - arg2 = &p->data; + arg1 = &p->data; } - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(unsigned char (*)[32])arg2); + 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_coin_BlockHeader_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(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 ; + Wallet__Handle arg1 ; + GoString arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_AddPrivateKey",&obj0,&obj1)) SWIG_fail; { - 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 *""'"); + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKey', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; + GoString arg1 ; + GoString arg2 ; + PasswordReader__Handle arg3 ; + void *argp3 ; + int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_AddPrivateKeyToFile",&obj0,&obj1,&obj2)) SWIG_fail; { - 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_cli_AddPrivateKeyToFile', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - 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 *""'"); + { + 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; } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_CheckWalletBalance",&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_cli_CheckWalletBalance', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(unsigned char (*)[32])arg2); + 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: @@ -14457,60 +14349,60 @@ SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Handle temp1 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; + 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; { - arg1 = &temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_BlockBody_Size")) SWIG_fail; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + 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; } - 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)); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetBalanceOfAddresses" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); } + arg3 = (BalanceResult_Handle *)(argp3); + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; + Config__Handle *arg1 = (Config__Handle *) 0 ; + Handle temp1 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg1 = &temp1; } - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + 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_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); } return resultobj; fail: @@ -14518,38 +14410,28 @@ 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_cli_Config_FullWalletPath(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 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString 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_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 *""'"); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - arg1 = (coin__BlockHeader *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj1, (long*)&arg2); + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_CreateUnspents(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_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -14557,121 +14439,54 @@ 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; - - 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) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; + Config__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_coin_CreateUnspent",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspent" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); { - SWIG_AsVal_long(obj1, (long*)&arg2); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg4 = (coin__UxOut *)(argp4); - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - coin__Block *temp2 ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp2 = NULL; arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockObject",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Block, 0 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -14679,10 +14494,10 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -14690,11 +14505,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromContext",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); @@ -14705,10 +14520,10 @@ SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -14716,11 +14531,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self) { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_ConfigFromContext",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + 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)); @@ -14731,65 +14546,61 @@ SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_wallet_NewError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInterface arg1 ; - void *argp1 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; 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); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - { - arg3 = &temp3; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewWallet",&obj0,&obj1)) SWIG_fail; + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } { - SWIG_AsVal_long(obj1, (long*)&arg2); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + 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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } return resultobj; fail: @@ -14797,17 +14608,28 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; + 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 *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) SWIG_fail; + { + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_cli_CreateRawTxFromWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -14816,44 +14638,78 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self) 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&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_Wallet_Lock', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); } (&arg3)->p = buffer; (&arg3)->n = size - 1; } - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); + } + (&arg4)->data = buffer; + (&arg4)->len = size - 1; + (&arg4)->cap = size; + } + { + res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_PasswordReader__Handle, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); + } else { + arg5 = *((PasswordReader__Handle *)(argp5)); + } + } + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + void *argp6 ; + int res6 = 0 ; + Handle temp7 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; GoUint32 result; { - arg3 = &temp3; + arg7 = &temp7; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Unlock",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTxFromAddress",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } @@ -14862,49 +14718,57 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(sel 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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; } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - { - arg2 = &temp2; + 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; } - 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 ); + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Load', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + (&arg5)->data = buffer; + (&arg5)->len = size - 1; + (&arg5)->cap = size; } - result = (GoUint32)SKY_wallet_Load(arg1,arg2); + { + 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(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); } return resultobj; fail: @@ -14912,76 +14776,141 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObj } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString arg2 ; + 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:SKY_wallet_Wallet_Save",&obj0,&obj1)) SWIG_fail; + { + arg7 = &temp7; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Save', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg3)->data = buffer; + (&arg3)->len = size - 1; + (&arg3)->cap = size; } - 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: + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg4)->p = buffer; + (&arg4)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg5)->data = buffer; + (&arg5)->len = size - 1; + (&arg5)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg6)->data = buffer; + (&arg6)->len = size - 1; + (&arg6)->cap = size; + } + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); + } + return resultobj; +fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + Handle temp4 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + arg4 = &temp4; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Type",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_NewTransaction",&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_NewTransaction', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - result = (GoUint32)SKY_wallet_Wallet_Type(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_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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); } return resultobj; fail: @@ -14989,28 +14918,60 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + GoString arg1 ; + GoUint64 arg2 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + void *argp3 ; + int res3 = 0 ; + GoSlice_ temp4 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; { - 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_wallet_Wallet_Version",&obj0)) 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; } - result = (GoUint32)SKY_wallet_Wallet_Version(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_cli_GenerateAddressesInFile" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); + } else { + arg3 = *((PasswordReader__Handle *)(argp3)); + } + } + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( 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: @@ -15018,9 +14979,9 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Version(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; + GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -15031,11 +14992,19 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(s temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Filename",&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_wallet_Wallet_Filename(arg1,arg2); + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); @@ -15047,9 +15016,9 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; + GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -15060,11 +15029,19 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&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_wallet_Wallet_Label(arg1,arg2); + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); @@ -15076,27 +15053,37 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 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_wallet_Wallet_IsEncrypted",&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_wallet_Wallet_IsEncrypted(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_char, new_flags)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -15104,68 +15091,73 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GenerateAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(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 ; + 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; - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetWalletOutputsFromFile",&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_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; + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetWalletOutputsFromFile', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputsFromFile" "', argument " "3"" of type '" "ReadableUnspentOutputsSummary_Handle *""'"); + } + arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + 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; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GetWalletOutputs",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,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 *""'"); + } + 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_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -15173,142 +15165,113 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_App_Run(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 ; + App__Handle arg1 ; + GoString arg2 ; 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; + 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_wallet_Wallet_GetEntry" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "3"" of type '" "wallet__Entry *""'"); + { + 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; } - arg3 = (wallet__Entry *)(argp3); - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_cli_App_Run(arg1,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_wallet_Wallet_AddEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetCoin",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (wallet__Entry *)(argp2); - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(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 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - temp4 = 0; - arg4 = &temp4; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetRPCAddress",&obj0)) SWIG_fail; { - temp5.data = NULL; - temp5.len = 0; - temp5.cap = 0; - arg5 = (coin__UxArray *)&temp5; + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - temp6 = 0; - arg6 = &temp6; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_DistributeSpendHours",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "3"" of type '" "GoUint8""'"); - } - arg3 = (GoUint8)(val3); - result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromApp",&obj0)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); - free( (void*)arg5->data ); + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg6 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -15316,46 +15279,35 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Getenv(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 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_DistributeCoinHoursProportional",&obj0,&obj1)) SWIG_fail; + 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_wallet_DistributeCoinHoursProportional', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Getenv', expecting string"); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + (&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_wallet_DistributeCoinHoursProportional" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + result = (GoUint32)SKY_cli_Getenv(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( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -15363,197 +15315,175 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject * } -SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(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 ; + GoString arg1 ; + GoString arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_Setenv",&obj0,&obj1)) SWIG_fail; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewUxBalances",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalances" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->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_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_wallet_NewUxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(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 ; + 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 *)"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""'"); + { + 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""'"); } - arg1 = (GoUint64)(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewUxBalance" "', argument " "2"" of type '" "coin__UxOut *""'"); + arg2 = (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; } - 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 *""'"); + { + SWIG_AsVal_long(obj3, (long*)&arg4); } - arg3 = (wallet__UxBalance *)(argp3); - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + { + 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_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_SignedBlock_VerifySignature(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 ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 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 *)"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 *)"OOO:SKY_wallet_ChooseSpendsMinimizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + arg1 = (coin__SignedBlock *)(argp1); { - 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; + 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_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); + 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( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint64 arg2 ; GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; + 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 ; - GoSlice_ temp4 ; + Handle temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; GoUint32 result; { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; + arg4 = &temp4; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMaximizeUxOuts', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewGenesisBlock",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "1"" of type '" "cipher__Address *""'"); } + arg1 = (cipher__Address *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); + 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_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "3"" of type '" "GoUint64""'"); } arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + 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( arg4->data, arg4->len )); - free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); } return resultobj; fail: @@ -15561,38 +15491,27 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGU } -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(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 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 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_coin_Block_HashHeader",&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_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_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_GetWalletOutputsFromFile(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -15600,167 +15519,109 @@ SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(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 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) SWIG_fail; { - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GetWalletOutputs",&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; } - res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputs" "', argument " "3"" of type '" "ReadableUnspentOutputsSummary_Handle *""'"); - } - arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(unsigned char (*)[32])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_DecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58Address",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DecodeBase58Address', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + temp2 = 0; + arg2 = &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_cipher_DecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Time",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromBytes",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_AddressFromBytes', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(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 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromPubKey",&obj0,&obj1)) SWIG_fail; { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; + temp2 = 0; + arg2 = &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_cipher_AddressFromPubKey" "', argument " "2"" of type '" "cipher__Address *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Seq",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])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 )); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(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 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromSecKey",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } { void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 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 SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])arg1,arg2); + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -15768,31 +15629,27 @@ 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_Block_Size(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 ; + Block__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_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 *)"O:SKY_coin_Block_Size",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_Null(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))); } 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_unsigned_int, new_flags)); } return resultobj; fail: @@ -15800,33 +15657,28 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Null(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(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 ; + Block__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_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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + 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->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: @@ -15834,96 +15686,141 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(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 ; + 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; - 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 *""'"); + { + arg3 = &temp3; + } + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (cipher__Address *)(argp1); { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(unsigned char (*)[32])arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 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 ; - GoString temp2 ; + unsigned long long val3 ; + int ecode3 = 0 ; + unsigned long long val4 ; + int ecode4 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_coin_NewBlockHeader",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewBlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); { - 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 *""'"); + 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 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 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_cipher_Address_Checksum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + 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_cipher_Address_Checksum" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Hash" "', argument " "1"" of type '" "coin__BlockHeader *""'"); } - arg1 = (cipher__Address *)(argp1); + arg1 = (coin__BlockHeader *)(argp1); { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); - cipher_Checksum* p = (cipher_Checksum*)argp; + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(unsigned char (*)[32])arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -15931,39 +15828,33 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_SKY_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Bytes(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 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 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_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); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_Bytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Bytes" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -15971,30 +15862,32 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), Py } -SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoInt64 temp2 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 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_coin_BlockHeader_String",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_String" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -16002,57 +15895,53 @@ SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_coin_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoUint64 temp2 ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) SWIG_fail; { - temp2 = 0; - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; } + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoInt arg1 ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; GoUint32 *arg2 = (GoUint32 *) 0 ; - long long val1 ; - int ecode1 = 0 ; + Handle temp1 ; GoUint32 temp2 ; int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; GoUint32 result; + { + arg1 = &temp1; + } 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); + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_BlockBody_Size")) SWIG_fail; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } if (SWIG_IsTmpObj(res2)) { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); } else { @@ -16065,43 +15954,29 @@ SWIGINTERN PyObject *_wrap_SKY_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Handle temp1 ; - GoString temp3 ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - arg1 = &temp1; - } - { - 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 *)"O:SKY_map_Get",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&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; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_BlockBody_Bytes(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( 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: @@ -16109,32 +15984,38 @@ 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_coin_CreateUnspents__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - Handle temp1 ; + 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 ; - GoUint8 result; + PyObject * obj1 = 0 ; + GoUint32 result; { - arg1 = &temp1; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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; + 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 *""'"); } - result = (GoUint8)SKY_map_HasKey(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + arg1 = (coin__BlockHeader *)(argp1); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } return resultobj; fail: @@ -16142,98 +16023,147 @@ SWIGINTERN PyObject *_wrap_SKY_map_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObje } -SWIGINTERN PyObject *_wrap_SKY_map_Close(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; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - Handle temp1 ; + 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; - { - arg1 = &temp1; + 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 *""'"); } - 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)); + arg1 = (coin__BlockHeader *)(argp1); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + SWIG_AsVal_long(obj1, (long*)&arg2); + } + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_CreateUnspent" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_coin_CreateUnspent" "', argument " "4"" of type '" "coin__UxOut *""'"); } + arg4 = (coin__UxOut *)(argp4); + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(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 ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + coin__Block *temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; GoUint32 result; { - arg6 = &temp6; + temp2 = NULL; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_cli_CreateRawTxFromWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockObject",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Block, 0 )); } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + { - 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; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; { - 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)); - } + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -16241,89 +16171,65 @@ SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(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 ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; GoUint32 result; { - arg7 = &temp7; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTxFromAddress",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + { - 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)); - } + temp3 = 0; + arg3 = &temp3; } - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddUint64",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_AddUint64" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_AddUint64" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -16331,81 +16237,30 @@ SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(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 ; + GoUint64 arg1 ; + GoInt64 *arg2 = (GoInt64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoInt64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; GoUint32 result; { - arg7 = &temp7; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg5)->data = buffer; - (&arg5)->len = size - 1; - (&arg5)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); - } - (&arg6)->data = buffer; - (&arg6)->len = size - 1; - (&arg6)->cap = size; + temp2 = 0; + arg2 = &temp2; } - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + 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(*arg7)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -16413,59 +16268,30 @@ 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_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - Handle temp4 ; + GoInt64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_NewTransaction",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; + temp2 = 0; + arg2 = &temp2; } - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + 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(*arg4)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -16473,35 +16299,31 @@ SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + GoInt arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_InitDataDir', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->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: @@ -16509,145 +16331,135 @@ SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; + 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; - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; + 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 *""'"); } - 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)); + arg1 = (coin__UxOut *)(argp1); { - 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; + arg2 = &p->data; } + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_file_ResolveResourceDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_ResolveResourceDirectory",&obj0)) SWIG_fail; + arg1 = (coin__UxOut *)(argp1); { - 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_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_file_ResolveResourceDirectory(arg1,arg2); + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(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_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 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; - { - 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; + 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); { - 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; + 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_file_DetermineResourcePath(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(unsigned char (*)[32])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 ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Handle temp2 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - arg2 = &temp2; + temp3 = 0; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + arg1 = (coin__UxOut *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -16655,35 +16467,36 @@ SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ 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_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; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_wallet_CryptoTypeFromString(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( 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_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -16691,67 +16504,68 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; - 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 *""'"); + 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); } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Hashes__SWIG_1(self, args); + } + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_Hashes__SWIG_0(self, args); + } + } + fail: - return NULL; + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Hashes'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Hashes(coin_UxOutArray *,cipher_SHA256s *)\n" + " SKY_coin_UxArray_Hashes(coin__UxArray *,coin__UxArray *)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoSlice_ temp1 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; 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 *""'"); + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + 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)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } - 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 ); + 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: @@ -16759,107 +16573,58 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; - { - 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 ); + 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); } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + if (argc == 0) { + return _wrap_SKY_coin_UxArray_HasDupes__SWIG_1(self, args); } - 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"); + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_HasDupes__SWIG_0(self, args); } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); } - return resultobj; + fail: - return NULL; + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_HasDupes'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray *,GoUint8 *)\n" + " SKY_coin_UxArray_HasDupes(coin__UxArray *,GoUint8 *)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_MnemonicToByteArray",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_MnemonicToByteArray', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + 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( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } return resultobj; fail: @@ -16867,34 +16632,34 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_bip39_IsMnemonicValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice_ temp1 ; + GoInt temp2 ; int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_IsMnemonicValid",&obj0)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_IsMnemonicValid', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + 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_unsigned_char, new_flags)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); } return resultobj; fail: @@ -16902,103 +16667,154 @@ SWIGINTERN PyObject *_wrap_SKY_bip39_IsMnemonicValid(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice_ temp1 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + GoUint8 temp4 ; + int res4 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - 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; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Less",&obj0,&obj1)) SWIG_fail; + ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Less" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Less" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&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_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 (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); + } + } } - arg1 = (httphelper__Address *)(argp1); - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + 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); + } + } + } } - 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_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoUint64 temp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoSlice_ temp1 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - temp1 = 0; - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Coins_UnmarshalJSON",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Coins_UnmarshalJSON', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + 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( *arg1 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } return resultobj; fail: @@ -17006,61 +16822,89 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint64 temp1 ; - GoSlice_ temp2 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - { - temp1 = 0; - arg1 = &temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&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 *)":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 )); + 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); + } + } } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + 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); + } + } + } } - 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_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp1 ; + GoSlice_ temp1 ; GoUint64 temp2 ; GoUint32 result; { - temp1 = 0; - arg1 = &temp1; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } { temp2 = 0; arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_Value")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Coins_Value(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_From_long( *arg1 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); @@ -17071,68 +16915,76 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(s } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoUint64 temp1 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; - { - temp1 = 0; - arg1 = &temp1; + 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_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"); + 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); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; } - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); - } - return resultobj; + fail: - return NULL; + 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_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint64 temp1 ; - GoSlice_ 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; { - temp1 = 0; - arg1 = &temp1; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + temp3 = 0; + arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(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_From_long( *arg1 )); + 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( *arg3 )); } return resultobj; fail: @@ -17140,63 +16992,95 @@ SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp1 ; - GoUint64 temp2 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - { - temp1 = 0; - arg1 = &temp1; - } - { - temp2 = 0; - arg2 = &temp2; + 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 *)":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 )); + 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); + } } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + 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_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 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; { - arg2 = &temp2; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_NewClient",&obj0)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_NewClient', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sub")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + 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: @@ -17204,171 +17088,159 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 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 < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Sub__SWIG_1(self, args); } - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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; + 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_webrpc_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + 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; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; { - 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); + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Add")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->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_webrpc_Client_GetStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetStatus",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } - 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 *""'"); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } - arg2 = (StatusResult_Handle *)(argp2); - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetTransactionByID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetTransactionByID",&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 < 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_webrpc_Client_GetTransactionByID', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Add__SWIG_1(self, args); } - 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 *""'"); + 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); + } + } } - 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; + 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_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + 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_webrpc_Client_GetAddressUxOuts",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_NewAddressUxOuts")) SWIG_fail; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); } - 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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -17376,90 +17248,63 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 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 < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetBlocksInRange",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + if (argc == 0) { + return _wrap_SKY_coin_NewAddressUxOuts__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_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 ); + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_NewAddressUxOuts__SWIG_0(self, args); + } } - return resultobj; + fail: - return NULL; + 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_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetBlocksBySeq",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&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_webrpc_Client_GetBlocksBySeq', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(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( arg3->data, arg3->len )); - free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -17467,196 +17312,171 @@ SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSED } -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetLastBlocks" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_0(self, args); + } } - return resultobj; + 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: - return NULL; + 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_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten__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 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; 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; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:SKY_wallet_CreateOptionsHandle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Flatten",&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_CreateOptionsHandle', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + 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 'SKY_wallet_CreateOptionsHandle', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + 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_wallet_CreateOptionsHandle', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; + 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); } - ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "4"" of type '" "GoUint8""'"); - } - arg4 = (GoUint8)(val4); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; } - (&arg5)->p = buffer; - (&arg5)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_0(self, args); } - (&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)); + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(self, args); + } } - return resultobj; + fail: - return NULL; + 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_cli_App_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - App__Handle arg1 ; - GoString arg2 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_App_Run",&obj0,&obj1)) SWIG_fail; + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Sub",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_App_Run', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + SWIG_AsVal_long(obj1, (long*)&arg2); } - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_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_GetCoin",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Add",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + { + 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( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -17664,28 +17484,38 @@ 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_coin_AddressUxOuts_Get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; { - 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_cli_Config_GetRPCAddress",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( 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: @@ -17693,61 +17523,86 @@ SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - { - arg2 = &temp2; + 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 *)"O:SKY_cli_RPCClientFromApp",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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); + } + } } - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + 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); + } + } } - 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_Getenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoUint8 temp3 ; + int res3 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_HasKey",&obj0,&obj1)) SWIG_fail; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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; + 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_Getenv(arg1,arg2); + 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_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_char, new_flags)); } return resultobj; fail: @@ -17755,237 +17610,205 @@ 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_coin_AddressUxOuts_GetOutputLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoInt *arg3 = (GoInt *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoInt temp3 ; + int res3 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_Setenv",&obj0,&obj1)) SWIG_fail; + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_GetOutputLength",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + 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_Setenv', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->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_GetOutputLength" "', argument " "2"" of type '" "cipher__Address *""'"); } - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long_long, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Length(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 ; + AddressUxOuts_Handle 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_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 *""'"); + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Length",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalanceFromUxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(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 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; void *argp2 = 0 ; int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalanceFromUxOut",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "2"" of type '" "coin__UxOut *""'"); + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - 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 (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,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_coin_AddressUxOuts_Set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Add",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Add" "', argument " "1"" of type '" "wallet__Balance *""'"); +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } - 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 *""'"); + 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); + } + } } - 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 *""'"); + 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); + } + } + } } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; + fail: - return NULL; + 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_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Handle temp1 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Sub",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Sub" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Sub" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Sub" "', argument " "3"" of type '" "wallet__Balance *""'"); + { + arg1 = &temp1; } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,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_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Balance_Equals",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Equals" "', argument " "1"" of type '" "wallet__Balance *""'"); + { + arg2 = &temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Copy",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (wallet__Balance *)(argp2); - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Transaction_Copy(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)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); } return resultobj; fail: @@ -17993,31 +17816,26 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(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 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + coin__Transaction *temp2 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Balance_IsZero",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_IsZero" "', argument " "1"" of type '" "wallet__Balance *""'"); + { + temp2 = NULL; + arg2 = &temp2; } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetTransactionObject",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Transaction, 0 )); } return resultobj; fail: @@ -18025,66 +17843,54 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_droplet_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 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_ResetInputs",&obj0,&obj1)) SWIG_fail; { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_FromString",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_droplet_FromString', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_droplet_FromString(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_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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoString 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_coin_Transaction_GetInputsCount",&obj0)) SWIG_fail; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_ToString",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_droplet_ToString" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(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(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: @@ -18092,134 +17898,137 @@ SWIGINTERN PyObject *_wrap_SKY_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputAt(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 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + long long val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - arg3 = &temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableEntry",&obj0,&obj1)) SWIG_fail; + 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); { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewReadableEntry', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewReadableEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); + 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 = (wallet__Entry *)(argp2); - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - Handle temp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + long long val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; { - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableWallet",&obj0)) SWIG_fail; + 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); { - 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; + 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_wallet_LoadReadableWallet(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(unsigned char (*)[32])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_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; + 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_wallet_ReadableWallet_Save",&obj0,&obj1)) SWIG_fail; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetOutputsCount",&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_wallet_ReadableWallet_Save', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableWallet_Save(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_long_long, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; + 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_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Load', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + 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 *""'"); } - result = (GoUint32)SKY_wallet_ReadableWallet_Load(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: @@ -18227,17 +18036,35 @@ 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_coin_Transaction_SetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; + 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 *)"O:SKY_wallet_ReadableWallet_Erase",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetOutputAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_Transaction_SetOutputAt" "', argument " "3"" of type '" "coin__TransactionOutput *""'"); + } + arg3 = (coin__TransactionOutput *)(argp3); + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -18245,20 +18072,27 @@ SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(PyObject *SWIGUNUSEDP } -SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignaturesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle *arg1 = (Config__Handle *) 0 ; - Handle temp1 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; GoUint32 result; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetSignaturesCount",&obj0)) SWIG_fail; { - arg1 = &temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_LoadConfig")) SWIG_fail; - result = (GoUint32)SKY_cli_LoadConfig(arg1); + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); } return resultobj; fail: @@ -18266,169 +18100,200 @@ 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_coin_Transaction_GetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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); { - 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_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg3 = &p->data; } + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + 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; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + 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); { - 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_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_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Handle temp2 ; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushSignature",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + 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_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + long long val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromContext",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetOutputs",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_RPCClientFromContext(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_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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetSignatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Handle temp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + long long val2 ; + int ecode2 = 0 ; 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_coin_Transaction_ResetSignatures",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_cli_ConfigFromContext(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)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; GoSlice_ temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } { temp2.data = NULL; temp2.len = 0; temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromBytes_Password")) SWIG_fail; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_VerifyInput",&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_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 ); @@ -18439,47 +18304,67 @@ SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUS } -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; +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + 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 *)":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 ); + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(self, args); + } } - 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_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; + Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoUint16 temp3 ; + int res3 = SWIG_TMPOBJ ; 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 *""'"); + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (coin__UxOut *)(argp1); { void *argp = 0; int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); @@ -18488,30 +18373,38 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), P cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(unsigned char (*)[32])arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_SnapshotHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 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_coin_UxOut_SnapshotHash" "', argument " "1"" of type '" "coin__UxOut *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_TransactionOutput_UxID" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); } - arg1 = (coin__UxOut *)(argp1); + arg1 = (coin__TransactionOutput *)(argp1); { void *argp = 0; int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); @@ -18520,39 +18413,15 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM( cipher_SHA256* p = (cipher_SHA256*)argp; arg2 = &p->data; } - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxBody_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxBody_Hash" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); { void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + 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_coin_UxBody_Hash(arg1,(unsigned char (*)[32])arg2); + 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: @@ -18560,145 +18429,156 @@ 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_Transaction_PushOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3 = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_CoinHours",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "1"" of type '" "coin__UxOut *""'"); + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + unsigned long long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_Transaction_PushOutput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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""'"); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "3"" of type '" "GoUint64""'"); } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + 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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; { - 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; + 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; } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Hashes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_SignInputs(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) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[2] = { + PyObject *argv[3] = { 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++) { + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Hashes__SWIG_1(self, args); + if (argc == 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 == 1) { + if (argc == 2) { int _v; { - _v = PyList_Check(argv[0]) ? 1 : 0; + _v = PyInt_Check(argv[0]) ? 1 : 0; } if (_v) { - return _wrap_SKY_coin_UxArray_Hashes__SWIG_0(self, args); + { + _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_UxArray_Hashes'.\n" + 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_UxArray_Hashes(coin_UxOutArray *,cipher_SHA256s *)\n" - " SKY_coin_UxArray_Hashes(coin__UxArray *,coin__UxArray *)\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_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - GoUint8 temp2 ; + Transaction__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_HasDupes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_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_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_char, new_flags)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); } return resultobj; fail: @@ -18706,93 +18586,65 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSE } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_HasDupes__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_HasDupes__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_HasDupes'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray *,GoUint8 *)\n" - " SKY_coin_UxArray_HasDupes(coin__UxArray *,GoUint8 *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + SWIG_AsVal_long(obj0, (long*)&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 ); + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; } + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice_ temp1 ; - GoInt temp2 ; + 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.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + SWIG_AsVal_long(obj0, (long*)&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 ); + 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_long_long, new_flags)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); } return resultobj; fail: @@ -18800,52 +18652,29 @@ 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_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; 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; } - 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)); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxID",&obj0)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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)); + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -18853,194 +18682,104 @@ 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; +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; - 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; - { - 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 (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxIDHex",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); - } - } - } + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } - + return resultobj; fail: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(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 ; + Transaction__Handle arg1 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_UpdateHeader",&obj0)) SWIG_fail; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(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_Swap(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; - if (!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 (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_HashInner",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); - } - } - } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; } - + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; fail: - 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; + return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoSlice_ temp1 ; - GoUint64 temp2 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; 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_coin_Transaction_Serialize",&obj0)) SWIG_fail; { - temp2 = 0; - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Coins")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_Serialize(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 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -19048,76 +18787,60 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_1(PyObject *SWIGUNUSEDPA } -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_TransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; + 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); + { + arg2 = &temp2; } - 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_TransactionDeserialize",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_coin_TransactionDeserialize', expecting string"); } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; fail: - 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_Transaction_OutputHours(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 ; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; GoUint32 result; { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + temp2 = 0; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; { - temp3 = 0; - arg3 = &temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - 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); + result = (GoUint32)SKY_coin_Transaction_OutputHours(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( *arg3 )); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -19125,183 +18848,134 @@ 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_Create_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Handle temp1 ; + 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); - } + { + arg1 = &temp1; } - 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 *)":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: - 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_GetTransactionsObject(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 ; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_GetTransactionsObject",&obj0,&obj1)) SWIG_fail; { - 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; + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GoSlice_, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_GetTransactionsObject" "', argument " "2"" of type '" "coin__UxArray **""'"); } + arg2 = (coin__UxArray **)(argp2); + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Length",&obj0)) SWIG_fail; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sub")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Sub(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_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_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; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + SWIG_AsVal_long(obj0, (long*)&arg1); } { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); + SWIG_AsVal_long(obj1, (long*)&arg2); } + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 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 < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_SKY_coin_UxArray_Sub__SWIG_1(self, args); - } - if (argc == 2) { - int _v; - { - _v = PyList_Check(argv[0]) ? 1 : 0; - } - if (_v) { - { - _v = PyList_Check(argv[1]) ? 1 : 0; - } - if (_v) { - return _wrap_SKY_coin_UxArray_Sub__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Sub'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_coin_UxArray_Sub(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" - " SKY_coin_UxArray_Sub(coin__UxArray *,coin__UxArray *,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; + { + temp3 = 0; + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Fees",&obj0,&obj1)) SWIG_fail; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; + arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Add")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Transactions_Fees(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 ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -19309,71 +18983,34 @@ SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM } -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) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - GoSlice_ temp1 ; - Handle temp2 ; + 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; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_GetAt",&obj0,&obj1)) SWIG_fail; { - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_NewAddressUxOuts")) SWIG_fail; - result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + 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(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -19381,43 +19018,9 @@ SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts__SWIG_1(PyObject *SWIGUNUSE } -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_coin_Transactions_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; + Transactions__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoSlice_ temp2 ; PyObject * obj0 = 0 ; @@ -19429,11 +19032,11 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(PyObject *SWIGUNU temp2.cap = 0; arg2 = (coin__UxArray *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + 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 )); @@ -19445,7 +19048,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(PyObject *SWIGUNU } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 @@ -19463,7 +19066,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys(PyObject *self, PyObject _v = PyInt_Check(argv[0]) ? 1 : 0; } if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_0(self, args); + return _wrap_SKY_coin_Transactions_Hashes__SWIG_0(self, args); } } if (argc == 1) { @@ -19472,42 +19075,75 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys(PyObject *self, PyObject _v = PyInt_Check(argv[0]) ? 1 : 0; } if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(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_AddressUxOuts_Keys'.\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_AddressUxOuts_Keys(AddressUxOuts_Handle,cipher_Addresses *)\n" - " SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle,coin__UxArray *)\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_AddressUxOuts_Flatten__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + Transactions__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Size",&obj0)) SWIG_fail; { - 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_coin_AddressUxOuts_Flatten",&obj0)) SWIG_fail; + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + GoUint32 arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_TruncateBytesTo",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_TruncateBytesTo" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -19515,51 +19151,12 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(PyObject *SWIG } -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) { +SWIGINTERN PyObject *_wrap_SKY_coin_SortTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + FeeCalculator temp2 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -19568,14 +19165,17 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Sub(PyObject *SWIGUNUSEDPARM(s { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Sub",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SortTransactions",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } { - SWIG_AsVal_long(obj1, (long*)&arg2); + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; + arg2 = &temp2; } - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); @@ -19586,156 +19186,101 @@ 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_coin_NewSortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; + 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; - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Add",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewSortableTransactions",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } { - SWIG_AsVal_long(obj1, (long*)&arg2); + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; + arg2 = &temp2; } - 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_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_AddressUxOuts_Get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Sort(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 ; + SortableTransactionResult_Handle arg1 ; + void *argp1 ; + int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Sort",&obj0)) SWIG_fail; { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); + 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)); + } } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); 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_coin_SortableTransactions_Len(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 ; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + void *argp1 ; + int res1 = 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_HasKey",&obj0,&obj1)) SWIG_fail; + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Len",&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_HasKey" "', argument " "2"" of type '" "cipher__Address *""'"); + 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)); + } } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); } 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)); + 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: @@ -19743,36 +19288,55 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_HasKey(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_GetOutputLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Less(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 ; + 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; - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_GetOutputLength",&obj0,&obj1)) SWIG_fail; + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Less",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_GetOutputLength" "', argument " "2"" of type '" "cipher__Address *""'"); + 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)); + } } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); } 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)); + 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: @@ -19780,27 +19344,82 @@ 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_coin_SortableTransactions_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Length",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Swap",&obj0,&obj1,&obj2)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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)); + } } - result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + 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)); - 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_VerifyTransactionCoinsSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_VerifyTransactionCoinsSpending")) SWIG_fail; + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } return resultobj; fail: @@ -19808,35 +19427,81 @@ 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_coin_VerifyTransactionCoinsSpending(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(self, args); + } + if (argc == 2) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionCoinsSpending'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray *,coin_UxOutArray *)\n" + " SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoSlice_ temp2 ; GoSlice_ temp3 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } { temp3.data = NULL; temp3.len = 0; temp3.cap = 0; arg3 = (coin__UxArray *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1)) SWIG_fail; + 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)); { - 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 *""'"); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); free( (void*)arg3->data ); @@ -19847,7 +19512,7 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 @@ -19859,114 +19524,66 @@ SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject * for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } - if (argc == 2) { + if (argc == 1) { int _v; { - _v = PyInt_Check(argv[0]) ? 1 : 0; + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); } 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); - } + return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(self, args); } } if (argc == 3) { int _v; { - _v = PyInt_Check(argv[0]) ? 1 : 0; + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); - _v = SWIG_CheckState(res); + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } if (_v) { { _v = PyList_Check(argv[2]) ? 1 : 0; } if (_v) { - return _wrap_SKY_coin_AddressUxOuts_Set__SWIG_0(self, args); + 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_AddressUxOuts_Set'.\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_AddressUxOuts_Set(AddressUxOuts_Handle,cipher__Address *,coin_UxOutArray *)\n" - " SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle,cipher__Address *,coin__UxArray *)\n"); + " wrap_SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin_UxOutArray *,coin_UxOutArray *)\n" + " SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin__UxArray *,coin__UxArray *)\n"); return 0; } -SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - Handle temp2 ; + Handle arg1 ; PyObject * obj0 = 0 ; - GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_close",&obj0)) 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_api_NewClient', expecting string"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_api_NewClient(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + SWIG_AsVal_long(obj0, (long*)&arg1); } + SKY_handle_close(arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_handle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CSRF",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; + Handle arg1 ; Handle *arg2 = (Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; @@ -19975,11 +19592,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self) { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Version",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_copy",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + result = (GoUint32)SKY_handle_copy(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); @@ -19990,25 +19607,28 @@ 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_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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_Outputs",&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_Outputs(arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -20016,38 +19636,26 @@ 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_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 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_OutputsForAddresses",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Progress_GetCurrent",&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_OutputsForAddresses', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); + 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(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -20055,38 +19663,26 @@ 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_Handle_Block_GetHeadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 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_OutputsForHashes",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadSeq",&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_OutputsForHashes', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + 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(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -20094,25 +19690,28 @@ 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_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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_CoinSupply",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + result = (GoUint32)SKY_Handle_Block_GetHeadHash(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: @@ -20120,37 +19719,28 @@ 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_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + 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_BlockByHash",&obj0,&obj1)) 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_BlockByHash', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(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: @@ -20158,9 +19748,9 @@ 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_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; unsigned long long val2 ; @@ -20173,16 +19763,16 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(PyObject *SWIGUNUSEDPARM(se { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Blocks_GetAt",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_BlockBySeq" "', argument " "2"" of type '" "GoUint64""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Blocks_GetAt" "', argument " "2"" of type '" "GoUint64""'"); } arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + 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)); @@ -20193,38 +19783,26 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 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_Blocks",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&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_Blocks', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_Blocks(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: @@ -20232,34 +19810,26 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), } -SWIGINTERN PyObject *_wrap_SKY_api_Client_LastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(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 ; + 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_LastBlocks",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_LastBlocks" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } return resultobj; fail: @@ -20267,25 +19837,27 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_LastBlocks(PyObject *SWIGUNUSEDPARM(se } -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainMetadata",&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_BlockchainMetadata(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_From_long(*arg2)); + 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: @@ -20293,25 +19865,55 @@ 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_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Strings__Handle arg1 ; PyObject * obj0 = 0 ; GoUint32 result; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_Sort",&obj0)) SWIG_fail; { - arg2 = &temp2; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainProgress",&obj0)) SWIG_fail; + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + 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(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -20319,77 +19921,57 @@ 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_api_Handle_Client_GetWalletDir(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 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; 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); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&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_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 *""'"); + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_Balance(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_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString 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_UxOut",&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_UxOut', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UxOut(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: @@ -20397,37 +19979,28 @@ 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_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString 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_AddressUxOuts",&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_AddressUxOuts', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_AddressUxOuts(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: @@ -20435,37 +20008,33 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Handle temp3 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 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_Wallet",&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); } { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Wallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + SWIG_AsVal_long(obj1, (long*)&arg2); } - result = (GoUint32)SKY_api_Client_Wallet(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_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } return resultobj; fail: @@ -20473,10 +20042,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_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -20484,11 +20053,11 @@ 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_api_Handle_GetWalletMeta",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_Wallets(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)); @@ -20499,58 +20068,27 @@ 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_api_Handle_GetWalletEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - long long val4 ; - int ecode4 = 0 ; - Handle temp5 ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + 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_CreateUnencryptedWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "4"" of type '" "GoInt""'"); - } - arg4 = (GoInt)(val4); - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); + 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: @@ -20558,70 +20096,27 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(PyObject *SWIG } -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(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 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - long long val5 ; - int ecode5 = 0 ; - Handle temp6 ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + 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_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); + 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(*arg6)); + 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: @@ -20629,201 +20124,212 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(PyObject *SWIGUN } -SWIGINTERN PyObject *_wrap_SKY_api_Client_NewWalletAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(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 ; + 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; - { - arg5 = &temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_NewWalletAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Handle_WalletGetEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NewWalletAddress', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_api_Client_NewWalletAddress" "', argument " "3"" of type '" "GoInt""'"); + 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""'"); } - 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; + 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 *""'"); } - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + arg3 = (cipher__Address *)(argp3); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); + 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_WalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(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 ; + 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 ; - 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); + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; } { - 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; + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; } - 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 *)"OO:SKY_api_Handle_WalletResponseGetEntry",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletResponseGetEntry" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(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 ; - 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 ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; 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; + 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_Spend', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_Spend" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); - } - (&arg5)->p = buffer; - (&arg5)->n = size - 1; - } - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_SpendResult_Handle, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_api_Client_Spend" "', argument " "6"" of type '" "SpendResult_Handle *""'"); - } - arg6 = (SpendResult_Handle *)(argp6); - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + 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_CreateTransaction(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 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Handle temp2 ; - Handle temp3 ; + 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_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; { - arg3 = &temp3; + SWIG_AsVal_long(obj0, (long*)&arg1); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CreateTransaction",&obj0)) SWIG_fail; + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletsResponseGetAt" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } @@ -20833,67 +20339,57 @@ 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_api_Handle_GetWalletFolderAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString 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.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletFolderAddress",&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_api_Handle_GetWalletFolderAddress(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_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } - 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_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Wallet__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_WalletFolderName",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletSeed",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_WalletFolderName(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_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -20901,37 +20397,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_api_Handle_GetWalletLastSeed(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 ; + Wallet__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_api_Handle_GetWalletLastSeed",&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_api_Handle_GetWalletLastSeed(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: @@ -20939,49 +20426,47 @@ 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_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; + BuildInfo_Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg3 = (GoString_ *) 0 ; GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp2 ; + GoString temp3 ; GoString temp4 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } { temp4.p = NULL; temp4.n = 0; arg4 = (GoString_ *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletSeed",&obj0,&obj1,&obj2)) SWIG_fail; + 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)); { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } { - 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); } - result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); free( (void*)arg4->p ); @@ -20992,37 +20477,43 @@ 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_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Handle temp1 ; + GoString temp3 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; + arg1 = &temp1; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&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( 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_NetworkConnection', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_map_Get', expecting string"); } (&arg2)->p = buffer; (&arg2)->n = size - 1; } - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + 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: @@ -21030,34 +20521,32 @@ 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_map_HasKey(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 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + Handle temp1 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; + GoUint8 result; { - arg3 = &temp3; + arg1 = &temp1; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnections",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_HasKey",&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_map_HasKey', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - 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)); + result = (GoUint8)SKY_map_HasKey(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); } return resultobj; fail: @@ -21065,29 +20554,20 @@ 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_map_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + Handle temp1 ; GoUint32 result; { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkDefaultPeers",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg1 = &temp1; } - result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,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_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); } return resultobj; fail: @@ -21095,123 +20575,134 @@ 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_testutil_MakeAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkTrustedPeers",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); + arg1 = (cipher__Address *)(argp1); + result = (GoUint32)SKY_testutil_MakeAddress(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_NetworkExchangedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_apputil_CatchInterruptPanic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkExchangedPeers",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchInterruptPanic")) SWIG_fail; + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); 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) { +SWIGINTERN PyObject *_wrap_SKY_apputil_CatchDebug(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); + if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchDebug")) SWIG_fail; + result = (GoUint32)SKY_apputil_CatchDebug(); 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_apputil_PrintProgramStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_PrintProgramStatus")) SWIG_fail; + result = (GoUint32)SKY_apputil_PrintProgramStatus(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; GoString arg2 ; - 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_Transaction",&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_Transaction', 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_Transaction(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: @@ -21219,38 +20710,33 @@ 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_droplet_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2 = 0; + arg2 = &temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_FromString",&obj0)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( 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_Transactions', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_droplet_FromString', expecting string"); } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + result = (GoUint32)SKY_droplet_FromString(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: @@ -21258,38 +20744,32 @@ 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_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_ConfirmedTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_ConfirmedTransactions', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_ToString",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_droplet_ToString" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -21297,139 +20777,115 @@ 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_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UnconfirmedTransactions', expecting string"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; + 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; - { - temp3.p = NULL; - 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 *)"OOO:SKY_fee_VerifyTransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_api_Client_InjectTransaction(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_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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + 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; - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_ResendUnconfirmedTransactions",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + 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)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; + GoUint64 arg1 ; + GoUint32 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_RawTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_RawTransaction', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + temp3 = 0; + arg3 = &temp3; } - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_RequiredFee",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_RequiredFee" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_RequiredFee" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -21437,37 +20893,39 @@ 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_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + GoUint64 arg1 ; + GoUint32 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { + temp3 = 0; arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressTransactions', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_RemainingHours",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_RemainingHours" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_RemainingHours" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); } return resultobj; fail: @@ -21475,34 +20933,47 @@ 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_fee_TransactionFee__SWIG_1(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 ; + 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; { - arg3 = &temp3; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp4 = 0; + arg4 = &temp4; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_TransactionFee",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg2 = (api__RichlistParams *)(argp2); - result = (GoUint32)SKY_api_Client_Richlist(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_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_From_long(*arg3)); + 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: @@ -21510,82 +20981,116 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; +SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; - { - temp2 = 0; - 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_api_Client_AddressCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_api_Client_AddressCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + 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_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( 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_UnloadWallet', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_InitDataDir', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,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_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; GoUint32 result; { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Health",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; } - result = (GoUint32)SKY_api_Client_Health(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_From_long(*arg2)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); } return resultobj; fail: @@ -21593,49 +21098,35 @@ 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_file_ResolveResourceDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; GoUint32 result; { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_EncryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_EncryptWallet', expecting string"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_ResolveResourceDirectory",&obj0)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &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_EncryptWallet', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_ResolveResourceDirectory', expecting string"); } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); 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( arg2->p, arg2->n )); + free( (void*)arg2->p ); } return resultobj; fail: @@ -21643,31 +21134,40 @@ 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_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + GoString arg1 ; GoString arg2 ; GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; GoUint32 result; { - arg4 = &temp4; + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&obj0,&obj1,&obj2)) 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; } { 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); } (&arg2)->p = buffer; (&arg2)->n = size - 1; @@ -21677,15 +21177,16 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM 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"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); } (&arg3)->p = buffer; (&arg3)->n = size - 1; } - result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + 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(*arg4)); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); } return resultobj; fail: @@ -21693,35 +21194,34 @@ SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 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_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_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_cipher_Ripemd160_Set', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Address_UnmarshalJSON', expecting string"); } (&arg2)->data = buffer; (&arg2)->len = size - 1; (&arg2)->cap = size; } - result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])arg1,arg2); + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -21729,105 +21229,102 @@ 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_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + httphelper__Address *arg1 = (httphelper__Address *) 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; } - { - 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; + 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 *""'"); } - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(unsigned char (*)[20])arg2); + arg1 = (httphelper__Address *)(argp1); + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; GoSlice arg2 ; + GoUint64 temp1 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256_Set",&obj0,&obj1)) SWIG_fail; { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; + temp1 = 0; + arg1 = &temp1; } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Coins_UnmarshalJSON",&obj0)) SWIG_fail; { char* buffer = 0; size_t size = 0; - int res = SWIG_AsCharPtrAndSize( 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_SHA256_Set', expecting string"); + 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_cipher_SHA256_Set((unsigned char (*)[32])arg1,arg2); + 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_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 temp1 ; + GoSlice_ temp2 ; GoUint32 result; { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; + temp1 = 0; + arg1 = &temp1; } - 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; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_cipher_SHA256_Hex((unsigned char (*)[32])arg1,arg2); + 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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + 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: @@ -21835,234 +21332,164 @@ 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_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp1 ; + GoUint64 temp2 ; 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; + temp1 = 0; + arg1 = &temp1; } { - 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; + 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)); { - 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( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); } - result = (GoUint32)SKY_cipher_SHA256_Xor((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoUint64 temp1 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SumSHA256",&obj0,&obj1)) SWIG_fail; + { + temp1 = 0; + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Hours_UnmarshalJSON",&obj0)) SWIG_fail; { char* buffer = 0; size_t size = 0; int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SumSHA256', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Hours_UnmarshalJSON', 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_httphelper_Hours_UnmarshalJSON(arg1,arg2); + 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; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); } - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 temp1 ; + GoSlice_ temp2 ; 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; + temp1 = 0; + arg1 = &temp1; } { - 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; + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(unsigned char (*)[32])arg2); + 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_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp1 ; + GoUint64 temp2 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DoubleSHA256', expecting string"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; + temp1 = 0; + arg1 = &temp1; } { - 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; + temp2 = 0; + arg2 = &temp2; } - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(unsigned char (*)[32])arg2); + if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_Value")) SWIG_fail; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_AddSHA256",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; } + if (!PyArg_ParseTuple(args,(char *)":SKY_iputil_LocalhostIP")) SWIG_fail; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - 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_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); } - result = (GoUint32)SKY_cipher_AddSHA256((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Merkle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Merkle" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_iputil_IsLocalhost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint8 temp2 ; int res2 = SWIG_TMPOBJ ; @@ -22070,16 +21497,18 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self) GoUint32 result; arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Null",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_IsLocalhost",&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; + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_iputil_IsLocalhost', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_cipher_SHA256_Null((unsigned char (*)[32])arg1,arg2); + 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))); @@ -22093,11 +21522,14 @@ SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *_wrap_SKY_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; GoString temp2 ; + GoUint16 temp3 ; + int res3 = SWIG_TMPOBJ ; PyObject * obj0 = 0 ; GoUint32 result; @@ -22106,42 +21538,29 @@ 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; + 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_JsonEncode_Handle(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_FromCharPtrAndSize( arg2->p, arg2->n )); free( (void*)arg2->p ); } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2 = 0; - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Progress_GetCurrent",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + 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: @@ -22149,257 +21568,271 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(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); + 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_From_long( *arg2 )); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_logging_DisableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); + 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_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_logging_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetPreviousBlockHash",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + if (!PyArg_ParseTuple(args,(char *)":SKY_logging_Disable")) SWIG_fail; + result = (GoUint32)SKY_logging_Disable(); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; + GoUint64 arg1 ; GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; - Handle temp3 ; + 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_Handle_Blocks_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } + 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_Handle_Blocks_GetAt" "', argument " "2"" of type '" "GoUint64""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_NewBalance" "', 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)); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalance" "', argument " "3"" of type '" "wallet__Balance *""'"); } + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalanceFromUxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; + 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; - { - temp2 = 0; - arg2 = &temp2; + 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 (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(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_Handle_Connections_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; + 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; - { - temp2 = 0; - arg2 = &temp2; + 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 *""'"); } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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_Handle_Connections_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *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: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + 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; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + arg1 = (wallet__Balance *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Sub" "', argument " "2"" of type '" "wallet__Balance *""'"); + } + arg2 = (wallet__Balance *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Sub" "', argument " "3"" of type '" "wallet__Balance *""'"); } + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Strings__Handle arg1 ; + 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 *)"O:SKY_Handle_Strings_Sort",&obj0)) 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 *""'"); } - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + 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_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(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 ; + 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 ; - PyObject * obj1 = 0 ; GoUint32 result; - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - 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); + arg1 = (wallet__Balance *)(argp1); + result = (GoUint32)SKY_wallet_Balance_IsZero(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_char, new_flags)); } return resultobj; fail: @@ -22407,9 +21840,9 @@ SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(sel } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; + GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoString temp2 ; PyObject * obj0 = 0 ; @@ -22420,11 +21853,18 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUS temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&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_api_Handle_Client_GetWalletDir(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->p, arg2->n )); @@ -22436,91 +21876,85 @@ 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_wallet_Entry_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletFileName",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + arg1 = (wallet__Entry *)(argp1); + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; GoUint32 result; - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletLabel",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + 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 *""'"); } - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + arg1 = (wallet__Entry *)(argp1); + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; + GoString arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GoUint32 result; { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_Client_GetWalletFullPath",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); + arg3 = &temp3; } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableEntry",&obj0,&obj1)) SWIG_fail; { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewReadableEntry', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewReadableEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); + } + arg2 = (wallet__Entry *)(argp2); + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -22528,10 +21962,10 @@ 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_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; Handle temp2 ; PyObject * obj0 = 0 ; GoUint32 result; @@ -22539,11 +21973,18 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM { arg2 = &temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletMeta",&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_Handle_GetWalletMeta(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)); @@ -22554,101 +21995,59 @@ 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_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; 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_wallet_ReadableWallet_Save",&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)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletResponseEntriesCount",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Save', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(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 ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; 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; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "3"" of type '" "cipher__Address *""'"); - } - arg3 = (cipher__Address *)(argp3); { - void *argp = 0; - int res = SWIG_ConvertPtr(obj3, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg4 = &p->data; + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Load', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; } - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(unsigned char (*)[33])arg4); + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: @@ -22656,105 +22055,83 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(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 ; + ReadableWallet__Handle arg1 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; GoUint32 result; - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletResponseGetEntry",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableWallet_Erase",&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_api_Handle_WalletResponseGetEntry" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseIsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; + GoInterface arg1 ; + void *argp1 ; + int res1 = 0 ; PyObject * obj0 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseIsEncrypted",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewError",&obj0)) SWIG_fail; { - SWIG_AsVal_long(obj0, (long*)&arg1); + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GoInterface, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); + } else { + arg1 = *((GoInterface *)(argp1)); + } } - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + result = (GoUint32)SKY_wallet_NewError(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_char, new_flags)); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetCryptoType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__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_api_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewWallet",&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_NewWallet', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; } - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,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_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); } return resultobj; fail: @@ -22762,41 +22139,54 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetCryptoType(PyObject * } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; GoUint32 result; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Lock', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Lock', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; } + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(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 ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; Handle temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -22805,16 +22195,22 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNU { arg3 = &temp3; } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Unlock",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletsResponseGetAt" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Unlock', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); { resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); @@ -22825,36 +22221,88 @@ 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_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__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_api_Handle_GetWalletFolderAddress",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Load",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Load', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_wallet_Load(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Save",&obj0,&obj1)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(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_Save', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Validate",&obj0)) SWIG_fail; { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); + SWIG_AsVal_long(obj0, (long*)&arg1); } + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -22867,11 +22315,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletSeed",&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_api_Handle_GetWalletSeed(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 )); @@ -22883,7 +22331,7 @@ 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_wallet_Wallet_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -22896,11 +22344,11 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSED temp2.n = 0; arg2 = (GoString_ *)&temp2; } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletLastSeed",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Version",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + 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 )); @@ -22912,15 +22360,11 @@ 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_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - BuildInfo_Handle arg1 ; + Wallet__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; @@ -22929,176 +22373,214 @@ SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDP temp2.n = 0; arg2 = (GoString_ *)&temp2; } - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetBuildInfoData",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Filename",&obj0)) SWIG_fail; { SWIG_AsVal_long(obj0, (long*)&arg1); } - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + 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 ); } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; GoUint32 result; - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_EnableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_EnableColors(); + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_logging_DisableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_DisableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_DisableColors(); + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_IsEncrypted",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SKY_logging_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +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; - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_Disable")) SWIG_fail; - result = (GoUint32)SKY_logging_Disable(); + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_Wallet_GenerateAddresses" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(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 ; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); } - arg1 = (api__RichlistParams *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetEntry(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 ; + 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; - 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 *""'"); + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_GetEntry",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "3"" of type '" "wallet__Entry *""'"); + } + arg3 = (wallet__Entry *)(argp3); + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); } - arg1 = (api__RichlistParams *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "2"" of type '" "BOOL""'"); - } - arg2 = (BOOL)(val2); - if (arg1) (arg1)->IncludeDistribution = arg2; - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_AddEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + Wallet__Handle arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; 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 *""'"); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_AddEntry",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); } - arg1 = (api__RichlistParams *)(argp1); - result = ((arg1)->IncludeDistribution); + 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: @@ -23106,274 +22588,443 @@ SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject } -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_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + GoUint64 temp4 ; + GoSlice_ temp5 ; + GoUint64 temp6 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; - 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 = 0; + arg4 = &temp4; + } + { + temp5.data = NULL; + temp5.len = 0; + temp5.cap = 0; + arg5 = (coin__UxArray *)&temp5; + } + { + temp6 = 0; + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_DistributeSpendHours",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "3"" of type '" "GoUint8""'"); + } + arg3 = (GoUint8)(val3); + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); + free( (void*)arg5->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg6 )); } - 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_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + GoUint32 result; - 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; } - arg1 = (api__NetworkConnectionsFilter *)(argp1); + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_DistributeCoinHoursProportional",&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 'api__NetworkConnectionsFilter_States_set', expecting string"); + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_DistributeCoinHoursProportional', expecting string"); } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; } - if (arg1) (arg1)->States = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_States_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeCoinHoursProportional" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } - 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) { +SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 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 ; - PyObject * obj1 = 0 ; + GoUint32 result; - 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 *""'"); + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; } - 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; + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewUxBalances",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalances" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); } - 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_wallet_NewUxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; - GoString_ result; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + 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 *""'"); + 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 *""'"); } - 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 ); + arg2 = (coin__UxOut *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewUxBalance" "', argument " "3"" of type '" "wallet__UxBalance *""'"); + } + arg3 = (wallet__UxBalance *)(argp3); + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *result = 0 ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; - 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 ); + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMinimizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMinimizeUxOuts', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + GoSlice_ temp4 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; - 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 *""'"); + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMaximizeUxOuts', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); } - 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_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address___eq__" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address___eq__" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (int)cipher__Address___eq__(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + 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 *result = 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 *)"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 *""'"); + { + arg8 = &temp8; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:SKY_wallet_CreateOptionsHandle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "4"" of type '" "GoUint8""'"); + } + arg4 = (GoUint8)(val4); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg5)->p = buffer; + (&arg5)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg6)->p = buffer; + (&arg6)->n = size - 1; + } + ecode7 = SWIG_AsVal_unsigned_SS_long_SS_long(obj6, &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "7"" of type '" "GoUint64""'"); + } + arg7 = (GoUint64)(val7); + result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg8)); } - 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_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 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__Address_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 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__Address_Version_set" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__Address *)(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__Address_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: @@ -23381,58 +23032,51 @@ SWIGINTERN PyObject *_wrap_cipher__Address_Version_set(PyObject *SWIGUNUSEDPARM( } -SWIGINTERN PyObject *_wrap_cipher__Address_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 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__Address_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 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__Address_Version_get" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__Address *)(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__Address_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 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__Address_Key_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 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__Address_Key_set" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - 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]""'"); + 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: @@ -23440,54 +23084,54 @@ SWIGINTERN PyObject *_wrap_cipher__Address_Key_set(PyObject *SWIGUNUSEDPARM(self } -SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 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__Address_Key_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 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__Address_Key_get" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__Address *)(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__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *result = 0 ; + api__RichlistParams *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 ); + 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__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); + if (!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__Address" "', argument " "1"" of type '" "cipher__Address *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__RichlistParams" "', argument " "1"" of type '" "api__RichlistParams *""'"); } - arg1 = (cipher__Address *)(argp1); + arg1 = (api__RichlistParams *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -23496,37 +23140,188 @@ SWIGINTERN PyObject *_wrap_delete_cipher__Address(PyObject *SWIGUNUSEDPARM(self) } -SWIGINTERN PyObject *cipher__Address_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__Address, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_api__RichlistParams, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - int result; - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!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 '" "cipher__BitcoinAddress___eq__" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + arg1 = (api__NetworkConnectionsFilter *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'api__NetworkConnectionsFilter_States_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->States = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_States_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + result = ((arg1)->States); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:api__NetworkConnectionsFilter_Direction_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'api__NetworkConnectionsFilter_Direction_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->Direction = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_Direction_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + result = ((arg1)->Direction); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_api__NetworkConnectionsFilter")) SWIG_fail; + result = (api__NetworkConnectionsFilter *)calloc(1, sizeof(api__NetworkConnectionsFilter)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_api__NetworkConnectionsFilter",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__NetworkConnectionsFilter" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *api__NetworkConnectionsFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher__Address___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address___eq__" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address___eq__" "', argument " "2"" of type '" "cipher__Address *""'"); } - arg2 = (cipher__BitcoinAddress *)(argp2); - result = (int)cipher__BitcoinAddress___eq__(arg1,arg2); + arg2 = (cipher__Address *)(argp2); + result = (int)cipher__Address___eq__(arg1,arg2); resultobj = SWIG_From_int((int)(result)); return resultobj; fail: @@ -23534,21 +23329,21 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_toStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 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 '" "cipher__BitcoinAddress_toStr" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_toStr" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); - result = (PyObject *)cipher__BitcoinAddress_toStr(arg1); + arg1 = (cipher__Address *)(argp1); + result = (PyObject *)cipher__Address_toStr(arg1); resultobj = result; return resultobj; fail: @@ -23556,9 +23351,9 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -23567,15 +23362,15 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUS 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: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__BitcoinAddress_Version_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_set" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); + 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__BitcoinAddress_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); + 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; @@ -23586,20 +23381,20 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GoUint8_ result; - if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 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 '" "cipher__BitcoinAddress_Version_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_get" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); + arg1 = (cipher__Address *)(argp1); result = (GoUint8_) ((arg1)->Version); resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); return resultobj; @@ -23608,9 +23403,9 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUS } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ *arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -23619,15 +23414,15 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPA 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: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__BitcoinAddress_Key_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_set" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); + 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__BitcoinAddress_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); } arg2 = (unsigned char *)(argp2); { @@ -23645,20 +23440,20 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GoUint8_ *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Key_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 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 '" "cipher__BitcoinAddress_Key_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_get" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); + arg1 = (cipher__Address *)(argp1); result = (GoUint8_ *) ((arg1)->Key); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; @@ -23667,32 +23462,32 @@ SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPA } -SWIGINTERN PyObject *_wrap_new_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_new_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *result = 0 ; + cipher__Address *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_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__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 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_cipher__Address",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__BitcoinAddress" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__Address" "', argument " "1"" of type '" "cipher__Address *""'"); } - arg1 = (cipher__BitcoinAddress *)(argp1); + arg1 = (cipher__Address *)(argp1); free((char *) arg1); resultobj = SWIG_Py_Void(); return resultobj; @@ -23701,14 +23496,219 @@ SWIGINTERN PyObject *_wrap_delete_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPAR } -SWIGINTERN PyObject *cipher__BitcoinAddress_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_cipher__BitcoinAddress, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_cipher__Address, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (int)cipher__BitcoinAddress___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_toStr" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (PyObject *)cipher__BitcoinAddress_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress_Version_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); + } + arg2 = (GoUint8_)(val2); + if (arg1) (arg1)->Version = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Version_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (GoUint8_) ((arg1)->Version); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress_Key_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)20; ++ii) *(unsigned char *)&arg1->Key[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Key_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (GoUint8_ *) ((arg1)->Key); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher__BitcoinAddress")) SWIG_fail; + result = (cipher__BitcoinAddress *)calloc(1, sizeof(cipher__BitcoinAddress)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__BitcoinAddress, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__BitcoinAddress",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__BitcoinAddress" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher__BitcoinAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher__BitcoinAddress, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; @@ -28151,223 +28151,62 @@ static PyMethodDef SwigMethods[] = { { (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_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_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_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_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_testutil_MakeAddress", _wrap_SKY_testutil_MakeAddress, 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_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_GenerateWallet", _wrap_SKY_cli_GenerateWallet, METH_VARARGS, NULL}, { (char *)"SKY_cli_MakeAlphanumericSeed", _wrap_SKY_cli_MakeAlphanumericSeed, 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_base58_String2Hex", _wrap_SKY_base58_String2Hex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_ToInt", _wrap_SKY_base58_Base58_ToInt, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_ToHex", _wrap_SKY_base58_Base58_ToHex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_Base582Int", _wrap_SKY_base58_Base58_Base582Int, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base582Hex", _wrap_SKY_base58_Base582Hex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Base58_BitHex", _wrap_SKY_base58_Base58_BitHex, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Int2Base58", _wrap_SKY_base58_Int2Base58, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Hex2Base58", _wrap_SKY_base58_Hex2Base58, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Hex2Base58String", _wrap_SKY_base58_Hex2Base58String, METH_VARARGS, NULL}, - { (char *)"SKY_base58_Hex2Base58Str", _wrap_SKY_base58_Hex2Base58Str, METH_VARARGS, NULL}, - { (char *)"SKY_handle_close", _wrap_SKY_handle_close, METH_VARARGS, NULL}, - { (char *)"SKY_handle_copy", _wrap_SKY_handle_copy, 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_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_cli_GenerateAddressesInFile", _wrap_SKY_cli_GenerateAddressesInFile, METH_VARARGS, NULL}, - { (char *)"SKY_cli_FormatAddressesAsJSON", _wrap_SKY_cli_FormatAddressesAsJSON, METH_VARARGS, NULL}, - { (char *)"SKY_cli_FormatAddressesAsJoinedArray", _wrap_SKY_cli_FormatAddressesAsJoinedArray, METH_VARARGS, NULL}, - { (char *)"SKY_cli_AddressesToStrings", _wrap_SKY_cli_AddressesToStrings, METH_VARARGS, NULL}, - { (char *)"SKY_cli_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_certutil_NewTLSCertPair", _wrap_SKY_certutil_NewTLSCertPair, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewBlock", _wrap_SKY_coin_NewBlock, METH_VARARGS, NULL}, - { (char *)"SKY_coin_SignedBlock_VerifySignature", _wrap_SKY_coin_SignedBlock_VerifySignature, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewGenesisBlock", _wrap_SKY_coin_NewGenesisBlock, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_HashHeader", _wrap_SKY_coin_Block_HashHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_PreHashHeader", _wrap_SKY_coin_Block_PreHashHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_Time", _wrap_SKY_coin_Block_Time, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_Seq", _wrap_SKY_coin_Block_Seq, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_HashBody", _wrap_SKY_coin_Block_HashBody, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_Size", _wrap_SKY_coin_Block_Size, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_String", _wrap_SKY_coin_Block_String, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Block_GetTransaction", _wrap_SKY_coin_Block_GetTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewBlockHeader", _wrap_SKY_coin_NewBlockHeader, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockHeader_Hash", _wrap_SKY_coin_BlockHeader_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockHeader_Bytes", _wrap_SKY_coin_BlockHeader_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockHeader_String", _wrap_SKY_coin_BlockHeader_String, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockBody_Hash", _wrap_SKY_coin_BlockBody_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockBody_Size", _wrap_SKY_coin_BlockBody_Size, METH_VARARGS, NULL}, - { (char *)"SKY_coin_BlockBody_Bytes", _wrap_SKY_coin_BlockBody_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_CreateUnspents", _wrap_SKY_coin_CreateUnspents, METH_VARARGS, NULL}, - { (char *)"SKY_coin_CreateUnspent", _wrap_SKY_coin_CreateUnspent, METH_VARARGS, NULL}, - { (char *)"SKY_coin_GetBlockObject", _wrap_SKY_coin_GetBlockObject, METH_VARARGS, NULL}, - { (char *)"SKY_coin_GetBlockBody", _wrap_SKY_coin_GetBlockBody, METH_VARARGS, NULL}, - { (char *)"SKY_coin_NewEmptyBlock", _wrap_SKY_coin_NewEmptyBlock, METH_VARARGS, NULL}, - { (char *)"SKY_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_cli_GetWalletOutputsFromFile", _wrap_SKY_cli_GetWalletOutputsFromFile, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetWalletOutputs", _wrap_SKY_cli_GetWalletOutputs, 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_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_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_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_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_api_NewClient", _wrap_SKY_api_NewClient, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CSRF", _wrap_SKY_api_Client_CSRF, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Version", _wrap_SKY_api_Client_Version, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Outputs", _wrap_SKY_api_Client_Outputs, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_OutputsForAddresses", _wrap_SKY_api_Client_OutputsForAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_OutputsForHashes", _wrap_SKY_api_Client_OutputsForHashes, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CoinSupply", _wrap_SKY_api_Client_CoinSupply, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockByHash", _wrap_SKY_api_Client_BlockByHash, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockBySeq", _wrap_SKY_api_Client_BlockBySeq, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Blocks", _wrap_SKY_api_Client_Blocks, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_LastBlocks", _wrap_SKY_api_Client_LastBlocks, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockchainMetadata", _wrap_SKY_api_Client_BlockchainMetadata, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockchainProgress", _wrap_SKY_api_Client_BlockchainProgress, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Balance", _wrap_SKY_api_Client_Balance, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UxOut", _wrap_SKY_api_Client_UxOut, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_AddressUxOuts", _wrap_SKY_api_Client_AddressUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Wallet", _wrap_SKY_api_Client_Wallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Wallets", _wrap_SKY_api_Client_Wallets, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CreateUnencryptedWallet", _wrap_SKY_api_Client_CreateUnencryptedWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CreateEncryptedWallet", _wrap_SKY_api_Client_CreateEncryptedWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NewWalletAddress", _wrap_SKY_api_Client_NewWalletAddress, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_WalletBalance", _wrap_SKY_api_Client_WalletBalance, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Spend", _wrap_SKY_api_Client_Spend, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CreateTransaction", _wrap_SKY_api_Client_CreateTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UpdateWallet", _wrap_SKY_api_Client_UpdateWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_WalletFolderName", _wrap_SKY_api_Client_WalletFolderName, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NewSeed", _wrap_SKY_api_Client_NewSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_WalletSeed", _wrap_SKY_api_Client_WalletSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkConnection", _wrap_SKY_api_Client_NetworkConnection, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkConnections", _wrap_SKY_api_Client_NetworkConnections, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkDefaultPeers", _wrap_SKY_api_Client_NetworkDefaultPeers, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkTrustedPeers", _wrap_SKY_api_Client_NetworkTrustedPeers, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkExchangedPeers", _wrap_SKY_api_Client_NetworkExchangedPeers, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_PendingTransactions", _wrap_SKY_api_Client_PendingTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Transaction", _wrap_SKY_api_Client_Transaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Transactions", _wrap_SKY_api_Client_Transactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_ConfirmedTransactions", _wrap_SKY_api_Client_ConfirmedTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UnconfirmedTransactions", _wrap_SKY_api_Client_UnconfirmedTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_InjectTransaction", _wrap_SKY_api_Client_InjectTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_ResendUnconfirmedTransactions", _wrap_SKY_api_Client_ResendUnconfirmedTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_RawTransaction", _wrap_SKY_api_Client_RawTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_AddressTransactions", _wrap_SKY_api_Client_AddressTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Richlist", _wrap_SKY_api_Client_Richlist, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_AddressCount", _wrap_SKY_api_Client_AddressCount, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UnloadWallet", _wrap_SKY_api_Client_UnloadWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Health", _wrap_SKY_api_Client_Health, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_EncryptWallet", _wrap_SKY_api_Client_EncryptWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_DecryptWallet", _wrap_SKY_api_Client_DecryptWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreateTransactionResponse", _wrap_SKY_api_NewCreateTransactionResponse, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreatedTransaction", _wrap_SKY_api_NewCreatedTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_CreatedTransaction_ToTransaction", _wrap_SKY_api_CreatedTransaction_ToTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreatedTransactionOutput", _wrap_SKY_api_NewCreatedTransactionOutput, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreatedTransactionInput", _wrap_SKY_api_NewCreatedTransactionInput, METH_VARARGS, NULL}, { (char *)"SKY_api_NewWalletResponse", _wrap_SKY_api_NewWalletResponse, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Entry_Verify", _wrap_SKY_wallet_Entry_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Entry_VerifyPublic", _wrap_SKY_wallet_Entry_VerifyPublic, METH_VARARGS, NULL}, - { (char *)"SKY_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_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_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}, @@ -28377,26 +28216,85 @@ static PyMethodDef SwigMethods[] = { { (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_wallet_CreateOptionsHandle", _wrap_SKY_wallet_CreateOptionsHandle, 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_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_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, - { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, 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_cipher_DecodeBase58Address", _wrap_SKY_cipher_DecodeBase58Address, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddressFromBytes", _wrap_SKY_cipher_AddressFromBytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddressFromPubKey", _wrap_SKY_cipher_AddressFromPubKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddressFromSecKey", _wrap_SKY_cipher_AddressFromSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Null", _wrap_SKY_cipher_Address_Null, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Bytes", _wrap_SKY_cipher_Address_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Verify", _wrap_SKY_cipher_Address_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_String", _wrap_SKY_cipher_Address_String, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Checksum", _wrap_SKY_cipher_Address_Checksum, METH_VARARGS, NULL}, + { (char *)"SKY_base58_String2Hex", _wrap_SKY_base58_String2Hex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_ToInt", _wrap_SKY_base58_Base58_ToInt, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_ToHex", _wrap_SKY_base58_Base58_ToHex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_Base582Int", _wrap_SKY_base58_Base58_Base582Int, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base582Hex", _wrap_SKY_base58_Base582Hex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_BitHex", _wrap_SKY_base58_Base58_BitHex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Int2Base58", _wrap_SKY_base58_Int2Base58, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Hex2Base58", _wrap_SKY_base58_Hex2Base58, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Hex2Base58String", _wrap_SKY_base58_Hex2Base58String, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Hex2Base58Str", _wrap_SKY_base58_Hex2Base58Str, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DecodeBase58BitcoinAddress", _wrap_SKY_cipher_DecodeBase58BitcoinAddress, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddressFromPubKey", _wrap_SKY_cipher_BitcoinAddressFromPubKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddressFromSecKey", _wrap_SKY_cipher_BitcoinAddressFromSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinWalletImportFormatFromSeckey", _wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddressFromBytes", _wrap_SKY_cipher_BitcoinAddressFromBytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKeyFromBitcoinWalletImportFormat", _wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Null", _wrap_SKY_cipher_BitcoinAddress_Null, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Bytes", _wrap_SKY_cipher_BitcoinAddress_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Verify", _wrap_SKY_cipher_BitcoinAddress_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_String", _wrap_SKY_cipher_BitcoinAddress_String, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Checksum", _wrap_SKY_cipher_BitcoinAddress_Checksum, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_RandByte", _wrap_SKY_cipher_RandByte, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_NewPubKey", _wrap_SKY_cipher_NewPubKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyFromHex", _wrap_SKY_cipher_PubKeyFromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyFromSecKey", _wrap_SKY_cipher_PubKeyFromSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyFromSig", _wrap_SKY_cipher_PubKeyFromSig, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKey_Verify", _wrap_SKY_cipher_PubKey_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKey_Hex", _wrap_SKY_cipher_PubKey_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyRipemd160", _wrap_SKY_cipher_PubKeyRipemd160, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_NewSecKey", _wrap_SKY_cipher_NewSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKeyFromHex", _wrap_SKY_cipher_SecKeyFromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKey_Verify", _wrap_SKY_cipher_SecKey_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKey_Hex", _wrap_SKY_cipher_SecKey_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_ECDH", _wrap_SKY_cipher_ECDH, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_NewSig", _wrap_SKY_cipher_NewSig, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SigFromHex", _wrap_SKY_cipher_SigFromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Sig_Hex", _wrap_SKY_cipher_Sig_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SignHash", _wrap_SKY_cipher_SignHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_VerifyAddressSignedHash", _wrap_SKY_cipher_VerifyAddressSignedHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_VerifySignedHash", _wrap_SKY_cipher_VerifySignedHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_VerifyPubKeySignedHash", _wrap_SKY_cipher_VerifyPubKeySignedHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateKeyPair", _wrap_SKY_cipher_GenerateKeyPair, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateDeterministicKeyPair", _wrap_SKY_cipher_GenerateDeterministicKeyPair, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DeterministicKeyPairIterator", _wrap_SKY_cipher_DeterministicKeyPairIterator, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateDeterministicKeyPairs", _wrap_SKY_cipher_GenerateDeterministicKeyPairs, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateDeterministicKeyPairsSeed", _wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_CheckSecKey", _wrap_SKY_cipher_CheckSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_CheckSecKeyHash", _wrap_SKY_cipher_CheckSecKeyHash, METH_VARARGS, NULL}, + { (char *)"SKY_encrypt_ScryptChacha20poly1305_Encrypt", _wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt, METH_VARARGS, NULL}, + { (char *)"SKY_encrypt_ScryptChacha20poly1305_Decrypt", _wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_NewDefaultMnemomic", _wrap_SKY_bip39_NewDefaultMnemomic, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_NewEntropy", _wrap_SKY_bip39_NewEntropy, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_NewMnemonic", _wrap_SKY_bip39_NewMnemonic, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_MnemonicToByteArray", _wrap_SKY_bip39_MnemonicToByteArray, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_IsMnemonicValid", _wrap_SKY_bip39_IsMnemonicValid, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Ripemd160_Set", _wrap_SKY_cipher_Ripemd160_Set, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_HashRipemd160", _wrap_SKY_cipher_HashRipemd160, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Set", _wrap_SKY_cipher_SHA256_Set, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Hex", _wrap_SKY_cipher_SHA256_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Xor", _wrap_SKY_cipher_SHA256_Xor, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SumSHA256", _wrap_SKY_cipher_SumSHA256, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256FromHex", _wrap_SKY_cipher_SHA256FromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DoubleSHA256", _wrap_SKY_cipher_DoubleSHA256, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddSHA256", _wrap_SKY_cipher_AddSHA256, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Merkle", _wrap_SKY_cipher_Merkle, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Null", _wrap_SKY_cipher_SHA256_Null, METH_VARARGS, NULL}, + { (char *)"SKY_cli_AddPrivateKey", _wrap_SKY_cli_AddPrivateKey, METH_VARARGS, NULL}, + { (char *)"SKY_cli_AddPrivateKeyToFile", _wrap_SKY_cli_AddPrivateKeyToFile, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, METH_VARARGS, NULL}, { (char *)"SKY_cli_LoadConfig", _wrap_SKY_cli_LoadConfig, METH_VARARGS, NULL}, { (char *)"SKY_cli_Config_FullWalletPath", _wrap_SKY_cli_Config_FullWalletPath, METH_VARARGS, NULL}, { (char *)"SKY_cli_Config_FullDBPath", _wrap_SKY_cli_Config_FullDBPath, METH_VARARGS, NULL}, @@ -28405,6 +28303,49 @@ static PyMethodDef SwigMethods[] = { { (char *)"SKY_cli_ConfigFromContext", _wrap_SKY_cli_ConfigFromContext, METH_VARARGS, NULL}, { (char *)"SKY_cli_PasswordFromBytes_Password", _wrap_SKY_cli_PasswordFromBytes_Password, METH_VARARGS, NULL}, { (char *)"SKY_cli_PasswordFromTerm_Password", _wrap_SKY_cli_PasswordFromTerm_Password, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CreateRawTxFromWallet", _wrap_SKY_cli_CreateRawTxFromWallet, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CreateRawTxFromAddress", _wrap_SKY_cli_CreateRawTxFromAddress, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CreateRawTx", _wrap_SKY_cli_CreateRawTx, METH_VARARGS, NULL}, + { (char *)"SKY_cli_NewTransaction", _wrap_SKY_cli_NewTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GenerateAddressesInFile", _wrap_SKY_cli_GenerateAddressesInFile, METH_VARARGS, NULL}, + { (char *)"SKY_cli_FormatAddressesAsJSON", _wrap_SKY_cli_FormatAddressesAsJSON, METH_VARARGS, NULL}, + { (char *)"SKY_cli_FormatAddressesAsJoinedArray", _wrap_SKY_cli_FormatAddressesAsJoinedArray, METH_VARARGS, NULL}, + { (char *)"SKY_cli_AddressesToStrings", _wrap_SKY_cli_AddressesToStrings, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetWalletOutputsFromFile", _wrap_SKY_cli_GetWalletOutputsFromFile, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetWalletOutputs", _wrap_SKY_cli_GetWalletOutputs, METH_VARARGS, NULL}, + { (char *)"SKY_cli_App_Run", _wrap_SKY_cli_App_Run, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Config_GetCoin", _wrap_SKY_cli_Config_GetCoin, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Config_GetRPCAddress", _wrap_SKY_cli_Config_GetRPCAddress, METH_VARARGS, NULL}, + { (char *)"SKY_cli_RPCClientFromApp", _wrap_SKY_cli_RPCClientFromApp, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Getenv", _wrap_SKY_cli_Getenv, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Setenv", _wrap_SKY_cli_Setenv, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewBlock", _wrap_SKY_coin_NewBlock, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SignedBlock_VerifySignature", _wrap_SKY_coin_SignedBlock_VerifySignature, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewGenesisBlock", _wrap_SKY_coin_NewGenesisBlock, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_HashHeader", _wrap_SKY_coin_Block_HashHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_PreHashHeader", _wrap_SKY_coin_Block_PreHashHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_Time", _wrap_SKY_coin_Block_Time, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_Seq", _wrap_SKY_coin_Block_Seq, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_HashBody", _wrap_SKY_coin_Block_HashBody, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_Size", _wrap_SKY_coin_Block_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_String", _wrap_SKY_coin_Block_String, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_GetTransaction", _wrap_SKY_coin_Block_GetTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewBlockHeader", _wrap_SKY_coin_NewBlockHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockHeader_Hash", _wrap_SKY_coin_BlockHeader_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockHeader_Bytes", _wrap_SKY_coin_BlockHeader_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockHeader_String", _wrap_SKY_coin_BlockHeader_String, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockBody_Hash", _wrap_SKY_coin_BlockBody_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockBody_Size", _wrap_SKY_coin_BlockBody_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockBody_Bytes", _wrap_SKY_coin_BlockBody_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_CreateUnspents", _wrap_SKY_coin_CreateUnspents, METH_VARARGS, NULL}, + { (char *)"SKY_coin_CreateUnspent", _wrap_SKY_coin_CreateUnspent, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetBlockObject", _wrap_SKY_coin_GetBlockObject, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetBlockBody", _wrap_SKY_coin_GetBlockBody, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewEmptyBlock", _wrap_SKY_coin_NewEmptyBlock, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddUint64", _wrap_SKY_coin_AddUint64, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Uint64ToInt64", _wrap_SKY_coin_Uint64ToInt64, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Int64ToUint64", _wrap_SKY_coin_Int64ToUint64, METH_VARARGS, NULL}, + { (char *)"SKY_coin_IntToUint32", _wrap_SKY_coin_IntToUint32, METH_VARARGS, NULL}, { (char *)"SKY_coin_UxOut_Hash", _wrap_SKY_coin_UxOut_Hash, METH_VARARGS, NULL}, { (char *)"SKY_coin_UxOut_SnapshotHash", _wrap_SKY_coin_UxOut_SnapshotHash, METH_VARARGS, NULL}, { (char *)"SKY_coin_UxBody_Hash", _wrap_SKY_coin_UxBody_Hash, METH_VARARGS, NULL}, @@ -28429,65 +28370,57 @@ 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_api_NewClient", _wrap_SKY_api_NewClient, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CSRF", _wrap_SKY_api_Client_CSRF, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Version", _wrap_SKY_api_Client_Version, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Outputs", _wrap_SKY_api_Client_Outputs, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_OutputsForAddresses", _wrap_SKY_api_Client_OutputsForAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_OutputsForHashes", _wrap_SKY_api_Client_OutputsForHashes, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CoinSupply", _wrap_SKY_api_Client_CoinSupply, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockByHash", _wrap_SKY_api_Client_BlockByHash, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockBySeq", _wrap_SKY_api_Client_BlockBySeq, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Blocks", _wrap_SKY_api_Client_Blocks, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_LastBlocks", _wrap_SKY_api_Client_LastBlocks, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockchainMetadata", _wrap_SKY_api_Client_BlockchainMetadata, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_BlockchainProgress", _wrap_SKY_api_Client_BlockchainProgress, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Balance", _wrap_SKY_api_Client_Balance, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UxOut", _wrap_SKY_api_Client_UxOut, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_AddressUxOuts", _wrap_SKY_api_Client_AddressUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Wallet", _wrap_SKY_api_Client_Wallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Wallets", _wrap_SKY_api_Client_Wallets, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CreateUnencryptedWallet", _wrap_SKY_api_Client_CreateUnencryptedWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CreateEncryptedWallet", _wrap_SKY_api_Client_CreateEncryptedWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NewWalletAddress", _wrap_SKY_api_Client_NewWalletAddress, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_WalletBalance", _wrap_SKY_api_Client_WalletBalance, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Spend", _wrap_SKY_api_Client_Spend, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_CreateTransaction", _wrap_SKY_api_Client_CreateTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UpdateWallet", _wrap_SKY_api_Client_UpdateWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_WalletFolderName", _wrap_SKY_api_Client_WalletFolderName, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NewSeed", _wrap_SKY_api_Client_NewSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_WalletSeed", _wrap_SKY_api_Client_WalletSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkConnection", _wrap_SKY_api_Client_NetworkConnection, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkConnections", _wrap_SKY_api_Client_NetworkConnections, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkDefaultPeers", _wrap_SKY_api_Client_NetworkDefaultPeers, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkTrustedPeers", _wrap_SKY_api_Client_NetworkTrustedPeers, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkExchangedPeers", _wrap_SKY_api_Client_NetworkExchangedPeers, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_PendingTransactions", _wrap_SKY_api_Client_PendingTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Transaction", _wrap_SKY_api_Client_Transaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Transactions", _wrap_SKY_api_Client_Transactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_ConfirmedTransactions", _wrap_SKY_api_Client_ConfirmedTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UnconfirmedTransactions", _wrap_SKY_api_Client_UnconfirmedTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_InjectTransaction", _wrap_SKY_api_Client_InjectTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_ResendUnconfirmedTransactions", _wrap_SKY_api_Client_ResendUnconfirmedTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_RawTransaction", _wrap_SKY_api_Client_RawTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_AddressTransactions", _wrap_SKY_api_Client_AddressTransactions, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Richlist", _wrap_SKY_api_Client_Richlist, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_AddressCount", _wrap_SKY_api_Client_AddressCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_UnloadWallet", _wrap_SKY_api_Client_UnloadWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_Health", _wrap_SKY_api_Client_Health, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_EncryptWallet", _wrap_SKY_api_Client_EncryptWallet, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_DecryptWallet", _wrap_SKY_api_Client_DecryptWallet, METH_VARARGS, NULL}, - { (char *)"SKY_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_coin_Create_Transaction", _wrap_SKY_coin_Create_Transaction, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Copy", _wrap_SKY_coin_Transaction_Copy, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetTransactionObject", _wrap_SKY_coin_GetTransactionObject, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_ResetInputs", _wrap_SKY_coin_Transaction_ResetInputs, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetInputsCount", _wrap_SKY_coin_Transaction_GetInputsCount, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetInputAt", _wrap_SKY_coin_Transaction_GetInputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SetInputAt", _wrap_SKY_coin_Transaction_SetInputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetOutputsCount", _wrap_SKY_coin_Transaction_GetOutputsCount, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetOutputAt", _wrap_SKY_coin_Transaction_GetOutputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SetOutputAt", _wrap_SKY_coin_Transaction_SetOutputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetSignaturesCount", _wrap_SKY_coin_Transaction_GetSignaturesCount, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetSignatureAt", _wrap_SKY_coin_Transaction_GetSignatureAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SetSignatureAt", _wrap_SKY_coin_Transaction_SetSignatureAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_PushSignature", _wrap_SKY_coin_Transaction_PushSignature, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_ResetOutputs", _wrap_SKY_coin_Transaction_ResetOutputs, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_ResetSignatures", _wrap_SKY_coin_Transaction_ResetSignatures, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Verify", _wrap_SKY_coin_Transaction_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_VerifyInput", _wrap_SKY_coin_Transaction_VerifyInput, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_PushInput", _wrap_SKY_coin_Transaction_PushInput, METH_VARARGS, NULL}, + { (char *)"SKY_coin_TransactionOutput_UxID", _wrap_SKY_coin_TransactionOutput_UxID, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_PushOutput", _wrap_SKY_coin_Transaction_PushOutput, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SignInputs", _wrap_SKY_coin_Transaction_SignInputs, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Size", _wrap_SKY_coin_Transaction_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Hash", _wrap_SKY_coin_Transaction_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SizeHash", _wrap_SKY_coin_Transaction_SizeHash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_TxID", _wrap_SKY_coin_Transaction_TxID, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_TxIDHex", _wrap_SKY_coin_Transaction_TxIDHex, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_UpdateHeader", _wrap_SKY_coin_Transaction_UpdateHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_HashInner", _wrap_SKY_coin_Transaction_HashInner, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Serialize", _wrap_SKY_coin_Transaction_Serialize, METH_VARARGS, NULL}, + { (char *)"SKY_coin_TransactionDeserialize", _wrap_SKY_coin_TransactionDeserialize, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_OutputHours", _wrap_SKY_coin_Transaction_OutputHours, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Create_Transactions", _wrap_SKY_coin_Create_Transactions, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetTransactionsObject", _wrap_SKY_coin_GetTransactionsObject, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Length", _wrap_SKY_coin_Transactions_Length, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Add", _wrap_SKY_coin_Transactions_Add, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Fees", _wrap_SKY_coin_Transactions_Fees, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_GetAt", _wrap_SKY_coin_Transactions_GetAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Hashes", _wrap_SKY_coin_Transactions_Hashes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Size", _wrap_SKY_coin_Transactions_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_TruncateBytesTo", _wrap_SKY_coin_Transactions_TruncateBytesTo, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortTransactions", _wrap_SKY_coin_SortTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewSortableTransactions", _wrap_SKY_coin_NewSortableTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Sort", _wrap_SKY_coin_SortableTransactions_Sort, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Len", _wrap_SKY_coin_SortableTransactions_Len, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Less", _wrap_SKY_coin_SortableTransactions_Less, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Swap", _wrap_SKY_coin_SortableTransactions_Swap, METH_VARARGS, NULL}, + { (char *)"SKY_coin_VerifyTransactionCoinsSpending", _wrap_SKY_coin_VerifyTransactionCoinsSpending, METH_VARARGS, NULL}, + { (char *)"SKY_coin_VerifyTransactionHoursSpending", _wrap_SKY_coin_VerifyTransactionHoursSpending, METH_VARARGS, NULL}, + { (char *)"SKY_handle_close", _wrap_SKY_handle_close, METH_VARARGS, NULL}, + { (char *)"SKY_handle_copy", _wrap_SKY_handle_copy, METH_VARARGS, NULL}, { (char *)"SKY_JsonEncode_Handle", _wrap_SKY_JsonEncode_Handle, METH_VARARGS, NULL}, { (char *)"SKY_Handle_Progress_GetCurrent", _wrap_SKY_Handle_Progress_GetCurrent, METH_VARARGS, NULL}, { (char *)"SKY_Handle_Block_GetHeadSeq", _wrap_SKY_Handle_Block_GetHeadSeq, METH_VARARGS, NULL}, @@ -28516,9 +28449,76 @@ static PyMethodDef SwigMethods[] = { { (char *)"SKY_api_Handle_GetWalletSeed", _wrap_SKY_api_Handle_GetWalletSeed, METH_VARARGS, NULL}, { (char *)"SKY_api_Handle_GetWalletLastSeed", _wrap_SKY_api_Handle_GetWalletLastSeed, METH_VARARGS, NULL}, { (char *)"SKY_api_Handle_GetBuildInfoData", _wrap_SKY_api_Handle_GetBuildInfoData, METH_VARARGS, NULL}, + { (char *)"SKY_map_Get", _wrap_SKY_map_Get, METH_VARARGS, NULL}, + { (char *)"SKY_map_HasKey", _wrap_SKY_map_HasKey, METH_VARARGS, NULL}, + { (char *)"SKY_map_Close", _wrap_SKY_map_Close, METH_VARARGS, NULL}, + { (char *)"SKY_testutil_MakeAddress", _wrap_SKY_testutil_MakeAddress, METH_VARARGS, NULL}, + { (char *)"SKY_apputil_CatchInterruptPanic", _wrap_SKY_apputil_CatchInterruptPanic, METH_VARARGS, NULL}, + { (char *)"SKY_apputil_CatchDebug", _wrap_SKY_apputil_CatchDebug, METH_VARARGS, NULL}, + { (char *)"SKY_apputil_PrintProgramStatus", _wrap_SKY_apputil_PrintProgramStatus, METH_VARARGS, NULL}, + { (char *)"SKY_certutil_NewTLSCertPair", _wrap_SKY_certutil_NewTLSCertPair, METH_VARARGS, NULL}, + { (char *)"SKY_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, + { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, METH_VARARGS, NULL}, + { (char *)"SKY_fee_VerifyTransactionFee", _wrap_SKY_fee_VerifyTransactionFee, METH_VARARGS, NULL}, + { (char *)"SKY_fee_VerifyTransactionFeeForHours", _wrap_SKY_fee_VerifyTransactionFeeForHours, METH_VARARGS, NULL}, + { (char *)"SKY_fee_RequiredFee", _wrap_SKY_fee_RequiredFee, METH_VARARGS, NULL}, + { (char *)"SKY_fee_RemainingHours", _wrap_SKY_fee_RemainingHours, METH_VARARGS, NULL}, + { (char *)"SKY_fee_TransactionFee", _wrap_SKY_fee_TransactionFee, METH_VARARGS, NULL}, + { (char *)"SKY_file_InitDataDir", _wrap_SKY_file_InitDataDir, METH_VARARGS, NULL}, + { (char *)"SKY_file_UserHome", _wrap_SKY_file_UserHome, METH_VARARGS, NULL}, + { (char *)"SKY_file_ResolveResourceDirectory", _wrap_SKY_file_ResolveResourceDirectory, METH_VARARGS, NULL}, + { (char *)"SKY_file_DetermineResourcePath", _wrap_SKY_file_DetermineResourcePath, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Address_UnmarshalJSON", _wrap_SKY_httphelper_Address_UnmarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Address_MarshalJSON", _wrap_SKY_httphelper_Address_MarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Coins_UnmarshalJSON", _wrap_SKY_httphelper_Coins_UnmarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Coins_MarshalJSON", _wrap_SKY_httphelper_Coins_MarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Coins_Value", _wrap_SKY_httphelper_Coins_Value, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Hours_UnmarshalJSON", _wrap_SKY_httphelper_Hours_UnmarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Hours_MarshalJSON", _wrap_SKY_httphelper_Hours_MarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Hours_Value", _wrap_SKY_httphelper_Hours_Value, METH_VARARGS, NULL}, + { (char *)"SKY_iputil_LocalhostIP", _wrap_SKY_iputil_LocalhostIP, METH_VARARGS, NULL}, + { (char *)"SKY_iputil_IsLocalhost", _wrap_SKY_iputil_IsLocalhost, METH_VARARGS, NULL}, + { (char *)"SKY_iputil_SplitAddr", _wrap_SKY_iputil_SplitAddr, METH_VARARGS, NULL}, { (char *)"SKY_logging_EnableColors", _wrap_SKY_logging_EnableColors, METH_VARARGS, NULL}, { (char *)"SKY_logging_DisableColors", _wrap_SKY_logging_DisableColors, METH_VARARGS, NULL}, { (char *)"SKY_logging_Disable", _wrap_SKY_logging_Disable, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewBalance", _wrap_SKY_wallet_NewBalance, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewBalanceFromUxOut", _wrap_SKY_wallet_NewBalanceFromUxOut, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_Add", _wrap_SKY_wallet_Balance_Add, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_Sub", _wrap_SKY_wallet_Balance_Sub, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_Equals", _wrap_SKY_wallet_Balance_Equals, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_IsZero", _wrap_SKY_wallet_Balance_IsZero, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Entry_Verify", _wrap_SKY_wallet_Entry_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Entry_VerifyPublic", _wrap_SKY_wallet_Entry_VerifyPublic, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewReadableEntry", _wrap_SKY_wallet_NewReadableEntry, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_LoadReadableWallet", _wrap_SKY_wallet_LoadReadableWallet, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ReadableWallet_Save", _wrap_SKY_wallet_ReadableWallet_Save, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ReadableWallet_Load", _wrap_SKY_wallet_ReadableWallet_Load, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ReadableWallet_Erase", _wrap_SKY_wallet_ReadableWallet_Erase, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewError", _wrap_SKY_wallet_NewError, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewWallet", _wrap_SKY_wallet_NewWallet, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Lock", _wrap_SKY_wallet_Wallet_Lock, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Unlock", _wrap_SKY_wallet_Wallet_Unlock, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Load", _wrap_SKY_wallet_Load, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Save", _wrap_SKY_wallet_Wallet_Save, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Validate", _wrap_SKY_wallet_Wallet_Validate, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Type", _wrap_SKY_wallet_Wallet_Type, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Version", _wrap_SKY_wallet_Wallet_Version, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Filename", _wrap_SKY_wallet_Wallet_Filename, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Label", _wrap_SKY_wallet_Wallet_Label, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_IsEncrypted", _wrap_SKY_wallet_Wallet_IsEncrypted, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_GenerateAddresses", _wrap_SKY_wallet_Wallet_GenerateAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_GetAddresses", _wrap_SKY_wallet_Wallet_GetAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_GetEntry", _wrap_SKY_wallet_Wallet_GetEntry, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_AddEntry", _wrap_SKY_wallet_Wallet_AddEntry, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_DistributeSpendHours", _wrap_SKY_wallet_DistributeSpendHours, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_DistributeCoinHoursProportional", _wrap_SKY_wallet_DistributeCoinHoursProportional, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewUxBalances", _wrap_SKY_wallet_NewUxBalances, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewUxBalance", _wrap_SKY_wallet_NewUxBalance, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ChooseSpendsMinimizeUxOuts", _wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ChooseSpendsMaximizeUxOuts", _wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_CreateOptionsHandle", _wrap_SKY_wallet_CreateOptionsHandle, METH_VARARGS, NULL}, { (char *)"api__RichlistParams_N_set", _wrap_api__RichlistParams_N_set, METH_VARARGS, NULL}, { (char *)"api__RichlistParams_N_get", _wrap_api__RichlistParams_N_get, METH_VARARGS, NULL}, { (char *)"api__RichlistParams_IncludeDistribution_set", _wrap_api__RichlistParams_IncludeDistribution_set, METH_VARARGS, NULL}, diff --git a/tox.swig.ini b/tox.ini similarity index 100% rename from tox.swig.ini rename to tox.ini