diff --git a/MANIFEST.in b/MANIFEST.in index 312ee4a4..00cc0c58 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,8 +6,6 @@ include LICENSE.txt include Makefile include gopath/src/github.com/skycoin/skycoin/Makefile -#include gopath/src/github.com/skycoin/skycoin/build/libskycoin/libskycoin.a -include skycoin.py recursive-include . *.s recursive-include . *.go diff --git a/setup.py b/setup.py index 93ee5dbe..4863b090 100644 --- a/setup.py +++ b/setup.py @@ -29,28 +29,6 @@ def build_extension(self, ext): # Handle unspecial extensions with the parent class' method super(skycoin_build_ext, self).build_extension(ext) else: - # Handle special extension - sources = ext.sources - if sources is None or not isinstance(sources, (list, tuple)): - raise DistutilsSetupError( - "in 'ext_modules' option (extension '%s'), " - "'sources' must be present and must be " - "a list of source filenames" % ext.name) - sources = list(sources) - - if len(sources)>1: - sources_path = os.path.commonprefix(sources) - else: - sources_path = os.path.dirname(sources[0]) - sources_path = os.path.realpath(sources_path) - if not sources_path.endswith(os.path.sep): - sources_path+= os.path.sep - - if not os.path.exists(sources_path) or not os.path.isdir(sources_path): - raise DistutilsSetupError( - "in 'extensions' option (extension '%s'), " - "the supplied 'sources' base dir " - "must exist" % ext.name) make_path = os.path.realpath(script_dirname) diff --git a/skycoin.py b/skycoin.py deleted file mode 100644 index 59a1f48b..00000000 --- a/skycoin.py +++ /dev/null @@ -1,3052 +0,0 @@ -# This file was automatically generated by SWIG (http://www.swig.org). -# Version 3.0.10 -# -# Do not make changes to this file unless you know what you are doing--modify -# the SWIG interface file instead. - - - - - -from sys import version_info as _swig_python_version_info -if _swig_python_version_info >= (2, 7, 0): - def swig_import_helper(): - import importlib - pkg = __name__.rpartition('.')[0] - mname = '.'.join((pkg, '_skycoin')).lstrip('.') - try: - return importlib.import_module(mname) - except ImportError: - return importlib.import_module('_skycoin') - _skycoin = swig_import_helper() - del swig_import_helper -elif _swig_python_version_info >= (2, 6, 0): - def swig_import_helper(): - from os.path import dirname - import imp - fp = None - try: - fp, pathname, description = imp.find_module('_skycoin', [dirname(__file__)]) - except ImportError: - import _skycoin - return _skycoin - if fp is not None: - try: - _mod = imp.load_module('_skycoin', fp, pathname, description) - finally: - fp.close() - return _mod - _skycoin = swig_import_helper() - del swig_import_helper -else: - import _skycoin -del _swig_python_version_info -try: - _swig_property = property -except NameError: - pass # Python < 2.2 doesn't have 'property'. - -try: - import builtins as __builtin__ -except ImportError: - import __builtin__ - -def _swig_setattr_nondynamic(self, class_type, name, value, static=1): - if (name == "thisown"): - return self.this.own(value) - if (name == "this"): - if type(value).__name__ == 'SwigPyObject': - self.__dict__[name] = value - return - method = class_type.__swig_setmethods__.get(name, None) - if method: - return method(self, value) - if (not static): - if _newclass: - object.__setattr__(self, name, value) - else: - self.__dict__[name] = value - else: - raise AttributeError("You cannot add attributes to %s" % self) - - -def _swig_setattr(self, class_type, name, value): - return _swig_setattr_nondynamic(self, class_type, name, value, 0) - - -def _swig_getattr(self, class_type, name): - if (name == "thisown"): - return self.this.own() - method = class_type.__swig_getmethods__.get(name, None) - if method: - return method(self) - raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) - - -def _swig_repr(self): - try: - strthis = "proxy of " + self.this.__repr__() - except __builtin__.Exception: - strthis = "" - return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) - -try: - _object = object - _newclass = 1 -except __builtin__.Exception: - class _object: - pass - _newclass = 0 - - -def wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n): - return _skycoin.wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n) -wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed - -def destroy_cipher_SecKeys(p): - return _skycoin.destroy_cipher_SecKeys(p) -destroy_cipher_SecKeys = _skycoin.destroy_cipher_SecKeys - -def destroy_cipher_PubKeys(p): - return _skycoin.destroy_cipher_PubKeys(p) -destroy_cipher_PubKeys = _skycoin.destroy_cipher_PubKeys -class cipher_PubKey(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_PubKey, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_PubKey, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_PubKey_data_set - __swig_getmethods__["data"] = _skycoin.cipher_PubKey_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_PubKey_data_get, _skycoin.cipher_PubKey_data_set) - - def __init__(self): - this = _skycoin.new_cipher_PubKey() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_PubKey - __del__ = lambda self: None -cipher_PubKey_swigregister = _skycoin.cipher_PubKey_swigregister -cipher_PubKey_swigregister(cipher_PubKey) - -class cipher_SecKey(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SecKey, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SecKey, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_SecKey_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SecKey_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SecKey_data_get, _skycoin.cipher_SecKey_data_set) - - def __init__(self): - this = _skycoin.new_cipher_SecKey() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SecKey - __del__ = lambda self: None -cipher_SecKey_swigregister = _skycoin.cipher_SecKey_swigregister -cipher_SecKey_swigregister(cipher_SecKey) - -class cipher_Ripemd160(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Ripemd160, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Ripemd160, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_Ripemd160_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Ripemd160_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Ripemd160_data_get, _skycoin.cipher_Ripemd160_data_set) - - def __init__(self): - this = _skycoin.new_cipher_Ripemd160() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Ripemd160 - __del__ = lambda self: None -cipher_Ripemd160_swigregister = _skycoin.cipher_Ripemd160_swigregister -cipher_Ripemd160_swigregister(cipher_Ripemd160) - -class cipher_Sig(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Sig, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Sig, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_Sig_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Sig_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Sig_data_get, _skycoin.cipher_Sig_data_set) - - def __init__(self): - this = _skycoin.new_cipher_Sig() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Sig - __del__ = lambda self: None -cipher_Sig_swigregister = _skycoin.cipher_Sig_swigregister -cipher_Sig_swigregister(cipher_Sig) - -class cipher_SHA256(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SHA256, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SHA256, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_SHA256_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SHA256_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SHA256_data_get, _skycoin.cipher_SHA256_data_set) - - def __init__(self): - this = _skycoin.new_cipher_SHA256() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SHA256 - __del__ = lambda self: None -cipher_SHA256_swigregister = _skycoin.cipher_SHA256_swigregister -cipher_SHA256_swigregister(cipher_SHA256) - -class cipher_Checksum(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_Checksum, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_Checksum, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.cipher_Checksum_data_set - __swig_getmethods__["data"] = _skycoin.cipher_Checksum_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_Checksum_data_get, _skycoin.cipher_Checksum_data_set) - - def __init__(self): - this = _skycoin.new_cipher_Checksum() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_Checksum - __del__ = lambda self: None -cipher_Checksum_swigregister = _skycoin.cipher_Checksum_swigregister -cipher_Checksum_swigregister(cipher_Checksum) - -class cipher_SecKeys(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_SecKeys, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_SecKeys, name) - __repr__ = _swig_repr - - def getAt(self, i): - return _skycoin.cipher_SecKeys_getAt(self, i) - - def setAt(self, i, seckey): - return _skycoin.cipher_SecKeys_setAt(self, i, seckey) - - def allocate(self, n): - return _skycoin.cipher_SecKeys_allocate(self, n) - - def release(self): - return _skycoin.cipher_SecKeys_release(self) - __swig_setmethods__["data"] = _skycoin.cipher_SecKeys_data_set - __swig_getmethods__["data"] = _skycoin.cipher_SecKeys_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_SecKeys_data_get, _skycoin.cipher_SecKeys_data_set) - __swig_setmethods__["count"] = _skycoin.cipher_SecKeys_count_set - __swig_getmethods__["count"] = _skycoin.cipher_SecKeys_count_get - if _newclass: - count = _swig_property(_skycoin.cipher_SecKeys_count_get, _skycoin.cipher_SecKeys_count_set) - - def __init__(self): - this = _skycoin.new_cipher_SecKeys() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_SecKeys - __del__ = lambda self: None -cipher_SecKeys_swigregister = _skycoin.cipher_SecKeys_swigregister -cipher_SecKeys_swigregister(cipher_SecKeys) - -class cipher_PubKeys(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_PubKeys, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher_PubKeys, name) - __repr__ = _swig_repr - - def getAt(self, i): - return _skycoin.cipher_PubKeys_getAt(self, i) - - def setAt(self, i, pubkey): - return _skycoin.cipher_PubKeys_setAt(self, i, pubkey) - - def allocate(self, n): - return _skycoin.cipher_PubKeys_allocate(self, n) - - def release(self): - return _skycoin.cipher_PubKeys_release(self) - __swig_setmethods__["data"] = _skycoin.cipher_PubKeys_data_set - __swig_getmethods__["data"] = _skycoin.cipher_PubKeys_data_get - if _newclass: - data = _swig_property(_skycoin.cipher_PubKeys_data_get, _skycoin.cipher_PubKeys_data_set) - __swig_setmethods__["count"] = _skycoin.cipher_PubKeys_count_set - __swig_getmethods__["count"] = _skycoin.cipher_PubKeys_count_get - if _newclass: - count = _swig_property(_skycoin.cipher_PubKeys_count_get, _skycoin.cipher_PubKeys_count_set) - - def __init__(self): - this = _skycoin.new_cipher_PubKeys() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher_PubKeys - __del__ = lambda self: None -cipher_PubKeys_swigregister = _skycoin.cipher_PubKeys_swigregister -cipher_PubKeys_swigregister(cipher_PubKeys) - -class _GoString_(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, _GoString_, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, _GoString_, name) - __repr__ = _swig_repr - __swig_setmethods__["p"] = _skycoin._GoString__p_set - __swig_getmethods__["p"] = _skycoin._GoString__p_get - if _newclass: - p = _swig_property(_skycoin._GoString__p_get, _skycoin._GoString__p_set) - __swig_setmethods__["n"] = _skycoin._GoString__n_set - __swig_getmethods__["n"] = _skycoin._GoString__n_get - if _newclass: - n = _swig_property(_skycoin._GoString__n_get, _skycoin._GoString__n_set) - - def __init__(self): - this = _skycoin.new__GoString_() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete__GoString_ - __del__ = lambda self: None -_GoString__swigregister = _skycoin._GoString__swigregister -_GoString__swigregister(_GoString_) - -class GoInterface(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, GoInterface, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, GoInterface, name) - __repr__ = _swig_repr - __swig_setmethods__["t"] = _skycoin.GoInterface_t_set - __swig_getmethods__["t"] = _skycoin.GoInterface_t_get - if _newclass: - t = _swig_property(_skycoin.GoInterface_t_get, _skycoin.GoInterface_t_set) - __swig_setmethods__["v"] = _skycoin.GoInterface_v_set - __swig_getmethods__["v"] = _skycoin.GoInterface_v_get - if _newclass: - v = _swig_property(_skycoin.GoInterface_v_get, _skycoin.GoInterface_v_set) - - def __init__(self): - this = _skycoin.new_GoInterface() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_GoInterface - __del__ = lambda self: None -GoInterface_swigregister = _skycoin.GoInterface_swigregister -GoInterface_swigregister(GoInterface) - -class GoSlice(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, GoSlice, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, GoSlice, name) - __repr__ = _swig_repr - __swig_setmethods__["data"] = _skycoin.GoSlice_data_set - __swig_getmethods__["data"] = _skycoin.GoSlice_data_get - if _newclass: - data = _swig_property(_skycoin.GoSlice_data_get, _skycoin.GoSlice_data_set) - __swig_setmethods__["len"] = _skycoin.GoSlice_len_set - __swig_getmethods__["len"] = _skycoin.GoSlice_len_get - if _newclass: - len = _swig_property(_skycoin.GoSlice_len_get, _skycoin.GoSlice_len_set) - __swig_setmethods__["cap"] = _skycoin.GoSlice_cap_set - __swig_getmethods__["cap"] = _skycoin.GoSlice_cap_get - if _newclass: - cap = _swig_property(_skycoin.GoSlice_cap_get, _skycoin.GoSlice_cap_set) - - def __init__(self): - this = _skycoin.new_GoSlice() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_GoSlice - __del__ = lambda self: None -GoSlice_swigregister = _skycoin.GoSlice_swigregister -GoSlice_swigregister(GoSlice) - - -def SKY_base58_String2Hex(p0): - return _skycoin.SKY_base58_String2Hex(p0) -SKY_base58_String2Hex = _skycoin.SKY_base58_String2Hex - -def SKY_base58_Base58_ToInt(p0): - return _skycoin.SKY_base58_Base58_ToInt(p0) -SKY_base58_Base58_ToInt = _skycoin.SKY_base58_Base58_ToInt - -def SKY_base58_Base58_ToHex(p0): - return _skycoin.SKY_base58_Base58_ToHex(p0) -SKY_base58_Base58_ToHex = _skycoin.SKY_base58_Base58_ToHex - -def SKY_base58_Base58_Base582Int(p0): - return _skycoin.SKY_base58_Base58_Base582Int(p0) -SKY_base58_Base58_Base582Int = _skycoin.SKY_base58_Base58_Base582Int - -def SKY_base58_Base582Hex(p0): - return _skycoin.SKY_base58_Base582Hex(p0) -SKY_base58_Base582Hex = _skycoin.SKY_base58_Base582Hex - -def SKY_base58_Base58_BitHex(p0): - return _skycoin.SKY_base58_Base58_BitHex(p0) -SKY_base58_Base58_BitHex = _skycoin.SKY_base58_Base58_BitHex - -def SKY_base58_Int2Base58(p0): - return _skycoin.SKY_base58_Int2Base58(p0) -SKY_base58_Int2Base58 = _skycoin.SKY_base58_Int2Base58 - -def SKY_base58_Hex2Base58(p0): - return _skycoin.SKY_base58_Hex2Base58(p0) -SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 - -def SKY_base58_Hex2Base58String(p0): - return _skycoin.SKY_base58_Hex2Base58String(p0) -SKY_base58_Hex2Base58String = _skycoin.SKY_base58_Hex2Base58String - -def SKY_base58_Hex2Base58Str(p0): - return _skycoin.SKY_base58_Hex2Base58Str(p0) -SKY_base58_Hex2Base58Str = _skycoin.SKY_base58_Hex2Base58Str - -def SKY_wallet_NewReadableEntry(p0): - return _skycoin.SKY_wallet_NewReadableEntry(p0) -SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry - -def SKY_wallet_LoadReadableEntry(p0): - return _skycoin.SKY_wallet_LoadReadableEntry(p0) -SKY_wallet_LoadReadableEntry = _skycoin.SKY_wallet_LoadReadableEntry - -def SKY_wallet_NewReadableEntryFromPubkey(p0): - return _skycoin.SKY_wallet_NewReadableEntryFromPubkey(p0) -SKY_wallet_NewReadableEntryFromPubkey = _skycoin.SKY_wallet_NewReadableEntryFromPubkey - -def SKY_wallet_ReadableEntry_Save(p0, p1): - return _skycoin.SKY_wallet_ReadableEntry_Save(p0, p1) -SKY_wallet_ReadableEntry_Save = _skycoin.SKY_wallet_ReadableEntry_Save - -def SKY_wallet_LoadReadableWallet(p0): - return _skycoin.SKY_wallet_LoadReadableWallet(p0) -SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet - -def SKY_wallet_ReadableWallet_Save(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Save(p0, p1) -SKY_wallet_ReadableWallet_Save = _skycoin.SKY_wallet_ReadableWallet_Save - -def SKY_wallet_ReadableWallet_Load(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Load(p0, p1) -SKY_wallet_ReadableWallet_Load = _skycoin.SKY_wallet_ReadableWallet_Load - -def SKY_wallet_ReadableWallet_Erase(p0): - return _skycoin.SKY_wallet_ReadableWallet_Erase(p0) -SKY_wallet_ReadableWallet_Erase = _skycoin.SKY_wallet_ReadableWallet_Erase - -def SKY_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_secp256k1go_Field_String(p0): - return _skycoin.SKY_secp256k1go_Field_String(p0) -SKY_secp256k1go_Field_String = _skycoin.SKY_secp256k1go_Field_String - -def SKY_secp256k1go_Field_Print(p0, p1): - return _skycoin.SKY_secp256k1go_Field_Print(p0, p1) -SKY_secp256k1go_Field_Print = _skycoin.SKY_secp256k1go_Field_Print - -def SKY_secp256k1go_Field_SetB32(p0, p1): - return _skycoin.SKY_secp256k1go_Field_SetB32(p0, p1) -SKY_secp256k1go_Field_SetB32 = _skycoin.SKY_secp256k1go_Field_SetB32 - -def SKY_secp256k1go_Field_SetBytes(p0, p1): - return _skycoin.SKY_secp256k1go_Field_SetBytes(p0, p1) -SKY_secp256k1go_Field_SetBytes = _skycoin.SKY_secp256k1go_Field_SetBytes - -def SKY_secp256k1go_Field_SetHex(p0, p1): - return _skycoin.SKY_secp256k1go_Field_SetHex(p0, p1) -SKY_secp256k1go_Field_SetHex = _skycoin.SKY_secp256k1go_Field_SetHex - -def SKY_secp256k1go_Field_IsOdd(p0): - return _skycoin.SKY_secp256k1go_Field_IsOdd(p0) -SKY_secp256k1go_Field_IsOdd = _skycoin.SKY_secp256k1go_Field_IsOdd - -def SKY_secp256k1go_Field_IsZero(p0): - return _skycoin.SKY_secp256k1go_Field_IsZero(p0) -SKY_secp256k1go_Field_IsZero = _skycoin.SKY_secp256k1go_Field_IsZero - -def SKY_secp256k1go_Field_SetInt(p0, p1): - return _skycoin.SKY_secp256k1go_Field_SetInt(p0, p1) -SKY_secp256k1go_Field_SetInt = _skycoin.SKY_secp256k1go_Field_SetInt - -def SKY_secp256k1go_Field_Normalize(p0): - return _skycoin.SKY_secp256k1go_Field_Normalize(p0) -SKY_secp256k1go_Field_Normalize = _skycoin.SKY_secp256k1go_Field_Normalize - -def SKY_secp256k1go_Field_GetB32(p0, p1): - return _skycoin.SKY_secp256k1go_Field_GetB32(p0, p1) -SKY_secp256k1go_Field_GetB32 = _skycoin.SKY_secp256k1go_Field_GetB32 - -def SKY_secp256k1go_Field_Equals(p0, p1): - return _skycoin.SKY_secp256k1go_Field_Equals(p0, p1) -SKY_secp256k1go_Field_Equals = _skycoin.SKY_secp256k1go_Field_Equals - -def SKY_secp256k1go_Field_SetAdd(p0, p1): - return _skycoin.SKY_secp256k1go_Field_SetAdd(p0, p1) -SKY_secp256k1go_Field_SetAdd = _skycoin.SKY_secp256k1go_Field_SetAdd - -def SKY_secp256k1go_Field_MulInt(p0, p1): - return _skycoin.SKY_secp256k1go_Field_MulInt(p0, p1) -SKY_secp256k1go_Field_MulInt = _skycoin.SKY_secp256k1go_Field_MulInt - -def SKY_secp256k1go_Field_Negate(p0, p1, p2): - return _skycoin.SKY_secp256k1go_Field_Negate(p0, p1, p2) -SKY_secp256k1go_Field_Negate = _skycoin.SKY_secp256k1go_Field_Negate - -def SKY_secp256k1go_Field_Inv(p0, p1): - return _skycoin.SKY_secp256k1go_Field_Inv(p0, p1) -SKY_secp256k1go_Field_Inv = _skycoin.SKY_secp256k1go_Field_Inv - -def SKY_secp256k1go_Field_Sqrt(p0, p1): - return _skycoin.SKY_secp256k1go_Field_Sqrt(p0, p1) -SKY_secp256k1go_Field_Sqrt = _skycoin.SKY_secp256k1go_Field_Sqrt - -def SKY_secp256k1go_Field_InvVar(p0, p1): - return _skycoin.SKY_secp256k1go_Field_InvVar(p0, p1) -SKY_secp256k1go_Field_InvVar = _skycoin.SKY_secp256k1go_Field_InvVar - -def SKY_secp256k1go_Field_Mul(p0, p1, p2): - return _skycoin.SKY_secp256k1go_Field_Mul(p0, p1, p2) -SKY_secp256k1go_Field_Mul = _skycoin.SKY_secp256k1go_Field_Mul - -def SKY_secp256k1go_Field_Sqr(p0, p1): - return _skycoin.SKY_secp256k1go_Field_Sqr(p0, p1) -SKY_secp256k1go_Field_Sqr = _skycoin.SKY_secp256k1go_Field_Sqr - -def SKY_api_NewWalletResponse(p0): - return _skycoin.SKY_api_NewWalletResponse(p0) -SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse - -def SKY_cipher_PubKeySlice_Len(*args): - return _skycoin.SKY_cipher_PubKeySlice_Len(*args) -SKY_cipher_PubKeySlice_Len = _skycoin.SKY_cipher_PubKeySlice_Len - -def SKY_cipher_PubKeySlice_Less(*args): - return _skycoin.SKY_cipher_PubKeySlice_Less(*args) -SKY_cipher_PubKeySlice_Less = _skycoin.SKY_cipher_PubKeySlice_Less - -def SKY_cipher_PubKeySlice_Swap(*args): - return _skycoin.SKY_cipher_PubKeySlice_Swap(*args) -SKY_cipher_PubKeySlice_Swap = _skycoin.SKY_cipher_PubKeySlice_Swap - -def SKY_cipher_RandByte(p0): - return _skycoin.SKY_cipher_RandByte(p0) -SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte - -def SKY_cipher_NewPubKey(p0, p1): - return _skycoin.SKY_cipher_NewPubKey(p0, p1) -SKY_cipher_NewPubKey = _skycoin.SKY_cipher_NewPubKey - -def SKY_cipher_MustPubKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_MustPubKeyFromHex(p0, p1) -SKY_cipher_MustPubKeyFromHex = _skycoin.SKY_cipher_MustPubKeyFromHex - -def SKY_cipher_PubKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromHex(p0, p1) -SKY_cipher_PubKeyFromHex = _skycoin.SKY_cipher_PubKeyFromHex - -def SKY_cipher_PubKeyFromSecKey(p0, p1): - return _skycoin.SKY_cipher_PubKeyFromSecKey(p0, p1) -SKY_cipher_PubKeyFromSecKey = _skycoin.SKY_cipher_PubKeyFromSecKey - -def SKY_cipher_PubKeyFromSig(p0, p1, p2): - return _skycoin.SKY_cipher_PubKeyFromSig(p0, p1, p2) -SKY_cipher_PubKeyFromSig = _skycoin.SKY_cipher_PubKeyFromSig - -def SKY_cipher_PubKey_Verify(p0): - return _skycoin.SKY_cipher_PubKey_Verify(p0) -SKY_cipher_PubKey_Verify = _skycoin.SKY_cipher_PubKey_Verify - -def SKY_cipher_PubKey_Hex(p0): - return _skycoin.SKY_cipher_PubKey_Hex(p0) -SKY_cipher_PubKey_Hex = _skycoin.SKY_cipher_PubKey_Hex - -def SKY_cipher_PubKey_ToAddressHash(p0, p1): - return _skycoin.SKY_cipher_PubKey_ToAddressHash(p0, p1) -SKY_cipher_PubKey_ToAddressHash = _skycoin.SKY_cipher_PubKey_ToAddressHash - -def SKY_cipher_NewSecKey(p0, p1): - return _skycoin.SKY_cipher_NewSecKey(p0, p1) -SKY_cipher_NewSecKey = _skycoin.SKY_cipher_NewSecKey - -def SKY_cipher_MustSecKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_MustSecKeyFromHex(p0, p1) -SKY_cipher_MustSecKeyFromHex = _skycoin.SKY_cipher_MustSecKeyFromHex - -def SKY_cipher_SecKeyFromHex(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromHex(p0, p1) -SKY_cipher_SecKeyFromHex = _skycoin.SKY_cipher_SecKeyFromHex - -def SKY_cipher_SecKey_Verify(p0): - return _skycoin.SKY_cipher_SecKey_Verify(p0) -SKY_cipher_SecKey_Verify = _skycoin.SKY_cipher_SecKey_Verify - -def SKY_cipher_SecKey_Hex(p0): - return _skycoin.SKY_cipher_SecKey_Hex(p0) -SKY_cipher_SecKey_Hex = _skycoin.SKY_cipher_SecKey_Hex - -def SKY_cipher_ECDH(p0, p1): - return _skycoin.SKY_cipher_ECDH(p0, p1) -SKY_cipher_ECDH = _skycoin.SKY_cipher_ECDH - -def SKY_cipher_NewSig(p0, p1): - return _skycoin.SKY_cipher_NewSig(p0, p1) -SKY_cipher_NewSig = _skycoin.SKY_cipher_NewSig - -def SKY_cipher_MustSigFromHex(p0, p1): - return _skycoin.SKY_cipher_MustSigFromHex(p0, p1) -SKY_cipher_MustSigFromHex = _skycoin.SKY_cipher_MustSigFromHex - -def SKY_cipher_SigFromHex(p0, p1): - return _skycoin.SKY_cipher_SigFromHex(p0, p1) -SKY_cipher_SigFromHex = _skycoin.SKY_cipher_SigFromHex - -def SKY_cipher_Sig_Hex(p0): - return _skycoin.SKY_cipher_Sig_Hex(p0) -SKY_cipher_Sig_Hex = _skycoin.SKY_cipher_Sig_Hex - -def SKY_cipher_SignHash(p0, p1, p2): - return _skycoin.SKY_cipher_SignHash(p0, p1, p2) -SKY_cipher_SignHash = _skycoin.SKY_cipher_SignHash - -def SKY_cipher_ChkSig(p0, p1, p2): - return _skycoin.SKY_cipher_ChkSig(p0, p1, p2) -SKY_cipher_ChkSig = _skycoin.SKY_cipher_ChkSig - -def SKY_cipher_VerifySignedHash(p0, p1): - return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) -SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash - -def SKY_cipher_VerifySignature(p0, p1, p2): - return _skycoin.SKY_cipher_VerifySignature(p0, p1, p2) -SKY_cipher_VerifySignature = _skycoin.SKY_cipher_VerifySignature - -def SKY_cipher_GenerateKeyPair(p0, p1): - return _skycoin.SKY_cipher_GenerateKeyPair(p0, p1) -SKY_cipher_GenerateKeyPair = _skycoin.SKY_cipher_GenerateKeyPair - -def SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPair(p0, p1, p2) -SKY_cipher_GenerateDeterministicKeyPair = _skycoin.SKY_cipher_GenerateDeterministicKeyPair - -def SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3): - return _skycoin.SKY_cipher_DeterministicKeyPairIterator(p0, p2, p3) -SKY_cipher_DeterministicKeyPairIterator = _skycoin.SKY_cipher_DeterministicKeyPairIterator - -def SKY_cipher_GenerateDeterministicKeyPairs(*args): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairs(*args) -SKY_cipher_GenerateDeterministicKeyPairs = _skycoin.SKY_cipher_GenerateDeterministicKeyPairs - -def SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1): - return _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed(p0, p1) -SKY_cipher_GenerateDeterministicKeyPairsSeed = _skycoin.SKY_cipher_GenerateDeterministicKeyPairsSeed - -def SKY_cipher_TestSecKey(p0): - return _skycoin.SKY_cipher_TestSecKey(p0) -SKY_cipher_TestSecKey = _skycoin.SKY_cipher_TestSecKey - -def SKY_cipher_TestSecKeyHash(p0, p1): - return _skycoin.SKY_cipher_TestSecKeyHash(p0, p1) -SKY_cipher_TestSecKeyHash = _skycoin.SKY_cipher_TestSecKeyHash - -def SKY_secp256k1go_DecompressPoint(p0, p1, p2): - return _skycoin.SKY_secp256k1go_DecompressPoint(p0, p1, p2) -SKY_secp256k1go_DecompressPoint = _skycoin.SKY_secp256k1go_DecompressPoint - -def SKY_secp256k1go_RecoverPublicKey(p0, p1, p2): - return _skycoin.SKY_secp256k1go_RecoverPublicKey(p0, p1, p2) -SKY_secp256k1go_RecoverPublicKey = _skycoin.SKY_secp256k1go_RecoverPublicKey - -def SKY_secp256k1go_Multiply(p0, p1): - return _skycoin.SKY_secp256k1go_Multiply(p0, p1) -SKY_secp256k1go_Multiply = _skycoin.SKY_secp256k1go_Multiply - -def SKY_secp256k1go_BaseMultiply(p0): - return _skycoin.SKY_secp256k1go_BaseMultiply(p0) -SKY_secp256k1go_BaseMultiply = _skycoin.SKY_secp256k1go_BaseMultiply - -def SKY_secp256k1go_BaseMultiplyAdd(p0, p1): - return _skycoin.SKY_secp256k1go_BaseMultiplyAdd(p0, p1) -SKY_secp256k1go_BaseMultiplyAdd = _skycoin.SKY_secp256k1go_BaseMultiplyAdd - -def SKY_secp256k1go_GeneratePublicKey(p0): - return _skycoin.SKY_secp256k1go_GeneratePublicKey(p0) -SKY_secp256k1go_GeneratePublicKey = _skycoin.SKY_secp256k1go_GeneratePublicKey - -def SKY_secp256k1go_SeckeyIsValid(p0): - return _skycoin.SKY_secp256k1go_SeckeyIsValid(p0) -SKY_secp256k1go_SeckeyIsValid = _skycoin.SKY_secp256k1go_SeckeyIsValid - -def SKY_secp256k1go_PubkeyIsValid(p0): - return _skycoin.SKY_secp256k1go_PubkeyIsValid(p0) -SKY_secp256k1go_PubkeyIsValid = _skycoin.SKY_secp256k1go_PubkeyIsValid - -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_secp256k1_SumSHA256(p0): - return _skycoin.SKY_secp256k1_SumSHA256(p0) -SKY_secp256k1_SumSHA256 = _skycoin.SKY_secp256k1_SumSHA256 - -def SKY_secp256k1_RandByte(p0): - return _skycoin.SKY_secp256k1_RandByte(p0) -SKY_secp256k1_RandByte = _skycoin.SKY_secp256k1_RandByte - -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_browser_Open(p0): - return _skycoin.SKY_browser_Open(p0) -SKY_browser_Open = _skycoin.SKY_browser_Open - -def SKY_cipher_DecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) -SKY_cipher_DecodeBase58Address = _skycoin.SKY_cipher_DecodeBase58Address - -def SKY_cipher_MustDecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_MustDecodeBase58Address(p0, p1) -SKY_cipher_MustDecodeBase58Address = _skycoin.SKY_cipher_MustDecodeBase58Address - -def SKY_cipher_BitcoinMustDecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_BitcoinMustDecodeBase58Address(p0, p1) -SKY_cipher_BitcoinMustDecodeBase58Address = _skycoin.SKY_cipher_BitcoinMustDecodeBase58Address - -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_BitcoinDecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_BitcoinDecodeBase58Address(p0, p1) -SKY_cipher_BitcoinDecodeBase58Address = _skycoin.SKY_cipher_BitcoinDecodeBase58Address - -def SKY_cipher_MustAddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_MustAddressFromBytes(p0, p1) -SKY_cipher_MustAddressFromBytes = _skycoin.SKY_cipher_MustAddressFromBytes - -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_Null(p0): - return _skycoin.SKY_cipher_Address_Null(p0) -SKY_cipher_Address_Null = _skycoin.SKY_cipher_Address_Null - -def SKY_cipher_Address_BitcoinBytes(p0): - return _skycoin.SKY_cipher_Address_BitcoinBytes(p0) -SKY_cipher_Address_BitcoinBytes = _skycoin.SKY_cipher_Address_BitcoinBytes - -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_BitcoinString(p0): - return _skycoin.SKY_cipher_Address_BitcoinString(p0) -SKY_cipher_Address_BitcoinString = _skycoin.SKY_cipher_Address_BitcoinString - -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_Address_BitcoinChecksum(p0, p1): - return _skycoin.SKY_cipher_Address_BitcoinChecksum(p0, p1) -SKY_cipher_Address_BitcoinChecksum = _skycoin.SKY_cipher_Address_BitcoinChecksum - -def SKY_cipher_BitcoinAddressFromPubkey(p0): - return _skycoin.SKY_cipher_BitcoinAddressFromPubkey(p0) -SKY_cipher_BitcoinAddressFromPubkey = _skycoin.SKY_cipher_BitcoinAddressFromPubkey - -def SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0): - return _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey(p0) -SKY_cipher_BitcoinWalletImportFormatFromSeckey = _skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey - -def SKY_cipher_BitcoinAddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_BitcoinAddressFromBytes(p0, p1) -SKY_cipher_BitcoinAddressFromBytes = _skycoin.SKY_cipher_BitcoinAddressFromBytes - -def SKY_cipher_SecKeyFromWalletImportFormat(p0, p1): - return _skycoin.SKY_cipher_SecKeyFromWalletImportFormat(p0, p1) -SKY_cipher_SecKeyFromWalletImportFormat = _skycoin.SKY_cipher_SecKeyFromWalletImportFormat - -def SKY_cipher_MustSecKeyFromWalletImportFormat(p0, p1): - return _skycoin.SKY_cipher_MustSecKeyFromWalletImportFormat(p0, p1) -SKY_cipher_MustSecKeyFromWalletImportFormat = _skycoin.SKY_cipher_MustSecKeyFromWalletImportFormat - -def SKY_testutil_MakeAddress(p0): - return _skycoin.SKY_testutil_MakeAddress(p0) -SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress - -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_apputil_CatchInterruptPanic(): - return _skycoin.SKY_apputil_CatchInterruptPanic() -SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic - -def SKY_apputil_CatchDebug(): - return _skycoin.SKY_apputil_CatchDebug() -SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug - -def SKY_apputil_PrintProgramStatus(): - return _skycoin.SKY_apputil_PrintProgramStatus() -SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus - -def SKY_utc_UnixNow(): - return _skycoin.SKY_utc_UnixNow() -SKY_utc_UnixNow = _skycoin.SKY_utc_UnixNow - -def SKY_httphelper_Address_UnmarshalJSON(p0, p1): - return _skycoin.SKY_httphelper_Address_UnmarshalJSON(p0, p1) -SKY_httphelper_Address_UnmarshalJSON = _skycoin.SKY_httphelper_Address_UnmarshalJSON - -def SKY_httphelper_Address_MarshalJSON(p0): - return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) -SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON - -def SKY_httphelper_Coins_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) -SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON - -def SKY_httphelper_Coins_MarshalJSON(): - return _skycoin.SKY_httphelper_Coins_MarshalJSON() -SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON - -def SKY_httphelper_Coins_Value(): - return _skycoin.SKY_httphelper_Coins_Value() -SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value - -def SKY_httphelper_Hours_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) -SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON - -def SKY_httphelper_Hours_MarshalJSON(): - return _skycoin.SKY_httphelper_Hours_MarshalJSON() -SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON - -def SKY_httphelper_Hours_Value(): - return _skycoin.SKY_httphelper_Hours_Value() -SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value - -def SKY_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_poly1305_Verify(p1): - return _skycoin.SKY_poly1305_Verify(p1) -SKY_poly1305_Verify = _skycoin.SKY_poly1305_Verify - -def SKY_api_NewClient(p0): - return _skycoin.SKY_api_NewClient(p0) -SKY_api_NewClient = _skycoin.SKY_api_NewClient - -def SKY_api_Client_CSRF(p0): - return _skycoin.SKY_api_Client_CSRF(p0) -SKY_api_Client_CSRF = _skycoin.SKY_api_Client_CSRF - -def SKY_api_Client_Version(p0): - return _skycoin.SKY_api_Client_Version(p0) -SKY_api_Client_Version = _skycoin.SKY_api_Client_Version - -def SKY_api_Client_Outputs(p0): - return _skycoin.SKY_api_Client_Outputs(p0) -SKY_api_Client_Outputs = _skycoin.SKY_api_Client_Outputs - -def SKY_api_Client_OutputsForAddresses(p0, p1): - return _skycoin.SKY_api_Client_OutputsForAddresses(p0, p1) -SKY_api_Client_OutputsForAddresses = _skycoin.SKY_api_Client_OutputsForAddresses - -def SKY_api_Client_OutputsForHashes(p0, p1): - return _skycoin.SKY_api_Client_OutputsForHashes(p0, p1) -SKY_api_Client_OutputsForHashes = _skycoin.SKY_api_Client_OutputsForHashes - -def SKY_api_Client_CoinSupply(p0): - return _skycoin.SKY_api_Client_CoinSupply(p0) -SKY_api_Client_CoinSupply = _skycoin.SKY_api_Client_CoinSupply - -def SKY_api_Client_BlockByHash(p0, p1): - return _skycoin.SKY_api_Client_BlockByHash(p0, p1) -SKY_api_Client_BlockByHash = _skycoin.SKY_api_Client_BlockByHash - -def SKY_api_Client_BlockBySeq(p0, p1): - return _skycoin.SKY_api_Client_BlockBySeq(p0, p1) -SKY_api_Client_BlockBySeq = _skycoin.SKY_api_Client_BlockBySeq - -def SKY_api_Client_Blocks(p0, p1, p2): - return _skycoin.SKY_api_Client_Blocks(p0, p1, p2) -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_WalletTransactions(p0, p1): - return _skycoin.SKY_api_Client_WalletTransactions(p0, p1) -SKY_api_Client_WalletTransactions = _skycoin.SKY_api_Client_WalletTransactions - -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_GetWalletSeed(p0, p1, p2): - return _skycoin.SKY_api_Client_GetWalletSeed(p0, p1, p2) -SKY_api_Client_GetWalletSeed = _skycoin.SKY_api_Client_GetWalletSeed - -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): - return _skycoin.SKY_api_Client_NetworkConnections(p0) -SKY_api_Client_NetworkConnections = _skycoin.SKY_api_Client_NetworkConnections - -def SKY_api_Client_NetworkDefaultConnections(p0): - return _skycoin.SKY_api_Client_NetworkDefaultConnections(p0) -SKY_api_Client_NetworkDefaultConnections = _skycoin.SKY_api_Client_NetworkDefaultConnections - -def SKY_api_Client_NetworkTrustedConnections(p0): - return _skycoin.SKY_api_Client_NetworkTrustedConnections(p0) -SKY_api_Client_NetworkTrustedConnections = _skycoin.SKY_api_Client_NetworkTrustedConnections - -def SKY_api_Client_NetworkExchangeableConnections(p0): - return _skycoin.SKY_api_Client_NetworkExchangeableConnections(p0) -SKY_api_Client_NetworkExchangeableConnections = _skycoin.SKY_api_Client_NetworkExchangeableConnections - -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_JsonEncode_Handle(p0): - return _skycoin.SKY_JsonEncode_Handle(p0) -SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle - -def SKY_Handle_Progress_GetCurrent(p0): - return _skycoin.SKY_Handle_Progress_GetCurrent(p0) -SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent - -def SKY_Handle_Block_GetHeadSeq(p0): - return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) -SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq - -def SKY_Handle_Block_GetHeadHash(p0): - return _skycoin.SKY_Handle_Block_GetHeadHash(p0) -SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash - -def SKY_Handle_Block_GetPreviousBlockHash(p0): - return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) -SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash - -def SKY_Handle_Blocks_GetAt(p0, p1): - return _skycoin.SKY_Handle_Blocks_GetAt(p0, p1) -SKY_Handle_Blocks_GetAt = _skycoin.SKY_Handle_Blocks_GetAt - -def SKY_Handle_Blocks_GetCount(p0): - return _skycoin.SKY_Handle_Blocks_GetCount(p0) -SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount - -def SKY_Handle_Connections_GetCount(p0): - return _skycoin.SKY_Handle_Connections_GetCount(p0) -SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount - -def SKY_Handle_Strings_GetCount(p0): - return _skycoin.SKY_Handle_Strings_GetCount(p0) -SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount - -def SKY_Handle_Strings_Sort(p0): - return _skycoin.SKY_Handle_Strings_Sort(p0) -SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort - -def SKY_Handle_Strings_GetAt(p0, p1): - return _skycoin.SKY_Handle_Strings_GetAt(p0, p1) -SKY_Handle_Strings_GetAt = _skycoin.SKY_Handle_Strings_GetAt - -def SKY_api_Handle_Client_GetWalletDir(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletDir(p0) -SKY_api_Handle_Client_GetWalletDir = _skycoin.SKY_api_Handle_Client_GetWalletDir - -def SKY_api_Handle_Client_GetWalletFileName(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletFileName(p0) -SKY_api_Handle_Client_GetWalletFileName = _skycoin.SKY_api_Handle_Client_GetWalletFileName - -def SKY_api_Handle_Client_GetWalletLabel(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletLabel(p0) -SKY_api_Handle_Client_GetWalletLabel = _skycoin.SKY_api_Handle_Client_GetWalletLabel - -def SKY_api_Handle_Client_GetWalletFullPath(p0, p1): - return _skycoin.SKY_api_Handle_Client_GetWalletFullPath(p0, p1) -SKY_api_Handle_Client_GetWalletFullPath = _skycoin.SKY_api_Handle_Client_GetWalletFullPath - -def SKY_api_Handle_GetWalletMeta(p0): - return _skycoin.SKY_api_Handle_GetWalletMeta(p0) -SKY_api_Handle_GetWalletMeta = _skycoin.SKY_api_Handle_GetWalletMeta - -def SKY_api_Handle_GetWalletEntriesCount(p0): - return _skycoin.SKY_api_Handle_GetWalletEntriesCount(p0) -SKY_api_Handle_GetWalletEntriesCount = _skycoin.SKY_api_Handle_GetWalletEntriesCount - -def SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0) -SKY_api_Handle_Client_GetWalletResponseEntriesCount = _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount - -def SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3): - return _skycoin.SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3) -SKY_api_Handle_WalletGetEntry = _skycoin.SKY_api_Handle_WalletGetEntry - -def SKY_api_Handle_WalletResponseGetEntry(p0, p1): - return _skycoin.SKY_api_Handle_WalletResponseGetEntry(p0, p1) -SKY_api_Handle_WalletResponseGetEntry = _skycoin.SKY_api_Handle_WalletResponseGetEntry - -def SKY_api_Handle_WalletResponseIsEncrypted(p0): - return _skycoin.SKY_api_Handle_WalletResponseIsEncrypted(p0) -SKY_api_Handle_WalletResponseIsEncrypted = _skycoin.SKY_api_Handle_WalletResponseIsEncrypted - -def SKY_api_Handle_WalletResponseGetCryptoType(p0): - return _skycoin.SKY_api_Handle_WalletResponseGetCryptoType(p0) -SKY_api_Handle_WalletResponseGetCryptoType = _skycoin.SKY_api_Handle_WalletResponseGetCryptoType - -def SKY_api_Handle_WalletsResponseGetCount(p0): - return _skycoin.SKY_api_Handle_WalletsResponseGetCount(p0) -SKY_api_Handle_WalletsResponseGetCount = _skycoin.SKY_api_Handle_WalletsResponseGetCount - -def SKY_api_Handle_WalletsResponseGetAt(p0, p1): - return _skycoin.SKY_api_Handle_WalletsResponseGetAt(p0, p1) -SKY_api_Handle_WalletsResponseGetAt = _skycoin.SKY_api_Handle_WalletsResponseGetAt - -def SKY_api_Handle_GetWalletFolderAddress(p0): - return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) -SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress - -def SKY_api_Handle_GetWalletSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletSeed(p0) -SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed - -def SKY_api_Handle_GetWalletLastSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) -SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed - -def SKY_api_Handle_GetBuildInfoData(p0): - return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) -SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData - -def SKY_secp256k1_GenerateKeyPair(): - return _skycoin.SKY_secp256k1_GenerateKeyPair() -SKY_secp256k1_GenerateKeyPair = _skycoin.SKY_secp256k1_GenerateKeyPair - -def SKY_secp256k1_PubkeyFromSeckey(p0): - return _skycoin.SKY_secp256k1_PubkeyFromSeckey(p0) -SKY_secp256k1_PubkeyFromSeckey = _skycoin.SKY_secp256k1_PubkeyFromSeckey - -def SKY_secp256k1_UncompressPubkey(p0): - return _skycoin.SKY_secp256k1_UncompressPubkey(p0) -SKY_secp256k1_UncompressPubkey = _skycoin.SKY_secp256k1_UncompressPubkey - -def SKY_secp256k1_UncompressedPubkeyFromSeckey(p0): - return _skycoin.SKY_secp256k1_UncompressedPubkeyFromSeckey(p0) -SKY_secp256k1_UncompressedPubkeyFromSeckey = _skycoin.SKY_secp256k1_UncompressedPubkeyFromSeckey - -def SKY_secp256k1_Secp256k1Hash(p0): - return _skycoin.SKY_secp256k1_Secp256k1Hash(p0) -SKY_secp256k1_Secp256k1Hash = _skycoin.SKY_secp256k1_Secp256k1Hash - -def SKY_secp256k1_GenerateDeterministicKeyPair(p0): - return _skycoin.SKY_secp256k1_GenerateDeterministicKeyPair(p0) -SKY_secp256k1_GenerateDeterministicKeyPair = _skycoin.SKY_secp256k1_GenerateDeterministicKeyPair - -def SKY_secp256k1_DeterministicKeyPairIterator(p0): - return _skycoin.SKY_secp256k1_DeterministicKeyPairIterator(p0) -SKY_secp256k1_DeterministicKeyPairIterator = _skycoin.SKY_secp256k1_DeterministicKeyPairIterator - -def SKY_secp256k1_Sign(p0, p1): - return _skycoin.SKY_secp256k1_Sign(p0, p1) -SKY_secp256k1_Sign = _skycoin.SKY_secp256k1_Sign - -def SKY_secp256k1_SignDeterministic(p0, p1, p2): - return _skycoin.SKY_secp256k1_SignDeterministic(p0, p1, p2) -SKY_secp256k1_SignDeterministic = _skycoin.SKY_secp256k1_SignDeterministic - -def SKY_secp256k1_VerifySeckey(p0): - return _skycoin.SKY_secp256k1_VerifySeckey(p0) -SKY_secp256k1_VerifySeckey = _skycoin.SKY_secp256k1_VerifySeckey - -def SKY_secp256k1_VerifyPubkey(p0): - return _skycoin.SKY_secp256k1_VerifyPubkey(p0) -SKY_secp256k1_VerifyPubkey = _skycoin.SKY_secp256k1_VerifyPubkey - -def SKY_secp256k1_VerifySignatureValidity(p0): - return _skycoin.SKY_secp256k1_VerifySignatureValidity(p0) -SKY_secp256k1_VerifySignatureValidity = _skycoin.SKY_secp256k1_VerifySignatureValidity - -def SKY_secp256k1_VerifySignature(p0, p1, p2): - return _skycoin.SKY_secp256k1_VerifySignature(p0, p1, p2) -SKY_secp256k1_VerifySignature = _skycoin.SKY_secp256k1_VerifySignature - -def SKY_secp256k1_SignatureErrorString(p0, p1, p2): - return _skycoin.SKY_secp256k1_SignatureErrorString(p0, p1, p2) -SKY_secp256k1_SignatureErrorString = _skycoin.SKY_secp256k1_SignatureErrorString - -def SKY_secp256k1_RecoverPubkey(p0, p1): - return _skycoin.SKY_secp256k1_RecoverPubkey(p0, p1) -SKY_secp256k1_RecoverPubkey = _skycoin.SKY_secp256k1_RecoverPubkey - -def SKY_secp256k1_ECDH(p0, p1): - return _skycoin.SKY_secp256k1_ECDH(p0, p1) -SKY_secp256k1_ECDH = _skycoin.SKY_secp256k1_ECDH - -def SKY_cert_CreateCertIfNotExists(p0, p1, p2, p3): - return _skycoin.SKY_cert_CreateCertIfNotExists(p0, p1, p2, p3) -SKY_cert_CreateCertIfNotExists = _skycoin.SKY_cert_CreateCertIfNotExists - -def SKY_fee_VerifyTransactionFee(p0, p1): - return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1) -SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee - -def SKY_fee_VerifyTransactionFeeForHours(p0, p1): - return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1) -SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours - -def SKY_fee_RequiredFee(p0): - return _skycoin.SKY_fee_RequiredFee(p0) -SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee - -def SKY_fee_RemainingHours(p0): - return _skycoin.SKY_fee_RemainingHours(p0) -SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours - -def SKY_fee_TransactionFee(p0, p1): - return _skycoin.SKY_fee_TransactionFee(p0, p1) -SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee - -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_cipher_Ripemd160_Set(p0, p1): - return _skycoin.SKY_cipher_Ripemd160_Set(p0, p1) -SKY_cipher_Ripemd160_Set = _skycoin.SKY_cipher_Ripemd160_Set - -def SKY_cipher_HashRipemd160(p0, p1): - return _skycoin.SKY_cipher_HashRipemd160(p0, p1) -SKY_cipher_HashRipemd160 = _skycoin.SKY_cipher_HashRipemd160 - -def SKY_cipher_SHA256_Set(p0, p1): - return _skycoin.SKY_cipher_SHA256_Set(p0, p1) -SKY_cipher_SHA256_Set = _skycoin.SKY_cipher_SHA256_Set - -def SKY_cipher_SHA256_Hex(p0): - return _skycoin.SKY_cipher_SHA256_Hex(p0) -SKY_cipher_SHA256_Hex = _skycoin.SKY_cipher_SHA256_Hex - -def SKY_cipher_SHA256_Xor(p0, p1, p2): - return _skycoin.SKY_cipher_SHA256_Xor(p0, p1, p2) -SKY_cipher_SHA256_Xor = _skycoin.SKY_cipher_SHA256_Xor - -def SKY_cipher_SumSHA256(p0, p1): - return _skycoin.SKY_cipher_SumSHA256(p0, p1) -SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 - -def SKY_cipher_SHA256FromHex(p0, p1): - return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) -SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex - -def SKY_cipher_DoubleSHA256(p0, p1): - return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) -SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 - -def SKY_cipher_AddSHA256(p0, p1, p2): - return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) -SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 - -def SKY_cipher_Merkle(p0, p1): - return _skycoin.SKY_cipher_Merkle(p0, p1) -SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle - -def SKY_cipher_MustSumSHA256(p0, p1, p2): - return _skycoin.SKY_cipher_MustSumSHA256(p0, p1, p2) -SKY_cipher_MustSumSHA256 = _skycoin.SKY_cipher_MustSumSHA256 - -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_Get_Transaction_Object(p0, p1): - return _skycoin.SKY_coin_Get_Transaction_Object(p0, p1) -SKY_coin_Get_Transaction_Object = _skycoin.SKY_coin_Get_Transaction_Object - -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_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(p0): - return _skycoin.SKY_coin_Transaction_VerifyInput(p0) -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(p0, p1): - return _skycoin.SKY_coin_Transaction_SignInputs(p0, p1) -SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs - -def SKY_coin_Transaction_Size(p0): - return _skycoin.SKY_coin_Transaction_Size(p0) -SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size - -def SKY_coin_Transaction_Hash(p0, p1): - return _skycoin.SKY_coin_Transaction_Hash(p0, p1) -SKY_coin_Transaction_Hash = _skycoin.SKY_coin_Transaction_Hash - -def SKY_coin_Transaction_SizeHash(p0, p2): - return _skycoin.SKY_coin_Transaction_SizeHash(p0, p2) -SKY_coin_Transaction_SizeHash = _skycoin.SKY_coin_Transaction_SizeHash - -def SKY_coin_Transaction_TxID(p0): - return _skycoin.SKY_coin_Transaction_TxID(p0) -SKY_coin_Transaction_TxID = _skycoin.SKY_coin_Transaction_TxID - -def SKY_coin_Transaction_TxIDHex(p0): - return _skycoin.SKY_coin_Transaction_TxIDHex(p0) -SKY_coin_Transaction_TxIDHex = _skycoin.SKY_coin_Transaction_TxIDHex - -def SKY_coin_Transaction_UpdateHeader(p0): - return _skycoin.SKY_coin_Transaction_UpdateHeader(p0) -SKY_coin_Transaction_UpdateHeader = _skycoin.SKY_coin_Transaction_UpdateHeader - -def SKY_coin_Transaction_HashInner(p0, p1): - return _skycoin.SKY_coin_Transaction_HashInner(p0, p1) -SKY_coin_Transaction_HashInner = _skycoin.SKY_coin_Transaction_HashInner - -def SKY_coin_Transaction_Serialize(p0): - return _skycoin.SKY_coin_Transaction_Serialize(p0) -SKY_coin_Transaction_Serialize = _skycoin.SKY_coin_Transaction_Serialize - -def SKY_coin_MustTransactionDeserialize(p0): - return _skycoin.SKY_coin_MustTransactionDeserialize(p0) -SKY_coin_MustTransactionDeserialize = _skycoin.SKY_coin_MustTransactionDeserialize - -def SKY_coin_TransactionDeserialize(p0): - return _skycoin.SKY_coin_TransactionDeserialize(p0) -SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize - -def SKY_coin_Transaction_OutputHours(p0): - return _skycoin.SKY_coin_Transaction_OutputHours(p0) -SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours - -def SKY_coin_Create_Transactions(): - return _skycoin.SKY_coin_Create_Transactions() -SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions - -def SKY_coin_Get_Transactions_Object(p0, p1): - return _skycoin.SKY_coin_Get_Transactions_Object(p0, p1) -SKY_coin_Get_Transactions_Object = _skycoin.SKY_coin_Get_Transactions_Object - -def SKY_coin_Transactions_Length(p0): - return _skycoin.SKY_coin_Transactions_Length(p0) -SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length - -def SKY_coin_Transactions_Add(p0, p1): - return _skycoin.SKY_coin_Transactions_Add(p0, p1) -SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add - -def SKY_coin_Transactions_Fees(p0, p1): - return _skycoin.SKY_coin_Transactions_Fees(p0, p1) -SKY_coin_Transactions_Fees = _skycoin.SKY_coin_Transactions_Fees - -def SKY_coin_Transactions_GetAt(p0, p1): - return _skycoin.SKY_coin_Transactions_GetAt(p0, p1) -SKY_coin_Transactions_GetAt = _skycoin.SKY_coin_Transactions_GetAt - -def SKY_coin_Transactions_Hashes(p0): - return _skycoin.SKY_coin_Transactions_Hashes(p0) -SKY_coin_Transactions_Hashes = _skycoin.SKY_coin_Transactions_Hashes - -def SKY_coin_Transactions_Size(p0): - return _skycoin.SKY_coin_Transactions_Size(p0) -SKY_coin_Transactions_Size = _skycoin.SKY_coin_Transactions_Size - -def SKY_coin_Transactions_TruncateBytesTo(p0, p1): - return _skycoin.SKY_coin_Transactions_TruncateBytesTo(p0, p1) -SKY_coin_Transactions_TruncateBytesTo = _skycoin.SKY_coin_Transactions_TruncateBytesTo - -def SKY_coin_SortTransactions(p0, p1): - return _skycoin.SKY_coin_SortTransactions(p0, p1) -SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions - -def SKY_coin_NewSortableTransactions(p0, p1, p2): - return _skycoin.SKY_coin_NewSortableTransactions(p0, p1, p2) -SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions - -def SKY_coin_SortableTransactions_Sort(p0): - return _skycoin.SKY_coin_SortableTransactions_Sort(p0) -SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort - -def SKY_coin_SortableTransactions_Len(p0): - return _skycoin.SKY_coin_SortableTransactions_Len(p0) -SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len - -def SKY_coin_SortableTransactions_Less(p0, p1, p2): - return _skycoin.SKY_coin_SortableTransactions_Less(p0, p1, p2) -SKY_coin_SortableTransactions_Less = _skycoin.SKY_coin_SortableTransactions_Less - -def SKY_coin_SortableTransactions_Swap(p0, p1, p2): - return _skycoin.SKY_coin_SortableTransactions_Swap(p0, p1, p2) -SKY_coin_SortableTransactions_Swap = _skycoin.SKY_coin_SortableTransactions_Swap - -def SKY_coin_VerifyTransactionCoinsSpending(): - return _skycoin.SKY_coin_VerifyTransactionCoinsSpending() -SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending - -def SKY_coin_VerifyTransactionHoursSpending(p0): - return _skycoin.SKY_coin_VerifyTransactionHoursSpending(p0) -SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending - -def SKY_encrypt_Sha256Xor_Encrypt(p0, p1): - return _skycoin.SKY_encrypt_Sha256Xor_Encrypt(p0, p1) -SKY_encrypt_Sha256Xor_Encrypt = _skycoin.SKY_encrypt_Sha256Xor_Encrypt - -def SKY_encrypt_Sha256Xor_Decrypt(p0, p1): - return _skycoin.SKY_encrypt_Sha256Xor_Decrypt(p0, p1) -SKY_encrypt_Sha256Xor_Decrypt = _skycoin.SKY_encrypt_Sha256Xor_Decrypt - -def SKY_cli_GenerateAddressesInFile(p0, p1, p2): - return _skycoin.SKY_cli_GenerateAddressesInFile(p0, p1, p2) -SKY_cli_GenerateAddressesInFile = _skycoin.SKY_cli_GenerateAddressesInFile - -def SKY_cli_FormatAddressesAsJSON(p0): - return _skycoin.SKY_cli_FormatAddressesAsJSON(p0) -SKY_cli_FormatAddressesAsJSON = _skycoin.SKY_cli_FormatAddressesAsJSON - -def SKY_cli_FormatAddressesAsJoinedArray(p0): - return _skycoin.SKY_cli_FormatAddressesAsJoinedArray(p0) -SKY_cli_FormatAddressesAsJoinedArray = _skycoin.SKY_cli_FormatAddressesAsJoinedArray - -def SKY_cli_AddressesToStrings(p0): - return _skycoin.SKY_cli_AddressesToStrings(p0) -SKY_cli_AddressesToStrings = _skycoin.SKY_cli_AddressesToStrings - -def SKY_cli_LoadConfig(): - return _skycoin.SKY_cli_LoadConfig() -SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig - -def SKY_cli_Config_FullWalletPath(p0): - return _skycoin.SKY_cli_Config_FullWalletPath(p0) -SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath - -def SKY_cli_Config_FullDBPath(p0): - return _skycoin.SKY_cli_Config_FullDBPath(p0) -SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath - -def SKY_cli_NewApp(p0): - return _skycoin.SKY_cli_NewApp(p0) -SKY_cli_NewApp = _skycoin.SKY_cli_NewApp - -def SKY_cli_RPCClientFromContext(p0): - return _skycoin.SKY_cli_RPCClientFromContext(p0) -SKY_cli_RPCClientFromContext = _skycoin.SKY_cli_RPCClientFromContext - -def SKY_cli_ConfigFromContext(p0): - return _skycoin.SKY_cli_ConfigFromContext(p0) -SKY_cli_ConfigFromContext = _skycoin.SKY_cli_ConfigFromContext - -def SKY_cli_PasswordFromBytes_Password(): - return _skycoin.SKY_cli_PasswordFromBytes_Password() -SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password - -def SKY_cli_PasswordFromTerm_Password(): - return _skycoin.SKY_cli_PasswordFromTerm_Password() -SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password - -def SKY_handle_close(p0): - return _skycoin.SKY_handle_close(p0) -SKY_handle_close = _skycoin.SKY_handle_close - -def SKY_encoder_StructField_String(p0): - return _skycoin.SKY_encoder_StructField_String(p0) -SKY_encoder_StructField_String = _skycoin.SKY_encoder_StructField_String - -def SKY_encoder_ParseFields(p0, p1): - return _skycoin.SKY_encoder_ParseFields(p0, p1) -SKY_encoder_ParseFields = _skycoin.SKY_encoder_ParseFields - -def SKY_coin_UxOut_Hash(p0, p1): - return _skycoin.SKY_coin_UxOut_Hash(p0, p1) -SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash - -def SKY_coin_UxOut_SnapshotHash(p0, p1): - return _skycoin.SKY_coin_UxOut_SnapshotHash(p0, p1) -SKY_coin_UxOut_SnapshotHash = _skycoin.SKY_coin_UxOut_SnapshotHash - -def SKY_coin_UxBody_Hash(p0, p1): - return _skycoin.SKY_coin_UxBody_Hash(p0, p1) -SKY_coin_UxBody_Hash = _skycoin.SKY_coin_UxBody_Hash - -def SKY_coin_UxOut_CoinHours(p0, p1): - return _skycoin.SKY_coin_UxOut_CoinHours(p0, p1) -SKY_coin_UxOut_CoinHours = _skycoin.SKY_coin_UxOut_CoinHours - -def SKY_coin_UxArray_Hashes(): - return _skycoin.SKY_coin_UxArray_Hashes() -SKY_coin_UxArray_Hashes = _skycoin.SKY_coin_UxArray_Hashes - -def SKY_coin_UxArray_HasDupes(): - return _skycoin.SKY_coin_UxArray_HasDupes() -SKY_coin_UxArray_HasDupes = _skycoin.SKY_coin_UxArray_HasDupes - -def SKY_coin_UxArray_Sort(): - return _skycoin.SKY_coin_UxArray_Sort() -SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort - -def SKY_coin_UxArray_Len(): - return _skycoin.SKY_coin_UxArray_Len() -SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len - -def SKY_coin_UxArray_Less(p1, p2): - return _skycoin.SKY_coin_UxArray_Less(p1, p2) -SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less - -def SKY_coin_UxArray_Swap(p1, p2): - return _skycoin.SKY_coin_UxArray_Swap(p1, p2) -SKY_coin_UxArray_Swap = _skycoin.SKY_coin_UxArray_Swap - -def SKY_coin_UxArray_Coins(): - return _skycoin.SKY_coin_UxArray_Coins() -SKY_coin_UxArray_Coins = _skycoin.SKY_coin_UxArray_Coins - -def SKY_coin_UxArray_CoinHours(p1): - return _skycoin.SKY_coin_UxArray_CoinHours(p1) -SKY_coin_UxArray_CoinHours = _skycoin.SKY_coin_UxArray_CoinHours - -def SKY_coin_UxArray_Sub(): - return _skycoin.SKY_coin_UxArray_Sub() -SKY_coin_UxArray_Sub = _skycoin.SKY_coin_UxArray_Sub - -def SKY_coin_UxArray_Add(): - return _skycoin.SKY_coin_UxArray_Add() -SKY_coin_UxArray_Add = _skycoin.SKY_coin_UxArray_Add - -def SKY_coin_NewAddressUxOuts(p1): - return _skycoin.SKY_coin_NewAddressUxOuts(p1) -SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts - -def SKY_coin_AddressUxOuts_Keys(p0): - return _skycoin.SKY_coin_AddressUxOuts_Keys(p0) -SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys - -def SKY_coin_AddressUxOuts_Flatten(p0): - return _skycoin.SKY_coin_AddressUxOuts_Flatten(p0) -SKY_coin_AddressUxOuts_Flatten = _skycoin.SKY_coin_AddressUxOuts_Flatten - -def SKY_coin_AddressUxOuts_Sub(p0, p1, p2): - return _skycoin.SKY_coin_AddressUxOuts_Sub(p0, p1, p2) -SKY_coin_AddressUxOuts_Sub = _skycoin.SKY_coin_AddressUxOuts_Sub - -def SKY_coin_AddressUxOuts_Add(p0, p1, p2): - return _skycoin.SKY_coin_AddressUxOuts_Add(p0, p1, p2) -SKY_coin_AddressUxOuts_Add = _skycoin.SKY_coin_AddressUxOuts_Add - -def SKY_coin_AddressUxOuts_Get(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_Get(p0, p1) -SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get - -def SKY_coin_AddressUxOuts_HasKey(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_HasKey(p0, p1) -SKY_coin_AddressUxOuts_HasKey = _skycoin.SKY_coin_AddressUxOuts_HasKey - -def SKY_coin_AddressUxOuts_GetOutputLength(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_GetOutputLength(p0, p1) -SKY_coin_AddressUxOuts_GetOutputLength = _skycoin.SKY_coin_AddressUxOuts_GetOutputLength - -def SKY_coin_AddressUxOuts_Length(p0): - return _skycoin.SKY_coin_AddressUxOuts_Length(p0) -SKY_coin_AddressUxOuts_Length = _skycoin.SKY_coin_AddressUxOuts_Length - -def SKY_coin_AddressUxOuts_Set(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_Set(p0, p1) -SKY_coin_AddressUxOuts_Set = _skycoin.SKY_coin_AddressUxOuts_Set - -def SKY_scrypt_Key(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_scrypt_Key(p0, p1, p2, p3, p4, p5) -SKY_scrypt_Key = _skycoin.SKY_scrypt_Key - -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_AddPrivateKey(p0, p1): - return _skycoin.SKY_cli_AddPrivateKey(p0, p1) -SKY_cli_AddPrivateKey = _skycoin.SKY_cli_AddPrivateKey - -def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): - return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) -SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile - -def SKY_cli_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_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_GetUnspentOutputs(p0, p1, p2): - return _skycoin.SKY_webrpc_Client_GetUnspentOutputs(p0, p1, p2) -SKY_webrpc_Client_GetUnspentOutputs = _skycoin.SKY_webrpc_Client_GetUnspentOutputs - -def SKY_webrpc_Client_InjectTransactionString(p0, p1): - return _skycoin.SKY_webrpc_Client_InjectTransactionString(p0, p1) -SKY_webrpc_Client_InjectTransactionString = _skycoin.SKY_webrpc_Client_InjectTransactionString - -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_GetBlocks(p0, p1, p2): - return _skycoin.SKY_webrpc_Client_GetBlocks(p0, p1, p2) -SKY_webrpc_Client_GetBlocks = _skycoin.SKY_webrpc_Client_GetBlocks - -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_droplet_FromString(p0): - return _skycoin.SKY_droplet_FromString(p0) -SKY_droplet_FromString = _skycoin.SKY_droplet_FromString - -def SKY_droplet_ToString(p0): - return _skycoin.SKY_droplet_ToString(p0) -SKY_droplet_ToString = _skycoin.SKY_droplet_ToString - -def SKY_bip39_NewDefaultMnemomic(): - return _skycoin.SKY_bip39_NewDefaultMnemomic() -SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic - -def SKY_bip39_NewEntropy(p0): - return _skycoin.SKY_bip39_NewEntropy(p0) -SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy - -def SKY_bip39_NewMnemonic(p0): - return _skycoin.SKY_bip39_NewMnemonic(p0) -SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic - -def SKY_bip39_MnemonicToByteArray(p0): - return _skycoin.SKY_bip39_MnemonicToByteArray(p0) -SKY_bip39_MnemonicToByteArray = _skycoin.SKY_bip39_MnemonicToByteArray - -def SKY_bip39_IsMnemonicValid(p0): - return _skycoin.SKY_bip39_IsMnemonicValid(p0) -SKY_bip39_IsMnemonicValid = _skycoin.SKY_bip39_IsMnemonicValid - -def SKY_secp256k1go_XYZ_Print(p0, p1): - return _skycoin.SKY_secp256k1go_XYZ_Print(p0, p1) -SKY_secp256k1go_XYZ_Print = _skycoin.SKY_secp256k1go_XYZ_Print - -def SKY_secp256k1go_XYZ_SetXY(p0, p1): - return _skycoin.SKY_secp256k1go_XYZ_SetXY(p0, p1) -SKY_secp256k1go_XYZ_SetXY = _skycoin.SKY_secp256k1go_XYZ_SetXY - -def SKY_secp256k1go_XYZ_IsInfinity(p0): - return _skycoin.SKY_secp256k1go_XYZ_IsInfinity(p0) -SKY_secp256k1go_XYZ_IsInfinity = _skycoin.SKY_secp256k1go_XYZ_IsInfinity - -def SKY_secp256k1go_XYZ_IsValid(p0): - return _skycoin.SKY_secp256k1go_XYZ_IsValid(p0) -SKY_secp256k1go_XYZ_IsValid = _skycoin.SKY_secp256k1go_XYZ_IsValid - -def SKY_secp256k1go_XYZ_Normalize(p0): - return _skycoin.SKY_secp256k1go_XYZ_Normalize(p0) -SKY_secp256k1go_XYZ_Normalize = _skycoin.SKY_secp256k1go_XYZ_Normalize - -def SKY_secp256k1go_XYZ_Equals(p0, p1): - return _skycoin.SKY_secp256k1go_XYZ_Equals(p0, p1) -SKY_secp256k1go_XYZ_Equals = _skycoin.SKY_secp256k1go_XYZ_Equals - -def SKY_secp256k1go_XYZ_ECmult(p0, p1, p2, p3): - return _skycoin.SKY_secp256k1go_XYZ_ECmult(p0, p1, p2, p3) -SKY_secp256k1go_XYZ_ECmult = _skycoin.SKY_secp256k1go_XYZ_ECmult - -def SKY_secp256k1go_XYZ_Neg(p0, p1): - return _skycoin.SKY_secp256k1go_XYZ_Neg(p0, p1) -SKY_secp256k1go_XYZ_Neg = _skycoin.SKY_secp256k1go_XYZ_Neg - -def SKY_secp256k1go_XYZ_Double(p0, p1): - return _skycoin.SKY_secp256k1go_XYZ_Double(p0, p1) -SKY_secp256k1go_XYZ_Double = _skycoin.SKY_secp256k1go_XYZ_Double - -def SKY_secp256k1go_XYZ_AddXY(p0, p1, p2): - return _skycoin.SKY_secp256k1go_XYZ_AddXY(p0, p1, p2) -SKY_secp256k1go_XYZ_AddXY = _skycoin.SKY_secp256k1go_XYZ_AddXY - -def SKY_secp256k1go_XYZ_Add(p0, p1, p2): - return _skycoin.SKY_secp256k1go_XYZ_Add(p0, p1, p2) -SKY_secp256k1go_XYZ_Add = _skycoin.SKY_secp256k1go_XYZ_Add - -def SKY_secp256k1go_ECmultGen(p0, p1): - return _skycoin.SKY_secp256k1go_ECmultGen(p0, p1) -SKY_secp256k1go_ECmultGen = _skycoin.SKY_secp256k1go_ECmultGen - -def SKY_wallet_NewNotesFilename(): - return _skycoin.SKY_wallet_NewNotesFilename() -SKY_wallet_NewNotesFilename = _skycoin.SKY_wallet_NewNotesFilename - -def SKY_wallet_LoadNotes(p0, p1): - return _skycoin.SKY_wallet_LoadNotes(p0, p1) -SKY_wallet_LoadNotes = _skycoin.SKY_wallet_LoadNotes - -def SKY_wallet_LoadReadableNotes(p0, p1): - return _skycoin.SKY_wallet_LoadReadableNotes(p0, p1) -SKY_wallet_LoadReadableNotes = _skycoin.SKY_wallet_LoadReadableNotes - -def SKY_wallet_ReadableNotes_Load(p0, p1): - return _skycoin.SKY_wallet_ReadableNotes_Load(p0, p1) -SKY_wallet_ReadableNotes_Load = _skycoin.SKY_wallet_ReadableNotes_Load - -def SKY_wallet_ReadableNotes_ToNotes(p0, p1): - return _skycoin.SKY_wallet_ReadableNotes_ToNotes(p0, p1) -SKY_wallet_ReadableNotes_ToNotes = _skycoin.SKY_wallet_ReadableNotes_ToNotes - -def SKY_wallet_ReadableNotes_Save(p0, p1): - return _skycoin.SKY_wallet_ReadableNotes_Save(p0, p1) -SKY_wallet_ReadableNotes_Save = _skycoin.SKY_wallet_ReadableNotes_Save - -def SKY_wallet_NewReadableNote(p0, p1): - return _skycoin.SKY_wallet_NewReadableNote(p0, p1) -SKY_wallet_NewReadableNote = _skycoin.SKY_wallet_NewReadableNote - -def SKY_wallet_NewReadableNotesFromNotes(p0, p1): - return _skycoin.SKY_wallet_NewReadableNotesFromNotes(p0, p1) -SKY_wallet_NewReadableNotesFromNotes = _skycoin.SKY_wallet_NewReadableNotesFromNotes - -def SKY_wallet_Notes_Save(p0, p1, p2): - return _skycoin.SKY_wallet_Notes_Save(p0, p1, p2) -SKY_wallet_Notes_Save = _skycoin.SKY_wallet_Notes_Save - -def SKY_wallet_Notes_SaveNote(p0, p1, p2): - return _skycoin.SKY_wallet_Notes_SaveNote(p0, p1, p2) -SKY_wallet_Notes_SaveNote = _skycoin.SKY_wallet_Notes_SaveNote - -def SKY_wallet_Notes_ToReadable(p0, p1): - return _skycoin.SKY_wallet_Notes_ToReadable(p0, p1) -SKY_wallet_Notes_ToReadable = _skycoin.SKY_wallet_Notes_ToReadable - -def SKY_wallet_NotesFileExist(p0): - return _skycoin.SKY_wallet_NotesFileExist(p0) -SKY_wallet_NotesFileExist = _skycoin.SKY_wallet_NotesFileExist - -def SKY_wallet_CreateNoteFileIfNotExist(p0): - return _skycoin.SKY_wallet_CreateNoteFileIfNotExist(p0) -SKY_wallet_CreateNoteFileIfNotExist = _skycoin.SKY_wallet_CreateNoteFileIfNotExist - -def SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2): - return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2) -SKY_encrypt_ScryptChacha20poly1305_Encrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt - -def SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2): - return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2) -SKY_encrypt_ScryptChacha20poly1305_Decrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt - -def SKY_coin_AddUint64(p0, p1): - return _skycoin.SKY_coin_AddUint64(p0, p1) -SKY_coin_AddUint64 = _skycoin.SKY_coin_AddUint64 - -def SKY_coin_Uint64ToInt64(p0): - return _skycoin.SKY_coin_Uint64ToInt64(p0) -SKY_coin_Uint64ToInt64 = _skycoin.SKY_coin_Uint64ToInt64 - -def SKY_coin_Int64ToUint64(p0): - return _skycoin.SKY_coin_Int64ToUint64(p0) -SKY_coin_Int64ToUint64 = _skycoin.SKY_coin_Int64ToUint64 - -def SKY_wallet_NewBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) -SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance - -def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) -SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut - -def SKY_wallet_Balance_Add(p0, p1, p2): - return _skycoin.SKY_wallet_Balance_Add(p0, p1, p2) -SKY_wallet_Balance_Add = _skycoin.SKY_wallet_Balance_Add - -def SKY_wallet_Balance_Sub(p0, p1, p2): - return _skycoin.SKY_wallet_Balance_Sub(p0, p1, p2) -SKY_wallet_Balance_Sub = _skycoin.SKY_wallet_Balance_Sub - -def SKY_wallet_Balance_Equals(p0, p1): - return _skycoin.SKY_wallet_Balance_Equals(p0, p1) -SKY_wallet_Balance_Equals = _skycoin.SKY_wallet_Balance_Equals - -def SKY_wallet_Balance_IsZero(p0): - return _skycoin.SKY_wallet_Balance_IsZero(p0) -SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero - -def SKY_coin_NewBlock(p0, p1, p2, p3, p4): - return _skycoin.SKY_coin_NewBlock(p0, p1, p2, p3, p4) -SKY_coin_NewBlock = _skycoin.SKY_coin_NewBlock - -def SKY_coin_SignedBlock_VerifySignature(p0, p1): - return _skycoin.SKY_coin_SignedBlock_VerifySignature(p0, p1) -SKY_coin_SignedBlock_VerifySignature = _skycoin.SKY_coin_SignedBlock_VerifySignature - -def SKY_coin_NewGenesisBlock(p0, p1, p2): - return _skycoin.SKY_coin_NewGenesisBlock(p0, p1, p2) -SKY_coin_NewGenesisBlock = _skycoin.SKY_coin_NewGenesisBlock - -def SKY_coin_Block_HashHeader(p0, p1): - return _skycoin.SKY_coin_Block_HashHeader(p0, p1) -SKY_coin_Block_HashHeader = _skycoin.SKY_coin_Block_HashHeader - -def SKY_coin_Block_PreHashHeader(p0, p1): - return _skycoin.SKY_coin_Block_PreHashHeader(p0, p1) -SKY_coin_Block_PreHashHeader = _skycoin.SKY_coin_Block_PreHashHeader - -def SKY_coin_Block_Time(p0): - return _skycoin.SKY_coin_Block_Time(p0) -SKY_coin_Block_Time = _skycoin.SKY_coin_Block_Time - -def SKY_coin_Block_Seq(p0): - return _skycoin.SKY_coin_Block_Seq(p0) -SKY_coin_Block_Seq = _skycoin.SKY_coin_Block_Seq - -def SKY_coin_Block_HashBody(p0, p1): - return _skycoin.SKY_coin_Block_HashBody(p0, p1) -SKY_coin_Block_HashBody = _skycoin.SKY_coin_Block_HashBody - -def SKY_coin_Block_Size(p0): - return _skycoin.SKY_coin_Block_Size(p0) -SKY_coin_Block_Size = _skycoin.SKY_coin_Block_Size - -def SKY_coin_Block_String(p0): - return _skycoin.SKY_coin_Block_String(p0) -SKY_coin_Block_String = _skycoin.SKY_coin_Block_String - -def SKY_coin_Block_GetTransaction(p0, p1): - return _skycoin.SKY_coin_Block_GetTransaction(p0, p1) -SKY_coin_Block_GetTransaction = _skycoin.SKY_coin_Block_GetTransaction - -def SKY_coin_NewBlockHeader(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_coin_NewBlockHeader(p0, p1, p2, p3, p4, p5) -SKY_coin_NewBlockHeader = _skycoin.SKY_coin_NewBlockHeader - -def SKY_coin_BlockHeader_Hash(p0, p1): - return _skycoin.SKY_coin_BlockHeader_Hash(p0, p1) -SKY_coin_BlockHeader_Hash = _skycoin.SKY_coin_BlockHeader_Hash - -def SKY_coin_BlockHeader_Bytes(p0): - return _skycoin.SKY_coin_BlockHeader_Bytes(p0) -SKY_coin_BlockHeader_Bytes = _skycoin.SKY_coin_BlockHeader_Bytes - -def SKY_coin_BlockHeader_String(p0): - return _skycoin.SKY_coin_BlockHeader_String(p0) -SKY_coin_BlockHeader_String = _skycoin.SKY_coin_BlockHeader_String - -def SKY_coin_BlockBody_Hash(p0, p1): - return _skycoin.SKY_coin_BlockBody_Hash(p0, p1) -SKY_coin_BlockBody_Hash = _skycoin.SKY_coin_BlockBody_Hash - -def SKY_coin_BlockBody_Size(): - return _skycoin.SKY_coin_BlockBody_Size() -SKY_coin_BlockBody_Size = _skycoin.SKY_coin_BlockBody_Size - -def SKY_coin_BlockBody_Bytes(p0): - return _skycoin.SKY_coin_BlockBody_Bytes(p0) -SKY_coin_BlockBody_Bytes = _skycoin.SKY_coin_BlockBody_Bytes - -def SKY_coin_CreateUnspents(p0, p1): - return _skycoin.SKY_coin_CreateUnspents(p0, p1) -SKY_coin_CreateUnspents = _skycoin.SKY_coin_CreateUnspents - -def SKY_coin_CreateUnspent(p0, p1, p2, p3): - return _skycoin.SKY_coin_CreateUnspent(p0, p1, p2, p3) -SKY_coin_CreateUnspent = _skycoin.SKY_coin_CreateUnspent - -def SKY_coin_GetBlockObject(p0, p1): - return _skycoin.SKY_coin_GetBlockObject(p0, p1) -SKY_coin_GetBlockObject = _skycoin.SKY_coin_GetBlockObject - -def SKY_coin_GetBlockBody(p0): - return _skycoin.SKY_coin_GetBlockBody(p0) -SKY_coin_GetBlockBody = _skycoin.SKY_coin_GetBlockBody - -def SKY_coin_NewEmptyBlock(p0): - return _skycoin.SKY_coin_NewEmptyBlock(p0) -SKY_coin_NewEmptyBlock = _skycoin.SKY_coin_NewEmptyBlock - -def SKY_wallet_CreateAddresses(p0, p1, p2, p3): - return _skycoin.SKY_wallet_CreateAddresses(p0, p1, p2, p3) -SKY_wallet_CreateAddresses = _skycoin.SKY_wallet_CreateAddresses - -def SKY_wallet_GetSkycoinWalletEntry(p0, p1): - return _skycoin.SKY_wallet_GetSkycoinWalletEntry(p0, p1) -SKY_wallet_GetSkycoinWalletEntry = _skycoin.SKY_wallet_GetSkycoinWalletEntry - -def SKY_wallet_GetBitcoinWalletEntry(p0, p1): - return _skycoin.SKY_wallet_GetBitcoinWalletEntry(p0, p1) -SKY_wallet_GetBitcoinWalletEntry = _skycoin.SKY_wallet_GetBitcoinWalletEntry - -def SKY_map_get(p1): - return _skycoin.SKY_map_get(p1) -SKY_map_get = _skycoin.SKY_map_get - -def SKY_map_has_key(p1): - return _skycoin.SKY_map_has_key(p1) -SKY_map_has_key = _skycoin.SKY_map_has_key - -def SKY_map_close(): - return _skycoin.SKY_map_close() -SKY_map_close = _skycoin.SKY_map_close - -def SKY_logging_EnableColors(): - return _skycoin.SKY_logging_EnableColors() -SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors - -def SKY_logging_DisableColors(): - return _skycoin.SKY_logging_DisableColors() -SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors - -def SKY_logging_Disable(): - return _skycoin.SKY_logging_Disable() -SKY_logging_Disable = _skycoin.SKY_logging_Disable - -def SKY_cli_GenerateWallet(p0, p2): - return _skycoin.SKY_cli_GenerateWallet(p0, p2) -SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet - -def SKY_cli_MakeAlphanumericSeed(): - return _skycoin.SKY_cli_MakeAlphanumericSeed() -SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed - -def SKY_secp256k1go_Signature_Print(p0, p1): - return _skycoin.SKY_secp256k1go_Signature_Print(p0, p1) -SKY_secp256k1go_Signature_Print = _skycoin.SKY_secp256k1go_Signature_Print - -def SKY_secp256k1go_Signature_Verify(p0, p1, p2): - return _skycoin.SKY_secp256k1go_Signature_Verify(p0, p1, p2) -SKY_secp256k1go_Signature_Verify = _skycoin.SKY_secp256k1go_Signature_Verify - -def SKY_secp256k1go_Signature_Recover(p0, p1, p2, p3): - return _skycoin.SKY_secp256k1go_Signature_Recover(p0, p1, p2, p3) -SKY_secp256k1go_Signature_Recover = _skycoin.SKY_secp256k1go_Signature_Recover - -def SKY_secp256k1go_Signature_Sign(p0, p1, p2, p3): - return _skycoin.SKY_secp256k1go_Signature_Sign(p0, p1, p2, p3) -SKY_secp256k1go_Signature_Sign = _skycoin.SKY_secp256k1go_Signature_Sign - -def SKY_secp256k1go_Signature_ParseBytes(p0, p1): - return _skycoin.SKY_secp256k1go_Signature_ParseBytes(p0, p1) -SKY_secp256k1go_Signature_ParseBytes = _skycoin.SKY_secp256k1go_Signature_ParseBytes - -def SKY_secp256k1go_Signature_Bytes(p0): - return _skycoin.SKY_secp256k1go_Signature_Bytes(p0) -SKY_secp256k1go_Signature_Bytes = _skycoin.SKY_secp256k1go_Signature_Bytes - -def SKY_secp256k1go_Number_Print(p0, p1): - return _skycoin.SKY_secp256k1go_Number_Print(p0, p1) -SKY_secp256k1go_Number_Print = _skycoin.SKY_secp256k1go_Number_Print - -def SKY_secp256k1go_Number_SetHex(p0, p1): - return _skycoin.SKY_secp256k1go_Number_SetHex(p0, p1) -SKY_secp256k1go_Number_SetHex = _skycoin.SKY_secp256k1go_Number_SetHex - -def SKY_secp256k1go_Number_IsOdd(p0): - return _skycoin.SKY_secp256k1go_Number_IsOdd(p0) -SKY_secp256k1go_Number_IsOdd = _skycoin.SKY_secp256k1go_Number_IsOdd - -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_secp256k1go_XY_Print(p0, p1): - return _skycoin.SKY_secp256k1go_XY_Print(p0, p1) -SKY_secp256k1go_XY_Print = _skycoin.SKY_secp256k1go_XY_Print - -def SKY_secp256k1go_XY_ParsePubkey(p0, p1): - return _skycoin.SKY_secp256k1go_XY_ParsePubkey(p0, p1) -SKY_secp256k1go_XY_ParsePubkey = _skycoin.SKY_secp256k1go_XY_ParsePubkey - -def SKY_secp256k1go_XY_Bytes(p0): - return _skycoin.SKY_secp256k1go_XY_Bytes(p0) -SKY_secp256k1go_XY_Bytes = _skycoin.SKY_secp256k1go_XY_Bytes - -def SKY_secp256k1go_XY_BytesUncompressed(p0): - return _skycoin.SKY_secp256k1go_XY_BytesUncompressed(p0) -SKY_secp256k1go_XY_BytesUncompressed = _skycoin.SKY_secp256k1go_XY_BytesUncompressed - -def SKY_secp256k1go_XY_SetXY(p0, p1, p2): - return _skycoin.SKY_secp256k1go_XY_SetXY(p0, p1, p2) -SKY_secp256k1go_XY_SetXY = _skycoin.SKY_secp256k1go_XY_SetXY - -def SKY_secp256k1go_XY_IsValid(p0): - return _skycoin.SKY_secp256k1go_XY_IsValid(p0) -SKY_secp256k1go_XY_IsValid = _skycoin.SKY_secp256k1go_XY_IsValid - -def SKY_secp256k1go_XY_SetXYZ(p0, p1): - return _skycoin.SKY_secp256k1go_XY_SetXYZ(p0, p1) -SKY_secp256k1go_XY_SetXYZ = _skycoin.SKY_secp256k1go_XY_SetXYZ - -def SKY_secp256k1go_XY_Neg(p0, p1): - return _skycoin.SKY_secp256k1go_XY_Neg(p0, p1) -SKY_secp256k1go_XY_Neg = _skycoin.SKY_secp256k1go_XY_Neg - -def SKY_secp256k1go_XY_SetXO(p0, p1, p2): - return _skycoin.SKY_secp256k1go_XY_SetXO(p0, p1, p2) -SKY_secp256k1go_XY_SetXO = _skycoin.SKY_secp256k1go_XY_SetXO - -def SKY_secp256k1go_XY_AddXY(p0, p1): - return _skycoin.SKY_secp256k1go_XY_AddXY(p0, p1) -SKY_secp256k1go_XY_AddXY = _skycoin.SKY_secp256k1go_XY_AddXY - -def SKY_secp256k1go_XY_GetPublicKey(p0): - return _skycoin.SKY_secp256k1go_XY_GetPublicKey(p0) -SKY_secp256k1go_XY_GetPublicKey = _skycoin.SKY_secp256k1go_XY_GetPublicKey - -def SKY_wallet_Entry_Verify(p0): - return _skycoin.SKY_wallet_Entry_Verify(p0) -SKY_wallet_Entry_Verify = _skycoin.SKY_wallet_Entry_Verify - -def SKY_wallet_Entry_VerifyPublic(p0): - return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) -SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic - -def SKY_wallet_CryptoTypeFromString(p0): - return _skycoin.SKY_wallet_CryptoTypeFromString(p0) -SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString -class cipher__Address(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cipher__Address, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cipher__Address, name) - __repr__ = _swig_repr - - def isEqual(self, a): - return _skycoin.cipher__Address_isEqual(self, a) - __swig_setmethods__["Version"] = _skycoin.cipher__Address_Version_set - __swig_getmethods__["Version"] = _skycoin.cipher__Address_Version_get - if _newclass: - Version = _swig_property(_skycoin.cipher__Address_Version_get, _skycoin.cipher__Address_Version_set) - __swig_setmethods__["Key"] = _skycoin.cipher__Address_Key_set - __swig_getmethods__["Key"] = _skycoin.cipher__Address_Key_get - if _newclass: - Key = _swig_property(_skycoin.cipher__Address_Key_get, _skycoin.cipher__Address_Key_set) - - def __init__(self): - this = _skycoin.new_cipher__Address() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cipher__Address - __del__ = lambda self: None -cipher__Address_swigregister = _skycoin.cipher__Address_swigregister -cipher__Address_swigregister(cipher__Address) - -class encoder__StructField(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, encoder__StructField, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, encoder__StructField, name) - __repr__ = _swig_repr - __swig_setmethods__["Name"] = _skycoin.encoder__StructField_Name_set - __swig_getmethods__["Name"] = _skycoin.encoder__StructField_Name_get - if _newclass: - Name = _swig_property(_skycoin.encoder__StructField_Name_get, _skycoin.encoder__StructField_Name_set) - __swig_setmethods__["Kind"] = _skycoin.encoder__StructField_Kind_set - __swig_getmethods__["Kind"] = _skycoin.encoder__StructField_Kind_get - if _newclass: - Kind = _swig_property(_skycoin.encoder__StructField_Kind_get, _skycoin.encoder__StructField_Kind_set) - __swig_setmethods__["Type"] = _skycoin.encoder__StructField_Type_set - __swig_getmethods__["Type"] = _skycoin.encoder__StructField_Type_get - if _newclass: - Type = _swig_property(_skycoin.encoder__StructField_Type_get, _skycoin.encoder__StructField_Type_set) - __swig_setmethods__["Tag"] = _skycoin.encoder__StructField_Tag_set - __swig_getmethods__["Tag"] = _skycoin.encoder__StructField_Tag_get - if _newclass: - Tag = _swig_property(_skycoin.encoder__StructField_Tag_get, _skycoin.encoder__StructField_Tag_set) - - def __init__(self): - this = _skycoin.new_encoder__StructField() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_encoder__StructField - __del__ = lambda self: None -encoder__StructField_swigregister = _skycoin.encoder__StructField_swigregister -encoder__StructField_swigregister(encoder__StructField) - -class encrypt__ScryptChacha20poly1305(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, encrypt__ScryptChacha20poly1305, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, encrypt__ScryptChacha20poly1305, name) - __repr__ = _swig_repr - __swig_setmethods__["N"] = _skycoin.encrypt__ScryptChacha20poly1305_N_set - __swig_getmethods__["N"] = _skycoin.encrypt__ScryptChacha20poly1305_N_get - if _newclass: - N = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_N_get, _skycoin.encrypt__ScryptChacha20poly1305_N_set) - __swig_setmethods__["R"] = _skycoin.encrypt__ScryptChacha20poly1305_R_set - __swig_getmethods__["R"] = _skycoin.encrypt__ScryptChacha20poly1305_R_get - if _newclass: - R = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_R_get, _skycoin.encrypt__ScryptChacha20poly1305_R_set) - __swig_setmethods__["P"] = _skycoin.encrypt__ScryptChacha20poly1305_P_set - __swig_getmethods__["P"] = _skycoin.encrypt__ScryptChacha20poly1305_P_get - if _newclass: - P = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_P_get, _skycoin.encrypt__ScryptChacha20poly1305_P_set) - __swig_setmethods__["KeyLen"] = _skycoin.encrypt__ScryptChacha20poly1305_KeyLen_set - __swig_getmethods__["KeyLen"] = _skycoin.encrypt__ScryptChacha20poly1305_KeyLen_get - if _newclass: - KeyLen = _swig_property(_skycoin.encrypt__ScryptChacha20poly1305_KeyLen_get, _skycoin.encrypt__ScryptChacha20poly1305_KeyLen_set) - - def __init__(self): - this = _skycoin.new_encrypt__ScryptChacha20poly1305() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_encrypt__ScryptChacha20poly1305 - __del__ = lambda self: None -encrypt__ScryptChacha20poly1305_swigregister = _skycoin.encrypt__ScryptChacha20poly1305_swigregister -encrypt__ScryptChacha20poly1305_swigregister(encrypt__ScryptChacha20poly1305) - -class secp256k1go__Field(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, secp256k1go__Field, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, secp256k1go__Field, name) - __repr__ = _swig_repr - __swig_setmethods__["n"] = _skycoin.secp256k1go__Field_n_set - __swig_getmethods__["n"] = _skycoin.secp256k1go__Field_n_get - if _newclass: - n = _swig_property(_skycoin.secp256k1go__Field_n_get, _skycoin.secp256k1go__Field_n_set) - - def __init__(self): - this = _skycoin.new_secp256k1go__Field() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_secp256k1go__Field - __del__ = lambda self: None -secp256k1go__Field_swigregister = _skycoin.secp256k1go__Field_swigregister -secp256k1go__Field_swigregister(secp256k1go__Field) - -class secp256k1go__XY(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, secp256k1go__XY, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, secp256k1go__XY, name) - __repr__ = _swig_repr - __swig_setmethods__["X"] = _skycoin.secp256k1go__XY_X_set - __swig_getmethods__["X"] = _skycoin.secp256k1go__XY_X_get - if _newclass: - X = _swig_property(_skycoin.secp256k1go__XY_X_get, _skycoin.secp256k1go__XY_X_set) - __swig_setmethods__["Y"] = _skycoin.secp256k1go__XY_Y_set - __swig_getmethods__["Y"] = _skycoin.secp256k1go__XY_Y_get - if _newclass: - Y = _swig_property(_skycoin.secp256k1go__XY_Y_get, _skycoin.secp256k1go__XY_Y_set) - __swig_setmethods__["Infinity"] = _skycoin.secp256k1go__XY_Infinity_set - __swig_getmethods__["Infinity"] = _skycoin.secp256k1go__XY_Infinity_get - if _newclass: - Infinity = _swig_property(_skycoin.secp256k1go__XY_Infinity_get, _skycoin.secp256k1go__XY_Infinity_set) - - def __init__(self): - this = _skycoin.new_secp256k1go__XY() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_secp256k1go__XY - __del__ = lambda self: None -secp256k1go__XY_swigregister = _skycoin.secp256k1go__XY_swigregister -secp256k1go__XY_swigregister(secp256k1go__XY) - -class secp256k1go__XYZ(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, secp256k1go__XYZ, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, secp256k1go__XYZ, name) - __repr__ = _swig_repr - __swig_setmethods__["X"] = _skycoin.secp256k1go__XYZ_X_set - __swig_getmethods__["X"] = _skycoin.secp256k1go__XYZ_X_get - if _newclass: - X = _swig_property(_skycoin.secp256k1go__XYZ_X_get, _skycoin.secp256k1go__XYZ_X_set) - __swig_setmethods__["Y"] = _skycoin.secp256k1go__XYZ_Y_set - __swig_getmethods__["Y"] = _skycoin.secp256k1go__XYZ_Y_get - if _newclass: - Y = _swig_property(_skycoin.secp256k1go__XYZ_Y_get, _skycoin.secp256k1go__XYZ_Y_set) - __swig_setmethods__["Z"] = _skycoin.secp256k1go__XYZ_Z_set - __swig_getmethods__["Z"] = _skycoin.secp256k1go__XYZ_Z_get - if _newclass: - Z = _swig_property(_skycoin.secp256k1go__XYZ_Z_get, _skycoin.secp256k1go__XYZ_Z_set) - __swig_setmethods__["Infinity"] = _skycoin.secp256k1go__XYZ_Infinity_set - __swig_getmethods__["Infinity"] = _skycoin.secp256k1go__XYZ_Infinity_get - if _newclass: - Infinity = _swig_property(_skycoin.secp256k1go__XYZ_Infinity_get, _skycoin.secp256k1go__XYZ_Infinity_set) - - def __init__(self): - this = _skycoin.new_secp256k1go__XYZ() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_secp256k1go__XYZ - __del__ = lambda self: None -secp256k1go__XYZ_swigregister = _skycoin.secp256k1go__XYZ_swigregister -secp256k1go__XYZ_swigregister(secp256k1go__XYZ) - -class coin__SortableTransactions(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__SortableTransactions, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__SortableTransactions, name) - __repr__ = _swig_repr - __swig_setmethods__["Txns"] = _skycoin.coin__SortableTransactions_Txns_set - __swig_getmethods__["Txns"] = _skycoin.coin__SortableTransactions_Txns_get - if _newclass: - Txns = _swig_property(_skycoin.coin__SortableTransactions_Txns_get, _skycoin.coin__SortableTransactions_Txns_set) - __swig_setmethods__["Fees"] = _skycoin.coin__SortableTransactions_Fees_set - __swig_getmethods__["Fees"] = _skycoin.coin__SortableTransactions_Fees_get - if _newclass: - Fees = _swig_property(_skycoin.coin__SortableTransactions_Fees_get, _skycoin.coin__SortableTransactions_Fees_set) - __swig_setmethods__["Hashes"] = _skycoin.coin__SortableTransactions_Hashes_set - __swig_getmethods__["Hashes"] = _skycoin.coin__SortableTransactions_Hashes_get - if _newclass: - Hashes = _swig_property(_skycoin.coin__SortableTransactions_Hashes_get, _skycoin.coin__SortableTransactions_Hashes_set) - - def __init__(self): - this = _skycoin.new_coin__SortableTransactions() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__SortableTransactions - __del__ = lambda self: None -coin__SortableTransactions_swigregister = _skycoin.coin__SortableTransactions_swigregister -coin__SortableTransactions_swigregister(coin__SortableTransactions) - -class coin__Transaction(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__Transaction, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__Transaction, name) - __repr__ = _swig_repr - __swig_setmethods__["Length"] = _skycoin.coin__Transaction_Length_set - __swig_getmethods__["Length"] = _skycoin.coin__Transaction_Length_get - if _newclass: - Length = _swig_property(_skycoin.coin__Transaction_Length_get, _skycoin.coin__Transaction_Length_set) - __swig_setmethods__["Type"] = _skycoin.coin__Transaction_Type_set - __swig_getmethods__["Type"] = _skycoin.coin__Transaction_Type_get - if _newclass: - Type = _swig_property(_skycoin.coin__Transaction_Type_get, _skycoin.coin__Transaction_Type_set) - __swig_setmethods__["InnerHash"] = _skycoin.coin__Transaction_InnerHash_set - __swig_getmethods__["InnerHash"] = _skycoin.coin__Transaction_InnerHash_get - if _newclass: - InnerHash = _swig_property(_skycoin.coin__Transaction_InnerHash_get, _skycoin.coin__Transaction_InnerHash_set) - __swig_setmethods__["Sigs"] = _skycoin.coin__Transaction_Sigs_set - __swig_getmethods__["Sigs"] = _skycoin.coin__Transaction_Sigs_get - if _newclass: - Sigs = _swig_property(_skycoin.coin__Transaction_Sigs_get, _skycoin.coin__Transaction_Sigs_set) - __swig_setmethods__["In"] = _skycoin.coin__Transaction_In_set - __swig_getmethods__["In"] = _skycoin.coin__Transaction_In_get - if _newclass: - In = _swig_property(_skycoin.coin__Transaction_In_get, _skycoin.coin__Transaction_In_set) - __swig_setmethods__["Out"] = _skycoin.coin__Transaction_Out_set - __swig_getmethods__["Out"] = _skycoin.coin__Transaction_Out_get - if _newclass: - Out = _swig_property(_skycoin.coin__Transaction_Out_get, _skycoin.coin__Transaction_Out_set) - - def __init__(self): - this = _skycoin.new_coin__Transaction() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__Transaction - __del__ = lambda self: None -coin__Transaction_swigregister = _skycoin.coin__Transaction_swigregister -coin__Transaction_swigregister(coin__Transaction) - -class coin__TransactionOutput(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__TransactionOutput, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__TransactionOutput, name) - __repr__ = _swig_repr - __swig_setmethods__["Address"] = _skycoin.coin__TransactionOutput_Address_set - __swig_getmethods__["Address"] = _skycoin.coin__TransactionOutput_Address_get - if _newclass: - Address = _swig_property(_skycoin.coin__TransactionOutput_Address_get, _skycoin.coin__TransactionOutput_Address_set) - __swig_setmethods__["Coins"] = _skycoin.coin__TransactionOutput_Coins_set - __swig_getmethods__["Coins"] = _skycoin.coin__TransactionOutput_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.coin__TransactionOutput_Coins_get, _skycoin.coin__TransactionOutput_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.coin__TransactionOutput_Hours_set - __swig_getmethods__["Hours"] = _skycoin.coin__TransactionOutput_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.coin__TransactionOutput_Hours_get, _skycoin.coin__TransactionOutput_Hours_set) - - def __init__(self): - this = _skycoin.new_coin__TransactionOutput() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__TransactionOutput - __del__ = lambda self: None -coin__TransactionOutput_swigregister = _skycoin.coin__TransactionOutput_swigregister -coin__TransactionOutput_swigregister(coin__TransactionOutput) - -class coin__BlockHeader(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__BlockHeader, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__BlockHeader, name) - __repr__ = _swig_repr - __swig_setmethods__["Version"] = _skycoin.coin__BlockHeader_Version_set - __swig_getmethods__["Version"] = _skycoin.coin__BlockHeader_Version_get - if _newclass: - Version = _swig_property(_skycoin.coin__BlockHeader_Version_get, _skycoin.coin__BlockHeader_Version_set) - __swig_setmethods__["Time"] = _skycoin.coin__BlockHeader_Time_set - __swig_getmethods__["Time"] = _skycoin.coin__BlockHeader_Time_get - if _newclass: - Time = _swig_property(_skycoin.coin__BlockHeader_Time_get, _skycoin.coin__BlockHeader_Time_set) - __swig_setmethods__["BkSeq"] = _skycoin.coin__BlockHeader_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.coin__BlockHeader_BkSeq_get - if _newclass: - BkSeq = _swig_property(_skycoin.coin__BlockHeader_BkSeq_get, _skycoin.coin__BlockHeader_BkSeq_set) - __swig_setmethods__["Fee"] = _skycoin.coin__BlockHeader_Fee_set - __swig_getmethods__["Fee"] = _skycoin.coin__BlockHeader_Fee_get - if _newclass: - Fee = _swig_property(_skycoin.coin__BlockHeader_Fee_get, _skycoin.coin__BlockHeader_Fee_set) - __swig_setmethods__["PrevHash"] = _skycoin.coin__BlockHeader_PrevHash_set - __swig_getmethods__["PrevHash"] = _skycoin.coin__BlockHeader_PrevHash_get - if _newclass: - PrevHash = _swig_property(_skycoin.coin__BlockHeader_PrevHash_get, _skycoin.coin__BlockHeader_PrevHash_set) - __swig_setmethods__["BodyHash"] = _skycoin.coin__BlockHeader_BodyHash_set - __swig_getmethods__["BodyHash"] = _skycoin.coin__BlockHeader_BodyHash_get - if _newclass: - BodyHash = _swig_property(_skycoin.coin__BlockHeader_BodyHash_get, _skycoin.coin__BlockHeader_BodyHash_set) - __swig_setmethods__["UxHash"] = _skycoin.coin__BlockHeader_UxHash_set - __swig_getmethods__["UxHash"] = _skycoin.coin__BlockHeader_UxHash_get - if _newclass: - UxHash = _swig_property(_skycoin.coin__BlockHeader_UxHash_get, _skycoin.coin__BlockHeader_UxHash_set) - - def __init__(self): - this = _skycoin.new_coin__BlockHeader() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__BlockHeader - __del__ = lambda self: None -coin__BlockHeader_swigregister = _skycoin.coin__BlockHeader_swigregister -coin__BlockHeader_swigregister(coin__BlockHeader) - -class coin__BlockBody(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__BlockBody, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__BlockBody, name) - __repr__ = _swig_repr - __swig_setmethods__["Transactions"] = _skycoin.coin__BlockBody_Transactions_set - __swig_getmethods__["Transactions"] = _skycoin.coin__BlockBody_Transactions_get - if _newclass: - Transactions = _swig_property(_skycoin.coin__BlockBody_Transactions_get, _skycoin.coin__BlockBody_Transactions_set) - - def __init__(self): - this = _skycoin.new_coin__BlockBody() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__BlockBody - __del__ = lambda self: None -coin__BlockBody_swigregister = _skycoin.coin__BlockBody_swigregister -coin__BlockBody_swigregister(coin__BlockBody) - -class coin__Block(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__Block, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__Block, name) - __repr__ = _swig_repr - __swig_setmethods__["Head"] = _skycoin.coin__Block_Head_set - __swig_getmethods__["Head"] = _skycoin.coin__Block_Head_get - if _newclass: - Head = _swig_property(_skycoin.coin__Block_Head_get, _skycoin.coin__Block_Head_set) - __swig_setmethods__["Body"] = _skycoin.coin__Block_Body_set - __swig_getmethods__["Body"] = _skycoin.coin__Block_Body_get - if _newclass: - Body = _swig_property(_skycoin.coin__Block_Body_get, _skycoin.coin__Block_Body_set) - - def __init__(self): - this = _skycoin.new_coin__Block() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__Block - __del__ = lambda self: None -coin__Block_swigregister = _skycoin.coin__Block_swigregister -coin__Block_swigregister(coin__Block) - -class coin__SignedBlock(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__SignedBlock, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__SignedBlock, name) - __repr__ = _swig_repr - __swig_setmethods__["_unnamed"] = _skycoin.coin__SignedBlock__unnamed_set - __swig_getmethods__["_unnamed"] = _skycoin.coin__SignedBlock__unnamed_get - if _newclass: - _unnamed = _swig_property(_skycoin.coin__SignedBlock__unnamed_get, _skycoin.coin__SignedBlock__unnamed_set) - __swig_setmethods__["Sig"] = _skycoin.coin__SignedBlock_Sig_set - __swig_getmethods__["Sig"] = _skycoin.coin__SignedBlock_Sig_get - if _newclass: - Sig = _swig_property(_skycoin.coin__SignedBlock_Sig_get, _skycoin.coin__SignedBlock_Sig_set) - - def __init__(self): - this = _skycoin.new_coin__SignedBlock() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__SignedBlock - __del__ = lambda self: None -coin__SignedBlock_swigregister = _skycoin.coin__SignedBlock_swigregister -coin__SignedBlock_swigregister(coin__SignedBlock) - -class coin__UxHead(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__UxHead, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__UxHead, name) - __repr__ = _swig_repr - __swig_setmethods__["Time"] = _skycoin.coin__UxHead_Time_set - __swig_getmethods__["Time"] = _skycoin.coin__UxHead_Time_get - if _newclass: - Time = _swig_property(_skycoin.coin__UxHead_Time_get, _skycoin.coin__UxHead_Time_set) - __swig_setmethods__["BkSeq"] = _skycoin.coin__UxHead_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.coin__UxHead_BkSeq_get - if _newclass: - BkSeq = _swig_property(_skycoin.coin__UxHead_BkSeq_get, _skycoin.coin__UxHead_BkSeq_set) - - def __init__(self): - this = _skycoin.new_coin__UxHead() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__UxHead - __del__ = lambda self: None -coin__UxHead_swigregister = _skycoin.coin__UxHead_swigregister -coin__UxHead_swigregister(coin__UxHead) - -class coin__UxBody(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__UxBody, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__UxBody, name) - __repr__ = _swig_repr - __swig_setmethods__["SrcTransaction"] = _skycoin.coin__UxBody_SrcTransaction_set - __swig_getmethods__["SrcTransaction"] = _skycoin.coin__UxBody_SrcTransaction_get - if _newclass: - SrcTransaction = _swig_property(_skycoin.coin__UxBody_SrcTransaction_get, _skycoin.coin__UxBody_SrcTransaction_set) - __swig_setmethods__["Address"] = _skycoin.coin__UxBody_Address_set - __swig_getmethods__["Address"] = _skycoin.coin__UxBody_Address_get - if _newclass: - Address = _swig_property(_skycoin.coin__UxBody_Address_get, _skycoin.coin__UxBody_Address_set) - __swig_setmethods__["Coins"] = _skycoin.coin__UxBody_Coins_set - __swig_getmethods__["Coins"] = _skycoin.coin__UxBody_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.coin__UxBody_Coins_get, _skycoin.coin__UxBody_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.coin__UxBody_Hours_set - __swig_getmethods__["Hours"] = _skycoin.coin__UxBody_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.coin__UxBody_Hours_get, _skycoin.coin__UxBody_Hours_set) - - def __init__(self): - this = _skycoin.new_coin__UxBody() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__UxBody - __del__ = lambda self: None -coin__UxBody_swigregister = _skycoin.coin__UxBody_swigregister -coin__UxBody_swigregister(coin__UxBody) - -class coin__UxOut(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, coin__UxOut, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, coin__UxOut, name) - __repr__ = _swig_repr - __swig_setmethods__["Head"] = _skycoin.coin__UxOut_Head_set - __swig_getmethods__["Head"] = _skycoin.coin__UxOut_Head_get - if _newclass: - Head = _swig_property(_skycoin.coin__UxOut_Head_get, _skycoin.coin__UxOut_Head_set) - __swig_setmethods__["Body"] = _skycoin.coin__UxOut_Body_set - __swig_getmethods__["Body"] = _skycoin.coin__UxOut_Body_get - if _newclass: - Body = _swig_property(_skycoin.coin__UxOut_Body_get, _skycoin.coin__UxOut_Body_set) - - def __init__(self): - this = _skycoin.new_coin__UxOut() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_coin__UxOut - __del__ = lambda self: None -coin__UxOut_swigregister = _skycoin.coin__UxOut_swigregister -coin__UxOut_swigregister(coin__UxOut) - -class wallet__Balance(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Balance, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Balance, name) - __repr__ = _swig_repr - __swig_setmethods__["Coins"] = _skycoin.wallet__Balance_Coins_set - __swig_getmethods__["Coins"] = _skycoin.wallet__Balance_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.wallet__Balance_Coins_get, _skycoin.wallet__Balance_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.wallet__Balance_Hours_set - __swig_getmethods__["Hours"] = _skycoin.wallet__Balance_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.wallet__Balance_Hours_get, _skycoin.wallet__Balance_Hours_set) - - def __init__(self): - this = _skycoin.new_wallet__Balance() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Balance - __del__ = lambda self: None -wallet__Balance_swigregister = _skycoin.wallet__Balance_swigregister -wallet__Balance_swigregister(wallet__Balance) - -class wallet__BalancePair(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__BalancePair, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__BalancePair, name) - __repr__ = _swig_repr - __swig_setmethods__["Confirmed"] = _skycoin.wallet__BalancePair_Confirmed_set - __swig_getmethods__["Confirmed"] = _skycoin.wallet__BalancePair_Confirmed_get - if _newclass: - Confirmed = _swig_property(_skycoin.wallet__BalancePair_Confirmed_get, _skycoin.wallet__BalancePair_Confirmed_set) - __swig_setmethods__["Predicted"] = _skycoin.wallet__BalancePair_Predicted_set - __swig_getmethods__["Predicted"] = _skycoin.wallet__BalancePair_Predicted_get - if _newclass: - Predicted = _swig_property(_skycoin.wallet__BalancePair_Predicted_get, _skycoin.wallet__BalancePair_Predicted_set) - - def __init__(self): - this = _skycoin.new_wallet__BalancePair() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__BalancePair - __del__ = lambda self: None -wallet__BalancePair_swigregister = _skycoin.wallet__BalancePair_swigregister -wallet__BalancePair_swigregister(wallet__BalancePair) - -class wallet__Entry(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Entry, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Entry, name) - __repr__ = _swig_repr - __swig_setmethods__["Address"] = _skycoin.wallet__Entry_Address_set - __swig_getmethods__["Address"] = _skycoin.wallet__Entry_Address_get - if _newclass: - Address = _swig_property(_skycoin.wallet__Entry_Address_get, _skycoin.wallet__Entry_Address_set) - __swig_setmethods__["Public"] = _skycoin.wallet__Entry_Public_set - __swig_getmethods__["Public"] = _skycoin.wallet__Entry_Public_get - if _newclass: - Public = _swig_property(_skycoin.wallet__Entry_Public_get, _skycoin.wallet__Entry_Public_set) - __swig_setmethods__["Secret"] = _skycoin.wallet__Entry_Secret_set - __swig_getmethods__["Secret"] = _skycoin.wallet__Entry_Secret_get - if _newclass: - Secret = _swig_property(_skycoin.wallet__Entry_Secret_get, _skycoin.wallet__Entry_Secret_set) - - def __init__(self): - this = _skycoin.new_wallet__Entry() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Entry - __del__ = lambda self: None -wallet__Entry_swigregister = _skycoin.wallet__Entry_swigregister -wallet__Entry_swigregister(wallet__Entry) - -class wallet__Note(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Note, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Note, name) - __repr__ = _swig_repr - __swig_setmethods__["TxID"] = _skycoin.wallet__Note_TxID_set - __swig_getmethods__["TxID"] = _skycoin.wallet__Note_TxID_get - if _newclass: - TxID = _swig_property(_skycoin.wallet__Note_TxID_get, _skycoin.wallet__Note_TxID_set) - __swig_setmethods__["Value"] = _skycoin.wallet__Note_Value_set - __swig_getmethods__["Value"] = _skycoin.wallet__Note_Value_get - if _newclass: - Value = _swig_property(_skycoin.wallet__Note_Value_get, _skycoin.wallet__Note_Value_set) - - def __init__(self): - this = _skycoin.new_wallet__Note() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Note - __del__ = lambda self: None -wallet__Note_swigregister = _skycoin.wallet__Note_swigregister -wallet__Note_swigregister(wallet__Note) - -class wallet__ReadableNote(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__ReadableNote, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__ReadableNote, name) - __repr__ = _swig_repr - __swig_setmethods__["TransactionID"] = _skycoin.wallet__ReadableNote_TransactionID_set - __swig_getmethods__["TransactionID"] = _skycoin.wallet__ReadableNote_TransactionID_get - if _newclass: - TransactionID = _swig_property(_skycoin.wallet__ReadableNote_TransactionID_get, _skycoin.wallet__ReadableNote_TransactionID_set) - __swig_setmethods__["ActualNote"] = _skycoin.wallet__ReadableNote_ActualNote_set - __swig_getmethods__["ActualNote"] = _skycoin.wallet__ReadableNote_ActualNote_get - if _newclass: - ActualNote = _swig_property(_skycoin.wallet__ReadableNote_ActualNote_get, _skycoin.wallet__ReadableNote_ActualNote_set) - - def __init__(self): - this = _skycoin.new_wallet__ReadableNote() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__ReadableNote - __del__ = lambda self: None -wallet__ReadableNote_swigregister = _skycoin.wallet__ReadableNote_swigregister -wallet__ReadableNote_swigregister(wallet__ReadableNote) - -class wallet__Wallet(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__Wallet, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__Wallet, name) - __repr__ = _swig_repr - __swig_setmethods__["Meta"] = _skycoin.wallet__Wallet_Meta_set - __swig_getmethods__["Meta"] = _skycoin.wallet__Wallet_Meta_get - if _newclass: - Meta = _swig_property(_skycoin.wallet__Wallet_Meta_get, _skycoin.wallet__Wallet_Meta_set) - __swig_setmethods__["Entries"] = _skycoin.wallet__Wallet_Entries_set - __swig_getmethods__["Entries"] = _skycoin.wallet__Wallet_Entries_get - if _newclass: - Entries = _swig_property(_skycoin.wallet__Wallet_Entries_get, _skycoin.wallet__Wallet_Entries_set) - - def __init__(self): - this = _skycoin.new_wallet__Wallet() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__Wallet - __del__ = lambda self: None -wallet__Wallet_swigregister = _skycoin.wallet__Wallet_swigregister -wallet__Wallet_swigregister(wallet__Wallet) - -class wallet__UxBalance(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__UxBalance, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__UxBalance, name) - __repr__ = _swig_repr - __swig_setmethods__["Hash"] = _skycoin.wallet__UxBalance_Hash_set - __swig_getmethods__["Hash"] = _skycoin.wallet__UxBalance_Hash_get - if _newclass: - Hash = _swig_property(_skycoin.wallet__UxBalance_Hash_get, _skycoin.wallet__UxBalance_Hash_set) - __swig_setmethods__["BkSeq"] = _skycoin.wallet__UxBalance_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.wallet__UxBalance_BkSeq_get - if _newclass: - BkSeq = _swig_property(_skycoin.wallet__UxBalance_BkSeq_get, _skycoin.wallet__UxBalance_BkSeq_set) - __swig_setmethods__["Address"] = _skycoin.wallet__UxBalance_Address_set - __swig_getmethods__["Address"] = _skycoin.wallet__UxBalance_Address_get - if _newclass: - Address = _swig_property(_skycoin.wallet__UxBalance_Address_get, _skycoin.wallet__UxBalance_Address_set) - __swig_setmethods__["Coins"] = _skycoin.wallet__UxBalance_Coins_set - __swig_getmethods__["Coins"] = _skycoin.wallet__UxBalance_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.wallet__UxBalance_Coins_get, _skycoin.wallet__UxBalance_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.wallet__UxBalance_Hours_set - __swig_getmethods__["Hours"] = _skycoin.wallet__UxBalance_Hours_get - if _newclass: - Hours = _swig_property(_skycoin.wallet__UxBalance_Hours_get, _skycoin.wallet__UxBalance_Hours_set) - - def __init__(self): - this = _skycoin.new_wallet__UxBalance() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_wallet__UxBalance - __del__ = lambda self: None -wallet__UxBalance_swigregister = _skycoin.wallet__UxBalance_swigregister -wallet__UxBalance_swigregister(wallet__UxBalance) - -class api__RichlistParams(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, api__RichlistParams, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, api__RichlistParams, name) - __repr__ = _swig_repr - __swig_setmethods__["N"] = _skycoin.api__RichlistParams_N_set - __swig_getmethods__["N"] = _skycoin.api__RichlistParams_N_get - if _newclass: - N = _swig_property(_skycoin.api__RichlistParams_N_get, _skycoin.api__RichlistParams_N_set) - __swig_setmethods__["IncludeDistribution"] = _skycoin.api__RichlistParams_IncludeDistribution_set - __swig_getmethods__["IncludeDistribution"] = _skycoin.api__RichlistParams_IncludeDistribution_get - if _newclass: - IncludeDistribution = _swig_property(_skycoin.api__RichlistParams_IncludeDistribution_get, _skycoin.api__RichlistParams_IncludeDistribution_set) - - def __init__(self): - this = _skycoin.new_api__RichlistParams() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_api__RichlistParams - __del__ = lambda self: None -api__RichlistParams_swigregister = _skycoin.api__RichlistParams_swigregister -api__RichlistParams_swigregister(api__RichlistParams) - -class cli__SendAmount(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, cli__SendAmount, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, cli__SendAmount, name) - __repr__ = _swig_repr - __swig_setmethods__["Addr"] = _skycoin.cli__SendAmount_Addr_set - __swig_getmethods__["Addr"] = _skycoin.cli__SendAmount_Addr_get - if _newclass: - Addr = _swig_property(_skycoin.cli__SendAmount_Addr_get, _skycoin.cli__SendAmount_Addr_set) - __swig_setmethods__["Coins"] = _skycoin.cli__SendAmount_Coins_set - __swig_getmethods__["Coins"] = _skycoin.cli__SendAmount_Coins_get - if _newclass: - Coins = _swig_property(_skycoin.cli__SendAmount_Coins_get, _skycoin.cli__SendAmount_Coins_set) - - def __init__(self): - this = _skycoin.new_cli__SendAmount() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_cli__SendAmount - __del__ = lambda self: None -cli__SendAmount_swigregister = _skycoin.cli__SendAmount_swigregister -cli__SendAmount_swigregister(cli__SendAmount) - -class httphelper__Address(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, httphelper__Address, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, httphelper__Address, name) - __repr__ = _swig_repr - __swig_setmethods__["_unnamed"] = _skycoin.httphelper__Address__unnamed_set - __swig_getmethods__["_unnamed"] = _skycoin.httphelper__Address__unnamed_get - if _newclass: - _unnamed = _swig_property(_skycoin.httphelper__Address__unnamed_get, _skycoin.httphelper__Address__unnamed_set) - - def __init__(self): - this = _skycoin.new_httphelper__Address() - try: - self.this.append(this) - except __builtin__.Exception: - self.this = this - __swig_destroy__ = _skycoin.delete_httphelper__Address - __del__ = lambda self: None -httphelper__Address_swigregister = _skycoin.httphelper__Address_swigregister -httphelper__Address_swigregister(httphelper__Address) - -# This file is compatible with both classic and new-style classes. - - diff --git a/swig/pyskycoin_wrap.c b/swig/pyskycoin_wrap.c deleted file mode 100644 index 943e5915..00000000 --- a/swig/pyskycoin_wrap.c +++ /dev/null @@ -1,51574 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - - -#ifndef SWIGPYTHON -#define SWIGPYTHON -#endif - -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if defined(__GNUC__) -# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - -/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ -#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) -# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 -#endif - -/* Intel's compiler complains if a variable which was never initialised is - * cast to void, which is a common idiom which we use to indicate that we - * are aware a variable isn't used. So we just silence that warning. - * See: https://github.com/swig/swig/issues/192 for more discussion. - */ -#ifdef __INTEL_COMPILER -# pragma warning disable 592 -#endif - - -#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) -/* Use debug wrappers with the Python release dll */ -# undef _DEBUG -# include -# define _DEBUG -#else -# include -#endif - -/* ----------------------------------------------------------------------------- - * swigrun.swg - * - * This file contains generic C API SWIG runtime support for pointer - * type checking. - * ----------------------------------------------------------------------------- */ - -/* This should only be incremented when either the layout of swig_type_info changes, - or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" - -/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ -#ifdef SWIG_TYPE_TABLE -# define SWIG_QUOTE_STRING(x) #x -# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) -# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) -#else -# define SWIG_TYPE_TABLE_NAME -#endif - -/* - You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for - creating a static or dynamic library from the SWIG runtime code. - In 99.9% of the cases, SWIG just needs to declare them as 'static'. - - But only do this if strictly necessary, ie, if you have problems - with your compiler or suchlike. -*/ - -#ifndef SWIGRUNTIME -# define SWIGRUNTIME SWIGINTERN -#endif - -#ifndef SWIGRUNTIMEINLINE -# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE -#endif - -/* Generic buffer size */ -#ifndef SWIG_BUFFER_SIZE -# define SWIG_BUFFER_SIZE 1024 -#endif - -/* Flags for pointer conversions */ -#define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 - -/* Flags for new pointer objects */ -#define SWIG_POINTER_OWN 0x1 - - -/* - Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer - that tells if the conversion was successful or not. And if not, - an error code can be returned (see swigerrors.swg for the codes). - - Use the following macros/flags to set or process the returning - states. - - In old versions of SWIG, code such as the following was usually written: - - if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { - // success code - } else { - //fail code - } - - Now you can be more explicit: - - int res = SWIG_ConvertPtr(obj,vptr,ty.flags); - if (SWIG_IsOK(res)) { - // success code - } else { - // fail code - } - - which is the same really, but now you can also do - - Type *ptr; - int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); - if (SWIG_IsOK(res)) { - // success code - if (SWIG_IsNewObj(res) { - ... - delete *ptr; - } else { - ... - } - } else { - // fail code - } - - I.e., now SWIG_ConvertPtr can return new objects and you can - identify the case and take care of the deallocation. Of course that - also requires SWIG_ConvertPtr to return new result values, such as - - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } - } - - Of course, returning the plain '0(success)/-1(fail)' still works, but you can be - more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the - SWIG errors code. - - Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this - - int food(double) - int fooi(int); - - and you call - - food(1) // cast rank '1' (1 -> 1.0) - fooi(1) // cast rank '0' - - just use the SWIG_AddCast()/SWIG_CheckState() -*/ - -#define SWIG_OK (0) -#define SWIG_ERROR (-1) -#define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) - -/* The CastRankLimit says how many bits are used for the cast rank */ -#define SWIG_CASTRANKLIMIT (1 << 8) -/* The NewMask denotes the object was created (using new/malloc) */ -#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ -#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) -/* Simple returning values */ -#define SWIG_BADOBJ (SWIG_ERROR) -#define SWIG_OLDOBJ (SWIG_OK) -#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) -#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ -#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) -#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) -#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) -#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) -#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) -#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) - -/* Cast-Rank Mode */ -#if defined(SWIG_CASTRANK_MODE) -# ifndef SWIG_TypeRank -# define SWIG_TypeRank unsigned long -# endif -# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ -# define SWIG_MAXCASTRANK (2) -# endif -# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) -# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { - return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; -} -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; -} -#else /* no cast-rank mode */ -# define SWIG_AddCast(r) (r) -# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) -#endif - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *, int *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -/* Structure to store information on one type */ -typedef struct swig_type_info { - const char *name; /* mangled name of this type */ - const char *str; /* human readable name of this type */ - swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ - struct swig_cast_info *cast; /* linked list of types that can cast into this type */ - void *clientdata; /* language specific type data */ - int owndata; /* flag if the structure owns the clientdata */ -} swig_type_info; - -/* Structure to store a type and conversion function used for casting */ -typedef struct swig_cast_info { - swig_type_info *type; /* pointer to type that is equivalent to this type */ - swig_converter_func converter; /* function to cast the void pointers */ - struct swig_cast_info *next; /* pointer to next cast in linked list */ - struct swig_cast_info *prev; /* pointer to the previous cast */ -} swig_cast_info; - -/* Structure used to store module information - * Each module generates one structure like this, and the runtime collects - * all of these structures and stores them in a circularly linked list.*/ -typedef struct swig_module_info { - swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ - size_t size; /* Number of types in this module */ - struct swig_module_info *next; /* Pointer to next element in circularly linked list */ - swig_type_info **type_initial; /* Array of initially generated type structures */ - swig_cast_info **cast_initial; /* Array of initially generated casting structures */ - void *clientdata; /* Language specific module data */ -} swig_module_info; - -/* - Compare two type names skipping the space characters, therefore - "char*" == "char *" and "Class" == "Class", etc. - - Return 0 when the two name types are equivalent, as in - strncmp, but skipping ' '. -*/ -SWIGRUNTIME int -SWIG_TypeNameComp(const char *f1, const char *l1, - const char *f2, const char *l2) { - for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { - while ((*f1 == ' ') && (f1 != l1)) ++f1; - while ((*f2 == ' ') && (f2 != l2)) ++f2; - if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; - } - return (int)((l1 - f1) - (l2 - f2)); -} - -/* - Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb -*/ -SWIGRUNTIME int -SWIG_TypeCmp(const char *nb, const char *tb) { - int equiv = 1; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (equiv != 0 && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = SWIG_TypeNameComp(nb, ne, tb, te); - if (*ne) ++ne; - } - return equiv; -} - -/* - Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal -*/ -SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; -} - -/* - Check the typename -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheck(const char *c, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (strcmp(iter->type->name, c) == 0) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (iter->type == from) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Cast a pointer up an inheritance hierarchy -*/ -SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); -} - -/* - Dynamic pointer casting. Down an inheritance hierarchy -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { - swig_type_info *lastty = ty; - if (!ty || !ty->dcast) return ty; - while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; - } - return lastty; -} - -/* - Return the name associated with this type -*/ -SWIGRUNTIMEINLINE const char * -SWIG_TypeName(const swig_type_info *ty) { - return ty->name; -} - -/* - Return the pretty name associated with this type, - that is an unmangled type name in a form presentable to the user. -*/ -SWIGRUNTIME const char * -SWIG_TypePrettyName(const swig_type_info *type) { - /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ - if (!type) return NULL; - if (type->str != NULL) { - const char *last_name = type->str; - const char *s; - for (s = type->str; *s; s++) - if (*s == '|') last_name = s+1; - return last_name; - } - else - return type->name; -} - -/* - Set the clientdata field for a type -*/ -SWIGRUNTIME void -SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { - swig_cast_info *cast = ti->cast; - /* if (ti->clientdata == clientdata) return; */ - ti->clientdata = clientdata; - - while (cast) { - if (!cast->converter) { - swig_type_info *tc = cast->type; - if (!tc->clientdata) { - SWIG_TypeClientData(tc, clientdata); - } - } - cast = cast->next; - } -} -SWIGRUNTIME void -SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { - SWIG_TypeClientData(ti, clientdata); - ti->owndata = 1; -} - -/* - Search for a swig_type_info structure only by mangled name - Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - swig_module_info *iter = start; - do { - if (iter->size) { - size_t l = 0; - size_t r = iter->size - 1; - do { - /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - size_t i = (l + r) >> 1; - const char *iname = iter->types[i]->name; - if (iname) { - int compare = strcmp(name, iname); - if (compare == 0) { - return iter->types[i]; - } else if (compare < 0) { - if (i) { - r = i - 1; - } else { - break; - } - } else if (compare > 0) { - l = i + 1; - } - } else { - break; /* should never happen */ - } - } while (l <= r); - } - iter = iter->next; - } while (iter != end); - return 0; -} - -/* - Search for a swig_type_info structure for either a mangled name or a human readable name. - It first searches the mangled names of the types, which is a O(log #types) - If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - /* STEP 1: Search the name field using binary search */ - swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); - if (ret) { - return ret; - } else { - /* STEP 2: If the type hasn't been found, do a complete search - of the str field (the human readable name) */ - swig_module_info *iter = start; - do { - size_t i = 0; - for (; i < iter->size; ++i) { - if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) - return iter->types[i]; - } - iter = iter->next; - } while (iter != end); - } - - /* neither found a match */ - return 0; -} - -/* - Pack binary data into a string -*/ -SWIGRUNTIME char * -SWIG_PackData(char *c, void *ptr, size_t sz) { - static const char hex[17] = "0123456789abcdef"; - const unsigned char *u = (unsigned char *) ptr; - const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - unsigned char uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* - Unpack binary data from a string -*/ -SWIGRUNTIME const char * -SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - unsigned char *u = (unsigned char *) ptr; - const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - char d = *(c++); - unsigned char uu; - if ((d >= '0') && (d <= '9')) - uu = (unsigned char)((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = (unsigned char)((d - ('a'-10)) << 4); - else - return (char *) 0; - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (unsigned char)(d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (unsigned char)(d - ('a'-10)); - else - return (char *) 0; - *u = uu; - } - return c; -} - -/* - Pack 'void *' into a string buffer. -*/ -SWIGRUNTIME char * -SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { - char *r = buff; - if ((2*sizeof(void *) + 2) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,&ptr,sizeof(void *)); - if (strlen(name) + 1 > (bsz - (r - buff))) return 0; - strcpy(r,name); - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - *ptr = (void *) 0; - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sizeof(void *)); -} - -SWIGRUNTIME char * -SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { - char *r = buff; - size_t lname = (name ? strlen(name) : 0); - if ((2*sz + 2 + lname) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,ptr,sz); - if (lname) { - strncpy(r,name,lname+1); - } else { - *r = 0; - } - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - memset(ptr,0,sz); - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sz); -} - -#ifdef __cplusplus -} -#endif - -/* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 -#define SWIG_SystemError -10 -#define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 -#define SWIG_NullReferenceError -13 - - - -/* Compatibility macros for Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - -#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) -#define PyInt_Check(x) PyLong_Check(x) -#define PyInt_AsLong(x) PyLong_AsLong(x) -#define PyInt_FromLong(x) PyLong_FromLong(x) -#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) -#define PyString_Check(name) PyBytes_Check(name) -#define PyString_FromString(x) PyUnicode_FromString(x) -#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) -#define PyString_AsString(str) PyBytes_AsString(str) -#define PyString_Size(str) PyBytes_Size(str) -#define PyString_InternFromString(key) PyUnicode_InternFromString(key) -#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) -#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) - -#endif - -#ifndef Py_TYPE -# define Py_TYPE(op) ((op)->ob_type) -#endif - -/* SWIG APIs for compatibility of both Python 2 & 3 */ - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_FromFormat PyUnicode_FromFormat -#else -# define SWIG_Python_str_FromFormat PyString_FromFormat -#endif - - -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) -{ -#if PY_VERSION_HEX >= 0x03000000 - char *cstr; - char *newstr; - Py_ssize_t len; - str = PyUnicode_AsUTF8String(str); - PyBytes_AsStringAndSize(str, &cstr, &len); - newstr = (char *) malloc(len+1); - memcpy(newstr, cstr, len+1); - Py_XDECREF(str); - return newstr; -#else - return PyString_AsString(str); -#endif -} - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#else -# define SWIG_Python_str_DelForPy3(x) -#endif - - -SWIGINTERN PyObject* -SWIG_Python_str_FromChar(const char *c) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromString(c); -#else - return PyString_FromString(c); -#endif -} - -/* Add PyOS_snprintf for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) -# define PyOS_snprintf _snprintf -# else -# define PyOS_snprintf snprintf -# endif -#endif - -/* A crude PyString_FromFormat implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 - -#ifndef SWIG_PYBUFFER_SIZE -# define SWIG_PYBUFFER_SIZE 1024 -#endif - -static PyObject * -PyString_FromFormat(const char *fmt, ...) { - va_list ap; - char buf[SWIG_PYBUFFER_SIZE * 2]; - int res; - va_start(ap, fmt); - res = vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); -} -#endif - -#ifndef PyObject_DEL -# define PyObject_DEL PyObject_Del -#endif - -/* A crude PyExc_StopIteration exception for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# ifndef PyExc_StopIteration -# define PyExc_StopIteration PyExc_RuntimeError -# endif -# ifndef PyObject_GenericGetAttr -# define PyObject_GenericGetAttr 0 -# endif -#endif - -/* Py_NotImplemented is defined in 2.1 and up. */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef Py_NotImplemented -# define Py_NotImplemented PyExc_RuntimeError -# endif -#endif - -/* A crude PyString_AsStringAndSize implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef PyString_AsStringAndSize -# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} -# endif -#endif - -/* PySequence_Size for old Pythons */ -#if PY_VERSION_HEX < 0x02000000 -# ifndef PySequence_Size -# define PySequence_Size PySequence_Length -# endif -#endif - -/* PyBool_FromLong for old Pythons */ -#if PY_VERSION_HEX < 0x02030000 -static -PyObject *PyBool_FromLong(long ok) -{ - PyObject *result = ok ? Py_True : Py_False; - Py_INCREF(result); - return result; -} -#endif - -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -typedef inquiry lenfunc; -typedef intargfunc ssizeargfunc; -typedef intintargfunc ssizessizeargfunc; -typedef intobjargproc ssizeobjargproc; -typedef intintobjargproc ssizessizeobjargproc; -typedef getreadbufferproc readbufferproc; -typedef getwritebufferproc writebufferproc; -typedef getsegcountproc segcountproc; -typedef getcharbufferproc charbufferproc; -static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) -{ - long result = 0; - PyObject *i = PyNumber_Int(x); - if (i) { - result = PyInt_AsLong(i); - Py_DECREF(i); - } - return result; -} -#endif - -#if PY_VERSION_HEX < 0x02050000 -#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) -#endif - -#if PY_VERSION_HEX < 0x02040000 -#define Py_VISIT(op) \ - do { \ - if (op) { \ - int vret = visit((op), arg); \ - if (vret) \ - return vret; \ - } \ - } while (0) -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef struct { - PyTypeObject type; - PyNumberMethods as_number; - PyMappingMethods as_mapping; - PySequenceMethods as_sequence; - PyBufferProcs as_buffer; - PyObject *name, *slots; -} PyHeapTypeObject; -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef destructor freefunc; -#endif - -#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ - (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ - (PY_MAJOR_VERSION > 3)) -# define SWIGPY_USE_CAPSULE -# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) -#endif - -#if PY_VERSION_HEX < 0x03020000 -#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) -#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) -#define Py_hash_t long -#endif - -/* ----------------------------------------------------------------------------- - * error manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIME PyObject* -SWIG_Python_ErrorType(int code) { - PyObject* type = 0; - switch(code) { - case SWIG_MemoryError: - type = PyExc_MemoryError; - break; - case SWIG_IOError: - type = PyExc_IOError; - break; - case SWIG_RuntimeError: - type = PyExc_RuntimeError; - break; - case SWIG_IndexError: - type = PyExc_IndexError; - break; - case SWIG_TypeError: - type = PyExc_TypeError; - break; - case SWIG_DivisionByZero: - type = PyExc_ZeroDivisionError; - break; - case SWIG_OverflowError: - type = PyExc_OverflowError; - break; - case SWIG_SyntaxError: - type = PyExc_SyntaxError; - break; - case SWIG_ValueError: - type = PyExc_ValueError; - break; - case SWIG_SystemError: - type = PyExc_SystemError; - break; - case SWIG_AttributeError: - type = PyExc_AttributeError; - break; - default: - type = PyExc_RuntimeError; - } - return type; -} - - -SWIGRUNTIME void -SWIG_Python_AddErrorMsg(const char* mesg) -{ - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - - if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - PyErr_Clear(); - Py_XINCREF(type); - - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - Py_DECREF(value); - } else { - PyErr_SetString(PyExc_RuntimeError, mesg); - } -} - -#if defined(SWIG_PYTHON_NO_THREADS) -# if defined(SWIG_PYTHON_THREADS) -# undef SWIG_PYTHON_THREADS -# endif -#endif -#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ -# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) -# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ -# define SWIG_PYTHON_USE_GIL -# endif -# endif -# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() -# endif -# ifdef __cplusplus /* C++ code */ - class SWIG_Python_Thread_Block { - bool status; - PyGILState_STATE state; - public: - void end() { if (status) { PyGILState_Release(state); status = false;} } - SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} - ~SWIG_Python_Thread_Block() { end(); } - }; - class SWIG_Python_Thread_Allow { - bool status; - PyThreadState *save; - public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} - SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} - ~SWIG_Python_Thread_Allow() { end(); } - }; -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block -# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow -# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() -# else /* C code */ -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() -# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() -# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) -# endif -# else /* Old thread way, not implemented, user must provide it */ -# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) -# define SWIG_PYTHON_INITIALIZE_THREADS -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) -# define SWIG_PYTHON_THREAD_END_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# endif -# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) -# define SWIG_PYTHON_THREAD_END_ALLOW -# endif -# endif -#else /* No thread support */ -# define SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# define SWIG_PYTHON_THREAD_END_BLOCK -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# define SWIG_PYTHON_THREAD_END_ALLOW -#endif - -/* ----------------------------------------------------------------------------- - * Python API portion that goes into the runtime - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* ----------------------------------------------------------------------------- - * Constant declarations - * ----------------------------------------------------------------------------- */ - -/* Constant Types */ -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - - -/* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ -#if PY_VERSION_HEX >= 0x03000000 -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) -{ - return PyInstanceMethod_New(func); -} -#else -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) -{ - return NULL; -} -#endif - -#ifdef __cplusplus -} -#endif - - -/* ----------------------------------------------------------------------------- - * pyrun.swg - * - * This file contains the runtime support for Python modules - * and includes code for managing global variables and pointer - * type checking. - * - * ----------------------------------------------------------------------------- */ - -/* Common SWIG API */ - -/* for raw pointers */ -#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) -#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) -#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) - -#ifdef SWIGPYTHON_BUILTIN -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) -#else -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) -#endif - -#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) - -#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) -#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) -#define swig_owntype int - -/* for raw packed data */ -#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - -/* for class or struct pointers */ -#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) -#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) - -/* for C or C++ function pointers */ -#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) -#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) - -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - - -/* Runtime API */ - -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) -#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) -#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) - -#define SWIG_SetErrorObj SWIG_Python_SetErrorObj -#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg -#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) -#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) -#define SWIG_fail goto fail - - -/* Runtime API implementation */ - -/* Error manipulation */ - -SWIGINTERN void -SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetObject(errtype, obj); - Py_DECREF(obj); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -SWIGINTERN void -SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetString(errtype, msg); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) - -/* Set a constant value */ - -#if defined(SWIGPYTHON_BUILTIN) - -SWIGINTERN void -SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { - PyObject *s = PyString_InternFromString(key); - PyList_Append(seq, s); - Py_DECREF(s); -} - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); - if (public_interface) - SwigPyBuiltin_AddPublicSymbol(public_interface, name); -} - -#else - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); -} - -#endif - -/* Append a value to the result obj */ - -SWIGINTERN PyObject* -SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { -#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyList_Check(result)) { - PyObject *o2 = result; - result = PyList_New(1); - PyList_SetItem(result, 0, o2); - } - PyList_Append(result,obj); - Py_DECREF(obj); - } - return result; -#else - PyObject* o2; - PyObject* o3; - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyTuple_Check(result)) { - o2 = result; - result = PyTuple_New(1); - PyTuple_SET_ITEM(result, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SET_ITEM(o3, 0, obj); - o2 = result; - result = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return result; -#endif -} - -/* Unpack the argument tuple */ - -SWIGINTERN Py_ssize_t -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) -{ - if (!args) { - if (!min && !max) { - return 1; - } else { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); - return 0; - } - } - if (!PyTuple_Check(args)) { - if (min <= 1 && max >= 1) { - Py_ssize_t i; - objs[0] = args; - for (i = 1; i < max; ++i) { - objs[i] = 0; - } - return 2; - } - PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); - return 0; - } else { - Py_ssize_t l = PyTuple_GET_SIZE(args); - if (l < min) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); - return 0; - } else if (l > max) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); - return 0; - } else { - Py_ssize_t i; - for (i = 0; i < l; ++i) { - objs[i] = PyTuple_GET_ITEM(args, i); - } - for (; l < max; ++l) { - objs[l] = 0; - } - return i + 1; - } - } -} - -/* A functor is a function object with one single object argument */ -#if PY_VERSION_HEX >= 0x02020000 -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); -#else -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); -#endif - -/* - Helper for static pointer initialization for both C and C++ code, for example - static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); -*/ -#ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) var -#else -#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var -#endif - -/* ----------------------------------------------------------------------------- - * Pointer declarations - * ----------------------------------------------------------------------------- */ - -/* Flags for new pointer objects */ -#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) -#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) - -#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) - -#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) -#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) - -#ifdef __cplusplus -extern "C" { -#endif - -/* How to access Py_None */ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# ifndef SWIG_PYTHON_NO_BUILD_NONE -# ifndef SWIG_PYTHON_BUILD_NONE -# define SWIG_PYTHON_BUILD_NONE -# endif -# endif -#endif - -#ifdef SWIG_PYTHON_BUILD_NONE -# ifdef Py_None -# undef Py_None -# define Py_None SWIG_Py_None() -# endif -SWIGRUNTIMEINLINE PyObject * -_SWIG_Py_None(void) -{ - PyObject *none = Py_BuildValue((char*)""); - Py_DECREF(none); - return none; -} -SWIGRUNTIME PyObject * -SWIG_Py_None(void) -{ - static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); - return none; -} -#endif - -/* The python void return value */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Py_Void(void) -{ - PyObject *none = Py_None; - Py_INCREF(none); - return none; -} - -/* SwigPyClientData */ - -typedef struct { - PyObject *klass; - PyObject *newraw; - PyObject *newargs; - PyObject *destroy; - int delargs; - int implicitconv; - PyTypeObject *pytype; -} SwigPyClientData; - -SWIGRUNTIMEINLINE int -SWIG_Python_CheckImplicit(swig_type_info *ty) -{ - SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; - return data ? data->implicitconv : 0; -} - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_ExceptionType(swig_type_info *desc) { - SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; - PyObject *klass = data ? data->klass : 0; - return (klass ? klass : PyExc_RuntimeError); -} - - -SWIGRUNTIME SwigPyClientData * -SwigPyClientData_New(PyObject* obj) -{ - if (!obj) { - return 0; - } else { - SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); - /* the klass element */ - data->klass = obj; - Py_INCREF(data->klass); - /* the newraw method and newargs arguments used to create a new raw instance */ - if (PyClass_Check(obj)) { - data->newraw = 0; - data->newargs = obj; - Py_INCREF(obj); - } else { -#if (PY_VERSION_HEX < 0x02020000) - data->newraw = 0; -#else - data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); -#endif - if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); - } else { - data->newargs = obj; - } - Py_INCREF(data->newargs); - } - /* the destroy method, aka as the C++ delete method */ - data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); - if (PyErr_Occurred()) { - PyErr_Clear(); - data->destroy = 0; - } - if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); -#ifdef METH_O - data->delargs = !(flags & (METH_O)); -#else - data->delargs = 0; -#endif - } else { - data->delargs = 0; - } - data->implicitconv = 0; - data->pytype = 0; - return data; - } -} - -SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData *data) { - Py_XDECREF(data->newraw); - Py_XDECREF(data->newargs); - Py_XDECREF(data->destroy); -} - -/* =============== SwigPyObject =====================*/ - -typedef struct { - PyObject_HEAD - void *ptr; - swig_type_info *ty; - int own; - PyObject *next; -#ifdef SWIGPYTHON_BUILTIN - PyObject *dict; -#endif -} SwigPyObject; - - -#ifdef SWIGPYTHON_BUILTIN - -SWIGRUNTIME PyObject * -SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) -{ - SwigPyObject *sobj = (SwigPyObject *)v; - - if (!sobj->dict) - sobj->dict = PyDict_New(); - - Py_INCREF(sobj->dict); - return sobj->dict; -} - -#endif - -SWIGRUNTIME PyObject * -SwigPyObject_long(SwigPyObject *v) -{ - return PyLong_FromVoidPtr(v->ptr); -} - -SWIGRUNTIME PyObject * -SwigPyObject_format(const char* fmt, SwigPyObject *v) -{ - PyObject *res = NULL; - PyObject *args = PyTuple_New(1); - if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); - if (ofmt) { -#if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); -#else - res = PyString_Format(ofmt,args); -#endif - Py_DECREF(ofmt); - } - Py_DECREF(args); - } - } - return res; -} - -SWIGRUNTIME PyObject * -SwigPyObject_oct(SwigPyObject *v) -{ - return SwigPyObject_format("%o",v); -} - -SWIGRUNTIME PyObject * -SwigPyObject_hex(SwigPyObject *v) -{ - return SwigPyObject_format("%x",v); -} - -SWIGRUNTIME PyObject * -#ifdef METH_NOARGS -SwigPyObject_repr(SwigPyObject *v) -#else -SwigPyObject_repr(SwigPyObject *v, PyObject *args) -#endif -{ - const char *name = SWIG_TypePrettyName(v->ty); - PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); - if (v->next) { -# ifdef METH_NOARGS - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); -# else - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); -# endif -# if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; -# else - PyString_ConcatAndDel(&repr,nrep); -# endif - } - return repr; -} - -SWIGRUNTIME int -SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) -{ - void *i = v->ptr; - void *j = w->ptr; - return (i < j) ? -1 : ((i > j) ? 1 : 0); -} - -/* Added for Python 3.x, would it also be useful for Python 2.x? */ -SWIGRUNTIME PyObject* -SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) -{ - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); - return res; -} - - -SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); - -#ifdef SWIGPYTHON_BUILTIN -static swig_type_info *SwigPyObject_stype = 0; -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - SwigPyClientData *cd; - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - assert(cd); - assert(cd->pytype); - return cd->pytype; -} -#else -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); - return type; -} -#endif - -SWIGRUNTIMEINLINE int -SwigPyObject_Check(PyObject *op) { -#ifdef SWIGPYTHON_BUILTIN - PyTypeObject *target_tp = SwigPyObject_type(); - if (PyType_IsSubtype(op->ob_type, target_tp)) - return 1; - return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); -#else - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); -#endif -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own); - -SWIGRUNTIME void -SwigPyObject_dealloc(PyObject *v) -{ - SwigPyObject *sobj = (SwigPyObject *) v; - PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { - swig_type_info *ty = sobj->ty; - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - PyObject *destroy = data ? data->destroy : 0; - if (destroy) { - /* destroy is always a VARARGS method */ - PyObject *res; - - /* PyObject_CallFunction() has the potential to silently drop - the active active exception. In cases of unnamed temporary - variable or where we just finished iterating over a generator - StopIteration will be active right now, and this needs to - remain true upon return from SwigPyObject_dealloc. So save - and restore. */ - - PyObject *val = NULL, *type = NULL, *tb = NULL; - PyErr_Fetch(&val, &type, &tb); - - if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); - } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); - } - if (!res) - PyErr_WriteUnraisable(destroy); - - PyErr_Restore(val, type, tb); - - Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { - const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } -#endif - } - Py_XDECREF(next); - PyObject_DEL(v); -} - -SWIGRUNTIME PyObject* -SwigPyObject_append(PyObject* v, PyObject* next) -{ - SwigPyObject *sobj = (SwigPyObject *) v; -#ifndef METH_O - PyObject *tmp = 0; - if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; - next = tmp; -#endif - if (!SwigPyObject_Check(next)) { - PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); - return NULL; - } - sobj->next = next; - Py_INCREF(next); - return SWIG_Py_Void(); -} - -SWIGRUNTIME PyObject* -#ifdef METH_NOARGS -SwigPyObject_next(PyObject* v) -#else -SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *) v; - if (sobj->next) { - Py_INCREF(sobj->next); - return sobj->next; - } else { - return SWIG_Py_Void(); - } -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_disown(PyObject *v) -#else -SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = 0; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_acquire(PyObject *v) -#else -SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = SWIG_POINTER_OWN; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -SwigPyObject_own(PyObject *v, PyObject *args) -{ - PyObject *val = 0; -#if (PY_VERSION_HEX < 0x02020000) - if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) -#elif (PY_VERSION_HEX < 0x02050000) - if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) -#else - if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) -#endif - { - return NULL; - } - else - { - SwigPyObject *sobj = (SwigPyObject *)v; - PyObject *obj = PyBool_FromLong(sobj->own); - if (val) { -#ifdef METH_NOARGS - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v); - } else { - SwigPyObject_disown(v); - } -#else - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); - } else { - SwigPyObject_disown(v,args); - } -#endif - } - return obj; - } -} - -#ifdef METH_O -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#else -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#endif - -#if PY_VERSION_HEX < 0x02020000 -SWIGINTERN PyObject * -SwigPyObject_getattr(SwigPyObject *sobj,char *name) -{ - return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); -} -#endif - -SWIGRUNTIME PyTypeObject* -SwigPyObject_TypeOnce(void) { - static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - - static PyNumberMethods SwigPyObject_as_number = { - (binaryfunc)0, /*nb_add*/ - (binaryfunc)0, /*nb_subtract*/ - (binaryfunc)0, /*nb_multiply*/ - /* nb_divide removed in Python 3 */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc)0, /*nb_divide*/ -#endif - (binaryfunc)0, /*nb_remainder*/ - (binaryfunc)0, /*nb_divmod*/ - (ternaryfunc)0,/*nb_power*/ - (unaryfunc)0, /*nb_negative*/ - (unaryfunc)0, /*nb_positive*/ - (unaryfunc)0, /*nb_absolute*/ - (inquiry)0, /*nb_nonzero*/ - 0, /*nb_invert*/ - 0, /*nb_lshift*/ - 0, /*nb_rshift*/ - 0, /*nb_and*/ - 0, /*nb_xor*/ - 0, /*nb_or*/ -#if PY_VERSION_HEX < 0x03000000 - 0, /*nb_coerce*/ -#endif - (unaryfunc)SwigPyObject_long, /*nb_int*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_long, /*nb_long*/ -#else - 0, /*nb_reserved*/ -#endif - (unaryfunc)0, /*nb_float*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_oct, /*nb_oct*/ - (unaryfunc)SwigPyObject_hex, /*nb_hex*/ -#endif -#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ -#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ -#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ - 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ -#endif - }; - - static PyTypeObject swigpyobject_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyObject", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - 0, /* tp_print */ -#if PY_VERSION_HEX < 0x02020000 - (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ -#else - (getattrfunc)0, /* tp_getattr */ -#endif - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ -#else - (cmpfunc)SwigPyObject_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyObject_repr, /* tp_repr */ - &SwigPyObject_as_number, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigobject_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - swigobject_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version_tag */ -#endif -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ -#if PY_VERSION_HEX >= 0x02050000 - 0, /* tp_prev */ -#endif - 0 /* tp_next */ -#endif - }; - swigpyobject_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpyobject_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpyobject_type) < 0) - return NULL; -#endif - } - return &swigpyobject_type; -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own) -{ - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); - if (sobj) { - sobj->ptr = ptr; - sobj->ty = ty; - sobj->own = own; - sobj->next = 0; - } - return (PyObject *)sobj; -} - -/* ----------------------------------------------------------------------------- - * Implements a simple Swig Packed type, and use it instead of string - * ----------------------------------------------------------------------------- */ - -typedef struct { - PyObject_HEAD - void *pack; - swig_type_info *ty; - size_t size; -} SwigPyPacked; - -SWIGRUNTIME int -SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char result[SWIG_BUFFER_SIZE]; - fputs("pack, v->size, 0, sizeof(result))) { - fputs("at ", fp); - fputs(result, fp); - } - fputs(v->ty->name,fp); - fputs(">", fp); - return 0; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_repr(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { - return SWIG_Python_str_FromFormat("", result, v->ty->name); - } else { - return SWIG_Python_str_FromFormat("", v->ty->name); - } -} - -SWIGRUNTIME PyObject * -SwigPyPacked_str(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ - return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); - } else { - return SWIG_Python_str_FromChar(v->ty->name); - } -} - -SWIGRUNTIME int -SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) -{ - size_t i = v->size; - size_t j = w->size; - int s = (i < j) ? -1 : ((i > j) ? 1 : 0); - return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); -} - -SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == SwigPyPacked_TypeOnce()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); -} - -SWIGRUNTIME void -SwigPyPacked_dealloc(PyObject *v) -{ - if (SwigPyPacked_Check(v)) { - SwigPyPacked *sobj = (SwigPyPacked *) v; - free(sobj->pack); - } - PyObject_DEL(v); -} - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_TypeOnce(void) { - static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; - static PyTypeObject swigpypacked_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX>=0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyPacked", /* tp_name */ - sizeof(SwigPyPacked), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ - (getattrfunc)0, /* tp_getattr */ - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX>=0x03000000 - 0, /* tp_reserved in 3.0.1 */ -#else - (cmpfunc)SwigPyPacked_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyPacked_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyPacked_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigpacked_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version_tag */ -#endif -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ -#if PY_VERSION_HEX >= 0x02050000 - 0, /* tp_prev */ -#endif - 0 /* tp_next */ -#endif - }; - swigpypacked_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpypacked_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpypacked_type) < 0) - return NULL; -#endif - } - return &swigpypacked_type; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) -{ - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); - if (sobj) { - void *pack = malloc(size); - if (pack) { - memcpy(pack, ptr, size); - sobj->pack = pack; - sobj->ty = ty; - sobj->size = size; - } else { - PyObject_DEL((PyObject *) sobj); - sobj = 0; - } - } - return (PyObject *) sobj; -} - -SWIGRUNTIME swig_type_info * -SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) -{ - if (SwigPyPacked_Check(obj)) { - SwigPyPacked *sobj = (SwigPyPacked *)obj; - if (sobj->size != size) return 0; - memcpy(ptr, sobj->pack, size); - return sobj->ty; - } else { - return 0; - } -} - -/* ----------------------------------------------------------------------------- - * pointers/data manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIMEINLINE PyObject * -_SWIG_This(void) -{ - return SWIG_Python_str_FromChar("this"); -} - -static PyObject *swig_this = NULL; - -SWIGRUNTIME PyObject * -SWIG_This(void) -{ - if (swig_this == NULL) - swig_this = _SWIG_This(); - return swig_this; -} - -/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ - -/* TODO: I don't know how to implement the fast getset in Python 3 right now */ -#if PY_VERSION_HEX>=0x03000000 -#define SWIG_PYTHON_SLOW_GETSET_THIS -#endif - -SWIGRUNTIME SwigPyObject * -SWIG_Python_GetSwigThis(PyObject *pyobj) -{ - PyObject *obj; - - if (SwigPyObject_Check(pyobj)) - return (SwigPyObject *) pyobj; - -#ifdef SWIGPYTHON_BUILTIN - (void)obj; -# ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - pyobj = PyWeakref_GET_OBJECT(pyobj); - if (pyobj && SwigPyObject_Check(pyobj)) - return (SwigPyObject*) pyobj; - } -# endif - return NULL; -#else - - obj = 0; - -#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) - if (PyInstance_Check(pyobj)) { - obj = _PyInstance_Lookup(pyobj, SWIG_This()); - } else { - PyObject **dictptr = _PyObject_GetDictPtr(pyobj); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; - } else { -#ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); - return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; - } -#endif - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } - } - } -#else - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } -#endif - if (obj && !SwigPyObject_Check(obj)) { - /* a PyObject is called 'this', try to get the 'real this' - SwigPyObject from it */ - return SWIG_Python_GetSwigThis(obj); - } - return (SwigPyObject *)obj; -#endif -} - -/* Acquire a pointer value */ - -SWIGRUNTIME int -SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (sobj) { - int oldown = sobj->own; - sobj->own = own; - return oldown; - } - } - return 0; -} - -/* Convert a pointer value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { - int res; - SwigPyObject *sobj; - int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; - - if (!obj) - return SWIG_ERROR; - if (obj == Py_None && !implicit_conv) { - if (ptr) - *ptr = 0; - return SWIG_OK; - } - - res = SWIG_ERROR; - - sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; - while (sobj) { - void *vptr = sobj->ptr; - if (ty) { - swig_type_info *to = sobj->ty; - if (to == ty) { - /* no type cast needed */ - if (ptr) *ptr = vptr; - break; - } else { - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) { - sobj = (SwigPyObject *)sobj->next; - } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } - break; - } - } - } else { - if (ptr) *ptr = vptr; - break; - } - } - if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; - } - res = SWIG_OK; - } else { - if (implicit_conv) { - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - if (data && !data->implicitconv) { - PyObject *klass = data->klass; - if (klass) { - PyObject *impconv; - data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ - impconv = SWIG_Python_CallFunctor(klass, obj); - data->implicitconv = 0; - if (PyErr_Occurred()) { - PyErr_Clear(); - impconv = 0; - } - if (impconv) { - SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); - if (iobj) { - void *vptr; - res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); - if (SWIG_IsOK(res)) { - if (ptr) { - *ptr = vptr; - /* transfer the ownership to 'ptr' */ - iobj->own = 0; - res = SWIG_AddCast(res); - res = SWIG_AddNewMask(res); - } else { - res = SWIG_AddCast(res); - } - } - } - Py_DECREF(impconv); - } - } - } - } - if (!SWIG_IsOK(res) && obj == Py_None) { - if (ptr) - *ptr = 0; - if (PyErr_Occurred()) - PyErr_Clear(); - res = SWIG_OK; - } - } - return res; -} - -/* Convert a function ptr value */ - -SWIGRUNTIME int -SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { - if (!PyCFunction_Check(obj)) { - return SWIG_ConvertPtr(obj, ptr, ty, 0); - } else { - void *vptr = 0; - - /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); - const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; - if (desc) - desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; - if (!desc) - return SWIG_ERROR; - if (ty) { - swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } - } else { - *ptr = vptr; - } - return SWIG_OK; - } -} - -/* Convert a packed value value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { - swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); - if (!to) return SWIG_ERROR; - if (ty) { - if (to != ty) { - /* check type cast? */ - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) return SWIG_ERROR; - } - } - return SWIG_OK; -} - -/* ----------------------------------------------------------------------------- - * Create a new pointer object - * ----------------------------------------------------------------------------- */ - -/* - Create a new instance object, without calling __init__, and set the - 'this' attribute. -*/ - -SWIGRUNTIME PyObject* -SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) -{ -#if (PY_VERSION_HEX >= 0x02020000) - PyObject *inst = 0; - PyObject *newraw = data->newraw; - if (newraw) { - inst = PyObject_Call(newraw, data->newargs, NULL); - if (inst) { -#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } - } -#else - PyObject *key = SWIG_This(); - PyObject_SetAttr(inst, key, swig_this); -#endif - } - } else { -#if PY_VERSION_HEX >= 0x03000000 - inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - if (inst) { - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; - } -#else - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } -#endif - } - return inst; -#else -#if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst = 0; - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } - return (PyObject *) inst; -#else - PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); - if (inst == NULL) { - return NULL; - } - inst->in_class = (PyClassObject *)data->newargs; - Py_INCREF(inst->in_class); - inst->in_dict = PyDict_New(); - if (inst->in_dict == NULL) { - Py_DECREF(inst); - return NULL; - } -#ifdef Py_TPFLAGS_HAVE_WEAKREFS - inst->in_weakreflist = NULL; -#endif -#ifdef Py_TPFLAGS_GC - PyObject_GC_Init(inst); -#endif - PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); - return (PyObject *) inst; -#endif -#endif -} - -SWIGRUNTIME void -SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) -{ - PyObject *dict; -#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - } - PyDict_SetItem(dict, SWIG_This(), swig_this); - return; - } -#endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); - PyDict_SetItem(dict, SWIG_This(), swig_this); - Py_DECREF(dict); -} - - -SWIGINTERN PyObject * -SWIG_Python_InitShadowInstance(PyObject *args) { - PyObject *obj[2]; - if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { - return NULL; - } else { - SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); - if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); - } else { - SWIG_Python_SetSwigThis(obj[0], obj[1]); - } - return SWIG_Py_Void(); - } -} - -/* Create a new pointer object */ - -SWIGRUNTIME PyObject * -SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { - SwigPyClientData *clientdata; - PyObject * robj; - int own; - - if (!ptr) - return SWIG_Py_Void(); - - clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; - own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; - if (clientdata && clientdata->pytype) { - SwigPyObject *newobj; - if (flags & SWIG_BUILTIN_TP_INIT) { - newobj = (SwigPyObject*) self; - if (newobj->ptr) { - PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); - while (newobj->next) - newobj = (SwigPyObject *) newobj->next; - newobj->next = next_self; - newobj = (SwigPyObject *)next_self; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - } - } else { - newobj = PyObject_New(SwigPyObject, clientdata->pytype); -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - } - if (newobj) { - newobj->ptr = ptr; - newobj->ty = type; - newobj->own = own; - newobj->next = 0; - return (PyObject*) newobj; - } - return SWIG_Py_Void(); - } - - assert(!(flags & SWIG_BUILTIN_TP_INIT)); - - robj = SwigPyObject_New(ptr, type, own); - if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { - PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - Py_DECREF(robj); - robj = inst; - } - return robj; -} - -/* Create a new packed object */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { - return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); -} - -/* -----------------------------------------------------------------------------* - * Get type list - * -----------------------------------------------------------------------------*/ - -#ifdef SWIG_LINK_RUNTIME -void *SWIG_ReturnGlobalTypeList(void *); -#endif - -SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { - static void *type_pointer = (void *)0; - /* first check if module already created */ - if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); -#else -# ifdef SWIGPY_USE_CAPSULE - type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); -# else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); -# endif - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif - } - return (swig_module_info *) type_pointer; -} - -#if PY_MAJOR_VERSION < 2 -/* PyModule_AddObject function was introduced in Python 2.0. The following function - is copied out of Python/modsupport.c in python version 2.3.4 */ -SWIGINTERN int -PyModule_AddObject(PyObject *m, char *name, PyObject *o) -{ - PyObject *dict; - if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); - return SWIG_ERROR; - } - if (!o) { - PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); - return SWIG_ERROR; - } - - dict = PyModule_GetDict(m); - if (dict == NULL) { - /* Internal error -- modules must have a dict! */ - PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", - PyModule_GetName(m)); - return SWIG_ERROR; - } - if (PyDict_SetItemString(dict, name, o)) - return SWIG_ERROR; - Py_DECREF(o); - return SWIG_OK; -} -#endif - -SWIGRUNTIME void -#ifdef SWIGPY_USE_CAPSULE -SWIG_Python_DestroyModule(PyObject *obj) -#else -SWIG_Python_DestroyModule(void *vptr) -#endif -{ -#ifdef SWIGPY_USE_CAPSULE - swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); -#else - swig_module_info *swig_module = (swig_module_info *) vptr; -#endif - swig_type_info **types = swig_module->types; - size_t i; - for (i =0; i < swig_module->size; ++i) { - swig_type_info *ty = types[i]; - if (ty->owndata) { - SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; - if (data) SwigPyClientData_Del(data); - } - } - Py_DECREF(SWIG_This()); - swig_this = NULL; -} - -SWIGRUNTIME void -SWIG_Python_SetModule(swig_module_info *swig_module) { -#if PY_VERSION_HEX >= 0x03000000 - /* Add a dummy module object into sys.modules */ - PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); -#else - static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); -#endif -#ifdef SWIGPY_USE_CAPSULE - PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#else - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#endif -} - -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - -SWIGRUNTIME swig_type_info * -SWIG_Python_TypeQuery(const char *type) -{ - PyObject *cache = SWIG_Python_TypeCache(); - PyObject *key = SWIG_Python_str_FromChar(type); - PyObject *obj = PyDict_GetItem(cache, key); - swig_type_info *descriptor; - if (obj) { -#ifdef SWIGPY_USE_CAPSULE - descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); -#else - descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); -#endif - } else { - swig_module_info *swig_module = SWIG_GetModule(0); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { -#ifdef SWIGPY_USE_CAPSULE - obj = PyCapsule_New((void*) descriptor, NULL, NULL); -#else - obj = PyCObject_FromVoidPtr(descriptor, NULL); -#endif - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } - } - Py_DECREF(key); - return descriptor; -} - -/* - For backward compatibility only -*/ -#define SWIG_POINTER_EXCEPTION 0 -#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) -#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) - -SWIGRUNTIME int -SWIG_Python_AddErrMesg(const char* mesg, int infront) -{ - if (PyErr_Occurred()) { - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - Py_XINCREF(type); - PyErr_Clear(); - if (infront) { - PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); - } else { - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - } - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - } - return 1; - } else { - return 0; - } -} - -SWIGRUNTIME int -SWIG_Python_ArgFail(int argnum) -{ - if (PyErr_Occurred()) { - /* add information about failing argument */ - char mesg[256]; - PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); - return SWIG_Python_AddErrMesg(mesg, 1); - } else { - return 0; - } -} - -SWIGRUNTIMEINLINE const char * -SwigPyObject_GetDesc(PyObject *self) -{ - SwigPyObject *v = (SwigPyObject *)self; - swig_type_info *ty = v ? v->ty : 0; - return ty ? ty->str : ""; -} - -SWIGRUNTIME void -SWIG_Python_TypeError(const char *type, PyObject *obj) -{ - if (type) { -#if defined(SWIG_COBJECT_TYPES) - if (obj && SwigPyObject_Check(obj)) { - const char *otype = (const char *) SwigPyObject_GetDesc(obj); - if (otype) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", - type, otype); - return; - } - } else -#endif - { - const char *otype = (obj ? obj->ob_type->tp_name : 0); - if (otype) { - PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; - if (cstr) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", - type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); - } else { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", - type, otype); - } - Py_XDECREF(str); - return; - } - } - PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); - } else { - PyErr_Format(PyExc_TypeError, "unexpected type is received"); - } -} - - -/* Convert a pointer value, signal an exception on a type mismatch */ -SWIGRUNTIME void * -SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { - void *result; - if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { - PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif - } - return result; -} - -#ifdef SWIGPYTHON_BUILTIN -SWIGRUNTIME int -SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { - PyTypeObject *tp = obj->ob_type; - PyObject *descr; - PyObject *encoded_name; - descrsetfunc f; - int res = -1; - -# ifdef Py_USING_UNICODE - if (PyString_Check(name)) { - name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); - if (!name) - return -1; - } else if (!PyUnicode_Check(name)) -# else - if (!PyString_Check(name)) -# endif - { - PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); - return -1; - } else { - Py_INCREF(name); - } - - if (!tp->tp_dict) { - if (PyType_Ready(tp) < 0) - goto done; - } - - descr = _PyType_Lookup(tp, name); - f = NULL; - if (descr != NULL) - f = descr->ob_type->tp_descr_set; - if (!f) { - if (PyString_Check(name)) { - encoded_name = name; - Py_INCREF(name); - } else { - encoded_name = PyUnicode_AsUTF8String(name); - } - PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); - Py_DECREF(encoded_name); - } else { - res = f(descr, obj, value); - } - - done: - Py_DECREF(name); - return res; -} -#endif - - -#ifdef __cplusplus -} -#endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_App__Handle swig_types[0] -#define SWIGTYPE_p_BOOL swig_types[1] -#define SWIGTYPE_p_BlockBody__Handle swig_types[2] -#define SWIGTYPE_p_Block__Handle swig_types[3] -#define SWIGTYPE_p_Client__Handle swig_types[4] -#define SWIGTYPE_p_Config__Handle swig_types[5] -#define SWIGTYPE_p_Context__Handle swig_types[6] -#define SWIGTYPE_p_CreateTransactionResponse__Handle swig_types[7] -#define SWIGTYPE_p_CreatedTransactionInput__Handle swig_types[8] -#define SWIGTYPE_p_CreatedTransaction__Handle swig_types[9] -#define SWIGTYPE_p_GoInterface swig_types[10] -#define SWIGTYPE_p_GoInterface_ swig_types[11] -#define SWIGTYPE_p_GoMap_ swig_types[12] -#define SWIGTYPE_p_GoSlice swig_types[13] -#define SWIGTYPE_p_GoSlice_ swig_types[14] -#define SWIGTYPE_p_GoStringMap_ swig_types[15] -#define SWIGTYPE_p_GoString_ swig_types[16] -#define SWIGTYPE_p_Handle swig_types[17] -#define SWIGTYPE_p_Number swig_types[18] -#define SWIGTYPE_p_Options__Handle swig_types[19] -#define SWIGTYPE_p_PasswordReader__Handle swig_types[20] -#define SWIGTYPE_p_ReadableEntry__Handle swig_types[21] -#define SWIGTYPE_p_ReadableWallet__Handle swig_types[22] -#define SWIGTYPE_p_Signature swig_types[23] -#define SWIGTYPE_p_Strings__Handle swig_types[24] -#define SWIGTYPE_p_Transaction__Handle swig_types[25] -#define SWIGTYPE_p_Transactions__Handle swig_types[26] -#define SWIGTYPE_p_WalletResponse__Handle swig_types[27] -#define SWIGTYPE_p_Wallet__Handle swig_types[28] -#define SWIGTYPE_p_Wallets__Handle swig_types[29] -#define SWIGTYPE_p_WebRpcClient__Handle swig_types[30] -#define SWIGTYPE_p__GoString_ swig_types[31] -#define SWIGTYPE_p___SIZE_TYPE__ swig_types[32] -#define SWIGTYPE_p_a_20__unsigned_char swig_types[33] -#define SWIGTYPE_p_a_32__unsigned_char swig_types[34] -#define SWIGTYPE_p_a_33__unsigned_char swig_types[35] -#define SWIGTYPE_p_a_4__unsigned_char swig_types[36] -#define SWIGTYPE_p_a_65__unsigned_char swig_types[37] -#define SWIGTYPE_p_a_sizeof_void_____64_8_1__1__char swig_types[38] -#define SWIGTYPE_p_api__CreateTransactionRequest swig_types[39] -#define SWIGTYPE_p_api__CreateTransactionRequestWallet swig_types[40] -#define SWIGTYPE_p_api__CreateTransactionResponse swig_types[41] -#define SWIGTYPE_p_api__CreatedTransaction swig_types[42] -#define SWIGTYPE_p_api__CreatedTransactionInput swig_types[43] -#define SWIGTYPE_p_api__CreatedTransactionOutput swig_types[44] -#define SWIGTYPE_p_api__HoursSelection swig_types[45] -#define SWIGTYPE_p_api__ReadableTransaction swig_types[46] -#define SWIGTYPE_p_api__Receiver swig_types[47] -#define SWIGTYPE_p_api__Richlist swig_types[48] -#define SWIGTYPE_p_api__RichlistParams swig_types[49] -#define SWIGTYPE_p_api__SpendResult swig_types[50] -#define SWIGTYPE_p_api__UnconfirmedTxnsResponse swig_types[51] -#define SWIGTYPE_p_api__WalletEntry swig_types[52] -#define SWIGTYPE_p_api__WalletFolder swig_types[53] -#define SWIGTYPE_p_api__WalletMeta swig_types[54] -#define SWIGTYPE_p_api__WalletResponse swig_types[55] -#define SWIGTYPE_p_api__createTransactionRequestWallet swig_types[56] -#define SWIGTYPE_p_api__receiver swig_types[57] -#define SWIGTYPE_p_blockdb__ErrMissingSignature swig_types[58] -#define SWIGTYPE_p_blockdb__ErrUnspentNotExist swig_types[59] -#define SWIGTYPE_p_blockdb__blockSigs swig_types[60] -#define SWIGTYPE_p_blockdb__blockTree swig_types[61] -#define SWIGTYPE_p_blockdb__pool swig_types[62] -#define SWIGTYPE_p_blockdb__poolAddrIndex swig_types[63] -#define SWIGTYPE_p_blockdb__unspentMeta swig_types[64] -#define SWIGTYPE_p_chacha20poly1305__chacha20poly1305 swig_types[65] -#define SWIGTYPE_p_char swig_types[66] -#define SWIGTYPE_p_cipher_Checksum swig_types[67] -#define SWIGTYPE_p_cipher_PubKey swig_types[68] -#define SWIGTYPE_p_cipher_PubKeys swig_types[69] -#define SWIGTYPE_p_cipher_Ripemd160 swig_types[70] -#define SWIGTYPE_p_cipher_SHA256 swig_types[71] -#define SWIGTYPE_p_cipher_SecKey swig_types[72] -#define SWIGTYPE_p_cipher_SecKeys swig_types[73] -#define SWIGTYPE_p_cipher_Sig swig_types[74] -#define SWIGTYPE_p_cipher__Address swig_types[75] -#define SWIGTYPE_p_cli__AddressBalance swig_types[76] -#define SWIGTYPE_p_cli__Balance swig_types[77] -#define SWIGTYPE_p_cli__BalanceResult swig_types[78] -#define SWIGTYPE_p_cli__Config swig_types[79] -#define SWIGTYPE_p_cli__PasswordFromTerm swig_types[80] -#define SWIGTYPE_p_cli__SendAmount swig_types[81] -#define SWIGTYPE_p_cli__WalletLoadError swig_types[82] -#define SWIGTYPE_p_cli__WalletSaveError swig_types[83] -#define SWIGTYPE_p_coin__Block swig_types[84] -#define SWIGTYPE_p_coin__BlockBody swig_types[85] -#define SWIGTYPE_p_coin__BlockHeader swig_types[86] -#define SWIGTYPE_p_coin__HashPair swig_types[87] -#define SWIGTYPE_p_coin__SignedBlock swig_types[88] -#define SWIGTYPE_p_coin__SortableTransactions swig_types[89] -#define SWIGTYPE_p_coin__Transaction swig_types[90] -#define SWIGTYPE_p_coin__TransactionOutput swig_types[91] -#define SWIGTYPE_p_coin__UxBody swig_types[92] -#define SWIGTYPE_p_coin__UxHead swig_types[93] -#define SWIGTYPE_p_coin__UxOut swig_types[94] -#define SWIGTYPE_p_consensus__BlockBase swig_types[95] -#define SWIGTYPE_p_consensus__BlockStatQueue swig_types[96] -#define SWIGTYPE_p_daemon__AnnounceBlocksMessage swig_types[97] -#define SWIGTYPE_p_daemon__AnnounceTxnsMessage swig_types[98] -#define SWIGTYPE_p_daemon__BlockchainProgress swig_types[99] -#define SWIGTYPE_p_daemon__ConnectEvent swig_types[100] -#define SWIGTYPE_p_daemon__Connection swig_types[101] -#define SWIGTYPE_p_daemon__ConnectionError swig_types[102] -#define SWIGTYPE_p_daemon__Connections swig_types[103] -#define SWIGTYPE_p_daemon__DisconnectEvent swig_types[104] -#define SWIGTYPE_p_daemon__GatewayConfig swig_types[105] -#define SWIGTYPE_p_daemon__GetBlocksMessage swig_types[106] -#define SWIGTYPE_p_daemon__GetPeersMessage swig_types[107] -#define SWIGTYPE_p_daemon__GetTxnsMessage swig_types[108] -#define SWIGTYPE_p_daemon__GiveBlocksMessage swig_types[109] -#define SWIGTYPE_p_daemon__GivePeersMessage swig_types[110] -#define SWIGTYPE_p_daemon__GiveTxnsMessage swig_types[111] -#define SWIGTYPE_p_daemon__IPAddr swig_types[112] -#define SWIGTYPE_p_daemon__IntroductionMessage swig_types[113] -#define SWIGTYPE_p_daemon__Messages swig_types[114] -#define SWIGTYPE_p_daemon__MessagesConfig swig_types[115] -#define SWIGTYPE_p_daemon__PeerBlockchainHeight swig_types[116] -#define SWIGTYPE_p_daemon__PingMessage swig_types[117] -#define SWIGTYPE_p_daemon__PongMessage swig_types[118] -#define SWIGTYPE_p_daemon__RPC swig_types[119] -#define SWIGTYPE_p_daemon__ResendResult swig_types[120] -#define SWIGTYPE_p_daemon__TransactionResult swig_types[121] -#define SWIGTYPE_p_daemon__TransactionResults swig_types[122] -#define SWIGTYPE_p_double swig_types[123] -#define SWIGTYPE_p_encoder__StructField swig_types[124] -#define SWIGTYPE_p_encoder__coder swig_types[125] -#define SWIGTYPE_p_encrypt__ScryptChacha20poly1305 swig_types[126] -#define SWIGTYPE_p_encrypt__Sha256Xor swig_types[127] -#define SWIGTYPE_p_encrypt__meta swig_types[128] -#define SWIGTYPE_p_float swig_types[129] -#define SWIGTYPE_p_gnet__MessageContext swig_types[130] -#define SWIGTYPE_p_historydb__Transaction swig_types[131] -#define SWIGTYPE_p_historydb__UxOut swig_types[132] -#define SWIGTYPE_p_historydb__UxOutJSON swig_types[133] -#define SWIGTYPE_p_historydb__UxOuts swig_types[134] -#define SWIGTYPE_p_historydb__addressTxns swig_types[135] -#define SWIGTYPE_p_historydb__addressUx swig_types[136] -#define SWIGTYPE_p_historydb__historyMeta swig_types[137] -#define SWIGTYPE_p_historydb__transactions swig_types[138] -#define SWIGTYPE_p_httphelper__Address swig_types[139] -#define SWIGTYPE_p_int swig_types[140] -#define SWIGTYPE_p_logging__ColorScheme swig_types[141] -#define SWIGTYPE_p_long_long swig_types[142] -#define SWIGTYPE_p_p_GoSlice_ swig_types[143] -#define SWIGTYPE_p_p_coin__Block swig_types[144] -#define SWIGTYPE_p_p_coin__Transaction swig_types[145] -#define SWIGTYPE_p_pex__Peer swig_types[146] -#define SWIGTYPE_p_secp256k1go__Field swig_types[147] -#define SWIGTYPE_p_secp256k1go__XY swig_types[148] -#define SWIGTYPE_p_secp256k1go__XYZ swig_types[149] -#define SWIGTYPE_p_short swig_types[150] -#define SWIGTYPE_p_signed_char swig_types[151] -#define SWIGTYPE_p_unsigned_char swig_types[152] -#define SWIGTYPE_p_unsigned_int swig_types[153] -#define SWIGTYPE_p_unsigned_long_long swig_types[154] -#define SWIGTYPE_p_unsigned_short swig_types[155] -#define SWIGTYPE_p_visor__BlockchainConfig swig_types[156] -#define SWIGTYPE_p_visor__BlockchainMetadata swig_types[157] -#define SWIGTYPE_p_visor__BuildInfo swig_types[158] -#define SWIGTYPE_p_visor__ErrCorruptDB swig_types[159] -#define SWIGTYPE_p_visor__ErrTxnViolatesHardConstraint swig_types[160] -#define SWIGTYPE_p_visor__ErrTxnViolatesSoftConstraint swig_types[161] -#define SWIGTYPE_p_visor__ReadableBlock swig_types[162] -#define SWIGTYPE_p_visor__ReadableBlockBody swig_types[163] -#define SWIGTYPE_p_visor__ReadableBlockHeader swig_types[164] -#define SWIGTYPE_p_visor__ReadableBlocks swig_types[165] -#define SWIGTYPE_p_visor__ReadableOutput swig_types[166] -#define SWIGTYPE_p_visor__ReadableOutputSet swig_types[167] -#define SWIGTYPE_p_visor__ReadableTransaction swig_types[168] -#define SWIGTYPE_p_visor__ReadableTransactionInput swig_types[169] -#define SWIGTYPE_p_visor__ReadableTransactionOutput swig_types[170] -#define SWIGTYPE_p_visor__RichlistBalance swig_types[171] -#define SWIGTYPE_p_visor__Transaction swig_types[172] -#define SWIGTYPE_p_visor__TransactionJSON swig_types[173] -#define SWIGTYPE_p_visor__TransactionOutputJSON swig_types[174] -#define SWIGTYPE_p_visor__TransactionStatus swig_types[175] -#define SWIGTYPE_p_visor__UnconfirmedTxn swig_types[176] -#define SWIGTYPE_p_visor__addrsFilter swig_types[177] -#define SWIGTYPE_p_visor__sigHash swig_types[178] -#define SWIGTYPE_p_visor__txUnspents swig_types[179] -#define SWIGTYPE_p_visor__unconfirmedTxns swig_types[180] -#define SWIGTYPE_p_void swig_types[181] -#define SWIGTYPE_p_wallet__Balance swig_types[182] -#define SWIGTYPE_p_wallet__BalancePair swig_types[183] -#define SWIGTYPE_p_wallet__Config swig_types[184] -#define SWIGTYPE_p_wallet__Entry swig_types[185] -#define SWIGTYPE_p_wallet__Note swig_types[186] -#define SWIGTYPE_p_wallet__Options swig_types[187] -#define SWIGTYPE_p_wallet__ReadableEntry swig_types[188] -#define SWIGTYPE_p_wallet__ReadableNote swig_types[189] -#define SWIGTYPE_p_wallet__UxBalance swig_types[190] -#define SWIGTYPE_p_wallet__Wallet swig_types[191] -#define SWIGTYPE_p_webrpc__AddrUxoutResult swig_types[192] -#define SWIGTYPE_p_webrpc__OutputsResult swig_types[193] -#define SWIGTYPE_p_webrpc__RPCError swig_types[194] -#define SWIGTYPE_p_webrpc__StatusResult swig_types[195] -#define SWIGTYPE_p_webrpc__TxIDJson swig_types[196] -#define SWIGTYPE_p_webrpc__TxnResult swig_types[197] -static swig_type_info *swig_types[199]; -static swig_module_info swig_module = {swig_types, 198, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _skycoin.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__skycoin - -#else -# define SWIG_init init_skycoin - -#endif -#define SWIG_name "_skycoin" - -#define SWIGVERSION 0x030012 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) (void *)((const void *)(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) - - - #define SWIG_FILE_WITH_INIT - #include "libskycoin.h" - #include "swig.h" - - - GoUint32 wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice seed, GoInt n, cipher_SecKeys* __out_secKeys){ - GoSlice_ data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairs(seed, n, &data); - if( result == 0){ - __out_secKeys->data = data.data; - __out_secKeys->count = data.len; - } - return result; - } - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; -#if PY_VERSION_HEX < 0x03000000 - } else if (PyInt_Check(obj)) { - if (val) *val = (double) PyInt_AsLong(obj); - return SWIG_OK; -#endif - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else -#endif - if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - return SWIG_OverflowError; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) -# define SWIG_LONG_LONG_AVAILABLE -#endif - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERN int -SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) -{ - int res = SWIG_TypeError; - if (PyLong_Check(obj)) { - long long v = PyLong_AsLongLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - res = SWIG_OverflowError; - } - } else { - long v; - res = SWIG_AsVal_long (obj,&v); - if (SWIG_IsOK(res)) { - if (val) *val = v; - return res; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - const double mant_max = 1LL << DBL_MANT_DIG; - const double mant_min = -mant_max; - double d; - res = SWIG_AsVal_double (obj,&d); - if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max)) - return SWIG_OverflowError; - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { - if (val) *val = (long long)(d); - return SWIG_AddCast(res); - } - res = SWIG_TypeError; - } -#endif - return res; -} -#endif - - -SWIGINTERNINLINE PyObject* - SWIG_From_unsigned_SS_int (unsigned int value) -{ - return PyInt_FromSize_t((size_t) value); -} - - - GoUint32 wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, GoInt n, coin__UxArray* newSeed, cipher_SecKeys* __out_secKeys){ - GoSlice_ data; - data.data = NULL; - data.len = 0; - data.cap = 0; - GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n, newSeed, &data); - if( result == 0){ - __out_secKeys->data = data.data; - __out_secKeys->count = data.len; - } - return result; - } - - - GoUint32 wrap_SKY_cipher_PubKeySlice_Len(cipher_PubKeys* __in_pubKeys){ - GoSlice_ data; - data.data = __in_pubKeys->data; - data.len = __in_pubKeys->count; - data.cap = __in_pubKeys->count; - GoUint32 result = SKY_cipher_PubKeySlice_Len(&data); - return result; - } - - - GoUint32 wrap_SKY_cipher_PubKeySlice_Less(cipher_PubKeys* __in_pubKeys, GoInt p1, GoInt p2){ - GoSlice_ data; - data.data = __in_pubKeys->data; - data.len = __in_pubKeys->count; - data.cap = __in_pubKeys->count; - GoUint32 result = SKY_cipher_PubKeySlice_Less(&data, p1, p2); - return result; - } - - - GoUint32 wrap_SKY_cipher_PubKeySlice_Swap(cipher_PubKeys* __in_pubKeys, GoInt p1, GoInt p2){ - GoSlice_ data; - data.data = __in_pubKeys->data; - data.len = __in_pubKeys->count; - data.cap = __in_pubKeys->count; - GoUint32 result = SKY_cipher_PubKeySlice_Swap(&data, p1, p2); - return result; - } - - - void destroy_cipher_SecKeys(cipher_SecKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - - - void destroy_cipher_PubKeys(cipher_PubKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (int)(v); - } - } - return res; -} - -SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ - if( i < self->count){ - memcpy(&self->data[i], seckey, sizeof(*seckey)); - return i; - } else { - return -1; - } - } - -SWIGINTERNINLINE PyObject* - SWIG_From_int (int value) -{ - return PyInt_FromLong((long) value); -} - -SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ - destroy_cipher_SecKeys(self); - } -SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ - if( i < self->count){ - memcpy(&self->data[i], pubkey, sizeof(*pubkey)); - return i; - } else { - return -1; - } - } -SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ - destroy_cipher_PubKeys(self); - } - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - if (PyBytes_Check(obj)) -#else - if (PyUnicode_Check(obj)) -#endif -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 -#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - if(alloc) *alloc = SWIG_NEWOBJ; -#endif - PyBytes_AsStringAndSize(obj, &cstr, &len); -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); - *alloc = SWIG_NEWOBJ; - } else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { -#if PY_VERSION_HEX>=0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - *cptr = PyBytes_AsString(obj); -#else - assert(0); /* Should never reach here with Unicode strings in Python 3 */ -#endif -#else - *cptr = SWIG_Python_str_AsChar(obj); -#endif - } - } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - Py_XDECREF(obj); -#endif - return SWIG_OK; - } else { -#if defined(SWIG_PYTHON_2_UNICODE) -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) -#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" -#endif -#if PY_VERSION_HEX<0x03000000 - if (PyUnicode_Check(obj)) { - char *cstr; Py_ssize_t len; - if (!alloc && cptr) { - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { - if (cptr) { - if (alloc) *alloc = SWIG_NEWOBJ; - *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); - } - if (psize) *psize = len + 1; - - Py_XDECREF(obj); - return SWIG_OK; - } else { - Py_XDECREF(obj); - } - } -#endif -#endif - - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - - - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 -#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) - return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size)); -#else -#if PY_VERSION_HEX >= 0x03010000 - return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape"); -#else - return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size)); -#endif -#endif -#else - return PyString_FromStringAndSize(carray, (Py_ssize_t)(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -SWIGINTERNINLINE int -SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) -{ - int res = SWIG_TypeError; -#ifdef SWIG_LONG_LONG_AVAILABLE - if (sizeof(ptrdiff_t) <= sizeof(long)) { -#endif - long v; - res = SWIG_AsVal_long (obj, val ? &v : 0); - if (SWIG_IsOK(res) && val) *val = (ptrdiff_t)(v); -#ifdef SWIG_LONG_LONG_AVAILABLE - } else if (sizeof(ptrdiff_t) <= sizeof(long long)) { - long long v; - res = SWIG_AsVal_long_SS_long (obj, val ? &v : 0); - if (SWIG_IsOK(res) && val) *val = (ptrdiff_t)(v); - } -#endif - return res; -} - - - #define SWIG_From_long PyInt_FromLong - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERNINLINE PyObject* -SWIG_From_long_SS_long (long long value) -{ - return ((value < LONG_MIN) || (value > LONG_MAX)) ? - PyLong_FromLongLong(value) : PyInt_FromLong((long)(value)); -} -#endif - - -SWIGINTERNINLINE PyObject * -SWIG_From_ptrdiff_t (ptrdiff_t value) -{ -#ifdef SWIG_LONG_LONG_AVAILABLE - if (sizeof(ptrdiff_t) <= sizeof(long)) { -#endif - return SWIG_From_long ((long)(value)); -#ifdef SWIG_LONG_LONG_AVAILABLE - } else { - /* assume sizeof(ptrdiff_t) <= sizeof(long long) */ - return SWIG_From_long_SS_long ((long long)(value)); - } -#endif -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else -#endif - if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - return SWIG_OverflowError; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UINT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (unsigned int)(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long (unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value)); -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_unsigned_SS_char (unsigned char value) -{ - return SWIG_From_unsigned_SS_long (value); -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (unsigned char)(v); - } - } - return res; -} - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) -{ - int res = SWIG_TypeError; - if (PyLong_Check(obj)) { - unsigned long long v = PyLong_AsUnsignedLongLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - res = SWIG_OverflowError; - } - } else { - unsigned long v; - res = SWIG_AsVal_unsigned_SS_long (obj,&v); - if (SWIG_IsOK(res)) { - if (val) *val = v; - return res; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - const double mant_max = 1LL << DBL_MANT_DIG; - double d; - res = SWIG_AsVal_double (obj,&d); - if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max)) - return SWIG_OverflowError; - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { - if (val) *val = (unsigned long long)(d); - return SWIG_AddCast(res); - } - res = SWIG_TypeError; - } -#endif - return res; -} -#endif - -SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ - if( self-> Version == a->Version ){ - return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; - } - return 0; - } - -SWIGINTERN int -SWIG_AsVal_signed_SS_char (PyObject * obj, signed char *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < SCHAR_MIN || v > SCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (signed char)(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_signed_SS_char (signed char value) -{ - return SWIG_From_long (value); -} - - -#ifdef SWIG_LONG_LONG_AVAILABLE -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)(value)); -} -#endif - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > USHRT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (unsigned short)(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_unsigned_SS_short (unsigned short value) -{ - return SWIG_From_unsigned_SS_long (value); -} - -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - cipher_SecKeys *arg3 = (cipher_SecKeys *) 0 ; - long long val2 ; - int ecode2 = 0 ; - cipher_SecKeys temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.count = 0; - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)wrap_SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - int i; - PyObject *list = PyList_New(arg3->count); - for (i = 0; i < arg3->count; i++) { - cipher_SecKey* key = &(arg3->data[i]); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(key), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_NOSHADOW | 0 ); - PyList_SetItem(list,i,o); - } - if( arg3->data != NULL) - free( (void*)arg3->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - cipher_SecKeys *arg4 = (cipher_SecKeys *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - cipher_SecKeys temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - { - temp4.data = NULL; - temp4.count = 0; - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - int i; - PyObject *list = PyList_New(arg4->count); - for (i = 0; i < arg4->count; i++) { - cipher_SecKey* key = &(arg4->data[i]); - PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(key), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_NOSHADOW | 0 ); - PyList_SetItem(list,i,o); - } - if( arg4->data != NULL) - free( (void*)arg4->data ); - resultobj = SWIG_Python_AppendOutput(resultobj, list); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Len__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKeySlice_Len",&obj0)) SWIG_fail; - { - int i; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(cipher_PubKey) * arg1->count); - cipher_PubKey* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - memcpy(p, pdata, sizeof(cipher_PubKey)); - pdata++; - } - } - result = (GoUint32)wrap_SKY_cipher_PubKeySlice_Len(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Less__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_PubKeySlice_Less",&obj0,&obj1,&obj2)) SWIG_fail; - { - int i; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(cipher_PubKey) * arg1->count); - cipher_PubKey* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - memcpy(p, pdata, sizeof(cipher_PubKey)); - pdata++; - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_PubKeySlice_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_cipher_PubKeySlice_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)wrap_SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Swap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_PubKeySlice_Swap",&obj0,&obj1,&obj2)) SWIG_fail; - { - int i; - arg1->count = PyList_Size(obj0); - arg1->data = malloc(sizeof(cipher_PubKey) * arg1->count); - cipher_PubKey* pdata = arg1->data; - for(i = 0; i < arg1->count; i++){ - PyObject *o = PyList_GetItem(obj0, i); - void *argp = 0; - int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - memcpy(p, pdata, sizeof(cipher_PubKey)); - pdata++; - } - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_PubKeySlice_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_cipher_PubKeySlice_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)wrap_SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - if (arg1->data) free(arg1->data); - } - return resultobj; -fail: - { - if (arg1->data) free(arg1->data); - } - return NULL; -} - - -SWIGINTERN PyObject *_wrap_destroy_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:destroy_cipher_SecKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroy_cipher_SecKeys" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - destroy_cipher_SecKeys(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_destroy_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:destroy_cipher_PubKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroy_cipher_PubKeys" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - destroy_cipher_PubKeys(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_data_set" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_data_set" "', argument " "2"" of type '" "GoUint8 [33]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)33; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [33]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKey_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKey_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_data_get" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_PubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_PubKey")) SWIG_fail; - result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_PubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_PubKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_PubKey" "', argument " "1"" of type '" "cipher_PubKey *""'"); - } - arg1 = (cipher_PubKey *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_PubKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_PubKey, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SecKey_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_data_set" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_data_set" "', argument " "2"" of type '" "GoUint8 [32]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKey_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKey_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_data_get" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SecKey")) SWIG_fail; - result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SecKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SecKey" "', argument " "1"" of type '" "cipher_SecKey *""'"); - } - arg1 = (cipher_SecKey *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SecKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SecKey, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_data_set" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_data_set" "', argument " "2"" of type '" "GoUint8 [20]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)20; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [20]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Ripemd160_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Ripemd160_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_data_get" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Ripemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Ripemd160")) SWIG_fail; - result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Ripemd160, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Ripemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Ripemd160",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Ripemd160" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); - } - arg1 = (cipher_Ripemd160 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Ripemd160_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Ripemd160, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Sig_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_data_set" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_data_set" "', argument " "2"" of type '" "GoUint8 [65]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)65; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [65]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Sig_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Sig_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_data_get" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Sig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Sig")) SWIG_fail; - result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Sig, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Sig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Sig",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Sig" "', argument " "1"" of type '" "cipher_Sig *""'"); - } - arg1 = (cipher_Sig *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Sig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Sig, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SHA256_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_data_set" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_data_set" "', argument " "2"" of type '" "GoUint8 [32]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SHA256_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_data_get" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SHA256")) SWIG_fail; - result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SHA256",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SHA256" "', argument " "1"" of type '" "cipher_SHA256 *""'"); - } - arg1 = (cipher_SHA256 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SHA256_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SHA256, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_Checksum_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - GoUint8 *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_data_set" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_data_set" "', argument " "2"" of type '" "GoUint8 [4]""'"); - } - arg2 = (GoUint8 *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)4; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [4]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_Checksum_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_Checksum_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_data_get" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_Checksum")) SWIG_fail; - result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Checksum, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Checksum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Checksum" "', argument " "1"" of type '" "cipher_Checksum *""'"); - } - arg1 = (cipher_Checksum *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_Checksum_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Checksum, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - cipher_SecKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_getAt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_getAt" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_getAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_SecKeys_setAt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_setAt" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_setAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_SecKeys_setAt" "', argument " "3"" of type '" "cipher_SecKey *""'"); - } - arg3 = (cipher_SecKey *)(argp3); - result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_allocate" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_allocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - cipher_SecKeys_allocate(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_release",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_release" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - cipher_SecKeys_release(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_data_set" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKeys_data_set" "', argument " "2"" of type '" "cipher_SecKey *""'"); - } - arg2 = (cipher_SecKey *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher_SecKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_data_get" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - result = (cipher_SecKey *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_count_set" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_SecKeys_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_count_get" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_SecKeys")) SWIG_fail; - result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKeys, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SecKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SecKeys" "', argument " "1"" of type '" "cipher_SecKeys *""'"); - } - arg1 = (cipher_SecKeys *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_SecKeys_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SecKeys, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - cipher_PubKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_getAt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_getAt" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_getAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_PubKeys_setAt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_setAt" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_setAt" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_PubKeys_setAt" "', argument " "3"" of type '" "cipher_PubKey *""'"); - } - arg3 = (cipher_PubKey *)(argp3); - result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_allocate" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_allocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - cipher_PubKeys_allocate(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_release",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_release" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - cipher_PubKeys_release(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_data_set" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKeys_data_set" "', argument " "2"" of type '" "cipher_PubKey *""'"); - } - arg2 = (cipher_PubKey *)(argp2); - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher_PubKey *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_data_get" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - result = (cipher_PubKey *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_count_set" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = (int)(val2); - if (arg1) (arg1)->count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher_PubKeys_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_count_get" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - result = (int) ((arg1)->count); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher_PubKeys")) SWIG_fail; - result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKeys, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_PubKeys",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_PubKeys" "', argument " "1"" of type '" "cipher_PubKeys *""'"); - } - arg1 = (cipher_PubKeys *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher_PubKeys_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher_PubKeys, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap__GoString__p_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:_GoString__p_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__p_set" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_GoString__p_set" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = (char *)(buf2); - if (arg2) { - size_t size = strlen((const char *)((const char *)(arg2))) + 1; - arg1->p = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); - } else { - arg1->p = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); - return NULL; -} - - -SWIGINTERN PyObject *_wrap__GoString__p_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:_GoString__p_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__p_get" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - result = (char *) ((arg1)->p); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap__GoString__n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:_GoString__n_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__n_set" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_GoString__n_set" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = (ptrdiff_t)(val2); - if (arg1) (arg1)->n = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap__GoString__n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - ptrdiff_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:_GoString__n_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__n_get" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - result = ((arg1)->n); - resultobj = SWIG_From_ptrdiff_t((ptrdiff_t)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new__GoString_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new__GoString_")) SWIG_fail; - result = (_GoString_ *)calloc(1, sizeof(_GoString_)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__GoString_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete__GoString_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _GoString_ *arg1 = (_GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete__GoString_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__GoString_" "', argument " "1"" of type '" "_GoString_ *""'"); - } - arg1 = (_GoString_ *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_GoString__swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__GoString_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_GoInterface_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoInterface_t_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_t_set" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoInterface_t_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->t = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoInterface_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:GoInterface_t_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_t_get" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - result = (void *) ((arg1)->t); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoInterface_v_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoInterface_v_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_v_set" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoInterface_v_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->v = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoInterface_v_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:GoInterface_v_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_v_get" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - result = (void *) ((arg1)->v); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_GoInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_GoInterface")) SWIG_fail; - result = (GoInterface *)calloc(1, sizeof(GoInterface)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GoInterface, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_GoInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface *arg1 = (GoInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_GoInterface",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GoInterface" "', argument " "1"" of type '" "GoInterface *""'"); - } - arg1 = (GoInterface *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *GoInterface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_GoInterface, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_GoSlice_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_data_set" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoSlice_data_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_data_get" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - result = (void *) ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_len_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_len_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_len_set" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GoSlice_len_set" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - if (arg1) (arg1)->len = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_len_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt result; - - if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_len_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_len_get" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - result = (GoInt) ((arg1)->len); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_cap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_cap_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_cap_set" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GoSlice_cap_set" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - if (arg1) (arg1)->cap = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_GoSlice_cap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt result; - - if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_cap_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_cap_get" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - result = (GoInt) ((arg1)->cap); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_GoSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_GoSlice")) SWIG_fail; - result = (GoSlice *)calloc(1, sizeof(GoSlice)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GoSlice, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_GoSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_GoSlice",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GoSlice" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *GoSlice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_GoSlice, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_String2Hex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_String2Hex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToInt",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Base58_ToInt" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToHex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Base58_ToHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_Base582Int",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Base58_Base582Int" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base582Hex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Base582Hex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_BitHex",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Base58_BitHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Int2Base58",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_base58_Int2Base58" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Hex2Base58" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58String",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Hex2Base58String" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58Str",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_base58_Hex2Base58Str" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewReadableEntry",&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_NewReadableEntry" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_NewReadableEntry(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_LoadReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableEntry",&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_ArgError(res), "in method '" "SKY_wallet_LoadReadableEntry" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_LoadReadableEntry(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_NewReadableEntryFromPubkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewReadableEntryFromPubkey",&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_ArgError(res), "in method '" "SKY_wallet_NewReadableEntryFromPubkey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(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_ReadableEntry_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableEntry__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableEntry_Save",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_ReadableEntry_Save" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableWallet",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_LoadReadableWallet" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Save",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_ReadableWallet_Save" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_ReadableWallet_Load" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ReadableWallet__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableWallet_Erase",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - webrpc__OutputsResult *arg3 = (webrpc__OutputsResult *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetWalletOutputsFromFile",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_GetWalletOutputsFromFile" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_webrpc__OutputsResult, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputsFromFile" "', argument " "3"" of type '" "webrpc__OutputsResult *""'"); - } - arg3 = (webrpc__OutputsResult *)(argp3); - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - webrpc__OutputsResult *arg3 = (webrpc__OutputsResult *) 0 ; - Handle temp2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GetWalletOutputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_webrpc__OutputsResult, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputs" "', argument " "3"" of type '" "webrpc__OutputsResult *""'"); - } - arg3 = (webrpc__OutputsResult *)(argp3); - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_Field_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_String" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_Print",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Print" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Field_Print" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_SetB32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_SetB32",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_SetB32" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Field_SetB32" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_SetBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_SetBytes",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_SetBytes" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Field_SetBytes" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_SetHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_SetHex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_SetHex" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Field_SetHex" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_IsOdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 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_secp256k1go_Field_IsOdd",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_IsOdd" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32)SKY_secp256k1go_Field_IsOdd(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_secp256k1go_Field_IsZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 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_secp256k1go_Field_IsZero",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_IsZero" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_SetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_SetInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_SetInt" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_secp256k1go_Field_SetInt" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_Field_Normalize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Normalize" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_GetB32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_GetB32",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_GetB32" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Field_GetB32" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_Equals",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Equals" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_Equals" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - result = (GoUint32)SKY_secp256k1go_Field_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_secp256k1go_Field_SetAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_SetAdd",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_SetAdd" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_SetAdd" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_MulInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_MulInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_MulInt" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_secp256k1go_Field_MulInt" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Negate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1go_Field_Negate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Negate" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_Negate" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_secp256k1go_Field_Negate" "', argument " "3"" of type '" "GoUint32""'"); - } - arg3 = (GoUint32)(val3); - result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Inv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_Inv",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Inv" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_Inv" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Sqrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_Sqrt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Sqrt" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_Sqrt" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_InvVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_InvVar",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_InvVar" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_InvVar" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Mul(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 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_secp256k1go_Field_Mul",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Mul" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_Mul" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_Field_Mul" "', argument " "3"" of type '" "secp256k1go__Field *""'"); - } - arg3 = (secp256k1go__Field *)(argp3); - result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Field_Sqr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Field_Sqr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Field_Sqr" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Field_Sqr" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Len__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoInt result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cipher_PubKeySlice_Len")) SWIG_fail; - result = (GoInt)SKY_cipher_PubKeySlice_Len(arg1); - resultobj = SWIG_From_long_SS_long((long long)(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_cipher_PubKeySlice_Len(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_cipher_PubKeySlice_Len__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_cipher_PubKeys, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SKY_cipher_PubKeySlice_Len__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_cipher_PubKeySlice_Len'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_cipher_PubKeySlice_Len(cipher_PubKeys *)\n" - " SKY_cipher_PubKeySlice_Len(coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Less__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint8 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeySlice_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_cipher_PubKeySlice_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_cipher_PubKeySlice_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint8)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(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_cipher_PubKeySlice_Less(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_cipher_PubKeySlice_Less__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_cipher_PubKeys, 0); - _v = SWIG_CheckState(res); - 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_cipher_PubKeySlice_Less__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_cipher_PubKeySlice_Less'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_cipher_PubKeySlice_Less(cipher_PubKeys *,GoInt,GoInt)\n" - " SKY_cipher_PubKeySlice_Less(coin__UxArray *,GoInt,GoInt)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Swap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeySlice_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_cipher_PubKeySlice_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_cipher_PubKeySlice_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeySlice_Swap(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_cipher_PubKeySlice_Swap__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_cipher_PubKeys, 0); - _v = SWIG_CheckState(res); - 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_cipher_PubKeySlice_Swap__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_cipher_PubKeySlice_Swap'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_cipher_PubKeySlice_Swap(cipher_PubKeys *,GoInt,GoInt)\n" - " SKY_cipher_PubKeySlice_Swap(coin__UxArray *,GoInt,GoInt)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_RandByte",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_cipher_RandByte" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewPubKey",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_NewPubKey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustPubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_MustPubKeyFromHex",&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_ArgError(res), "in method '" "SKY_cipher_MustPubKeyFromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_MustPubKeyFromHex(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_PubKeyFromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromSecKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyFromSecKey((unsigned char (*)[32])arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_PubKeyFromSig",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKeyFromSig((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[33])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Verify",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKey_Verify((unsigned char (*)[33])arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKey_Hex((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_ToAddressHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKey_ToAddressHash",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); - cipher_Ripemd160* p = (cipher_Ripemd160*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((unsigned char (*)[33])arg1,(unsigned char (*)[20])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_NewSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSecKey",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_NewSecKey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_NewSecKey(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustSecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_MustSecKeyFromHex",&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_ArgError(res), "in method '" "SKY_cipher_MustSecKeyFromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_MustSecKeyFromHex(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_SecKeyFromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Verify",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKey_Hex((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_ECDH",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_ECDH((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_NewSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSig",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_NewSig" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_NewSig(arg1,(unsigned char (*)[65])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustSigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_MustSigFromHex",&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_ArgError(res), "in method '" "SKY_cipher_MustSigFromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_MustSigFromHex(arg1,(unsigned char (*)[65])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SigFromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_SigFromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(unsigned char (*)[65])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_Sig_Hex((unsigned char (*)[65])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SignHash",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_SignHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[65])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_ChkSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_ChkSig",&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_ChkSig" "', 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); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_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_ChkSig(arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[65])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_VerifySignedHash",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_VerifySignedHash((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_VerifySignature",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); - cipher_Sig* p = (cipher_Sig*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_VerifySignature((unsigned char (*)[33])arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateKeyPair",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_GenerateKeyPair((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_GenerateDeterministicKeyPair",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_GenerateDeterministicKeyPair" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(unsigned char (*)[33])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_DeterministicKeyPairIterator",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_DeterministicKeyPairIterator" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg3 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg4 = &p->data; - } - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(unsigned char (*)[33])arg3,(unsigned char (*)[32])arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - Py_ssize_t ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( argv[0], &buffer, &size, 0 ); - _v = SWIG_IsOK(res) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( argv[0], &buffer, &size, 0 ); - _v = SWIG_IsOK(res) ? 1 : 0; - } - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_cipher_GenerateDeterministicKeyPairs'.\n" - " Possible C/C++ prototypes are:\n" - " wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,cipher_SecKeys *)\n" - " SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,coin__UxArray *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_TestSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_TestSecKey",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_TestSecKey((unsigned char (*)[32])arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_TestSecKeyHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_TestSecKeyHash",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_TestSecKeyHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_DecompressPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint8 arg2 ; - GoSlice arg3 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1go_DecompressPoint",&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_ArgError(res), "in method '" "SKY_secp256k1go_DecompressPoint" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_secp256k1go_DecompressPoint" "', argument " "2"" of type '" "GoUint8""'"); - } - arg2 = (GoUint8)(val2); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_DecompressPoint" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_RecoverPublicKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoInt *arg5 = (GoInt *) 0 ; - long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - GoInt temp5 ; - int res5 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - arg5 = &temp5; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1go_RecoverPublicKey",&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_ArgError(res), "in method '" "SKY_secp256k1go_RecoverPublicKey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1go_RecoverPublicKey" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_secp256k1go_RecoverPublicKey" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - if (SWIG_IsTmpObj(res5)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); - } else { - int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Multiply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Multiply",&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_ArgError(res), "in method '" "SKY_secp256k1go_Multiply" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1go_Multiply" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_Multiply(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_secp256k1go_BaseMultiply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_BaseMultiply",&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_ArgError(res), "in method '" "SKY_secp256k1go_BaseMultiply" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_BaseMultiply(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_secp256k1go_BaseMultiplyAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_BaseMultiplyAdd",&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_ArgError(res), "in method '" "SKY_secp256k1go_BaseMultiplyAdd" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1go_BaseMultiplyAdd" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(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_secp256k1go_GeneratePublicKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_GeneratePublicKey",&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_ArgError(res), "in method '" "SKY_secp256k1go_GeneratePublicKey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(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_secp256k1go_SeckeyIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice 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_secp256k1go_SeckeyIsValid",&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_ArgError(res), "in method '" "SKY_secp256k1go_SeckeyIsValid" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(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_secp256k1go_PubkeyIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice 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_secp256k1go_PubkeyIsValid",&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_ArgError(res), "in method '" "SKY_secp256k1go_PubkeyIsValid" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(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_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_file_InitDataDir" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_file_UserHome")) SWIG_fail; - result = (GoUint32)SKY_file_UserHome(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_ResolveResourceDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_ResolveResourceDirectory",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_file_ResolveResourceDirectory" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_file_DetermineResourcePath",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_file_DetermineResourcePath" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_file_DetermineResourcePath" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_file_DetermineResourcePath" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_SumSHA256",&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_ArgError(res), "in method '" "SKY_secp256k1_SumSHA256" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_SumSHA256(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_secp256k1_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_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_secp256k1_RandByte" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_secp256k1_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_api_NewCreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreateTransactionResponse",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_NewCreateTransactionResponse" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_NewCreatedTransaction" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - api__CreatedTransactionOutput *arg3 = (api__CreatedTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 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_NewCreatedTransactionOutput",&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_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; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_NewCreatedTransactionOutput" "', argument " "3"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg3 = (api__CreatedTransactionOutput *)(argp3); - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewCreatedTransactionInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionInput" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_browser_Open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_browser_Open",&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_ArgError(res), "in method '" "SKY_browser_Open" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_browser_Open(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58Address",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_DecodeBase58Address" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_DecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustDecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_MustDecodeBase58Address",&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_ArgError(res), "in method '" "SKY_cipher_MustDecodeBase58Address" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_MustDecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_MustDecodeBase58Address(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinMustDecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinMustDecodeBase58Address",&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_ArgError(res), "in method '" "SKY_cipher_BitcoinMustDecodeBase58Address" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinMustDecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinMustDecodeBase58Address(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_ArgError(res), "in method '" "SKY_cipher_AddressFromBytes" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromPubKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg1 = &p->data; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromPubKey" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromSecKey",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromSecKey" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinDecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinDecodeBase58Address",&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_ArgError(res), "in method '" "SKY_cipher_BitcoinDecodeBase58Address" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinDecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustAddressFromBytes(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_MustAddressFromBytes",&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_ArgError(res), "in method '" "SKY_cipher_MustAddressFromBytes" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_MustAddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_MustAddressFromBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Bytes" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_Null",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Null" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_BitcoinBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_BitcoinBytes",&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_BitcoinBytes" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_Verify",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Verify" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_String" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_BitcoinString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_BitcoinString",&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_BitcoinString" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_Checksum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Checksum" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); - cipher_Checksum* p = (cipher_Checksum*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Address_BitcoinChecksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_BitcoinChecksum",&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_BitcoinChecksum" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); - cipher_Checksum* p = (cipher_Checksum*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(unsigned char (*)[4])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromPubkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddressFromPubkey",&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_BitcoinAddressFromPubkey((unsigned char (*)[33])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinWalletImportFormatFromSeckey",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(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_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_ArgError(res), "in method '" "SKY_cipher_BitcoinAddressFromBytes" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromWalletImportFormat",&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_ArgError(res), "in method '" "SKY_cipher_SecKeyFromWalletImportFormat" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustSecKeyFromWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_MustSecKeyFromWalletImportFormat",&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_ArgError(res), "in method '" "SKY_cipher_MustSecKeyFromWalletImportFormat" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); - cipher_SecKey* p = (cipher_SecKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_MustSecKeyFromWalletImportFormat(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_RPCError_Error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_RPCError_Error",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_webrpc_RPCError_Error" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - result = (GoUint32)SKY_webrpc_RPCError_Error(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_testutil_MakeAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_testutil_MakeAddress",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_testutil_MakeAddress" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint32)SKY_testutil_MakeAddress(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - void *argp5 ; - int res5 = 0 ; - Handle temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; - - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_cli_CreateRawTxFromWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "4"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg4)->data = buffer; - (&arg4)->len = size - 1; - (&arg4)->cap = size; - } - { - res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); - } else { - arg5 = *((PasswordReader__Handle *)(argp5)); - } - } - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - void *argp6 ; - int res6 = 0 ; - Handle temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - { - arg7 = &temp7; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTxFromAddress",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "4"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "5"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg5)->data = buffer; - (&arg5)->len = size - 1; - (&arg5)->cap = size; - } - { - res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "6"" of type '" "PasswordReader__Handle""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "6"" of type '" "PasswordReader__Handle""'"); - } else { - arg6 = *((PasswordReader__Handle *)(argp6)); - } - } - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - Handle temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - { - arg7 = &temp7; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_CreateRawTx" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_CreateRawTx" "', argument " "4"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_CreateRawTx" "', argument " "5"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_CreateRawTx" "', argument " "6"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg6)->data = buffer; - (&arg6)->len = size - 1; - (&arg6)->cap = size; - } - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_NewTransaction",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_NewTransaction" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_NewTransaction" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_NewTransaction" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_CatchInterruptPanic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchInterruptPanic")) SWIG_fail; - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_CatchDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchDebug")) SWIG_fail; - result = (GoUint32)SKY_apputil_CatchDebug(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_apputil_PrintProgramStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_PrintProgramStatus")) SWIG_fail; - result = (GoUint32)SKY_apputil_PrintProgramStatus(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_utc_UnixNow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt64 *arg1 = (GoInt64 *) 0 ; - GoInt64 temp1 ; - int res1 = SWIG_TMPOBJ ; - GoUint32 result; - - arg1 = &temp1; - if (!PyArg_ParseTuple(args,(char *)":SKY_utc_UnixNow")) SWIG_fail; - result = (GoUint32)SKY_utc_UnixNow(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_httphelper_Address_UnmarshalJSON",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_httphelper_Address_UnmarshalJSON" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_httphelper_Address_UnmarshalJSON" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Address_MarshalJSON",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_httphelper_Address_MarshalJSON" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - httphelper__Coins temp1 ; - int res1 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - 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_ArgError(res), "in method '" "SKY_httphelper_Coins_UnmarshalJSON" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - httphelper__Coins temp1 ; - int res1 = SWIG_TMPOBJ ; - GoSlice_ temp2 ; - GoUint32 result; - - arg1 = &temp1; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - httphelper__Coins temp1 ; - int res1 = SWIG_TMPOBJ ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - arg1 = &temp1; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_Value")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - httphelper__Hours temp1 ; - int res1 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - 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_ArgError(res), "in method '" "SKY_httphelper_Hours_UnmarshalJSON" "', argument " "2"" of type '" "(TYPEMAP, 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)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - httphelper__Hours temp1 ; - int res1 = SWIG_TMPOBJ ; - GoSlice_ temp2 ; - GoUint32 result; - - arg1 = &temp1; - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_MarshalJSON")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - httphelper__Hours temp1 ; - int res1 = SWIG_TMPOBJ ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - arg1 = &temp1; - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_Value")) SWIG_fail; - result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res1)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1))); - } else { - int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - cli__BalanceResult *arg3 = (cli__BalanceResult *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_CheckWalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_CheckWalletBalance" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_CheckWalletBalance" "', argument " "3"" of type '" "cli__BalanceResult *""'"); - } - arg3 = (cli__BalanceResult *)(argp3); - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - cli__BalanceResult *arg3 = (cli__BalanceResult *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetBalanceOfAddresses",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_GetBalanceOfAddresses" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetBalanceOfAddresses" "', argument " "3"" of type '" "cli__BalanceResult *""'"); - } - arg3 = (cli__BalanceResult *)(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_poly1305_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp3 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_poly1305_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_ArgError(res), "in method '" "SKY_poly1305_Verify" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewClient",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_NewClient" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_api_NewClient(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CSRF",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Version",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Outputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Outputs",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForAddresses",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_OutputsForAddresses" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForHashes",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_OutputsForHashes" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CoinSupply",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockByHash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_BlockByHash" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_BlockBySeq" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - Handle *arg4 = (Handle *) 0 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_Blocks",&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_api_Client_Blocks" "', 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_api_Client_Blocks" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_LastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoInt arg2 ; - Handle *arg3 = (Handle *) 0 ; - long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_LastBlocks",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_LastBlocks" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainMetadata",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainProgress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_Balance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_Balance" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_Balance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); - } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UxOut",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_UxOut" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressUxOuts",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_AddressUxOuts" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Wallet",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_Wallet" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Wallets",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - long long val4 ; - int ecode4 = 0 ; - Handle temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - { - arg5 = &temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_CreateUnencryptedWallet",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "4"" of type '" "GoInt""'"); - } - arg4 = (GoInt)(val4); - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - long long val5 ; - int ecode5 = 0 ; - Handle temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; - - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_api_Client_CreateEncryptedWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "4"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - ecode5 = SWIG_AsVal_long_SS_long(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "5"" of type '" "GoInt""'"); - } - arg5 = (GoInt)(val5); - result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NewWalletAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoString arg4 ; - Strings__Handle *arg5 = (Strings__Handle *) 0 ; - long long val3 ; - int ecode3 = 0 ; - Handle temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - { - arg5 = &temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_NewWalletAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_NewWalletAddress" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_api_Client_NewWalletAddress" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_NewWalletAddress" "', argument " "4"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_WalletBalance" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_WalletBalance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); - } - arg3 = (wallet__BalancePair *)(argp3); - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint64 arg4 ; - GoString arg5 ; - api__SpendResult *arg6 = (api__SpendResult *) 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_api_Client_Spend",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_Spend" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_Spend" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_api_Client_Spend" "', argument " "5"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg5)->p = buffer; - (&arg5)->n = size - 1; - } - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_api_Client_Spend" "', argument " "6"" of type '" "api__SpendResult *""'"); - } - arg6 = (api__SpendResult *)(argp6); - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - api__CreateTransactionResponse *arg3 = (api__CreateTransactionResponse *) 0 ; - Handle temp2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_CreateTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_api__CreateTransactionResponse, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_CreateTransaction" "', argument " "3"" of type '" "api__CreateTransactionResponse *""'"); - } - arg3 = (api__CreateTransactionResponse *)(argp3); - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_WalletTransactions",&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_ArgError(res), "in method '" "SKY_api_Client_WalletTransactions" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_WalletTransactions(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_UpdateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_UpdateWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_UpdateWallet" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_UpdateWallet" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletFolderName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_WalletFolderName",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NewSeed",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_NewSeed" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_GetWalletSeed",&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_ArgError(res), "in method '" "SKY_api_Client_GetWalletSeed" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_GetWalletSeed" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_NetworkConnection" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkConnections",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultConnections(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_NetworkDefaultConnections",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedConnections(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_NetworkTrustedConnections",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkExchangeableConnections(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_NetworkExchangeableConnections",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_PendingTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_PendingTransactions",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_Transaction" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_Transactions" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_ConfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_ConfirmedTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_ConfirmedTransactions" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_UnconfirmedTransactions" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_InjectTransaction",&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_ArgError(res), "in method '" "SKY_api_Client_InjectTransaction" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_ResendUnconfirmedTransactions",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_RawTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_RawTransaction" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_AddressTransactions" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; - Handle *arg3 = (Handle *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_api_Client_Richlist" "', argument " "2"" of type '" "api__RichlistParams *""'"); - } - arg2 = (api__RichlistParams *)(argp2); - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_AddressCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_UnloadWallet" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Health",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_EncryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_EncryptWallet" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_EncryptWallet" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_api_Client_DecryptWallet" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_api_Client_DecryptWallet" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_JsonEncode_Handle",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - 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)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadSeq",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetPreviousBlockHash",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Blocks_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Blocks_GetAt" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_GetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Strings__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_Sort",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Strings__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - long long val2 ; - int ecode2 = 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Strings_GetAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletFileName",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletLabel",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_Client_GetWalletFullPath",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletMeta",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletEntriesCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletResponseEntriesCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint32 arg2 ; - cipher__Address *arg3 = (cipher__Address *) 0 ; - cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Handle_WalletGetEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "3"" of type '" "cipher__Address *""'"); - } - arg3 = (cipher__Address *)(argp3); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj3, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg4 = &p->data; - } - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(unsigned char (*)[33])arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint32 arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - GoString temp3 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletResponseGetEntry",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletResponseGetEntry" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); - free( (void*)arg4->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseIsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseIsEncrypted",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetCryptoType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallets__Handle arg1 ; - GoUint32 arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletsResponseGetAt" "', argument " "2"" of type '" "GoUint32""'"); - } - arg2 = (GoUint32)(val2); - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletFolderAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletFolderAddress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletSeed",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletLastSeed",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1_GenerateKeyPair(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_secp256k1_GenerateKeyPair")) SWIG_fail; - result = (GoUint32)SKY_secp256k1_GenerateKeyPair(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_secp256k1_PubkeyFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_PubkeyFromSeckey",&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_ArgError(res), "in method '" "SKY_secp256k1_PubkeyFromSeckey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(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_secp256k1_UncompressPubkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_UncompressPubkey",&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_ArgError(res), "in method '" "SKY_secp256k1_UncompressPubkey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_UncompressPubkey(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_secp256k1_UncompressedPubkeyFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_UncompressedPubkeyFromSeckey",&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_ArgError(res), "in method '" "SKY_secp256k1_UncompressedPubkeyFromSeckey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(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_secp256k1_Secp256k1Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_Secp256k1Hash",&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_ArgError(res), "in method '" "SKY_secp256k1_Secp256k1Hash" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_Secp256k1Hash(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_secp256k1_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_GenerateDeterministicKeyPair",&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_ArgError(res), "in method '" "SKY_secp256k1_GenerateDeterministicKeyPair" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1_DeterministicKeyPairIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1_DeterministicKeyPairIterator",&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_ArgError(res), "in method '" "SKY_secp256k1_DeterministicKeyPairIterator" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(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( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1_Sign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1_Sign",&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_ArgError(res), "in method '" "SKY_secp256k1_Sign" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_Sign" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1_Sign(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_secp256k1_SignDeterministic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1_SignDeterministic",&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_ArgError(res), "in method '" "SKY_secp256k1_SignDeterministic" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_SignDeterministic" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_SignDeterministic" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_secp256k1_SignDeterministic(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_secp256k1_VerifySeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice 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_secp256k1_VerifySeckey",&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_ArgError(res), "in method '" "SKY_secp256k1_VerifySeckey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_VerifySeckey(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_secp256k1_VerifyPubkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice 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_secp256k1_VerifyPubkey",&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_ArgError(res), "in method '" "SKY_secp256k1_VerifyPubkey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_VerifyPubkey(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_secp256k1_VerifySignatureValidity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice 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_secp256k1_VerifySignatureValidity",&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_ArgError(res), "in method '" "SKY_secp256k1_VerifySignatureValidity" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(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_secp256k1_VerifySignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoInt *arg4 = (GoInt *) 0 ; - GoInt temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1_VerifySignature",&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_ArgError(res), "in method '" "SKY_secp256k1_VerifySignature" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_VerifySignature" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_VerifySignature" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_secp256k1_VerifySignature(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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1_SignatureErrorString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.p = NULL; - temp4.n = 0; - arg4 = (GoString_ *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1_SignatureErrorString",&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_ArgError(res), "in method '" "SKY_secp256k1_SignatureErrorString" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_SignatureErrorString" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_SignatureErrorString" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_secp256k1_SignatureErrorString(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_secp256k1_RecoverPubkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1_RecoverPubkey",&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_ArgError(res), "in method '" "SKY_secp256k1_RecoverPubkey" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_RecoverPubkey" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1_RecoverPubkey(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_secp256k1_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1_ECDH",&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_ArgError(res), "in method '" "SKY_secp256k1_ECDH" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_secp256k1_ECDH" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1_ECDH(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_cert_CreateCertIfNotExists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_cert_CreateCertIfNotExists",&obj0,&obj1,&obj2,&obj3)) 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_ArgError(res), "in method '" "SKY_cert_CreateCertIfNotExists" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cert_CreateCertIfNotExists" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_cert_CreateCertIfNotExists" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cert_CreateCertIfNotExists" "', argument " "4"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg4)->p = buffer; - (&arg4)->n = size - 1; - } - result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); - 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 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_VerifyTransactionFee",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_VerifyTransactionFee" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_VerifyTransactionFeeForHours",&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_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); - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); - 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 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_fee_RequiredFee",&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_fee_RequiredFee" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_fee_RequiredFee(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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_fee_RemainingHours",&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_fee_RemainingHours" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_fee_RemainingHours(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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - GoUint64 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_TransactionFee",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_TransactionFee" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_iputil_LocalhostIP")) SWIG_fail; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_iputil_IsLocalhost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_IsLocalhost",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_iputil_IsLocalhost" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString temp2 ; - GoUint16 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_SplitAddr",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_iputil_SplitAddr" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; - GoSlice arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Ripemd160_Set",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); - cipher_Ripemd160* p = (cipher_Ripemd160*)argp; - arg1 = &p->data; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_Ripemd160_Set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_HashRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_HashRipemd160",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_HashRipemd160" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); - cipher_Ripemd160* p = (cipher_Ripemd160*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(unsigned char (*)[20])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoSlice arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256_Set",&obj0,&obj1)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_SHA256_Set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_cipher_SHA256_Set((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Hex",&obj0)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256_Hex((unsigned char (*)[32])arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SHA256_Xor",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256_Xor((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SumSHA256",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_SumSHA256" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256FromHex",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_SHA256FromHex" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cipher_DoubleSHA256" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_AddSHA256",&obj0,&obj1,&obj2)) SWIG_fail; - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg1 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_AddSHA256((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Merkle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Merkle" "', argument " "1"" of type '" "GoSlice *""'"); - } - arg1 = (GoSlice *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cipher_MustSumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_MustSumSHA256",&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_ArgError(res), "in method '" "SKY_cipher_MustSumSHA256" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_MustSumSHA256" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_cipher_MustSumSHA256(arg1,arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transaction")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transaction(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Copy",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Get_Transaction_Object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Get_Transaction_Object",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Get_Transaction_Object" "', argument " "2"" of type '" "coin__Transaction **""'"); - } - arg2 = (coin__Transaction **)(argp2); - result = (GoUint32)SKY_coin_Get_Transaction_Object(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetInputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetInputs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetOutputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetOutputs" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetSignatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt arg2 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetSignatures",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetSignatures" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_VerifyInput",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoUint16 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_TransactionOutput_UxID",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_TransactionOutput_UxID" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_Transaction_PushOutput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoSlice arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_coin_Transaction_SignInputs" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SizeHash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg3 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(unsigned char (*)[32])arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxID",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxIDHex",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_UpdateHeader",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_HashInner",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Serialize",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_MustTransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_MustTransactionDeserialize",&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_ArgError(res), "in method '" "SKY_coin_MustTransactionDeserialize" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_coin_MustTransactionDeserialize(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_TransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_TransactionDeserialize",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_coin_TransactionDeserialize" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transactions")) SWIG_fail; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Get_Transactions_Object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Get_Transactions_Object",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GoSlice_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Get_Transactions_Object" "', argument " "2"" of type '" "coin__UxArray **""'"); - } - arg2 = (coin__UxArray **)(argp2); - result = (GoUint32)SKY_coin_Get_Transactions_Object(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Length",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Add",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_GetAt",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_GetAt" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Size(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_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, 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 ; - GoInt arg2 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - long long val2 ; - int ecode2 = 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_TruncateBytesTo",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_TruncateBytesTo" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Sort",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Sort" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Len",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Less(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Less",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Swap",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_VerifyTransactionCoinsSpending")) SWIG_fail; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_VerifyTransactionHoursSpending",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_VerifyTransactionHoursSpending" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encrypt_Sha256Xor_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__Sha256Xor *arg1 = (encrypt__Sha256Xor *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_Sha256Xor_Encrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__Sha256Xor, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_Sha256Xor_Encrypt" "', argument " "1"" of type '" "encrypt__Sha256Xor *""'"); - } - arg1 = (encrypt__Sha256Xor *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_encrypt_Sha256Xor_Encrypt" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_encrypt_Sha256Xor_Encrypt" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encrypt_Sha256Xor_Decrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__Sha256Xor *arg1 = (encrypt__Sha256Xor *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_Sha256Xor_Decrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__Sha256Xor, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_Sha256Xor_Decrypt" "', argument " "1"" of type '" "encrypt__Sha256Xor *""'"); - } - arg1 = (encrypt__Sha256Xor *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_encrypt_Sha256Xor_Decrypt" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_encrypt_Sha256Xor_Decrypt" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_encrypt_Sha256Xor_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_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - void *argp3 ; - int res3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GenerateAddressesInFile",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "1"" of type '" "(TYPEMAP, 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_cli_GenerateAddressesInFile" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } else { - arg3 = *((PasswordReader__Handle *)(argp3)); - } - } - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJSON",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_FormatAddressesAsJSON" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJoinedArray",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_FormatAddressesAsJoinedArray" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_AddressesToStrings",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_AddressesToStrings" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle *arg1 = (Config__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_LoadConfig")) SWIG_fail; - result = (GoUint32)SKY_cli_LoadConfig(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullWalletPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromContext",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_ConfigFromContext",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromBytes_Password")) SWIG_fail; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromTerm_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__PasswordFromTerm *arg1 = (cli__PasswordFromTerm *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_PasswordFromTerm_Password",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__PasswordFromTerm, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cli_PasswordFromTerm_Password" "', argument " "1"" of type '" "cli__PasswordFromTerm *""'"); - } - arg1 = (cli__PasswordFromTerm *)(argp1); - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(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_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Handle arg1 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_close",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - SKY_handle_close(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encoder_StructField_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_encoder_StructField_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encoder_StructField_String" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encoder_ParseFields(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_encoder_ParseFields",&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_ArgError(res), "in method '" "SKY_encoder_ParseFields" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_encoder_ParseFields" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_encoder_ParseFields(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_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_Hash" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_SnapshotHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_SnapshotHash" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxBody_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxBody_Hash" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoUint64 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_CoinHours",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Hashes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_HasDupes")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sort")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Sort(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice_ temp1 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Len")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Less",&obj0,&obj1)) SWIG_fail; - ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Less" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Less" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoSlice_ temp1 ; - long long val2 ; - int ecode2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Swap",&obj0,&obj1)) SWIG_fail; - ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Swap" "', argument " "2"" of type '" "GoInt""'"); - } - arg2 = (GoInt)(val2); - ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Swap" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoSlice_ temp1 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Coins")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours(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 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_CoinHours",&obj0)) SWIG_fail; - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sub")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp1 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Add")) SWIG_fail; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_scrypt_Key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - GoInt arg4 ; - GoInt arg5 ; - GoInt arg6 ; - coin__UxArray *arg7 = (coin__UxArray *) 0 ; - long long val3 ; - int ecode3 = 0 ; - long long val4 ; - int ecode4 = 0 ; - long long val5 ; - int ecode5 = 0 ; - long long val6 ; - int ecode6 = 0 ; - GoSlice_ temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - { - temp7.data = NULL; - temp7.len = 0; - temp7.cap = 0; - arg7 = (coin__UxArray *)&temp7; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_scrypt_Key",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_ArgError(res), "in method '" "SKY_scrypt_Key" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_scrypt_Key" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_scrypt_Key" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_scrypt_Key" "', argument " "4"" of type '" "GoInt""'"); - } - arg4 = (GoInt)(val4); - ecode5 = SWIG_AsVal_long_SS_long(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SKY_scrypt_Key" "', argument " "5"" of type '" "GoInt""'"); - } - arg5 = (GoInt)(val5); - ecode6 = SWIG_AsVal_long_SS_long(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SKY_scrypt_Key" "', argument " "6"" of type '" "GoInt""'"); - } - arg6 = (GoInt)(val6); - result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg7->data, arg7->len )); - free( (void*)arg7->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInterface arg1 ; - void *argp1 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewError",&obj0)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GoInterface, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); - } else { - arg1 = *((GoInterface *)(argp1)); - } - } - result = (GoUint32)SKY_wallet_NewError(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewWallet",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_NewWallet" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; - GoString arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_Wallet_Lock" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_wallet_Wallet_Lock" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Unlock",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_Wallet_Unlock" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Load",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_Load" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Load(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Save",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_Wallet_Save" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Validate",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Type",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Version",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Filename",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_IsEncrypted",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GenerateAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_Wallet_GenerateAddresses" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - wallet__Entry *arg3 = (wallet__Entry *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_GetEntry",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "3"" of type '" "wallet__Entry *""'"); - } - arg3 = (wallet__Entry *)(argp3); - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_AddEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_AddEntry",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_AddEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); - } - arg2 = (wallet__Entry *)(argp2); - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint8 arg3 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoUint64 *arg6 = (GoUint64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned char val3 ; - int ecode3 = 0 ; - GoUint64 temp4 ; - int res4 = SWIG_TMPOBJ ; - GoSlice_ temp5 ; - GoUint64 temp6 ; - int res6 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - { - temp5.data = NULL; - temp5.len = 0; - temp5.cap = 0; - arg5 = (coin__UxArray *)&temp5; - } - 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)); - 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_long_long, new_flags)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); - free( (void*)arg5->data ); - } - if (SWIG_IsTmpObj(res6)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); - } else { - int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_unsigned_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_DistributeCoinHoursProportional",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_DistributeCoinHoursProportional" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeCoinHoursProportional" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewUxBalances",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalances" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewUxBalance",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalance" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewUxBalance" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewUxBalance" "', argument " "3"" of type '" "wallet__UxBalance *""'"); - } - arg3 = (wallet__UxBalance *)(argp3); - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMinimizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Wallet__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_AddPrivateKey",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_AddPrivateKey" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - void *argp3 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_AddPrivateKeyToFile",&obj0,&obj1,&obj2)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); - } else { - arg3 = *((PasswordReader__Handle *)(argp3)); - } - } - result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_App_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - App__Handle arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_App_Run",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_App_Run" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetCoin",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetRPCAddress",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromApp",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Getenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Getenv",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_Getenv" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_cli_Getenv(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_Setenv",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_Setenv" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_cli_Setenv" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_NewClient",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_webrpc_NewClient" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetUnspentOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - webrpc__OutputsResult *arg3 = (webrpc__OutputsResult *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetUnspentOutputs",&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_ArgError(res), "in method '" "SKY_webrpc_Client_GetUnspentOutputs" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_webrpc__OutputsResult, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_webrpc_Client_GetUnspentOutputs" "', argument " "3"" of type '" "webrpc__OutputsResult *""'"); - } - arg3 = (webrpc__OutputsResult *)(argp3); - result = (GoUint32)SKY_webrpc_Client_GetUnspentOutputs(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransactionString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransactionString",&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_ArgError(res), "in method '" "SKY_webrpc_Client_InjectTransactionString" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_webrpc_Client_InjectTransactionString(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - webrpc__StatusResult *arg2 = (webrpc__StatusResult *) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetStatus",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_webrpc_Client_GetStatus" "', argument " "2"" of type '" "webrpc__StatusResult *""'"); - } - arg2 = (webrpc__StatusResult *)(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 ; - webrpc__TxnResult *arg3 = (webrpc__TxnResult *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetTransactionByID",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_webrpc_Client_GetTransactionByID" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_webrpc__TxnResult, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_webrpc_Client_GetTransactionByID" "', argument " "3"" of type '" "webrpc__TxnResult *""'"); - } - arg3 = (webrpc__TxnResult *)(argp3); - result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetAddressUxOuts",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_webrpc_Client_GetAddressUxOuts" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - visor__ReadableBlocks *arg4 = (visor__ReadableBlocks *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_webrpc_Client_GetBlocks",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetBlocks" "', 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_GetBlocks" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_visor__ReadableBlocks, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_webrpc_Client_GetBlocks" "', argument " "4"" of type '" "visor__ReadableBlocks *""'"); - } - arg4 = (visor__ReadableBlocks *)(argp4); - result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - visor__ReadableBlocks *arg3 = (visor__ReadableBlocks *) 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetBlocksBySeq",&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_ArgError(res), "in method '" "SKY_webrpc_Client_GetBlocksBySeq" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_visor__ReadableBlocks, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_webrpc_Client_GetBlocksBySeq" "', argument " "3"" of type '" "visor__ReadableBlocks *""'"); - } - arg3 = (visor__ReadableBlocks *)(argp3); - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - visor__ReadableBlocks *arg3 = (visor__ReadableBlocks *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1,&obj2)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetLastBlocks" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_visor__ReadableBlocks, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_webrpc_Client_GetLastBlocks" "', argument " "3"" of type '" "visor__ReadableBlocks *""'"); - } - arg3 = (visor__ReadableBlocks *)(argp3); - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_droplet_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - 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_ArgError(res), "in method '" "SKY_droplet_FromString" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_droplet_FromString(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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_ToString",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_droplet_ToString" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_bip39_NewDefaultMnemomic")) SWIG_fail; - result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewEntropy",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_bip39_NewEntropy" "', argument " "1"" of type '" "GoInt""'"); - } - arg1 = (GoInt)(val1); - result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewMnemonic",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_bip39_NewMnemonic" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->data = buffer; - (&arg1)->len = size - 1; - (&arg1)->cap = size; - } - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_MnemonicToByteArray",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_bip39_MnemonicToByteArray" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_bip39_IsMnemonicValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_IsMnemonicValid",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_bip39_IsMnemonicValid" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XYZ_Print",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_Print" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_XYZ_Print" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_SetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XYZ_SetXY",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_SetXY" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_SetXY" "', argument " "2"" of type '" "secp256k1go__XY *""'"); - } - arg2 = (secp256k1go__XY *)(argp2); - result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_IsInfinity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 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_secp256k1go_XYZ_IsInfinity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_IsInfinity" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(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_secp256k1go_XYZ_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 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_secp256k1go_XYZ_IsValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_IsValid" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(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_secp256k1go_XYZ_Normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_XYZ_Normalize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_Normalize" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XYZ_Equals",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_Equals" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_Equals" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - result = (GoUint32)SKY_secp256k1go_XYZ_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_secp256k1go_XYZ_ECmult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - Number *arg3 = (Number *) 0 ; - Number *arg4 = (Number *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_secp256k1go_XYZ_ECmult",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_ECmult" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_ECmult" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_XYZ_ECmult" "', argument " "3"" of type '" "Number *""'"); - } - arg3 = (Number *)(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_secp256k1go_XYZ_ECmult" "', argument " "4"" of type '" "Number *""'"); - } - arg4 = (Number *)(argp4); - result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_Neg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XYZ_Neg",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_Neg" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_Neg" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_Double(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XYZ_Double",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_Double" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_Double" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_AddXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg3 = (secp256k1go__XY *) 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_secp256k1go_XYZ_AddXY",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_AddXY" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_AddXY" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_XYZ_AddXY" "', argument " "3"" of type '" "secp256k1go__XY *""'"); - } - arg3 = (secp256k1go__XY *)(argp3); - result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XYZ_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 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_secp256k1go_XYZ_Add",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XYZ_Add" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XYZ_Add" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_XYZ_Add" "', argument " "3"" of type '" "secp256k1go__XYZ *""'"); - } - arg3 = (secp256k1go__XYZ *)(argp3); - result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_ECmultGen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - Number *arg2 = (Number *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_ECmultGen",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_ECmultGen" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_ECmultGen" "', argument " "2"" of type '" "Number *""'"); - } - arg2 = (Number *)(argp2); - result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewNotesFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_wallet_NewNotesFilename")) SWIG_fail; - result = (GoUint32)SKY_wallet_NewNotesFilename(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_LoadNotes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadNotes",&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_ArgError(res), "in method '" "SKY_wallet_LoadNotes" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_LoadNotes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_LoadReadableNotes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableNotes",&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_ArgError(res), "in method '" "SKY_wallet_LoadReadableNotes" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_LoadReadableNotes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableNotes_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoString arg2 ; - GoSlice_ temp1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableNotes_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_ArgError(res), "in method '" "SKY_wallet_ReadableNotes_Load" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableNotes_Load(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 ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableNotes_ToNotes(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_wallet_ReadableNotes_ToNotes")) SWIG_fail; - result = (GoUint32)SKY_wallet_ReadableNotes_ToNotes(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_wallet_ReadableNotes_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoString arg2 ; - GoSlice_ temp1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp1.data = NULL; - temp1.len = 0; - temp1.cap = 0; - arg1 = (coin__UxArray *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableNotes_Save",&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_ArgError(res), "in method '" "SKY_wallet_ReadableNotes_Save" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_wallet_ReadableNotes_Save(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 ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - wallet__ReadableNote *arg2 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableNote",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_NewReadableNote" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewReadableNote" "', argument " "2"" of type '" "wallet__ReadableNote *""'"); - } - arg2 = (wallet__ReadableNote *)(argp2); - result = (GoUint32)SKY_wallet_NewReadableNote(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableNotesFromNotes(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_wallet_NewReadableNotesFromNotes")) SWIG_fail; - result = (GoUint32)SKY_wallet_NewReadableNotesFromNotes(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_wallet_Notes_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoString arg2 ; - GoString arg3 ; - GoSlice_ temp1 ; - 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_wallet_Notes_Save",&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_ArgError(res), "in method '" "SKY_wallet_Notes_Save" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->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_ArgError(res), "in method '" "SKY_wallet_Notes_Save" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->p = buffer; - (&arg3)->n = size - 1; - } - result = (GoUint32)SKY_wallet_Notes_Save(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Notes_SaveNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoString arg2 ; - wallet__Note *arg3 = (wallet__Note *) 0 ; - GoSlice_ temp1 ; - void *argp3 = 0 ; - int res3 = 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_wallet_Notes_SaveNote",&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_ArgError(res), "in method '" "SKY_wallet_Notes_SaveNote" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Notes_SaveNote" "', argument " "3"" of type '" "wallet__Note *""'"); - } - arg3 = (wallet__Note *)(argp3); - result = (GoUint32)SKY_wallet_Notes_SaveNote(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); - free( (void*)arg1->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Notes_ToReadable(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_wallet_Notes_ToReadable")) SWIG_fail; - result = (GoUint32)SKY_wallet_Notes_ToReadable(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_wallet_NotesFileExist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NotesFileExist",&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_ArgError(res), "in method '" "SKY_wallet_NotesFileExist" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_NotesFileExist(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_CreateNoteFileIfNotExist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_CreateNoteFileIfNotExist",&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_ArgError(res), "in method '" "SKY_wallet_CreateNoteFileIfNotExist" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_CreateNoteFileIfNotExist(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Encrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - temp4.data = NULL; - temp4.len = 0; - temp4.cap = 0; - arg4 = (coin__UxArray *)&temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Decrypt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Decrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Decrypt" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Decrypt" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg3)->data = buffer; - (&arg3)->len = size - 1; - (&arg3)->cap = size; - } - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); - free( (void*)arg4->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_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 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddUint64",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_AddUint64" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_AddUint64" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - GoInt64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Uint64ToInt64",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_Uint64ToInt64" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - long long val1 ; - int ecode1 = 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Int64ToUint64",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_Int64ToUint64" "', argument " "1"" of type '" "GoInt64""'"); - } - arg1 = (GoInt64)(val1); - result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - GoUint64 arg2 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalance",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalance" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_NewBalance" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalance" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalanceFromUxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalanceFromUxOut",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "1"" of type '" "GoUint64""'"); - } - arg1 = (GoUint64)(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Add",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Add" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Add" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Add" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Sub",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Sub" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Sub" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Sub" "', argument " "3"" of type '" "wallet__Balance *""'"); - } - arg3 = (wallet__Balance *)(argp3); - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Balance_Equals",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Equals" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Equals" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res3)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); - } else { - int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoUint8 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Balance_IsZero",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_IsZero" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transactions__Handle arg4 ; - GoUint64 arg5 ; - Block__Handle *arg6 = (Block__Handle *) 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val5 ; - int ecode5 = 0 ; - Handle temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - GoUint32 result; - - { - arg6 = &temp6; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_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); - } - ecode5 = SWIG_AsVal_unsigned_SS_long_SS_long(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SKY_coin_NewBlock" "', argument " "5"" of type '" "GoUint64""'"); - } - arg5 = (GoUint64)(val5); - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(unsigned char (*)[32])arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_SignedBlock_VerifySignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SignedBlock_VerifySignature",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SignedBlock_VerifySignature" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); - cipher_PubKey* p = (cipher_PubKey*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(unsigned char (*)[33])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewGenesisBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "2"" of type '" "GoUint64""'"); - } - arg2 = (GoUint64)(val2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashHeader",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Time",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint64 temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - GoUint32 result; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Seq",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - 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_Block_Size",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Handle temp3 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(unsigned char (*)[32])arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - unsigned long long val4 ; - int ecode4 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_coin_NewBlockHeader",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewBlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewBlockHeader" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_NewBlockHeader" "', argument " "4"" of type '" "GoUint64""'"); - } - arg4 = (GoUint64)(val4); - { - SWIG_AsVal_long(obj4, (long*)&arg5); - } - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_coin_NewBlockHeader" "', argument " "6"" of type '" "coin__BlockHeader *""'"); - } - arg6 = (coin__BlockHeader *)(argp6); - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(unsigned char (*)[32])arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockHeader_Hash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Hash" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Bytes" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_String",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_String" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - { - void *argp = 0; - int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); - if (!SWIG_IsOK(res)) - SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); - cipher_SHA256* p = (cipher_SHA256*)argp; - arg2 = &p->data; - } - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(unsigned char (*)[32])arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - Handle temp1 ; - GoInt temp2 ; - int res2 = SWIG_TMPOBJ ; - GoUint32 result; - - { - arg1 = &temp1; - } - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)":SKY_coin_BlockBody_Size")) SWIG_fail; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockBody__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - temp3.data = NULL; - temp3.len = 0; - temp3.cap = 0; - arg3 = (coin__UxArray *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_CreateUnspents",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspents" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); - free( (void*)arg3->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_CreateUnspent",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspent" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - { - SWIG_AsVal_long(obj1, (long*)&arg2); - } - ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_CreateUnspent" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_coin_CreateUnspent" "', argument " "4"" of type '" "coin__UxOut *""'"); - } - arg4 = (coin__UxOut *)(argp4); - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_GetBlockObject",&obj0,&obj1)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_GetBlockObject" "', argument " "2"" of type '" "coin__Block **""'"); - } - arg2 = (coin__Block **)(argp2); - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - Handle temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; - { - SWIG_AsVal_long(obj0, (long*)&arg1); - } - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_CreateAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoUint8 arg4 ; - ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; - long long val3 ; - int ecode3 = 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - Handle temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - { - arg5 = &temp5; - } - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_wallet_CreateAddresses",&obj0,&obj1,&obj2,&obj3)) 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_ArgError(res), "in method '" "SKY_wallet_CreateAddresses" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_wallet_CreateAddresses" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_wallet_CreateAddresses" "', argument " "3"" of type '" "GoInt""'"); - } - arg3 = (GoInt)(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_wallet_CreateAddresses" "', argument " "4"" of type '" "GoUint8""'"); - } - arg4 = (GoUint8)(val4); - result = (GoUint32)SKY_wallet_CreateAddresses(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_wallet_GetSkycoinWalletEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_GetSkycoinWalletEntry",&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_wallet_GetSkycoinWalletEntry((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_GetBitcoinWalletEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - Handle temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg3 = &temp3; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_GetBitcoinWalletEntry",&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_wallet_GetBitcoinWalletEntry((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_map_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Handle temp1 ; - GoString temp3 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - arg1 = &temp1; - } - { - temp3.p = NULL; - temp3.n = 0; - arg3 = (GoString_ *)&temp3; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_get",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_map_get" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_map_get(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); - free( (void*)arg3->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_map_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - Handle temp1 ; - PyObject * obj0 = 0 ; - GoUint8 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_has_key",&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_ArgError(res), "in method '" "SKY_map_has_key" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint8)SKY_map_has_key(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_map_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_map_close")) SWIG_fail; - result = (GoUint32)SKY_map_close(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_EnableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_EnableColors(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_logging_DisableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_DisableColors")) SWIG_fail; - result = (GoUint32)SKY_logging_DisableColors(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_logging_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)":SKY_logging_Disable")) SWIG_fail; - result = (GoUint32)SKY_logging_Disable(); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; - GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - Handle temp2 ; - unsigned long long val3 ; - int ecode3 = 0 ; - Handle temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - arg4 = &temp4; - } - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GenerateWallet",&obj0,&obj1)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_cli_GenerateWallet" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_cli_GenerateWallet" "', argument " "3"" of type '" "GoUint64""'"); - } - arg3 = (GoUint64)(val3); - result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); - } - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString temp1 ; - GoUint32 result; - - { - temp1.p = NULL; - temp1.n = 0; - arg1 = (GoString_ *)&temp1; - } - if (!PyArg_ParseTuple(args,(char *)":SKY_cli_MakeAlphanumericSeed")) SWIG_fail; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); - free( (void*)arg1->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Signature_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Signature *arg1 = (Signature *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Signature_Print",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Signature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Signature_Print" "', argument " "1"" of type '" "Signature *""'"); - } - arg1 = (Signature *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Signature_Print" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Signature_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Signature *arg1 = (Signature *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number *arg3 = (Number *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - GoUint8 temp4 ; - int res4 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - arg4 = &temp4; - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1go_Signature_Verify",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Signature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Signature_Verify" "', argument " "1"" of type '" "Signature *""'"); - } - arg1 = (Signature *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Signature_Verify" "', argument " "2"" of type '" "secp256k1go__XY *""'"); - } - arg2 = (secp256k1go__XY *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_Signature_Verify" "', argument " "3"" of type '" "Number *""'"); - } - arg3 = (Number *)(argp3); - result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res4)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); - } else { - int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Signature_Recover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Signature *arg1 = (Signature *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number *arg3 = (Number *) 0 ; - GoInt arg4 ; - GoUint8 *arg5 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - long long val4 ; - int ecode4 = 0 ; - GoUint8 temp5 ; - int res5 = 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_secp256k1go_Signature_Recover",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Signature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Signature_Recover" "', argument " "1"" of type '" "Signature *""'"); - } - arg1 = (Signature *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Signature_Recover" "', argument " "2"" of type '" "secp256k1go__XY *""'"); - } - arg2 = (secp256k1go__XY *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_Signature_Recover" "', argument " "3"" of type '" "Number *""'"); - } - arg3 = (Number *)(argp3); - ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_secp256k1go_Signature_Recover" "', argument " "4"" of type '" "GoInt""'"); - } - arg4 = (GoInt)(val4); - result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res5)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); - } else { - int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Signature_Sign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Signature *arg1 = (Signature *) 0 ; - Number *arg2 = (Number *) 0 ; - Number *arg3 = (Number *) 0 ; - Number *arg4 = (Number *) 0 ; - GoInt *arg5 = (GoInt *) 0 ; - GoInt *arg6 = (GoInt *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - GoInt temp5 ; - int res5 = SWIG_TMPOBJ ; - GoInt temp6 ; - int res6 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - GoUint32 result; - - arg5 = &temp5; - arg6 = &temp6; - if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_secp256k1go_Signature_Sign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Signature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Signature_Sign" "', argument " "1"" of type '" "Signature *""'"); - } - arg1 = (Signature *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_Signature_Sign" "', argument " "2"" of type '" "Number *""'"); - } - arg2 = (Number *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_Signature_Sign" "', argument " "3"" of type '" "Number *""'"); - } - arg3 = (Number *)(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_secp256k1go_Signature_Sign" "', argument " "4"" of type '" "Number *""'"); - } - arg4 = (Number *)(argp4); - result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res5)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); - } else { - int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_long_long, new_flags)); - } - if (SWIG_IsTmpObj(res6)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); - } else { - int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Signature_ParseBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Signature *arg1 = (Signature *) 0 ; - GoSlice arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Signature_ParseBytes",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Signature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Signature_ParseBytes" "', argument " "1"" of type '" "Signature *""'"); - } - arg1 = (Signature *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Signature_ParseBytes" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Signature_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Signature *arg1 = (Signature *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_Signature_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Signature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Signature_Bytes" "', argument " "1"" of type '" "Signature *""'"); - } - arg1 = (Signature *)(argp1); - result = (GoUint32)SKY_secp256k1go_Signature_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_secp256k1go_Number_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Number *arg1 = (Number *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Number_Print",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Number_Print" "', argument " "1"" of type '" "Number *""'"); - } - arg1 = (Number *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Number_Print" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Number_SetHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Number *arg1 = (Number *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_Number_SetHex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Number_SetHex" "', argument " "1"" of type '" "Number *""'"); - } - arg1 = (Number *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_Number_SetHex" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_Number_IsOdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Number *arg1 = (Number *) 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_secp256k1go_Number_IsOdd",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Number, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_Number_IsOdd" "', argument " "1"" of type '" "Number *""'"); - } - arg1 = (Number *)(argp1); - result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - if (SWIG_IsTmpObj(res2)) { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); - } else { - int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint8 arg4 ; - GoString arg5 ; - GoString arg6 ; - GoUint64 arg7 ; - Options__Handle *arg8 = (Options__Handle *) 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - unsigned long long val7 ; - int ecode7 = 0 ; - Handle temp8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - GoUint32 result; - - { - arg8 = &temp8; - } - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:SKY_wallet_CreateOptionsHandle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "2"" of type '" "(TYPEMAP, 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_ArgError(res), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "3"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "5"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&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_ArgError(res), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "6"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg6)->p = buffer; - (&arg6)->n = size - 1; - } - ecode7 = SWIG_AsVal_unsigned_SS_long_SS_long(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "7"" of type '" "GoUint64""'"); - } - arg7 = (GoUint64)(val7); - result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg8)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoString arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XY_Print",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_Print" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_XY_Print" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_ParsePubkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoSlice arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoUint8 temp3 ; - int res3 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - arg3 = &temp3; - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XY_ParsePubkey",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_ParsePubkey" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_secp256k1go_XY_ParsePubkey" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->data = buffer; - (&arg2)->len = size - 1; - (&arg2)->cap = size; - } - result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(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_secp256k1go_XY_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_XY_Bytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_Bytes" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (GoUint32)SKY_secp256k1go_XY_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_secp256k1go_XY_BytesUncompressed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_XY_BytesUncompressed",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_BytesUncompressed" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(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_secp256k1go_XY_SetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 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_secp256k1go_XY_SetXY",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_SetXY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XY_SetXY" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_secp256k1go_XY_SetXY" "', argument " "3"" of type '" "secp256k1go__Field *""'"); - } - arg3 = (secp256k1go__Field *)(argp3); - result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 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_secp256k1go_XY_IsValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_IsValid" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (GoUint32)SKY_secp256k1go_XY_IsValid(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_secp256k1go_XY_SetXYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XY_SetXYZ",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_SetXYZ" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XY_SetXYZ" "', argument " "2"" of type '" "secp256k1go__XYZ *""'"); - } - arg2 = (secp256k1go__XYZ *)(argp2); - result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_Neg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XY_Neg",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_Neg" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XY_Neg" "', argument " "2"" of type '" "secp256k1go__XY *""'"); - } - arg2 = (secp256k1go__XY *)(argp2); - result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_SetXO(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned char val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_secp256k1go_XY_SetXO",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_SetXO" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XY_SetXO" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_secp256k1go_XY_SetXO" "', argument " "3"" of type '" "GoUint8""'"); - } - arg3 = (GoUint8)(val3); - result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_AddXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SKY_secp256k1go_XY_AddXY",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_AddXY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_secp256k1go_XY_AddXY" "', argument " "2"" of type '" "secp256k1go__XY *""'"); - } - arg2 = (secp256k1go__XY *)(argp2); - result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_secp256k1go_XY_GetPublicKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - GoSlice_ temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.data = NULL; - temp2.len = 0; - temp2.cap = 0; - arg2 = (coin__UxArray *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_secp256k1go_XY_GetPublicKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_secp256k1go_XY_GetPublicKey" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); - free( (void*)arg2->data ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Entry_Verify",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Entry_Verify" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Entry_VerifyPublic",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Entry_VerifyPublic" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString temp2 ; - PyObject * obj0 = 0 ; - GoUint32 result; - - { - temp2.p = NULL; - temp2.n = 0; - arg2 = (GoString_ *)&temp2; - } - if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_CryptoTypeFromString",&obj0)) SWIG_fail; - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SKY_wallet_CryptoTypeFromString" "', argument " "1"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg1)->p = buffer; - (&arg1)->n = size - 1; - } - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - { - resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); - free( (void*)arg2->p ); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_isEqual(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_isEqual",&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_isEqual" "', 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_isEqual" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - result = (int)cipher__Address_isEqual(arg1,arg2); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_set" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__Address_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); - } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_get" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint8_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address_Key_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_set" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)20; ++ii) *(unsigned char *)&arg1->Key[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_Key_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_get" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - result = (GoUint8_ *) ((arg1)->Key); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cipher__Address")) SWIG_fail; - result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cipher__Address *arg1 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__Address" "', argument " "1"" of type '" "cipher__Address *""'"); - } - arg1 = (cipher__Address *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cipher__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cipher__Address, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_chacha20poly1305__chacha20poly1305_key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - chacha20poly1305__chacha20poly1305 *arg1 = (chacha20poly1305__chacha20poly1305 *) 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:chacha20poly1305__chacha20poly1305_key_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_chacha20poly1305__chacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chacha20poly1305__chacha20poly1305_key_set" "', argument " "1"" of type '" "chacha20poly1305__chacha20poly1305 *""'"); - } - arg1 = (chacha20poly1305__chacha20poly1305 *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "chacha20poly1305__chacha20poly1305_key_set" "', argument " "2"" of type '" "GoUint8_ [32]""'"); - } - arg2 = (GoUint8_ *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(GoUint8_ *)&arg1->key[ii] = *((GoUint8_ *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""key""' of type '""GoUint8_ [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_chacha20poly1305__chacha20poly1305_key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - chacha20poly1305__chacha20poly1305 *arg1 = (chacha20poly1305__chacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:chacha20poly1305__chacha20poly1305_key_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_chacha20poly1305__chacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chacha20poly1305__chacha20poly1305_key_get" "', argument " "1"" of type '" "chacha20poly1305__chacha20poly1305 *""'"); - } - arg1 = (chacha20poly1305__chacha20poly1305 *)(argp1); - result = (GoUint8_ *)(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_chacha20poly1305__chacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - chacha20poly1305__chacha20poly1305 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_chacha20poly1305__chacha20poly1305")) SWIG_fail; - result = (chacha20poly1305__chacha20poly1305 *)calloc(1, sizeof(chacha20poly1305__chacha20poly1305)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_chacha20poly1305__chacha20poly1305, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_chacha20poly1305__chacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - chacha20poly1305__chacha20poly1305 *arg1 = (chacha20poly1305__chacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_chacha20poly1305__chacha20poly1305",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_chacha20poly1305__chacha20poly1305, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_chacha20poly1305__chacha20poly1305" "', argument " "1"" of type '" "chacha20poly1305__chacha20poly1305 *""'"); - } - arg1 = (chacha20poly1305__chacha20poly1305 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *chacha20poly1305__chacha20poly1305_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_chacha20poly1305__chacha20poly1305, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_encoder__coder_buf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__coder *arg1 = (encoder__coder *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encoder__coder_buf_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__coder, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__coder_buf_set" "', argument " "1"" of type '" "encoder__coder *""'"); - } - arg1 = (encoder__coder *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encoder__coder_buf_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encoder__coder_buf_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->buf = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encoder__coder_buf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__coder *arg1 = (encoder__coder *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encoder__coder_buf_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__coder, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__coder_buf_get" "', argument " "1"" of type '" "encoder__coder *""'"); - } - arg1 = (encoder__coder *)(argp1); - result = ((arg1)->buf); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_encoder__coder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__coder *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_encoder__coder")) SWIG_fail; - result = (encoder__coder *)calloc(1, sizeof(encoder__coder)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encoder__coder, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_encoder__coder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__coder *arg1 = (encoder__coder *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_encoder__coder",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__coder, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encoder__coder" "', argument " "1"" of type '" "encoder__coder *""'"); - } - arg1 = (encoder__coder *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *encoder__coder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_encoder__coder, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_encoder__StructField_Name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encoder__StructField_Name_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Name_set" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "encoder__StructField_Name_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Name = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encoder__StructField_Name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encoder__StructField_Name_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Name_get" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - result = ((arg1)->Name); - 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_encoder__StructField_Kind_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encoder__StructField_Kind_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Kind_set" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encoder__StructField_Kind_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Kind = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encoder__StructField_Kind_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encoder__StructField_Kind_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Kind_get" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - result = (GoUint32_) ((arg1)->Kind); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encoder__StructField_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encoder__StructField_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Type_set" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "encoder__StructField_Type_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encoder__StructField_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encoder__StructField_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Type_get" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - result = ((arg1)->Type); - 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_encoder__StructField_Tag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encoder__StructField_Tag_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Tag_set" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "encoder__StructField_Tag_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Tag = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encoder__StructField_Tag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encoder__StructField_Tag_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encoder__StructField_Tag_get" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - result = ((arg1)->Tag); - 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_encoder__StructField(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_encoder__StructField")) SWIG_fail; - result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encoder__StructField, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_encoder__StructField(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_encoder__StructField",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encoder__StructField, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encoder__StructField" "', argument " "1"" of type '" "encoder__StructField *""'"); - } - arg1 = (encoder__StructField *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *encoder__StructField_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_encoder__StructField, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_N_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->N = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_N_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_R_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->R = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_R_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->R); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_P_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->P = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_P_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->P); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_KeyLen_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->KeyLen = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_KeyLen_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - result = (GoInt_) ((arg1)->KeyLen); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_encrypt__ScryptChacha20poly1305")) SWIG_fail; - result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_encrypt__ScryptChacha20poly1305",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encrypt__ScryptChacha20poly1305" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); - } - arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *encrypt__ScryptChacha20poly1305_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_encrypt__meta_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__meta_N_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_N_set" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__meta_N_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->N = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__meta_N_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_N_get" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_R_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__meta_R_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_R_set" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__meta_R_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->R = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_R_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__meta_R_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_R_get" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - result = (GoInt_) ((arg1)->R); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_P_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__meta_P_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_P_set" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__meta_P_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->P = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_P_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__meta_P_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_P_get" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - result = (GoInt_) ((arg1)->P); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_KeyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__meta_KeyLen_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_KeyLen_set" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__meta_KeyLen_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->KeyLen = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_KeyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__meta_KeyLen_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_KeyLen_get" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - result = (GoInt_) ((arg1)->KeyLen); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_Salt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__meta_Salt_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_Salt_set" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encrypt__meta_Salt_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encrypt__meta_Salt_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Salt = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_Salt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__meta_Salt_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_Salt_get" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - result = ((arg1)->Salt); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_Nonce_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__meta_Nonce_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_Nonce_set" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encrypt__meta_Nonce_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encrypt__meta_Nonce_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Nonce = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_encrypt__meta_Nonce_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:encrypt__meta_Nonce_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__meta_Nonce_get" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - result = ((arg1)->Nonce); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_encrypt__meta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_encrypt__meta")) SWIG_fail; - result = (encrypt__meta *)calloc(1, sizeof(encrypt__meta)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encrypt__meta, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_encrypt__meta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__meta *arg1 = (encrypt__meta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_encrypt__meta",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__meta, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encrypt__meta" "', argument " "1"" of type '" "encrypt__meta *""'"); - } - arg1 = (encrypt__meta *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *encrypt__meta_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_encrypt__meta, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_encrypt__Sha256Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__Sha256Xor *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_encrypt__Sha256Xor")) SWIG_fail; - result = (encrypt__Sha256Xor *)calloc(1, sizeof(encrypt__Sha256Xor)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encrypt__Sha256Xor, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_encrypt__Sha256Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - encrypt__Sha256Xor *arg1 = (encrypt__Sha256Xor *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_encrypt__Sha256Xor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__Sha256Xor, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encrypt__Sha256Xor" "', argument " "1"" of type '" "encrypt__Sha256Xor *""'"); - } - arg1 = (encrypt__Sha256Xor *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *encrypt__Sha256Xor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_encrypt__Sha256Xor, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__Field_n_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_set" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__Field_n_set" "', argument " "2"" of type '" "GoUint32_ [10]""'"); - } - arg2 = (GoUint32_ *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)10; ++ii) *(GoUint32_ *)&arg1->n[ii] = *((GoUint32_ *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""n""' of type '""GoUint32_ [10]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__Field_n_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_get" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__Field")) SWIG_fail; - result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__Field",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__Field" "', argument " "1"" of type '" "secp256k1go__Field *""'"); - } - arg1 = (secp256k1go__Field *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *secp256k1go__Field_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__Field, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_X_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->X = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_X_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->X); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_Y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_Y_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Y = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_Y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_Infinity_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "secp256k1go__XY_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Infinity = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_Infinity_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - result = ((arg1)->Infinity); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__XY")) SWIG_fail; - result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__XY, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__XY",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); - } - arg1 = (secp256k1go__XY *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *secp256k1go__XY_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__XY, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_X_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->X = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_X_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->X); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Y = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Z_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); - } - arg2 = (secp256k1go__Field *)(argp2); - if (arg1) (arg1)->Z = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - secp256k1go__Field *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Z_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = (secp256k1go__Field *)& ((arg1)->Z); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Infinity_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Infinity = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Infinity_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - result = ((arg1)->Infinity); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__XYZ")) SWIG_fail; - result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__XYZ, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__XYZ",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XYZ" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); - } - arg1 = (secp256k1go__XYZ *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *secp256k1go__XYZ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__XYZ, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__SortableTransactions_Txns_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - coin__Transactions arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SortableTransactions_Txns_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SortableTransactions_Txns_set" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SortableTransactions_Txns_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__SortableTransactions_Txns_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } else { - arg2 = *((coin__Transactions *)(argp2)); - } - } - if (arg1) (arg1)->Txns = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SortableTransactions_Txns_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transactions result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SortableTransactions_Txns_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SortableTransactions_Txns_get" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - result = ((arg1)->Txns); - resultobj = SWIG_NewPointerObj((coin__Transactions *)memcpy((coin__Transactions *)calloc(1,sizeof(coin__Transactions)),&result,sizeof(coin__Transactions)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SortableTransactions_Fees_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SortableTransactions_Fees_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SortableTransactions_Fees_set" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SortableTransactions_Fees_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__SortableTransactions_Fees_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Fees = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SortableTransactions_Fees_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SortableTransactions_Fees_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SortableTransactions_Fees_get" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - result = ((arg1)->Fees); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SortableTransactions_Hashes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SortableTransactions_Hashes_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SortableTransactions_Hashes_set" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SortableTransactions_Hashes_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__SortableTransactions_Hashes_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Hashes = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SortableTransactions_Hashes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SortableTransactions_Hashes_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SortableTransactions_Hashes_get" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - result = ((arg1)->Hashes); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__SortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__SortableTransactions")) SWIG_fail; - result = (coin__SortableTransactions *)calloc(1, sizeof(coin__SortableTransactions)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__SortableTransactions, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__SortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__SortableTransactions",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SortableTransactions, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__SortableTransactions" "', argument " "1"" of type '" "coin__SortableTransactions *""'"); - } - arg1 = (coin__SortableTransactions *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__SortableTransactions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__SortableTransactions, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__Transaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Length_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->Length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = (GoInt32_) ((arg1)->Length); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - signed char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - ecode2 = SWIG_AsVal_signed_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Type_set" "', argument " "2"" of type '" "GoInt8_""'"); - } - arg2 = (GoInt8_)(val2); - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = (GoInt8_) ((arg1)->Type); - resultobj = SWIG_From_signed_SS_char((signed char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_InnerHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_InnerHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->InnerHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""InnerHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_InnerHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = (GoUint8_ *) ((arg1)->InnerHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Sigs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Sigs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = ((arg1)->Sigs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_In_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->In = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_In_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = ((arg1)->In); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_set" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Out = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Transaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_get" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - result = ((arg1)->Out); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__Transaction")) SWIG_fail; - result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Transaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__Transaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Transaction" "', argument " "1"" of type '" "coin__Transaction *""'"); - } - arg1 = (coin__Transaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__Transaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__Transaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__TransactionOutput_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__TransactionOutput_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__TransactionOutput")) SWIG_fail; - result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__TransactionOutput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__TransactionOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__TransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); - } - arg1 = (coin__TransactionOutput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__TransactionOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__TransactionOutput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__HashPair_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__HashPair *arg1 = (coin__HashPair *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__HashPair_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__HashPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__HashPair_Hash_set" "', argument " "1"" of type '" "coin__HashPair *""'"); - } - arg1 = (coin__HashPair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__HashPair_Hash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Hash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Hash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__HashPair_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__HashPair *arg1 = (coin__HashPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__HashPair_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__HashPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__HashPair_Hash_get" "', argument " "1"" of type '" "coin__HashPair *""'"); - } - arg1 = (coin__HashPair *)(argp1); - result = (GoUint8_ *) ((arg1)->Hash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__HashPair_PreHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__HashPair *arg1 = (coin__HashPair *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__HashPair_PreHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__HashPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__HashPair_PreHash_set" "', argument " "1"" of type '" "coin__HashPair *""'"); - } - arg1 = (coin__HashPair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__HashPair_PreHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->PreHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""PreHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__HashPair_PreHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__HashPair *arg1 = (coin__HashPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__HashPair_PreHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__HashPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__HashPair_PreHash_get" "', argument " "1"" of type '" "coin__HashPair *""'"); - } - arg1 = (coin__HashPair *)(argp1); - result = (GoUint8_ *) ((arg1)->PreHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__HashPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__HashPair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__HashPair")) SWIG_fail; - result = (coin__HashPair *)calloc(1, sizeof(coin__HashPair)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__HashPair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__HashPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__HashPair *arg1 = (coin__HashPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__HashPair",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__HashPair, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__HashPair" "', argument " "1"" of type '" "coin__HashPair *""'"); - } - arg1 = (coin__HashPair *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__HashPair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__HashPair, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Version_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint32_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Fee_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Fee_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Fee = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Fee_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Fee); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_PrevHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->PrevHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""PrevHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_PrevHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->PrevHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_BodyHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->BodyHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BodyHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_BodyHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->BodyHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_UxHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->UxHash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""UxHash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_UxHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - result = (GoUint8_ *) ((arg1)->UxHash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__BlockHeader")) SWIG_fail; - result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__BlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); - } - arg1 = (coin__BlockHeader *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__BlockHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__BlockHeader, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockBody_Transactions_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_set" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockBody_Transactions_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__BlockBody_Transactions_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } else { - arg2 = *((coin__Transactions *)(argp2)); - } - } - if (arg1) (arg1)->Transactions = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transactions result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockBody_Transactions_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_get" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - result = ((arg1)->Transactions); - resultobj = SWIG_NewPointerObj((coin__Transactions *)memcpy((coin__Transactions *)calloc(1,sizeof(coin__Transactions)),&result,sizeof(coin__Transactions)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__BlockBody")) SWIG_fail; - result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockBody, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__BlockBody",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockBody" "', argument " "1"" of type '" "coin__BlockBody *""'"); - } - arg1 = (coin__BlockBody *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__BlockBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__BlockBody, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__Block_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Block_Head_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_set" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Head_set" "', argument " "2"" of type '" "coin__BlockHeader *""'"); - } - arg2 = (coin__BlockHeader *)(argp2); - if (arg1) (arg1)->Head = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Block_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Block_Head_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_get" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - result = (coin__BlockHeader *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Block_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__Block_Body_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_set" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Body_set" "', argument " "2"" of type '" "coin__BlockBody *""'"); - } - arg2 = (coin__BlockBody *)(argp2); - if (arg1) (arg1)->Body = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__Block_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__BlockBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__Block_Body_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_get" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - result = (coin__BlockBody *)& ((arg1)->Body); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockBody, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__Block")) SWIG_fail; - result = (coin__Block *)calloc(1, sizeof(coin__Block)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__Block *arg1 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__Block",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Block" "', argument " "1"" of type '" "coin__Block *""'"); - } - arg1 = (coin__Block *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__Block_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__Block, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *arg2 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SignedBlock__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Block, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "2"" of type '" "coin__Block *""'"); - } - arg2 = (coin__Block *)(argp2); - if (arg1) (arg1)->_unnamed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Block *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SignedBlock__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - result = (coin__Block *)& ((arg1)->_unnamed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__SignedBlock_Sig_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock_Sig_set" "', argument " "2"" of type '" "unsigned char [65]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)65; ++ii) *(unsigned char *)&arg1->Sig[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Sig""' of type '""unsigned char [65]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__SignedBlock_Sig_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - result = (GoUint8_ *) ((arg1)->Sig); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__SignedBlock")) SWIG_fail; - result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__SignedBlock, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__SignedBlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__SignedBlock" "', argument " "1"" of type '" "coin__SignedBlock *""'"); - } - arg1 = (coin__SignedBlock *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__SignedBlock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__SignedBlock, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__UxHead_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxHead_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_set" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxHead_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxHead_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_get" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxHead_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_set" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxHead_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_get" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__UxHead")) SWIG_fail; - result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxHead",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxHead" "', argument " "1"" of type '" "coin__UxHead *""'"); - } - arg1 = (coin__UxHead *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__UxHead_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxHead, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_SrcTransaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->SrcTransaction[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SrcTransaction""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_SrcTransaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint8_ *) ((arg1)->SrcTransaction); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxBody_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxBody_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_set" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxBody_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_get" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__UxBody")) SWIG_fail; - result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxBody",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxBody" "', argument " "1"" of type '" "coin__UxBody *""'"); - } - arg1 = (coin__UxBody *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__UxBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxBody, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *arg2 = (coin__UxHead *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut_Head_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_set" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxHead, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut_Head_set" "', argument " "2"" of type '" "coin__UxHead *""'"); - } - arg2 = (coin__UxHead *)(argp2); - if (arg1) (arg1)->Head = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__UxHead *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxOut_Head_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_get" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - result = (coin__UxHead *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *arg2 = (coin__UxBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut_Body_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_set" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxBody, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut_Body_set" "', argument " "2"" of type '" "coin__UxBody *""'"); - } - arg2 = (coin__UxBody *)(argp2); - if (arg1) (arg1)->Body = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_coin__UxOut_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__UxBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:coin__UxOut_Body_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_get" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - result = (coin__UxBody *)& ((arg1)->Body); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_coin__UxOut")) SWIG_fail; - result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxOut" "', argument " "1"" of type '" "coin__UxOut *""'"); - } - arg1 = (coin__UxOut *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *coin__UxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxOut, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_consensus__BlockStatQueue_queue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockStatQueue *arg1 = (consensus__BlockStatQueue *) 0 ; - consensus__PriorityQueue arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:consensus__BlockStatQueue_queue_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockStatQueue, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockStatQueue_queue_set" "', argument " "1"" of type '" "consensus__BlockStatQueue *""'"); - } - arg1 = (consensus__BlockStatQueue *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consensus__BlockStatQueue_queue_set" "', argument " "2"" of type '" "consensus__PriorityQueue""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "consensus__BlockStatQueue_queue_set" "', argument " "2"" of type '" "consensus__PriorityQueue""'"); - } else { - arg2 = *((consensus__PriorityQueue *)(argp2)); - } - } - if (arg1) (arg1)->queue = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_consensus__BlockStatQueue_queue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockStatQueue *arg1 = (consensus__BlockStatQueue *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - consensus__PriorityQueue result; - - if (!PyArg_ParseTuple(args,(char *)"O:consensus__BlockStatQueue_queue_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockStatQueue, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockStatQueue_queue_get" "', argument " "1"" of type '" "consensus__BlockStatQueue *""'"); - } - arg1 = (consensus__BlockStatQueue *)(argp1); - result = ((arg1)->queue); - resultobj = SWIG_NewPointerObj((consensus__PriorityQueue *)memcpy((consensus__PriorityQueue *)calloc(1,sizeof(consensus__PriorityQueue)),&result,sizeof(consensus__PriorityQueue)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_consensus__BlockStatQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockStatQueue *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_consensus__BlockStatQueue")) SWIG_fail; - result = (consensus__BlockStatQueue *)calloc(1, sizeof(consensus__BlockStatQueue)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_consensus__BlockStatQueue, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_consensus__BlockStatQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockStatQueue *arg1 = (consensus__BlockStatQueue *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_consensus__BlockStatQueue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockStatQueue, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_consensus__BlockStatQueue" "', argument " "1"" of type '" "consensus__BlockStatQueue *""'"); - } - arg1 = (consensus__BlockStatQueue *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *consensus__BlockStatQueue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_consensus__BlockStatQueue, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_consensus__BlockBase_Sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 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:consensus__BlockBase_Sig_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockBase_Sig_set" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consensus__BlockBase_Sig_set" "', argument " "2"" of type '" "unsigned char [65]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)65; ++ii) *(unsigned char *)&arg1->Sig[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Sig""' of type '""unsigned char [65]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_consensus__BlockBase_Sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:consensus__BlockBase_Sig_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockBase_Sig_get" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - result = (GoUint8_ *) ((arg1)->Sig); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_consensus__BlockBase_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 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:consensus__BlockBase_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockBase_Hash_set" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consensus__BlockBase_Hash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Hash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Hash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_consensus__BlockBase_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:consensus__BlockBase_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockBase_Hash_get" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - result = (GoUint8_ *) ((arg1)->Hash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_consensus__BlockBase_Seqno_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:consensus__BlockBase_Seqno_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockBase_Seqno_set" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "consensus__BlockBase_Seqno_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Seqno = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_consensus__BlockBase_Seqno_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:consensus__BlockBase_Seqno_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "consensus__BlockBase_Seqno_get" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - result = (GoUint64_) ((arg1)->Seqno); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_consensus__BlockBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_consensus__BlockBase")) SWIG_fail; - result = (consensus__BlockBase *)calloc(1, sizeof(consensus__BlockBase)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_consensus__BlockBase, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_consensus__BlockBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - consensus__BlockBase *arg1 = (consensus__BlockBase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_consensus__BlockBase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_consensus__BlockBase, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_consensus__BlockBase" "', argument " "1"" of type '" "consensus__BlockBase *""'"); - } - arg1 = (consensus__BlockBase *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *consensus__BlockBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_consensus__BlockBase, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:httphelper__Address__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_set" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "httphelper__Address__unnamed_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->_unnamed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:httphelper__Address__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_get" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - result = (cipher__Address *)& ((arg1)->_unnamed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_httphelper__Address")) SWIG_fail; - result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_httphelper__Address, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_httphelper__Address",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_httphelper__Address" "', argument " "1"" of type '" "httphelper__Address *""'"); - } - arg1 = (httphelper__Address *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *httphelper__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_httphelper__Address, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_InfoLevelStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_InfoLevelStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_InfoLevelStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_InfoLevelStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->InfoLevelStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_InfoLevelStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_InfoLevelStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_InfoLevelStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->InfoLevelStyle); - 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_logging__ColorScheme_WarnLevelStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_WarnLevelStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_WarnLevelStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_WarnLevelStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->WarnLevelStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_WarnLevelStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_WarnLevelStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_WarnLevelStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->WarnLevelStyle); - 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_logging__ColorScheme_ErrorLevelStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_ErrorLevelStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_ErrorLevelStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_ErrorLevelStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ErrorLevelStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_ErrorLevelStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_ErrorLevelStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_ErrorLevelStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->ErrorLevelStyle); - 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_logging__ColorScheme_FatalLevelStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_FatalLevelStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_FatalLevelStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_FatalLevelStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->FatalLevelStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_FatalLevelStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_FatalLevelStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_FatalLevelStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->FatalLevelStyle); - 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_logging__ColorScheme_PanicLevelStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_PanicLevelStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_PanicLevelStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_PanicLevelStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->PanicLevelStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_PanicLevelStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_PanicLevelStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_PanicLevelStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->PanicLevelStyle); - 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_logging__ColorScheme_DebugLevelStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_DebugLevelStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_DebugLevelStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_DebugLevelStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->DebugLevelStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_DebugLevelStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_DebugLevelStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_DebugLevelStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->DebugLevelStyle); - 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_logging__ColorScheme_PrefixStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_PrefixStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_PrefixStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_PrefixStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->PrefixStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_PrefixStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_PrefixStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_PrefixStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->PrefixStyle); - 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_logging__ColorScheme_TimestampStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_TimestampStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_TimestampStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_TimestampStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TimestampStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_TimestampStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_TimestampStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_TimestampStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->TimestampStyle); - 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_logging__ColorScheme_CallContextStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_CallContextStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_CallContextStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_CallContextStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->CallContextStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_CallContextStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_CallContextStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_CallContextStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->CallContextStyle); - 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_logging__ColorScheme_CriticalStyle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:logging__ColorScheme_CriticalStyle_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_CriticalStyle_set" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "logging__ColorScheme_CriticalStyle_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->CriticalStyle = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_logging__ColorScheme_CriticalStyle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:logging__ColorScheme_CriticalStyle_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "logging__ColorScheme_CriticalStyle_get" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - result = ((arg1)->CriticalStyle); - 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_logging__ColorScheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_logging__ColorScheme")) SWIG_fail; - result = (logging__ColorScheme *)calloc(1, sizeof(logging__ColorScheme)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_logging__ColorScheme, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_logging__ColorScheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - logging__ColorScheme *arg1 = (logging__ColorScheme *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_logging__ColorScheme",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_logging__ColorScheme, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_logging__ColorScheme" "', argument " "1"" of type '" "logging__ColorScheme *""'"); - } - arg1 = (logging__ColorScheme *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *logging__ColorScheme_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_logging__ColorScheme, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__BlockchainConfig_Arbitrating_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainConfig *arg1 = (visor__BlockchainConfig *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BlockchainConfig_Arbitrating_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainConfig_Arbitrating_set" "', argument " "1"" of type '" "visor__BlockchainConfig *""'"); - } - arg1 = (visor__BlockchainConfig *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__BlockchainConfig_Arbitrating_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__BlockchainConfig_Arbitrating_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Arbitrating = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainConfig_Arbitrating_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainConfig *arg1 = (visor__BlockchainConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BlockchainConfig_Arbitrating_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainConfig_Arbitrating_get" "', argument " "1"" of type '" "visor__BlockchainConfig *""'"); - } - arg1 = (visor__BlockchainConfig *)(argp1); - result = ((arg1)->Arbitrating); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainConfig_Pubkey_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainConfig *arg1 = (visor__BlockchainConfig *) 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:visor__BlockchainConfig_Pubkey_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainConfig_Pubkey_set" "', argument " "1"" of type '" "visor__BlockchainConfig *""'"); - } - arg1 = (visor__BlockchainConfig *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__BlockchainConfig_Pubkey_set" "', argument " "2"" of type '" "unsigned char [33]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)33; ++ii) *(unsigned char *)&arg1->Pubkey[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Pubkey""' of type '""unsigned char [33]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainConfig_Pubkey_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainConfig *arg1 = (visor__BlockchainConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BlockchainConfig_Pubkey_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainConfig_Pubkey_get" "', argument " "1"" of type '" "visor__BlockchainConfig *""'"); - } - arg1 = (visor__BlockchainConfig *)(argp1); - result = (GoUint8_ *) ((arg1)->Pubkey); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__BlockchainConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainConfig *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__BlockchainConfig")) SWIG_fail; - result = (visor__BlockchainConfig *)calloc(1, sizeof(visor__BlockchainConfig)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__BlockchainConfig, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__BlockchainConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainConfig *arg1 = (visor__BlockchainConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__BlockchainConfig",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainConfig, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__BlockchainConfig" "', argument " "1"" of type '" "visor__BlockchainConfig *""'"); - } - arg1 = (visor__BlockchainConfig *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__BlockchainConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__BlockchainConfig, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__sigHash_sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__sigHash *arg1 = (visor__sigHash *) 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:visor__sigHash_sig_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__sigHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__sigHash_sig_set" "', argument " "1"" of type '" "visor__sigHash *""'"); - } - arg1 = (visor__sigHash *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__sigHash_sig_set" "', argument " "2"" of type '" "unsigned char [65]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)65; ++ii) *(unsigned char *)&arg1->sig[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""sig""' of type '""unsigned char [65]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__sigHash_sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__sigHash *arg1 = (visor__sigHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__sigHash_sig_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__sigHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__sigHash_sig_get" "', argument " "1"" of type '" "visor__sigHash *""'"); - } - arg1 = (visor__sigHash *)(argp1); - result = (GoUint8_ *) ((arg1)->sig); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__sigHash_hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__sigHash *arg1 = (visor__sigHash *) 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:visor__sigHash_hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__sigHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__sigHash_hash_set" "', argument " "1"" of type '" "visor__sigHash *""'"); - } - arg1 = (visor__sigHash *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__sigHash_hash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->hash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""hash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__sigHash_hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__sigHash *arg1 = (visor__sigHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__sigHash_hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__sigHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__sigHash_hash_get" "', argument " "1"" of type '" "visor__sigHash *""'"); - } - arg1 = (visor__sigHash *)(argp1); - result = (GoUint8_ *) ((arg1)->hash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__sigHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__sigHash *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__sigHash")) SWIG_fail; - result = (visor__sigHash *)calloc(1, sizeof(visor__sigHash)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__sigHash, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__sigHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__sigHash *arg1 = (visor__sigHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__sigHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__sigHash, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__sigHash" "', argument " "1"" of type '" "visor__sigHash *""'"); - } - arg1 = (visor__sigHash *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__sigHash_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__sigHash, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__BuildInfo_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BuildInfo_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BuildInfo_Version_set" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__BuildInfo_Version_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BuildInfo_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BuildInfo_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BuildInfo_Version_get" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - result = ((arg1)->Version); - 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_visor__BuildInfo_Commit_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BuildInfo_Commit_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BuildInfo_Commit_set" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__BuildInfo_Commit_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Commit = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BuildInfo_Commit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BuildInfo_Commit_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BuildInfo_Commit_get" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - result = ((arg1)->Commit); - 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_visor__BuildInfo_Branch_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BuildInfo_Branch_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BuildInfo_Branch_set" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__BuildInfo_Branch_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Branch = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BuildInfo_Branch_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BuildInfo_Branch_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BuildInfo_Branch_get" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - result = ((arg1)->Branch); - 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_visor__BuildInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__BuildInfo")) SWIG_fail; - result = (visor__BuildInfo *)calloc(1, sizeof(visor__BuildInfo)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__BuildInfo, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__BuildInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BuildInfo *arg1 = (visor__BuildInfo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__BuildInfo",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BuildInfo, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__BuildInfo" "', argument " "1"" of type '" "visor__BuildInfo *""'"); - } - arg1 = (visor__BuildInfo *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__BuildInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__BuildInfo, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__addrsFilter_Addrs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__addrsFilter *arg1 = (visor__addrsFilter *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__addrsFilter_Addrs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__addrsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__addrsFilter_Addrs_set" "', argument " "1"" of type '" "visor__addrsFilter *""'"); - } - arg1 = (visor__addrsFilter *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__addrsFilter_Addrs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__addrsFilter_Addrs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Addrs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__addrsFilter_Addrs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__addrsFilter *arg1 = (visor__addrsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__addrsFilter_Addrs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__addrsFilter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__addrsFilter_Addrs_get" "', argument " "1"" of type '" "visor__addrsFilter *""'"); - } - arg1 = (visor__addrsFilter *)(argp1); - result = ((arg1)->Addrs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__addrsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__addrsFilter *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__addrsFilter")) SWIG_fail; - result = (visor__addrsFilter *)calloc(1, sizeof(visor__addrsFilter)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__addrsFilter, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__addrsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__addrsFilter *arg1 = (visor__addrsFilter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__addrsFilter",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__addrsFilter, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__addrsFilter" "', argument " "1"" of type '" "visor__addrsFilter *""'"); - } - arg1 = (visor__addrsFilter *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__addrsFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__addrsFilter, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_blockdb__ErrMissingSignature_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrMissingSignature *arg1 = (blockdb__ErrMissingSignature *) 0 ; - coin__Block *arg2 = (coin__Block *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:blockdb__ErrMissingSignature_b_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__ErrMissingSignature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blockdb__ErrMissingSignature_b_set" "', argument " "1"" of type '" "blockdb__ErrMissingSignature *""'"); - } - arg1 = (blockdb__ErrMissingSignature *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Block, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "blockdb__ErrMissingSignature_b_set" "', argument " "2"" of type '" "coin__Block *""'"); - } - arg2 = (coin__Block *)(argp2); - if (arg1) (arg1)->b = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_blockdb__ErrMissingSignature_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrMissingSignature *arg1 = (blockdb__ErrMissingSignature *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Block *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:blockdb__ErrMissingSignature_b_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__ErrMissingSignature, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blockdb__ErrMissingSignature_b_get" "', argument " "1"" of type '" "blockdb__ErrMissingSignature *""'"); - } - arg1 = (blockdb__ErrMissingSignature *)(argp1); - result = (coin__Block *) ((arg1)->b); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_blockdb__ErrMissingSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrMissingSignature *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__ErrMissingSignature")) SWIG_fail; - result = (blockdb__ErrMissingSignature *)calloc(1, sizeof(blockdb__ErrMissingSignature)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__ErrMissingSignature, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__ErrMissingSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrMissingSignature *arg1 = (blockdb__ErrMissingSignature *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__ErrMissingSignature",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__ErrMissingSignature, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__ErrMissingSignature" "', argument " "1"" of type '" "blockdb__ErrMissingSignature *""'"); - } - arg1 = (blockdb__ErrMissingSignature *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__ErrMissingSignature_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__ErrMissingSignature, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_blockdb__blockSigs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__blockSigs *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__blockSigs")) SWIG_fail; - result = (blockdb__blockSigs *)calloc(1, sizeof(blockdb__blockSigs)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__blockSigs, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__blockSigs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__blockSigs *arg1 = (blockdb__blockSigs *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__blockSigs",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__blockSigs, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__blockSigs" "', argument " "1"" of type '" "blockdb__blockSigs *""'"); - } - arg1 = (blockdb__blockSigs *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__blockSigs_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__blockSigs, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_blockdb__blockTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__blockTree *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__blockTree")) SWIG_fail; - result = (blockdb__blockTree *)calloc(1, sizeof(blockdb__blockTree)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__blockTree, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__blockTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__blockTree *arg1 = (blockdb__blockTree *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__blockTree",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__blockTree, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__blockTree" "', argument " "1"" of type '" "blockdb__blockTree *""'"); - } - arg1 = (blockdb__blockTree *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__blockTree_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__blockTree, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_blockdb__ErrUnspentNotExist_UxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrUnspentNotExist *arg1 = (blockdb__ErrUnspentNotExist *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:blockdb__ErrUnspentNotExist_UxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__ErrUnspentNotExist, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blockdb__ErrUnspentNotExist_UxID_set" "', argument " "1"" of type '" "blockdb__ErrUnspentNotExist *""'"); - } - arg1 = (blockdb__ErrUnspentNotExist *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "blockdb__ErrUnspentNotExist_UxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->UxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_blockdb__ErrUnspentNotExist_UxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrUnspentNotExist *arg1 = (blockdb__ErrUnspentNotExist *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:blockdb__ErrUnspentNotExist_UxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__ErrUnspentNotExist, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blockdb__ErrUnspentNotExist_UxID_get" "', argument " "1"" of type '" "blockdb__ErrUnspentNotExist *""'"); - } - arg1 = (blockdb__ErrUnspentNotExist *)(argp1); - result = ((arg1)->UxID); - 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_blockdb__ErrUnspentNotExist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrUnspentNotExist *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__ErrUnspentNotExist")) SWIG_fail; - result = (blockdb__ErrUnspentNotExist *)calloc(1, sizeof(blockdb__ErrUnspentNotExist)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__ErrUnspentNotExist, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__ErrUnspentNotExist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__ErrUnspentNotExist *arg1 = (blockdb__ErrUnspentNotExist *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__ErrUnspentNotExist",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__ErrUnspentNotExist, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__ErrUnspentNotExist" "', argument " "1"" of type '" "blockdb__ErrUnspentNotExist *""'"); - } - arg1 = (blockdb__ErrUnspentNotExist *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__ErrUnspentNotExist_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__ErrUnspentNotExist, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_blockdb__unspentMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__unspentMeta *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__unspentMeta")) SWIG_fail; - result = (blockdb__unspentMeta *)calloc(1, sizeof(blockdb__unspentMeta)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__unspentMeta, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__unspentMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__unspentMeta *arg1 = (blockdb__unspentMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__unspentMeta",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__unspentMeta, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__unspentMeta" "', argument " "1"" of type '" "blockdb__unspentMeta *""'"); - } - arg1 = (blockdb__unspentMeta *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__unspentMeta_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__unspentMeta, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_blockdb__pool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__pool *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__pool")) SWIG_fail; - result = (blockdb__pool *)calloc(1, sizeof(blockdb__pool)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__pool, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__pool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__pool *arg1 = (blockdb__pool *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__pool",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__pool, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__pool" "', argument " "1"" of type '" "blockdb__pool *""'"); - } - arg1 = (blockdb__pool *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__pool_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__pool, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_blockdb__poolAddrIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__poolAddrIndex *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_blockdb__poolAddrIndex")) SWIG_fail; - result = (blockdb__poolAddrIndex *)calloc(1, sizeof(blockdb__poolAddrIndex)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_blockdb__poolAddrIndex, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_blockdb__poolAddrIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - blockdb__poolAddrIndex *arg1 = (blockdb__poolAddrIndex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_blockdb__poolAddrIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_blockdb__poolAddrIndex, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_blockdb__poolAddrIndex" "', argument " "1"" of type '" "blockdb__poolAddrIndex *""'"); - } - arg1 = (blockdb__poolAddrIndex *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *blockdb__poolAddrIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_blockdb__poolAddrIndex, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ErrCorruptDB__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrCorruptDB *arg1 = (visor__ErrCorruptDB *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ErrCorruptDB__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrCorruptDB, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ErrCorruptDB__unnamed_set" "', argument " "1"" of type '" "visor__ErrCorruptDB *""'"); - } - arg1 = (visor__ErrCorruptDB *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ErrCorruptDB__unnamed_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->_unnamed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ErrCorruptDB__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrCorruptDB *arg1 = (visor__ErrCorruptDB *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ErrCorruptDB__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrCorruptDB, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ErrCorruptDB__unnamed_get" "', argument " "1"" of type '" "visor__ErrCorruptDB *""'"); - } - arg1 = (visor__ErrCorruptDB *)(argp1); - result = (GoInt32_) ((arg1)->_unnamed); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ErrCorruptDB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrCorruptDB *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ErrCorruptDB")) SWIG_fail; - result = (visor__ErrCorruptDB *)calloc(1, sizeof(visor__ErrCorruptDB)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ErrCorruptDB, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ErrCorruptDB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrCorruptDB *arg1 = (visor__ErrCorruptDB *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ErrCorruptDB",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrCorruptDB, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ErrCorruptDB" "', argument " "1"" of type '" "visor__ErrCorruptDB *""'"); - } - arg1 = (visor__ErrCorruptDB *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ErrCorruptDB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ErrCorruptDB, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_historydb__addressTxns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__addressTxns *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__addressTxns")) SWIG_fail; - result = (historydb__addressTxns *)calloc(1, sizeof(historydb__addressTxns)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__addressTxns, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__addressTxns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__addressTxns *arg1 = (historydb__addressTxns *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__addressTxns",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__addressTxns, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__addressTxns" "', argument " "1"" of type '" "historydb__addressTxns *""'"); - } - arg1 = (historydb__addressTxns *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__addressTxns_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__addressTxns, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_historydb__addressUx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__addressUx *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__addressUx")) SWIG_fail; - result = (historydb__addressUx *)calloc(1, sizeof(historydb__addressUx)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__addressUx, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__addressUx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__addressUx *arg1 = (historydb__addressUx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__addressUx",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__addressUx, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__addressUx" "', argument " "1"" of type '" "historydb__addressUx *""'"); - } - arg1 = (historydb__addressUx *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__addressUx_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__addressUx, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_historydb__historyMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__historyMeta *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__historyMeta")) SWIG_fail; - result = (historydb__historyMeta *)calloc(1, sizeof(historydb__historyMeta)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__historyMeta, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__historyMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__historyMeta *arg1 = (historydb__historyMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__historyMeta",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__historyMeta, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__historyMeta" "', argument " "1"" of type '" "historydb__historyMeta *""'"); - } - arg1 = (historydb__historyMeta *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__historyMeta_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__historyMeta, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_Uxid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_Uxid_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Uxid_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "historydb__UxOutJSON_Uxid_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Uxid = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_Uxid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_Uxid_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Uxid_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = ((arg1)->Uxid); - 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_historydb__UxOutJSON_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Time_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__UxOutJSON_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Time_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SrcBkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_SrcBkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SrcBkSeq_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__UxOutJSON_SrcBkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->SrcBkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SrcBkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_SrcBkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SrcBkSeq_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = (GoUint64_) ((arg1)->SrcBkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SrcTx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_SrcTx_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SrcTx_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "historydb__UxOutJSON_SrcTx_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->SrcTx = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SrcTx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_SrcTx_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SrcTx_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = ((arg1)->SrcTx); - 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_historydb__UxOutJSON_OwnerAddress_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_OwnerAddress_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_OwnerAddress_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "historydb__UxOutJSON_OwnerAddress_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->OwnerAddress = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_OwnerAddress_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_OwnerAddress_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_OwnerAddress_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = ((arg1)->OwnerAddress); - 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_historydb__UxOutJSON_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Coins_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__UxOutJSON_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Coins_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Hours_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__UxOutJSON_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_Hours_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SpentBlockSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_SpentBlockSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SpentBlockSeq_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__UxOutJSON_SpentBlockSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->SpentBlockSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SpentBlockSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_SpentBlockSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SpentBlockSeq_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = (GoUint64_) ((arg1)->SpentBlockSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SpentTxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOutJSON_SpentTxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SpentTxID_set" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "historydb__UxOutJSON_SpentTxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->SpentTxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOutJSON_SpentTxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOutJSON_SpentTxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOutJSON_SpentTxID_get" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - result = ((arg1)->SpentTxID); - 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_historydb__UxOutJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__UxOutJSON")) SWIG_fail; - result = (historydb__UxOutJSON *)calloc(1, sizeof(historydb__UxOutJSON)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__UxOutJSON, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__UxOutJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOutJSON *arg1 = (historydb__UxOutJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__UxOutJSON",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOutJSON, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__UxOutJSON" "', argument " "1"" of type '" "historydb__UxOutJSON *""'"); - } - arg1 = (historydb__UxOutJSON *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__UxOutJSON_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__UxOutJSON, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_historydb__UxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOuts *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__UxOuts")) SWIG_fail; - result = (historydb__UxOuts *)calloc(1, sizeof(historydb__UxOuts)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__UxOuts, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__UxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOuts *arg1 = (historydb__UxOuts *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__UxOuts",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOuts, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__UxOuts" "', argument " "1"" of type '" "historydb__UxOuts *""'"); - } - arg1 = (historydb__UxOuts *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__UxOuts_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__UxOuts, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_historydb__UxOut_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOut_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOut_Out_set" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "historydb__UxOut_Out_set" "', argument " "2"" of type '" "coin__UxOut *""'"); - } - arg2 = (coin__UxOut *)(argp2); - if (arg1) (arg1)->Out = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOut_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__UxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOut_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOut_Out_get" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - result = (coin__UxOut *)& ((arg1)->Out); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxOut, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOut_SpentTxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 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:historydb__UxOut_SpentTxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOut_SpentTxID_set" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "historydb__UxOut_SpentTxID_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->SpentTxID[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SpentTxID""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOut_SpentTxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOut_SpentTxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOut_SpentTxID_get" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - result = (GoUint8_ *) ((arg1)->SpentTxID); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOut_SpentBlockSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__UxOut_SpentBlockSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOut_SpentBlockSeq_set" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__UxOut_SpentBlockSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->SpentBlockSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__UxOut_SpentBlockSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__UxOut_SpentBlockSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__UxOut_SpentBlockSeq_get" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - result = (GoUint64_) ((arg1)->SpentBlockSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_historydb__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__UxOut")) SWIG_fail; - result = (historydb__UxOut *)calloc(1, sizeof(historydb__UxOut)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__UxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__UxOut *arg1 = (historydb__UxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__UxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__UxOut, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__UxOut" "', argument " "1"" of type '" "historydb__UxOut *""'"); - } - arg1 = (historydb__UxOut *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__UxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__UxOut, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_historydb__transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__transactions *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__transactions")) SWIG_fail; - result = (historydb__transactions *)calloc(1, sizeof(historydb__transactions)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__transactions, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__transactions *arg1 = (historydb__transactions *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__transactions",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__transactions, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__transactions" "', argument " "1"" of type '" "historydb__transactions *""'"); - } - arg1 = (historydb__transactions *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__transactions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__transactions, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_historydb__Transaction_Tx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__Transaction *arg1 = (historydb__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__Transaction_Tx_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__Transaction_Tx_set" "', argument " "1"" of type '" "historydb__Transaction *""'"); - } - arg1 = (historydb__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "historydb__Transaction_Tx_set" "', argument " "2"" of type '" "coin__Transaction *""'"); - } - arg2 = (coin__Transaction *)(argp2); - if (arg1) (arg1)->Tx = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__Transaction_Tx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__Transaction *arg1 = (historydb__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__Transaction_Tx_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__Transaction_Tx_get" "', argument " "1"" of type '" "historydb__Transaction *""'"); - } - arg1 = (historydb__Transaction *)(argp1); - result = (coin__Transaction *)& ((arg1)->Tx); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Transaction, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__Transaction_BlockSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__Transaction *arg1 = (historydb__Transaction *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:historydb__Transaction_BlockSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__Transaction_BlockSeq_set" "', argument " "1"" of type '" "historydb__Transaction *""'"); - } - arg1 = (historydb__Transaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "historydb__Transaction_BlockSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BlockSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_historydb__Transaction_BlockSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__Transaction *arg1 = (historydb__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:historydb__Transaction_BlockSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "historydb__Transaction_BlockSeq_get" "', argument " "1"" of type '" "historydb__Transaction *""'"); - } - arg1 = (historydb__Transaction *)(argp1); - result = (GoUint64_) ((arg1)->BlockSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_historydb__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_historydb__Transaction")) SWIG_fail; - result = (historydb__Transaction *)calloc(1, sizeof(historydb__Transaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_historydb__Transaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_historydb__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - historydb__Transaction *arg1 = (historydb__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_historydb__Transaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_historydb__Transaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_historydb__Transaction" "', argument " "1"" of type '" "historydb__Transaction *""'"); - } - arg1 = (historydb__Transaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *historydb__Transaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_historydb__Transaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionStatus_Confirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Confirmed_set" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__TransactionStatus_Confirmed_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__TransactionStatus_Confirmed_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Confirmed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionStatus_Confirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Confirmed_get" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - result = ((arg1)->Confirmed); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Unconfirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionStatus_Unconfirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Unconfirmed_set" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__TransactionStatus_Unconfirmed_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__TransactionStatus_Unconfirmed_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Unconfirmed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Unconfirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionStatus_Unconfirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Unconfirmed_get" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - result = ((arg1)->Unconfirmed); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionStatus_Height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Height_set" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__TransactionStatus_Height_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Height = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionStatus_Height_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Height_get" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - result = (GoUint64_) ((arg1)->Height); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_BlockSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionStatus_BlockSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_BlockSeq_set" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__TransactionStatus_BlockSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BlockSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_BlockSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionStatus_BlockSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_BlockSeq_get" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - result = (GoUint64_) ((arg1)->BlockSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Unknown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionStatus_Unknown_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Unknown_set" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__TransactionStatus_Unknown_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__TransactionStatus_Unknown_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Unknown = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionStatus_Unknown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionStatus_Unknown_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionStatus_Unknown_get" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - result = ((arg1)->Unknown); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__TransactionStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__TransactionStatus")) SWIG_fail; - result = (visor__TransactionStatus *)calloc(1, sizeof(visor__TransactionStatus)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__TransactionStatus, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__TransactionStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionStatus *arg1 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__TransactionStatus",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionStatus, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__TransactionStatus" "', argument " "1"" of type '" "visor__TransactionStatus *""'"); - } - arg1 = (visor__TransactionStatus *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__TransactionStatus_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__TransactionStatus, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionOutput_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionOutput_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Hash_set" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransactionOutput_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionOutput_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionOutput_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Hash_get" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - result = ((arg1)->Hash); - 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_visor__ReadableTransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionOutput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Address_set" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransactionOutput_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionOutput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Address_get" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - result = ((arg1)->Address); - 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_visor__ReadableTransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionOutput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Coins_set" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransactionOutput_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionOutput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Coins_get" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - result = ((arg1)->Coins); - 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_visor__ReadableTransactionOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionOutput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Hours_set" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableTransactionOutput_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionOutput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionOutput_Hours_get" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableTransactionOutput")) SWIG_fail; - result = (visor__ReadableTransactionOutput *)calloc(1, sizeof(visor__ReadableTransactionOutput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableTransactionOutput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionOutput *arg1 = (visor__ReadableTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableTransactionOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionOutput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableTransactionOutput" "', argument " "1"" of type '" "visor__ReadableTransactionOutput *""'"); - } - arg1 = (visor__ReadableTransactionOutput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableTransactionOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableTransactionOutput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionInput_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionInput_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Hash_set" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransactionInput_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionInput_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionInput_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Hash_get" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - result = ((arg1)->Hash); - 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_visor__ReadableTransactionInput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionInput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Address_set" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransactionInput_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionInput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionInput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Address_get" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - result = ((arg1)->Address); - 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_visor__ReadableTransactionInput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionInput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Coins_set" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransactionInput_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionInput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionInput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Coins_get" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - result = ((arg1)->Coins); - 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_visor__ReadableTransactionInput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransactionInput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Hours_set" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableTransactionInput_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransactionInput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransactionInput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransactionInput_Hours_get" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableTransactionInput")) SWIG_fail; - result = (visor__ReadableTransactionInput *)calloc(1, sizeof(visor__ReadableTransactionInput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableTransactionInput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransactionInput *arg1 = (visor__ReadableTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableTransactionInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransactionInput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableTransactionInput" "', argument " "1"" of type '" "visor__ReadableTransactionInput *""'"); - } - arg1 = (visor__ReadableTransactionInput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableTransactionInput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableTransactionInput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Hash_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableOutput_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Hash_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = ((arg1)->Hash); - 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_visor__ReadableOutput_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Time_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableOutput_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Time_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_BkSeq_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableOutput_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_BkSeq_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_SourceTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_SourceTransaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_SourceTransaction_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableOutput_SourceTransaction_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->SourceTransaction = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_SourceTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_SourceTransaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_SourceTransaction_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = ((arg1)->SourceTransaction); - 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_visor__ReadableOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Address_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableOutput_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Address_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = ((arg1)->Address); - 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_visor__ReadableOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Coins_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableOutput_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Coins_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = ((arg1)->Coins); - 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_visor__ReadableOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Hours_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableOutput_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_Hours_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_CalculatedHours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutput_CalculatedHours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_CalculatedHours_set" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableOutput_CalculatedHours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->CalculatedHours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutput_CalculatedHours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutput_CalculatedHours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutput_CalculatedHours_get" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - result = (GoUint64_) ((arg1)->CalculatedHours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableOutput")) SWIG_fail; - result = (visor__ReadableOutput *)calloc(1, sizeof(visor__ReadableOutput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableOutput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutput *arg1 = (visor__ReadableOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableOutput" "', argument " "1"" of type '" "visor__ReadableOutput *""'"); - } - arg1 = (visor__ReadableOutput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableOutput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_Length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Length_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableTransaction_Length_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_Length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Length_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = (GoUint32_) ((arg1)->Length); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 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:visor__ReadableTransaction_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Type_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableTransaction_Type_set" "', argument " "2"" of type '" "GoUint8_""'"); - } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Type_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = (GoUint8_) ((arg1)->Type); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Hash_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransaction_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Hash_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = ((arg1)->Hash); - 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_visor__ReadableTransaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_InnerHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_InnerHash_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableTransaction_InnerHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->InnerHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_InnerHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_InnerHash_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = ((arg1)->InnerHash); - 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_visor__ReadableTransaction_Timestamp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_Timestamp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Timestamp_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableTransaction_Timestamp_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Timestamp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Timestamp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_Timestamp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Timestamp_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = (GoUint64_) ((arg1)->Timestamp); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Sigs_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableTransaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableTransaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Sigs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_Sigs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Sigs_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = ((arg1)->Sigs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_In_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_In_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableTransaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableTransaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->In = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_In_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_In_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = ((arg1)->In); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableTransaction_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Out_set" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableTransaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableTransaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Out = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableTransaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableTransaction_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableTransaction_Out_get" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - result = ((arg1)->Out); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableTransaction")) SWIG_fail; - result = (visor__ReadableTransaction *)calloc(1, sizeof(visor__ReadableTransaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableTransaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableTransaction *arg1 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableTransaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableTransaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableTransaction" "', argument " "1"" of type '" "visor__ReadableTransaction *""'"); - } - arg1 = (visor__ReadableTransaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableTransaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableTransaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_BkSeq_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableBlockHeader_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_BkSeq_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->BkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_BlockHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_BlockHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_BlockHash_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableBlockHeader_BlockHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->BlockHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_BlockHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_BlockHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_BlockHash_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = ((arg1)->BlockHash); - 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_visor__ReadableBlockHeader_PreviousBlockHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_PreviousBlockHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_PreviousBlockHash_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableBlockHeader_PreviousBlockHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->PreviousBlockHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_PreviousBlockHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_PreviousBlockHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_PreviousBlockHash_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = ((arg1)->PreviousBlockHash); - 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_visor__ReadableBlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_Time_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableBlockHeader_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_Time_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_Fee_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_Fee_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableBlockHeader_Fee_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Fee = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_Fee_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_Fee_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = (GoUint64_) ((arg1)->Fee); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_Version_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableBlockHeader_Version_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_Version_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = (GoUint32_) ((arg1)->Version); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockHeader_BodyHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_BodyHash_set" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__ReadableBlockHeader_BodyHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->BodyHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockHeader_BodyHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockHeader_BodyHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockHeader_BodyHash_get" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - result = ((arg1)->BodyHash); - 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_visor__ReadableBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableBlockHeader")) SWIG_fail; - result = (visor__ReadableBlockHeader *)calloc(1, sizeof(visor__ReadableBlockHeader)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockHeader *arg1 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableBlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockHeader, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableBlockHeader" "', argument " "1"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg1 = (visor__ReadableBlockHeader *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableBlockHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableBlockHeader, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockBody_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockBody *arg1 = (visor__ReadableBlockBody *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlockBody_Transactions_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockBody_Transactions_set" "', argument " "1"" of type '" "visor__ReadableBlockBody *""'"); - } - arg1 = (visor__ReadableBlockBody *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableBlockBody_Transactions_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableBlockBody_Transactions_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Transactions = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlockBody_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockBody *arg1 = (visor__ReadableBlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlockBody_Transactions_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockBody, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlockBody_Transactions_get" "', argument " "1"" of type '" "visor__ReadableBlockBody *""'"); - } - arg1 = (visor__ReadableBlockBody *)(argp1); - result = ((arg1)->Transactions); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableBlockBody")) SWIG_fail; - result = (visor__ReadableBlockBody *)calloc(1, sizeof(visor__ReadableBlockBody)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlockBody, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlockBody *arg1 = (visor__ReadableBlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableBlockBody",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlockBody, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableBlockBody" "', argument " "1"" of type '" "visor__ReadableBlockBody *""'"); - } - arg1 = (visor__ReadableBlockBody *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableBlockBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableBlockBody, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableBlock_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - visor__ReadableBlockHeader *arg2 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlock_Head_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlock_Head_set" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableBlock_Head_set" "', argument " "2"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg2 = (visor__ReadableBlockHeader *)(argp2); - if (arg1) (arg1)->Head = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlock_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableBlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlock_Head_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlock_Head_get" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - result = (visor__ReadableBlockHeader *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlock_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - visor__ReadableBlockBody *arg2 = (visor__ReadableBlockBody *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlock_Body_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlock_Body_set" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__ReadableBlockBody, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableBlock_Body_set" "', argument " "2"" of type '" "visor__ReadableBlockBody *""'"); - } - arg2 = (visor__ReadableBlockBody *)(argp2); - if (arg1) (arg1)->Body = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlock_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableBlockBody *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlock_Body_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlock_Body_get" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - result = (visor__ReadableBlockBody *)& ((arg1)->Body); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlockBody, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlock_Size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlock_Size_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlock_Size_set" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ReadableBlock_Size_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->Size = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlock_Size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlock_Size_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlock_Size_get" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - result = (GoInt_) ((arg1)->Size); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableBlock")) SWIG_fail; - result = (visor__ReadableBlock *)calloc(1, sizeof(visor__ReadableBlock)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlock, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlock *arg1 = (visor__ReadableBlock *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableBlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlock, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableBlock" "', argument " "1"" of type '" "visor__ReadableBlock *""'"); - } - arg1 = (visor__ReadableBlock *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableBlock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableBlock, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableBlocks_Blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlocks *arg1 = (visor__ReadableBlocks *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableBlocks_Blocks_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlocks, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlocks_Blocks_set" "', argument " "1"" of type '" "visor__ReadableBlocks *""'"); - } - arg1 = (visor__ReadableBlocks *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableBlocks_Blocks_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableBlocks_Blocks_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Blocks = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableBlocks_Blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlocks *arg1 = (visor__ReadableBlocks *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableBlocks_Blocks_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlocks, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableBlocks_Blocks_get" "', argument " "1"" of type '" "visor__ReadableBlocks *""'"); - } - arg1 = (visor__ReadableBlocks *)(argp1); - result = ((arg1)->Blocks); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlocks *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableBlocks")) SWIG_fail; - result = (visor__ReadableBlocks *)calloc(1, sizeof(visor__ReadableBlocks)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlocks, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableBlocks *arg1 = (visor__ReadableBlocks *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableBlocks",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableBlocks, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableBlocks" "', argument " "1"" of type '" "visor__ReadableBlocks *""'"); - } - arg1 = (visor__ReadableBlocks *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableBlocks_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableBlocks, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__TransactionOutputJSON_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionOutputJSON_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Hash_set" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__TransactionOutputJSON_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionOutputJSON_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionOutputJSON_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Hash_get" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - result = ((arg1)->Hash); - 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_visor__TransactionOutputJSON_SourceTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionOutputJSON_SourceTransaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_SourceTransaction_set" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__TransactionOutputJSON_SourceTransaction_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->SourceTransaction = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionOutputJSON_SourceTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionOutputJSON_SourceTransaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_SourceTransaction_get" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - result = ((arg1)->SourceTransaction); - 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_visor__TransactionOutputJSON_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionOutputJSON_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Address_set" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__TransactionOutputJSON_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionOutputJSON_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionOutputJSON_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Address_get" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - result = ((arg1)->Address); - 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_visor__TransactionOutputJSON_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionOutputJSON_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Coins_set" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__TransactionOutputJSON_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionOutputJSON_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionOutputJSON_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Coins_get" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - result = ((arg1)->Coins); - 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_visor__TransactionOutputJSON_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionOutputJSON_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Hours_set" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__TransactionOutputJSON_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionOutputJSON_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionOutputJSON_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionOutputJSON_Hours_get" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__TransactionOutputJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__TransactionOutputJSON")) SWIG_fail; - result = (visor__TransactionOutputJSON *)calloc(1, sizeof(visor__TransactionOutputJSON)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__TransactionOutputJSON, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__TransactionOutputJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionOutputJSON *arg1 = (visor__TransactionOutputJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__TransactionOutputJSON",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionOutputJSON, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__TransactionOutputJSON" "', argument " "1"" of type '" "visor__TransactionOutputJSON *""'"); - } - arg1 = (visor__TransactionOutputJSON *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__TransactionOutputJSON_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__TransactionOutputJSON, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionJSON_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_Hash_set" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__TransactionJSON_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionJSON_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_Hash_get" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - result = ((arg1)->Hash); - 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_visor__TransactionJSON_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionJSON_InnerHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_InnerHash_set" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__TransactionJSON_InnerHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->InnerHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionJSON_InnerHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_InnerHash_get" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - result = ((arg1)->InnerHash); - 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_visor__TransactionJSON_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionJSON_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_Sigs_set" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__TransactionJSON_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__TransactionJSON_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Sigs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionJSON_Sigs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_Sigs_get" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - result = ((arg1)->Sigs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionJSON_In_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_In_set" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__TransactionJSON_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__TransactionJSON_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->In = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionJSON_In_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_In_get" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - result = ((arg1)->In); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__TransactionJSON_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_Out_set" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__TransactionJSON_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__TransactionJSON_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Out = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__TransactionJSON_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__TransactionJSON_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__TransactionJSON_Out_get" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - result = ((arg1)->Out); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__TransactionJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__TransactionJSON")) SWIG_fail; - result = (visor__TransactionJSON *)calloc(1, sizeof(visor__TransactionJSON)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__TransactionJSON, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__TransactionJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__TransactionJSON *arg1 = (visor__TransactionJSON *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__TransactionJSON",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__TransactionJSON, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__TransactionJSON" "', argument " "1"" of type '" "visor__TransactionJSON *""'"); - } - arg1 = (visor__TransactionJSON *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__TransactionJSON_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__TransactionJSON, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__BlockchainMetadata_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - visor__ReadableBlockHeader *arg2 = (visor__ReadableBlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BlockchainMetadata_Head_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainMetadata_Head_set" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__BlockchainMetadata_Head_set" "', argument " "2"" of type '" "visor__ReadableBlockHeader *""'"); - } - arg2 = (visor__ReadableBlockHeader *)(argp2); - if (arg1) (arg1)->Head = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainMetadata_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableBlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BlockchainMetadata_Head_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainMetadata_Head_get" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - result = (visor__ReadableBlockHeader *)& ((arg1)->Head); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableBlockHeader, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainMetadata_Unspents_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BlockchainMetadata_Unspents_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainMetadata_Unspents_set" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__BlockchainMetadata_Unspents_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Unspents = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainMetadata_Unspents_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BlockchainMetadata_Unspents_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainMetadata_Unspents_get" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - result = (GoUint64_) ((arg1)->Unspents); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainMetadata_Unconfirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__BlockchainMetadata_Unconfirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainMetadata_Unconfirmed_set" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__BlockchainMetadata_Unconfirmed_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Unconfirmed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__BlockchainMetadata_Unconfirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__BlockchainMetadata_Unconfirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__BlockchainMetadata_Unconfirmed_get" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - result = (GoUint64_) ((arg1)->Unconfirmed); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__BlockchainMetadata")) SWIG_fail; - result = (visor__BlockchainMetadata *)calloc(1, sizeof(visor__BlockchainMetadata)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__BlockchainMetadata, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__BlockchainMetadata *arg1 = (visor__BlockchainMetadata *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__BlockchainMetadata",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__BlockchainMetadata, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__BlockchainMetadata" "', argument " "1"" of type '" "visor__BlockchainMetadata *""'"); - } - arg1 = (visor__BlockchainMetadata *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__BlockchainMetadata_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__BlockchainMetadata, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ReadableOutputSet_HeadOutputs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - visor__ReadableOutputs arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutputSet_HeadOutputs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutputSet_HeadOutputs_set" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableOutputSet_HeadOutputs_set" "', argument " "2"" of type '" "visor__ReadableOutputs""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableOutputSet_HeadOutputs_set" "', argument " "2"" of type '" "visor__ReadableOutputs""'"); - } else { - arg2 = *((visor__ReadableOutputs *)(argp2)); - } - } - if (arg1) (arg1)->HeadOutputs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutputSet_HeadOutputs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableOutputs result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutputSet_HeadOutputs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutputSet_HeadOutputs_get" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - result = ((arg1)->HeadOutputs); - resultobj = SWIG_NewPointerObj((visor__ReadableOutputs *)memcpy((visor__ReadableOutputs *)calloc(1,sizeof(visor__ReadableOutputs)),&result,sizeof(visor__ReadableOutputs)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutputSet_OutgoingOutputs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - visor__ReadableOutputs arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutputSet_OutgoingOutputs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutputSet_OutgoingOutputs_set" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableOutputSet_OutgoingOutputs_set" "', argument " "2"" of type '" "visor__ReadableOutputs""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableOutputSet_OutgoingOutputs_set" "', argument " "2"" of type '" "visor__ReadableOutputs""'"); - } else { - arg2 = *((visor__ReadableOutputs *)(argp2)); - } - } - if (arg1) (arg1)->OutgoingOutputs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutputSet_OutgoingOutputs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableOutputs result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutputSet_OutgoingOutputs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutputSet_OutgoingOutputs_get" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - result = ((arg1)->OutgoingOutputs); - resultobj = SWIG_NewPointerObj((visor__ReadableOutputs *)memcpy((visor__ReadableOutputs *)calloc(1,sizeof(visor__ReadableOutputs)),&result,sizeof(visor__ReadableOutputs)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutputSet_IncomingOutputs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - visor__ReadableOutputs arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ReadableOutputSet_IncomingOutputs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutputSet_IncomingOutputs_set" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__ReadableOutputSet_IncomingOutputs_set" "', argument " "2"" of type '" "visor__ReadableOutputs""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__ReadableOutputSet_IncomingOutputs_set" "', argument " "2"" of type '" "visor__ReadableOutputs""'"); - } else { - arg2 = *((visor__ReadableOutputs *)(argp2)); - } - } - if (arg1) (arg1)->IncomingOutputs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ReadableOutputSet_IncomingOutputs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableOutputs result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ReadableOutputSet_IncomingOutputs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ReadableOutputSet_IncomingOutputs_get" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - result = ((arg1)->IncomingOutputs); - resultobj = SWIG_NewPointerObj((visor__ReadableOutputs *)memcpy((visor__ReadableOutputs *)calloc(1,sizeof(visor__ReadableOutputs)),&result,sizeof(visor__ReadableOutputs)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ReadableOutputSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ReadableOutputSet")) SWIG_fail; - result = (visor__ReadableOutputSet *)calloc(1, sizeof(visor__ReadableOutputSet)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableOutputSet, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ReadableOutputSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ReadableOutputSet *arg1 = (visor__ReadableOutputSet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ReadableOutputSet",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ReadableOutputSet, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ReadableOutputSet" "', argument " "1"" of type '" "visor__ReadableOutputSet *""'"); - } - arg1 = (visor__ReadableOutputSet *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ReadableOutputSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ReadableOutputSet, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__Transaction_Txn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__Transaction_Txn_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Txn_set" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__Transaction_Txn_set" "', argument " "2"" of type '" "coin__Transaction *""'"); - } - arg2 = (coin__Transaction *)(argp2); - if (arg1) (arg1)->Txn = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Txn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__Transaction_Txn_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Txn_get" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - result = (coin__Transaction *)& ((arg1)->Txn); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Transaction, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - visor__TransactionStatus *arg2 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__Transaction_Status_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Status_set" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__Transaction_Status_set" "', argument " "2"" of type '" "visor__TransactionStatus *""'"); - } - arg2 = (visor__TransactionStatus *)(argp2); - if (arg1) (arg1)->Status = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__TransactionStatus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__Transaction_Status_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Status_get" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - result = (visor__TransactionStatus *)& ((arg1)->Status); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__Transaction_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Time_set" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__Transaction_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__Transaction_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Time_get" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__Transaction_Size_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Size_set" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__Transaction_Size_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->Size = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__Transaction_Size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__Transaction_Size_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__Transaction_Size_get" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - result = (GoInt_) ((arg1)->Size); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__Transaction")) SWIG_fail; - result = (visor__Transaction *)calloc(1, sizeof(visor__Transaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__Transaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__Transaction *arg1 = (visor__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__Transaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__Transaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__Transaction" "', argument " "1"" of type '" "visor__Transaction *""'"); - } - arg1 = (visor__Transaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__Transaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__Transaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__RichlistBalance_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__RichlistBalance_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_Address_set" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__RichlistBalance_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__RichlistBalance_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__RichlistBalance_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_Address_get" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - result = ((arg1)->Address); - 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_visor__RichlistBalance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__RichlistBalance_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_Coins_set" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "visor__RichlistBalance_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__RichlistBalance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__RichlistBalance_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_Coins_get" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - result = ((arg1)->Coins); - 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_visor__RichlistBalance_Locked_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__RichlistBalance_Locked_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_Locked_set" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__RichlistBalance_Locked_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "visor__RichlistBalance_Locked_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Locked = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__RichlistBalance_Locked_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__RichlistBalance_Locked_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_Locked_get" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - result = ((arg1)->Locked); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__RichlistBalance_coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__RichlistBalance_coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_coins_set" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__RichlistBalance_coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__RichlistBalance_coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__RichlistBalance_coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__RichlistBalance_coins_get" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - result = (GoUint64_) ((arg1)->coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__RichlistBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__RichlistBalance")) SWIG_fail; - result = (visor__RichlistBalance *)calloc(1, sizeof(visor__RichlistBalance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__RichlistBalance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__RichlistBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__RichlistBalance *arg1 = (visor__RichlistBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__RichlistBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__RichlistBalance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__RichlistBalance" "', argument " "1"" of type '" "visor__RichlistBalance *""'"); - } - arg1 = (visor__RichlistBalance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__RichlistBalance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__RichlistBalance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_visor__unconfirmedTxns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__unconfirmedTxns *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__unconfirmedTxns")) SWIG_fail; - result = (visor__unconfirmedTxns *)calloc(1, sizeof(visor__unconfirmedTxns)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__unconfirmedTxns, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__unconfirmedTxns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__unconfirmedTxns *arg1 = (visor__unconfirmedTxns *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__unconfirmedTxns",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__unconfirmedTxns, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__unconfirmedTxns" "', argument " "1"" of type '" "visor__unconfirmedTxns *""'"); - } - arg1 = (visor__unconfirmedTxns *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__unconfirmedTxns_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__unconfirmedTxns, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_visor__txUnspents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__txUnspents *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__txUnspents")) SWIG_fail; - result = (visor__txUnspents *)calloc(1, sizeof(visor__txUnspents)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__txUnspents, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__txUnspents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__txUnspents *arg1 = (visor__txUnspents *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__txUnspents",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__txUnspents, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__txUnspents" "', argument " "1"" of type '" "visor__txUnspents *""'"); - } - arg1 = (visor__txUnspents *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__txUnspents_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__txUnspents, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Txn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__UnconfirmedTxn_Txn_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Txn_set" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "visor__UnconfirmedTxn_Txn_set" "', argument " "2"" of type '" "coin__Transaction *""'"); - } - arg2 = (coin__Transaction *)(argp2); - if (arg1) (arg1)->Txn = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Txn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__UnconfirmedTxn_Txn_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Txn_get" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - result = (coin__Transaction *)& ((arg1)->Txn); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Transaction, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Received_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__UnconfirmedTxn_Received_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Received_set" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__UnconfirmedTxn_Received_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Received = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Received_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__UnconfirmedTxn_Received_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Received_get" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - result = (GoInt64_) ((arg1)->Received); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Checked_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__UnconfirmedTxn_Checked_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Checked_set" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__UnconfirmedTxn_Checked_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Checked = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Checked_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__UnconfirmedTxn_Checked_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Checked_get" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - result = (GoInt64_) ((arg1)->Checked); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Announced_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__UnconfirmedTxn_Announced_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Announced_set" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__UnconfirmedTxn_Announced_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Announced = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_Announced_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__UnconfirmedTxn_Announced_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_Announced_get" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - result = (GoInt64_) ((arg1)->Announced); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_IsValid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - GoInt8_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - signed char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__UnconfirmedTxn_IsValid_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_IsValid_set" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - ecode2 = SWIG_AsVal_signed_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__UnconfirmedTxn_IsValid_set" "', argument " "2"" of type '" "GoInt8_""'"); - } - arg2 = (GoInt8_)(val2); - if (arg1) (arg1)->IsValid = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__UnconfirmedTxn_IsValid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__UnconfirmedTxn_IsValid_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__UnconfirmedTxn_IsValid_get" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - result = (GoInt8_) ((arg1)->IsValid); - resultobj = SWIG_From_signed_SS_char((signed char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__UnconfirmedTxn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__UnconfirmedTxn")) SWIG_fail; - result = (visor__UnconfirmedTxn *)calloc(1, sizeof(visor__UnconfirmedTxn)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__UnconfirmedTxn, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__UnconfirmedTxn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__UnconfirmedTxn *arg1 = (visor__UnconfirmedTxn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__UnconfirmedTxn",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__UnconfirmedTxn, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__UnconfirmedTxn" "', argument " "1"" of type '" "visor__UnconfirmedTxn *""'"); - } - arg1 = (visor__UnconfirmedTxn *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__UnconfirmedTxn_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__UnconfirmedTxn, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ErrTxnViolatesHardConstraint_Err_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesHardConstraint *arg1 = (visor__ErrTxnViolatesHardConstraint *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ErrTxnViolatesHardConstraint_Err_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrTxnViolatesHardConstraint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ErrTxnViolatesHardConstraint_Err_set" "', argument " "1"" of type '" "visor__ErrTxnViolatesHardConstraint *""'"); - } - arg1 = (visor__ErrTxnViolatesHardConstraint *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ErrTxnViolatesHardConstraint_Err_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->Err = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ErrTxnViolatesHardConstraint_Err_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesHardConstraint *arg1 = (visor__ErrTxnViolatesHardConstraint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ErrTxnViolatesHardConstraint_Err_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrTxnViolatesHardConstraint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ErrTxnViolatesHardConstraint_Err_get" "', argument " "1"" of type '" "visor__ErrTxnViolatesHardConstraint *""'"); - } - arg1 = (visor__ErrTxnViolatesHardConstraint *)(argp1); - result = (GoInt32_) ((arg1)->Err); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ErrTxnViolatesHardConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesHardConstraint *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ErrTxnViolatesHardConstraint")) SWIG_fail; - result = (visor__ErrTxnViolatesHardConstraint *)calloc(1, sizeof(visor__ErrTxnViolatesHardConstraint)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ErrTxnViolatesHardConstraint, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ErrTxnViolatesHardConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesHardConstraint *arg1 = (visor__ErrTxnViolatesHardConstraint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ErrTxnViolatesHardConstraint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrTxnViolatesHardConstraint, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ErrTxnViolatesHardConstraint" "', argument " "1"" of type '" "visor__ErrTxnViolatesHardConstraint *""'"); - } - arg1 = (visor__ErrTxnViolatesHardConstraint *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ErrTxnViolatesHardConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ErrTxnViolatesHardConstraint, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_visor__ErrTxnViolatesSoftConstraint_Err_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesSoftConstraint *arg1 = (visor__ErrTxnViolatesSoftConstraint *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:visor__ErrTxnViolatesSoftConstraint_Err_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrTxnViolatesSoftConstraint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ErrTxnViolatesSoftConstraint_Err_set" "', argument " "1"" of type '" "visor__ErrTxnViolatesSoftConstraint *""'"); - } - arg1 = (visor__ErrTxnViolatesSoftConstraint *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "visor__ErrTxnViolatesSoftConstraint_Err_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->Err = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_visor__ErrTxnViolatesSoftConstraint_Err_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesSoftConstraint *arg1 = (visor__ErrTxnViolatesSoftConstraint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:visor__ErrTxnViolatesSoftConstraint_Err_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrTxnViolatesSoftConstraint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "visor__ErrTxnViolatesSoftConstraint_Err_get" "', argument " "1"" of type '" "visor__ErrTxnViolatesSoftConstraint *""'"); - } - arg1 = (visor__ErrTxnViolatesSoftConstraint *)(argp1); - result = (GoInt32_) ((arg1)->Err); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_visor__ErrTxnViolatesSoftConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesSoftConstraint *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_visor__ErrTxnViolatesSoftConstraint")) SWIG_fail; - result = (visor__ErrTxnViolatesSoftConstraint *)calloc(1, sizeof(visor__ErrTxnViolatesSoftConstraint)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ErrTxnViolatesSoftConstraint, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_visor__ErrTxnViolatesSoftConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - visor__ErrTxnViolatesSoftConstraint *arg1 = (visor__ErrTxnViolatesSoftConstraint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_visor__ErrTxnViolatesSoftConstraint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_visor__ErrTxnViolatesSoftConstraint, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_visor__ErrTxnViolatesSoftConstraint" "', argument " "1"" of type '" "visor__ErrTxnViolatesSoftConstraint *""'"); - } - arg1 = (visor__ErrTxnViolatesSoftConstraint *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *visor__ErrTxnViolatesSoftConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_visor__ErrTxnViolatesSoftConstraint, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_gnet__MessageContext_ConnID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - gnet__MessageContext *arg1 = (gnet__MessageContext *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:gnet__MessageContext_ConnID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gnet__MessageContext_ConnID_set" "', argument " "1"" of type '" "gnet__MessageContext *""'"); - } - arg1 = (gnet__MessageContext *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gnet__MessageContext_ConnID_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->ConnID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gnet__MessageContext_ConnID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - gnet__MessageContext *arg1 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:gnet__MessageContext_ConnID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gnet__MessageContext_ConnID_get" "', argument " "1"" of type '" "gnet__MessageContext *""'"); - } - arg1 = (gnet__MessageContext *)(argp1); - result = (GoInt_) ((arg1)->ConnID); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gnet__MessageContext_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - gnet__MessageContext *arg1 = (gnet__MessageContext *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:gnet__MessageContext_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gnet__MessageContext_Addr_set" "', argument " "1"" of type '" "gnet__MessageContext *""'"); - } - arg1 = (gnet__MessageContext *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gnet__MessageContext_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gnet__MessageContext_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - gnet__MessageContext *arg1 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:gnet__MessageContext_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gnet__MessageContext_Addr_get" "', argument " "1"" of type '" "gnet__MessageContext *""'"); - } - arg1 = (gnet__MessageContext *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_gnet__MessageContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_gnet__MessageContext")) SWIG_fail; - result = (gnet__MessageContext *)calloc(1, sizeof(gnet__MessageContext)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_gnet__MessageContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - gnet__MessageContext *arg1 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_gnet__MessageContext",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gnet__MessageContext" "', argument " "1"" of type '" "gnet__MessageContext *""'"); - } - arg1 = (gnet__MessageContext *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *gnet__MessageContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_gnet__MessageContext, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__MessagesConfig_Messages_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__MessagesConfig *arg1 = (daemon__MessagesConfig *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__MessagesConfig_Messages_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__MessagesConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__MessagesConfig_Messages_set" "', argument " "1"" of type '" "daemon__MessagesConfig *""'"); - } - arg1 = (daemon__MessagesConfig *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__MessagesConfig_Messages_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__MessagesConfig_Messages_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Messages = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__MessagesConfig_Messages_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__MessagesConfig *arg1 = (daemon__MessagesConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__MessagesConfig_Messages_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__MessagesConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__MessagesConfig_Messages_get" "', argument " "1"" of type '" "daemon__MessagesConfig *""'"); - } - arg1 = (daemon__MessagesConfig *)(argp1); - result = ((arg1)->Messages); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__MessagesConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__MessagesConfig *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__MessagesConfig")) SWIG_fail; - result = (daemon__MessagesConfig *)calloc(1, sizeof(daemon__MessagesConfig)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__MessagesConfig, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__MessagesConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__MessagesConfig *arg1 = (daemon__MessagesConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__MessagesConfig",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__MessagesConfig, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__MessagesConfig" "', argument " "1"" of type '" "daemon__MessagesConfig *""'"); - } - arg1 = (daemon__MessagesConfig *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__MessagesConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__MessagesConfig, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__Messages_Config_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Messages *arg1 = (daemon__Messages *) 0 ; - daemon__MessagesConfig *arg2 = (daemon__MessagesConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Messages_Config_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Messages, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Messages_Config_set" "', argument " "1"" of type '" "daemon__Messages *""'"); - } - arg1 = (daemon__Messages *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_daemon__MessagesConfig, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__Messages_Config_set" "', argument " "2"" of type '" "daemon__MessagesConfig *""'"); - } - arg2 = (daemon__MessagesConfig *)(argp2); - if (arg1) (arg1)->Config = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Messages_Config_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Messages *arg1 = (daemon__Messages *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - daemon__MessagesConfig *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Messages_Config_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Messages, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Messages_Config_get" "', argument " "1"" of type '" "daemon__Messages *""'"); - } - arg1 = (daemon__Messages *)(argp1); - result = (daemon__MessagesConfig *)& ((arg1)->Config); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__MessagesConfig, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Messages_Mirror_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Messages *arg1 = (daemon__Messages *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Messages_Mirror_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Messages, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Messages_Mirror_set" "', argument " "1"" of type '" "daemon__Messages *""'"); - } - arg1 = (daemon__Messages *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__Messages_Mirror_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Mirror = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Messages_Mirror_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Messages *arg1 = (daemon__Messages *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Messages_Mirror_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Messages, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Messages_Mirror_get" "', argument " "1"" of type '" "daemon__Messages *""'"); - } - arg1 = (daemon__Messages *)(argp1); - result = (GoUint32_) ((arg1)->Mirror); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__Messages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Messages *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__Messages")) SWIG_fail; - result = (daemon__Messages *)calloc(1, sizeof(daemon__Messages)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__Messages, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__Messages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Messages *arg1 = (daemon__Messages *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__Messages",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Messages, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__Messages" "', argument " "1"" of type '" "daemon__Messages *""'"); - } - arg1 = (daemon__Messages *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__Messages_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__Messages, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__IPAddr_IP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IPAddr *arg1 = (daemon__IPAddr *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IPAddr_IP_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IPAddr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IPAddr_IP_set" "', argument " "1"" of type '" "daemon__IPAddr *""'"); - } - arg1 = (daemon__IPAddr *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__IPAddr_IP_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->IP = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IPAddr_IP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IPAddr *arg1 = (daemon__IPAddr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IPAddr_IP_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IPAddr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IPAddr_IP_get" "', argument " "1"" of type '" "daemon__IPAddr *""'"); - } - arg1 = (daemon__IPAddr *)(argp1); - result = (GoUint32_) ((arg1)->IP); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IPAddr_Port_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IPAddr *arg1 = (daemon__IPAddr *) 0 ; - GoUint16_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IPAddr_Port_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IPAddr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IPAddr_Port_set" "', argument " "1"" of type '" "daemon__IPAddr *""'"); - } - arg1 = (daemon__IPAddr *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__IPAddr_Port_set" "', argument " "2"" of type '" "GoUint16_""'"); - } - arg2 = (GoUint16_)(val2); - if (arg1) (arg1)->Port = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IPAddr_Port_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IPAddr *arg1 = (daemon__IPAddr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint16_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IPAddr_Port_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IPAddr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IPAddr_Port_get" "', argument " "1"" of type '" "daemon__IPAddr *""'"); - } - arg1 = (daemon__IPAddr *)(argp1); - result = (GoUint16_) ((arg1)->Port); - resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__IPAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IPAddr *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__IPAddr")) SWIG_fail; - result = (daemon__IPAddr *)calloc(1, sizeof(daemon__IPAddr)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__IPAddr, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__IPAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IPAddr *arg1 = (daemon__IPAddr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__IPAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IPAddr, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__IPAddr" "', argument " "1"" of type '" "daemon__IPAddr *""'"); - } - arg1 = (daemon__IPAddr *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__IPAddr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__IPAddr, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GetPeersMessage_addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetPeersMessage *arg1 = (daemon__GetPeersMessage *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GetPeersMessage_addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetPeersMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetPeersMessage_addr_set" "', argument " "1"" of type '" "daemon__GetPeersMessage *""'"); - } - arg1 = (daemon__GetPeersMessage *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "daemon__GetPeersMessage_addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetPeersMessage_addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetPeersMessage *arg1 = (daemon__GetPeersMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GetPeersMessage_addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetPeersMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetPeersMessage_addr_get" "', argument " "1"" of type '" "daemon__GetPeersMessage *""'"); - } - arg1 = (daemon__GetPeersMessage *)(argp1); - result = ((arg1)->addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GetPeersMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetPeersMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GetPeersMessage")) SWIG_fail; - result = (daemon__GetPeersMessage *)calloc(1, sizeof(daemon__GetPeersMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GetPeersMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GetPeersMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetPeersMessage *arg1 = (daemon__GetPeersMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GetPeersMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetPeersMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GetPeersMessage" "', argument " "1"" of type '" "daemon__GetPeersMessage *""'"); - } - arg1 = (daemon__GetPeersMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GetPeersMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GetPeersMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_daemon__PongMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PongMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__PongMessage")) SWIG_fail; - result = (daemon__PongMessage *)calloc(1, sizeof(daemon__PongMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__PongMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__PongMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PongMessage *arg1 = (daemon__PongMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__PongMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PongMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__PongMessage" "', argument " "1"" of type '" "daemon__PongMessage *""'"); - } - arg1 = (daemon__PongMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__PongMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__PongMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GivePeersMessage_Peers_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GivePeersMessage *arg1 = (daemon__GivePeersMessage *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GivePeersMessage_Peers_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GivePeersMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GivePeersMessage_Peers_set" "', argument " "1"" of type '" "daemon__GivePeersMessage *""'"); - } - arg1 = (daemon__GivePeersMessage *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GivePeersMessage_Peers_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__GivePeersMessage_Peers_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Peers = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GivePeersMessage_Peers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GivePeersMessage *arg1 = (daemon__GivePeersMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GivePeersMessage_Peers_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GivePeersMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GivePeersMessage_Peers_get" "', argument " "1"" of type '" "daemon__GivePeersMessage *""'"); - } - arg1 = (daemon__GivePeersMessage *)(argp1); - result = ((arg1)->Peers); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GivePeersMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GivePeersMessage *arg1 = (daemon__GivePeersMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GivePeersMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GivePeersMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GivePeersMessage_c_set" "', argument " "1"" of type '" "daemon__GivePeersMessage *""'"); - } - arg1 = (daemon__GivePeersMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GivePeersMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GivePeersMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GivePeersMessage *arg1 = (daemon__GivePeersMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GivePeersMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GivePeersMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GivePeersMessage_c_get" "', argument " "1"" of type '" "daemon__GivePeersMessage *""'"); - } - arg1 = (daemon__GivePeersMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GivePeersMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GivePeersMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GivePeersMessage")) SWIG_fail; - result = (daemon__GivePeersMessage *)calloc(1, sizeof(daemon__GivePeersMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GivePeersMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GivePeersMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GivePeersMessage *arg1 = (daemon__GivePeersMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GivePeersMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GivePeersMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GivePeersMessage" "', argument " "1"" of type '" "daemon__GivePeersMessage *""'"); - } - arg1 = (daemon__GivePeersMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GivePeersMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GivePeersMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_Mirror_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IntroductionMessage_Mirror_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_Mirror_set" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__IntroductionMessage_Mirror_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Mirror = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_Mirror_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IntroductionMessage_Mirror_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_Mirror_get" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - result = (GoUint32_) ((arg1)->Mirror); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_Port_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - GoUint16_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IntroductionMessage_Port_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_Port_set" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__IntroductionMessage_Port_set" "', argument " "2"" of type '" "GoUint16_""'"); - } - arg2 = (GoUint16_)(val2); - if (arg1) (arg1)->Port = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_Port_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint16_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IntroductionMessage_Port_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_Port_get" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - result = (GoUint16_) ((arg1)->Port); - resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IntroductionMessage_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_Version_set" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__IntroductionMessage_Version_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IntroductionMessage_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_Version_get" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - result = (GoInt32_) ((arg1)->Version); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IntroductionMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_c_set" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__IntroductionMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IntroductionMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_c_get" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_valid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__IntroductionMessage_valid_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_valid_set" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__IntroductionMessage_valid_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__IntroductionMessage_valid_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->valid = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__IntroductionMessage_valid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__IntroductionMessage_valid_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__IntroductionMessage_valid_get" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - result = ((arg1)->valid); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__IntroductionMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__IntroductionMessage")) SWIG_fail; - result = (daemon__IntroductionMessage *)calloc(1, sizeof(daemon__IntroductionMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__IntroductionMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__IntroductionMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__IntroductionMessage *arg1 = (daemon__IntroductionMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__IntroductionMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__IntroductionMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__IntroductionMessage" "', argument " "1"" of type '" "daemon__IntroductionMessage *""'"); - } - arg1 = (daemon__IntroductionMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__IntroductionMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__IntroductionMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__PingMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PingMessage *arg1 = (daemon__PingMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__PingMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PingMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__PingMessage_c_set" "', argument " "1"" of type '" "daemon__PingMessage *""'"); - } - arg1 = (daemon__PingMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__PingMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__PingMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PingMessage *arg1 = (daemon__PingMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__PingMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PingMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__PingMessage_c_get" "', argument " "1"" of type '" "daemon__PingMessage *""'"); - } - arg1 = (daemon__PingMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__PingMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PingMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__PingMessage")) SWIG_fail; - result = (daemon__PingMessage *)calloc(1, sizeof(daemon__PingMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__PingMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__PingMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PingMessage *arg1 = (daemon__PingMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__PingMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PingMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__PingMessage" "', argument " "1"" of type '" "daemon__PingMessage *""'"); - } - arg1 = (daemon__PingMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__PingMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__PingMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__ConnectEvent_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectEvent *arg1 = (daemon__ConnectEvent *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__ConnectEvent_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectEvent_Addr_set" "', argument " "1"" of type '" "daemon__ConnectEvent *""'"); - } - arg1 = (daemon__ConnectEvent *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "daemon__ConnectEvent_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ConnectEvent_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectEvent *arg1 = (daemon__ConnectEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__ConnectEvent_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectEvent_Addr_get" "', argument " "1"" of type '" "daemon__ConnectEvent *""'"); - } - arg1 = (daemon__ConnectEvent *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ConnectEvent_Solicited_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectEvent *arg1 = (daemon__ConnectEvent *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__ConnectEvent_Solicited_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectEvent_Solicited_set" "', argument " "1"" of type '" "daemon__ConnectEvent *""'"); - } - arg1 = (daemon__ConnectEvent *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__ConnectEvent_Solicited_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__ConnectEvent_Solicited_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Solicited = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ConnectEvent_Solicited_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectEvent *arg1 = (daemon__ConnectEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__ConnectEvent_Solicited_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectEvent_Solicited_get" "', argument " "1"" of type '" "daemon__ConnectEvent *""'"); - } - arg1 = (daemon__ConnectEvent *)(argp1); - result = ((arg1)->Solicited); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__ConnectEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectEvent *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__ConnectEvent")) SWIG_fail; - result = (daemon__ConnectEvent *)calloc(1, sizeof(daemon__ConnectEvent)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__ConnectEvent, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__ConnectEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectEvent *arg1 = (daemon__ConnectEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__ConnectEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__ConnectEvent" "', argument " "1"" of type '" "daemon__ConnectEvent *""'"); - } - arg1 = (daemon__ConnectEvent *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__ConnectEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__ConnectEvent, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__ConnectionError_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectionError *arg1 = (daemon__ConnectionError *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__ConnectionError_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectionError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectionError_Addr_set" "', argument " "1"" of type '" "daemon__ConnectionError *""'"); - } - arg1 = (daemon__ConnectionError *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "daemon__ConnectionError_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ConnectionError_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectionError *arg1 = (daemon__ConnectionError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__ConnectionError_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectionError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectionError_Addr_get" "', argument " "1"" of type '" "daemon__ConnectionError *""'"); - } - arg1 = (daemon__ConnectionError *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ConnectionError_Error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectionError *arg1 = (daemon__ConnectionError *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__ConnectionError_Error_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectionError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectionError_Error_set" "', argument " "1"" of type '" "daemon__ConnectionError *""'"); - } - arg1 = (daemon__ConnectionError *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__ConnectionError_Error_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->Error = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ConnectionError_Error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectionError *arg1 = (daemon__ConnectionError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__ConnectionError_Error_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectionError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ConnectionError_Error_get" "', argument " "1"" of type '" "daemon__ConnectionError *""'"); - } - arg1 = (daemon__ConnectionError *)(argp1); - result = (GoInt32_) ((arg1)->Error); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__ConnectionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectionError *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__ConnectionError")) SWIG_fail; - result = (daemon__ConnectionError *)calloc(1, sizeof(daemon__ConnectionError)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__ConnectionError, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__ConnectionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ConnectionError *arg1 = (daemon__ConnectionError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__ConnectionError",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ConnectionError, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__ConnectionError" "', argument " "1"" of type '" "daemon__ConnectionError *""'"); - } - arg1 = (daemon__ConnectionError *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__ConnectionError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__ConnectionError, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__DisconnectEvent_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__DisconnectEvent *arg1 = (daemon__DisconnectEvent *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__DisconnectEvent_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__DisconnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__DisconnectEvent_Addr_set" "', argument " "1"" of type '" "daemon__DisconnectEvent *""'"); - } - arg1 = (daemon__DisconnectEvent *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "daemon__DisconnectEvent_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__DisconnectEvent_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__DisconnectEvent *arg1 = (daemon__DisconnectEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__DisconnectEvent_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__DisconnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__DisconnectEvent_Addr_get" "', argument " "1"" of type '" "daemon__DisconnectEvent *""'"); - } - arg1 = (daemon__DisconnectEvent *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__DisconnectEvent_Reason_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__DisconnectEvent *arg1 = (daemon__DisconnectEvent *) 0 ; - gnet__DisconnectReason arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__DisconnectEvent_Reason_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__DisconnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__DisconnectEvent_Reason_set" "', argument " "1"" of type '" "daemon__DisconnectEvent *""'"); - } - arg1 = (daemon__DisconnectEvent *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__DisconnectEvent_Reason_set" "', argument " "2"" of type '" "gnet__DisconnectReason""'"); - } - arg2 = (gnet__DisconnectReason)(val2); - if (arg1) (arg1)->Reason = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__DisconnectEvent_Reason_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__DisconnectEvent *arg1 = (daemon__DisconnectEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__DisconnectReason result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__DisconnectEvent_Reason_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__DisconnectEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__DisconnectEvent_Reason_get" "', argument " "1"" of type '" "daemon__DisconnectEvent *""'"); - } - arg1 = (daemon__DisconnectEvent *)(argp1); - result = (gnet__DisconnectReason) ((arg1)->Reason); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__DisconnectEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__DisconnectEvent *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__DisconnectEvent")) SWIG_fail; - result = (daemon__DisconnectEvent *)calloc(1, sizeof(daemon__DisconnectEvent)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__DisconnectEvent, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__DisconnectEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__DisconnectEvent *arg1 = (daemon__DisconnectEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__DisconnectEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__DisconnectEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__DisconnectEvent" "', argument " "1"" of type '" "daemon__DisconnectEvent *""'"); - } - arg1 = (daemon__DisconnectEvent *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__DisconnectEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__DisconnectEvent, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GatewayConfig_BufferSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GatewayConfig_BufferSize_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GatewayConfig_BufferSize_set" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__GatewayConfig_BufferSize_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->BufferSize = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GatewayConfig_BufferSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GatewayConfig_BufferSize_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GatewayConfig_BufferSize_get" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - result = (GoInt_) ((arg1)->BufferSize); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GatewayConfig_EnableWalletAPI_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GatewayConfig_EnableWalletAPI_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GatewayConfig_EnableWalletAPI_set" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GatewayConfig_EnableWalletAPI_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__GatewayConfig_EnableWalletAPI_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->EnableWalletAPI = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GatewayConfig_EnableWalletAPI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GatewayConfig_EnableWalletAPI_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GatewayConfig_EnableWalletAPI_get" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - result = ((arg1)->EnableWalletAPI); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GatewayConfig_EnableGUI_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GatewayConfig_EnableGUI_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GatewayConfig_EnableGUI_set" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GatewayConfig_EnableGUI_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__GatewayConfig_EnableGUI_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->EnableGUI = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GatewayConfig_EnableGUI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GatewayConfig_EnableGUI_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GatewayConfig_EnableGUI_get" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - result = ((arg1)->EnableGUI); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GatewayConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GatewayConfig")) SWIG_fail; - result = (daemon__GatewayConfig *)calloc(1, sizeof(daemon__GatewayConfig)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GatewayConfig, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GatewayConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GatewayConfig *arg1 = (daemon__GatewayConfig *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GatewayConfig",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GatewayConfig, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GatewayConfig" "', argument " "1"" of type '" "daemon__GatewayConfig *""'"); - } - arg1 = (daemon__GatewayConfig *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GatewayConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GatewayConfig, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__TransactionResults_Txns_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResults *arg1 = (daemon__TransactionResults *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__TransactionResults_Txns_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResults, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResults_Txns_set" "', argument " "1"" of type '" "daemon__TransactionResults *""'"); - } - arg1 = (daemon__TransactionResults *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__TransactionResults_Txns_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__TransactionResults_Txns_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Txns = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__TransactionResults_Txns_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResults *arg1 = (daemon__TransactionResults *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__TransactionResults_Txns_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResults, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResults_Txns_get" "', argument " "1"" of type '" "daemon__TransactionResults *""'"); - } - arg1 = (daemon__TransactionResults *)(argp1); - result = ((arg1)->Txns); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__TransactionResults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResults *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__TransactionResults")) SWIG_fail; - result = (daemon__TransactionResults *)calloc(1, sizeof(daemon__TransactionResults)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__TransactionResults, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__TransactionResults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResults *arg1 = (daemon__TransactionResults *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__TransactionResults",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResults, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__TransactionResults" "', argument " "1"" of type '" "daemon__TransactionResults *""'"); - } - arg1 = (daemon__TransactionResults *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__TransactionResults_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__TransactionResults, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__TransactionResult_Status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - visor__TransactionStatus *arg2 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__TransactionResult_Status_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResult_Status_set" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__TransactionResult_Status_set" "', argument " "2"" of type '" "visor__TransactionStatus *""'"); - } - arg2 = (visor__TransactionStatus *)(argp2); - if (arg1) (arg1)->Status = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__TransactionResult_Status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__TransactionStatus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__TransactionResult_Status_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResult_Status_get" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - result = (visor__TransactionStatus *)& ((arg1)->Status); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__TransactionResult_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__TransactionResult_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResult_Time_set" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__TransactionResult_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__TransactionResult_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__TransactionResult_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResult_Time_get" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__TransactionResult_Transaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - visor__ReadableTransaction *arg2 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__TransactionResult_Transaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResult_Transaction_set" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__TransactionResult_Transaction_set" "', argument " "2"" of type '" "visor__ReadableTransaction *""'"); - } - arg2 = (visor__ReadableTransaction *)(argp2); - if (arg1) (arg1)->Transaction = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__TransactionResult_Transaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableTransaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__TransactionResult_Transaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__TransactionResult_Transaction_get" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - result = (visor__ReadableTransaction *)& ((arg1)->Transaction); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__TransactionResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__TransactionResult")) SWIG_fail; - result = (daemon__TransactionResult *)calloc(1, sizeof(daemon__TransactionResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__TransactionResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__TransactionResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__TransactionResult *arg1 = (daemon__TransactionResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__TransactionResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__TransactionResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__TransactionResult" "', argument " "1"" of type '" "daemon__TransactionResult *""'"); - } - arg1 = (daemon__TransactionResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__TransactionResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__TransactionResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pex__Peer_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pex__Peer_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_Addr_set" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pex__Peer_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:pex__Peer_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_Addr_get" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_LastSeen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pex__Peer_LastSeen_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_LastSeen_set" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pex__Peer_LastSeen_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->LastSeen = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_LastSeen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:pex__Peer_LastSeen_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_LastSeen_get" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - result = (GoInt64_) ((arg1)->LastSeen); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_Private_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pex__Peer_Private_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_Private_set" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pex__Peer_Private_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pex__Peer_Private_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Private = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_Private_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:pex__Peer_Private_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_Private_get" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - result = ((arg1)->Private); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_Trusted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pex__Peer_Trusted_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_Trusted_set" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pex__Peer_Trusted_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pex__Peer_Trusted_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Trusted = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_Trusted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:pex__Peer_Trusted_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_Trusted_get" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - result = ((arg1)->Trusted); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_HasIncomingPort_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pex__Peer_HasIncomingPort_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_HasIncomingPort_set" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pex__Peer_HasIncomingPort_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pex__Peer_HasIncomingPort_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->HasIncomingPort = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_HasIncomingPort_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:pex__Peer_HasIncomingPort_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_HasIncomingPort_get" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - result = ((arg1)->HasIncomingPort); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_RetryTimes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pex__Peer_RetryTimes_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_RetryTimes_set" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pex__Peer_RetryTimes_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->RetryTimes = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pex__Peer_RetryTimes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:pex__Peer_RetryTimes_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pex__Peer_RetryTimes_get" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - result = (GoInt_) ((arg1)->RetryTimes); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pex__Peer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pex__Peer")) SWIG_fail; - result = (pex__Peer *)calloc(1, sizeof(pex__Peer)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pex__Peer, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pex__Peer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pex__Peer *arg1 = (pex__Peer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pex__Peer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pex__Peer, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pex__Peer" "', argument " "1"" of type '" "pex__Peer *""'"); - } - arg1 = (pex__Peer *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pex__Peer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pex__Peer, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__Connection_ID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_ID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_ID_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__Connection_ID_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->ID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_ID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_ID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_ID_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = (GoInt_) ((arg1)->ID); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Addr_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "daemon__Connection_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Addr_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_LastSent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_LastSent_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_LastSent_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__Connection_LastSent_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->LastSent = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_LastSent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_LastSent_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_LastSent_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = (GoInt64_) ((arg1)->LastSent); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_LastReceived_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_LastReceived_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_LastReceived_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__Connection_LastReceived_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->LastReceived = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_LastReceived_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_LastReceived_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_LastReceived_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = (GoInt64_) ((arg1)->LastReceived); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Outgoing_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_Outgoing_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Outgoing_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__Connection_Outgoing_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__Connection_Outgoing_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Outgoing = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Outgoing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_Outgoing_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Outgoing_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = ((arg1)->Outgoing); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Introduced_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_Introduced_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Introduced_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__Connection_Introduced_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__Connection_Introduced_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Introduced = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Introduced_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_Introduced_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Introduced_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = ((arg1)->Introduced); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Mirror_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_Mirror_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Mirror_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__Connection_Mirror_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Mirror = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_Mirror_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_Mirror_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_Mirror_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = (GoUint32_) ((arg1)->Mirror); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_ListenPort_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - GoUint16_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connection_ListenPort_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_ListenPort_set" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__Connection_ListenPort_set" "', argument " "2"" of type '" "GoUint16_""'"); - } - arg2 = (GoUint16_)(val2); - if (arg1) (arg1)->ListenPort = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connection_ListenPort_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint16_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connection_ListenPort_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connection_ListenPort_get" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - result = (GoUint16_) ((arg1)->ListenPort); - resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__Connection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__Connection")) SWIG_fail; - result = (daemon__Connection *)calloc(1, sizeof(daemon__Connection)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__Connection, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__Connection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connection *arg1 = (daemon__Connection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__Connection",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connection, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__Connection" "', argument " "1"" of type '" "daemon__Connection *""'"); - } - arg1 = (daemon__Connection *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__Connection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__Connection, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__Connections_Connections_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connections *arg1 = (daemon__Connections *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__Connections_Connections_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connections, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connections_Connections_set" "', argument " "1"" of type '" "daemon__Connections *""'"); - } - arg1 = (daemon__Connections *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__Connections_Connections_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__Connections_Connections_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Connections = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__Connections_Connections_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connections *arg1 = (daemon__Connections *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__Connections_Connections_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connections, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__Connections_Connections_get" "', argument " "1"" of type '" "daemon__Connections *""'"); - } - arg1 = (daemon__Connections *)(argp1); - result = ((arg1)->Connections); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__Connections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connections *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__Connections")) SWIG_fail; - result = (daemon__Connections *)calloc(1, sizeof(daemon__Connections)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__Connections, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__Connections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__Connections *arg1 = (daemon__Connections *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__Connections",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__Connections, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__Connections" "', argument " "1"" of type '" "daemon__Connections *""'"); - } - arg1 = (daemon__Connections *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__Connections_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__Connections, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__BlockchainProgress_Current_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__BlockchainProgress_Current_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__BlockchainProgress_Current_set" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__BlockchainProgress_Current_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Current = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__BlockchainProgress_Current_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__BlockchainProgress_Current_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__BlockchainProgress_Current_get" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - result = (GoUint64_) ((arg1)->Current); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__BlockchainProgress_Highest_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__BlockchainProgress_Highest_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__BlockchainProgress_Highest_set" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__BlockchainProgress_Highest_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Highest = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__BlockchainProgress_Highest_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__BlockchainProgress_Highest_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__BlockchainProgress_Highest_get" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - result = (GoUint64_) ((arg1)->Highest); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__BlockchainProgress_Peers_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__BlockchainProgress_Peers_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__BlockchainProgress_Peers_set" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__BlockchainProgress_Peers_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__BlockchainProgress_Peers_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Peers = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__BlockchainProgress_Peers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__BlockchainProgress_Peers_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__BlockchainProgress_Peers_get" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - result = ((arg1)->Peers); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__BlockchainProgress")) SWIG_fail; - result = (daemon__BlockchainProgress *)calloc(1, sizeof(daemon__BlockchainProgress)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__BlockchainProgress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__BlockchainProgress *arg1 = (daemon__BlockchainProgress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__BlockchainProgress",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__BlockchainProgress, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__BlockchainProgress" "', argument " "1"" of type '" "daemon__BlockchainProgress *""'"); - } - arg1 = (daemon__BlockchainProgress *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__BlockchainProgress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__BlockchainProgress, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__ResendResult_Txids_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ResendResult *arg1 = (daemon__ResendResult *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__ResendResult_Txids_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ResendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ResendResult_Txids_set" "', argument " "1"" of type '" "daemon__ResendResult *""'"); - } - arg1 = (daemon__ResendResult *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__ResendResult_Txids_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__ResendResult_Txids_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Txids = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__ResendResult_Txids_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ResendResult *arg1 = (daemon__ResendResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__ResendResult_Txids_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ResendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__ResendResult_Txids_get" "', argument " "1"" of type '" "daemon__ResendResult *""'"); - } - arg1 = (daemon__ResendResult *)(argp1); - result = ((arg1)->Txids); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__ResendResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ResendResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__ResendResult")) SWIG_fail; - result = (daemon__ResendResult *)calloc(1, sizeof(daemon__ResendResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__ResendResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__ResendResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__ResendResult *arg1 = (daemon__ResendResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__ResendResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__ResendResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__ResendResult" "', argument " "1"" of type '" "daemon__ResendResult *""'"); - } - arg1 = (daemon__ResendResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__ResendResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__ResendResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_daemon__RPC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__RPC *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__RPC")) SWIG_fail; - result = (daemon__RPC *)calloc(1, sizeof(daemon__RPC)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__RPC, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__RPC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__RPC *arg1 = (daemon__RPC *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__RPC",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__RPC, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__RPC" "', argument " "1"" of type '" "daemon__RPC *""'"); - } - arg1 = (daemon__RPC *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__RPC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__RPC, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__PeerBlockchainHeight_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PeerBlockchainHeight *arg1 = (daemon__PeerBlockchainHeight *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__PeerBlockchainHeight_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PeerBlockchainHeight, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__PeerBlockchainHeight_Address_set" "', argument " "1"" of type '" "daemon__PeerBlockchainHeight *""'"); - } - arg1 = (daemon__PeerBlockchainHeight *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "daemon__PeerBlockchainHeight_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__PeerBlockchainHeight_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PeerBlockchainHeight *arg1 = (daemon__PeerBlockchainHeight *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__PeerBlockchainHeight_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PeerBlockchainHeight, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__PeerBlockchainHeight_Address_get" "', argument " "1"" of type '" "daemon__PeerBlockchainHeight *""'"); - } - arg1 = (daemon__PeerBlockchainHeight *)(argp1); - result = ((arg1)->Address); - 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_daemon__PeerBlockchainHeight_Height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PeerBlockchainHeight *arg1 = (daemon__PeerBlockchainHeight *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__PeerBlockchainHeight_Height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PeerBlockchainHeight, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__PeerBlockchainHeight_Height_set" "', argument " "1"" of type '" "daemon__PeerBlockchainHeight *""'"); - } - arg1 = (daemon__PeerBlockchainHeight *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__PeerBlockchainHeight_Height_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Height = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__PeerBlockchainHeight_Height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PeerBlockchainHeight *arg1 = (daemon__PeerBlockchainHeight *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__PeerBlockchainHeight_Height_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PeerBlockchainHeight, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__PeerBlockchainHeight_Height_get" "', argument " "1"" of type '" "daemon__PeerBlockchainHeight *""'"); - } - arg1 = (daemon__PeerBlockchainHeight *)(argp1); - result = (GoUint64_) ((arg1)->Height); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__PeerBlockchainHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PeerBlockchainHeight *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__PeerBlockchainHeight")) SWIG_fail; - result = (daemon__PeerBlockchainHeight *)calloc(1, sizeof(daemon__PeerBlockchainHeight)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__PeerBlockchainHeight, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__PeerBlockchainHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__PeerBlockchainHeight *arg1 = (daemon__PeerBlockchainHeight *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__PeerBlockchainHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__PeerBlockchainHeight, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__PeerBlockchainHeight" "', argument " "1"" of type '" "daemon__PeerBlockchainHeight *""'"); - } - arg1 = (daemon__PeerBlockchainHeight *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__PeerBlockchainHeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__PeerBlockchainHeight, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GetBlocksMessage_LastBlock_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GetBlocksMessage_LastBlock_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetBlocksMessage_LastBlock_set" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__GetBlocksMessage_LastBlock_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->LastBlock = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetBlocksMessage_LastBlock_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GetBlocksMessage_LastBlock_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetBlocksMessage_LastBlock_get" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - result = (GoUint64_) ((arg1)->LastBlock); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetBlocksMessage_RequestedBlocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GetBlocksMessage_RequestedBlocks_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetBlocksMessage_RequestedBlocks_set" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__GetBlocksMessage_RequestedBlocks_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->RequestedBlocks = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetBlocksMessage_RequestedBlocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GetBlocksMessage_RequestedBlocks_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetBlocksMessage_RequestedBlocks_get" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - result = (GoUint64_) ((arg1)->RequestedBlocks); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetBlocksMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GetBlocksMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetBlocksMessage_c_set" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GetBlocksMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetBlocksMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GetBlocksMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetBlocksMessage_c_get" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GetBlocksMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GetBlocksMessage")) SWIG_fail; - result = (daemon__GetBlocksMessage *)calloc(1, sizeof(daemon__GetBlocksMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GetBlocksMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GetBlocksMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetBlocksMessage *arg1 = (daemon__GetBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GetBlocksMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetBlocksMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GetBlocksMessage" "', argument " "1"" of type '" "daemon__GetBlocksMessage *""'"); - } - arg1 = (daemon__GetBlocksMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GetBlocksMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GetBlocksMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GiveBlocksMessage_Blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveBlocksMessage *arg1 = (daemon__GiveBlocksMessage *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GiveBlocksMessage_Blocks_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveBlocksMessage_Blocks_set" "', argument " "1"" of type '" "daemon__GiveBlocksMessage *""'"); - } - arg1 = (daemon__GiveBlocksMessage *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GiveBlocksMessage_Blocks_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__GiveBlocksMessage_Blocks_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Blocks = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GiveBlocksMessage_Blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveBlocksMessage *arg1 = (daemon__GiveBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GiveBlocksMessage_Blocks_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveBlocksMessage_Blocks_get" "', argument " "1"" of type '" "daemon__GiveBlocksMessage *""'"); - } - arg1 = (daemon__GiveBlocksMessage *)(argp1); - result = ((arg1)->Blocks); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GiveBlocksMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveBlocksMessage *arg1 = (daemon__GiveBlocksMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GiveBlocksMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveBlocksMessage_c_set" "', argument " "1"" of type '" "daemon__GiveBlocksMessage *""'"); - } - arg1 = (daemon__GiveBlocksMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GiveBlocksMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GiveBlocksMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveBlocksMessage *arg1 = (daemon__GiveBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GiveBlocksMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveBlocksMessage_c_get" "', argument " "1"" of type '" "daemon__GiveBlocksMessage *""'"); - } - arg1 = (daemon__GiveBlocksMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GiveBlocksMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveBlocksMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GiveBlocksMessage")) SWIG_fail; - result = (daemon__GiveBlocksMessage *)calloc(1, sizeof(daemon__GiveBlocksMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GiveBlocksMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GiveBlocksMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveBlocksMessage *arg1 = (daemon__GiveBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GiveBlocksMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveBlocksMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GiveBlocksMessage" "', argument " "1"" of type '" "daemon__GiveBlocksMessage *""'"); - } - arg1 = (daemon__GiveBlocksMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GiveBlocksMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GiveBlocksMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__AnnounceBlocksMessage_MaxBkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceBlocksMessage *arg1 = (daemon__AnnounceBlocksMessage *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__AnnounceBlocksMessage_MaxBkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceBlocksMessage_MaxBkSeq_set" "', argument " "1"" of type '" "daemon__AnnounceBlocksMessage *""'"); - } - arg1 = (daemon__AnnounceBlocksMessage *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "daemon__AnnounceBlocksMessage_MaxBkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->MaxBkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__AnnounceBlocksMessage_MaxBkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceBlocksMessage *arg1 = (daemon__AnnounceBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__AnnounceBlocksMessage_MaxBkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceBlocksMessage_MaxBkSeq_get" "', argument " "1"" of type '" "daemon__AnnounceBlocksMessage *""'"); - } - arg1 = (daemon__AnnounceBlocksMessage *)(argp1); - result = (GoUint64_) ((arg1)->MaxBkSeq); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__AnnounceBlocksMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceBlocksMessage *arg1 = (daemon__AnnounceBlocksMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__AnnounceBlocksMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceBlocksMessage_c_set" "', argument " "1"" of type '" "daemon__AnnounceBlocksMessage *""'"); - } - arg1 = (daemon__AnnounceBlocksMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__AnnounceBlocksMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__AnnounceBlocksMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceBlocksMessage *arg1 = (daemon__AnnounceBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__AnnounceBlocksMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceBlocksMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceBlocksMessage_c_get" "', argument " "1"" of type '" "daemon__AnnounceBlocksMessage *""'"); - } - arg1 = (daemon__AnnounceBlocksMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__AnnounceBlocksMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceBlocksMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__AnnounceBlocksMessage")) SWIG_fail; - result = (daemon__AnnounceBlocksMessage *)calloc(1, sizeof(daemon__AnnounceBlocksMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__AnnounceBlocksMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__AnnounceBlocksMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceBlocksMessage *arg1 = (daemon__AnnounceBlocksMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__AnnounceBlocksMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceBlocksMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__AnnounceBlocksMessage" "', argument " "1"" of type '" "daemon__AnnounceBlocksMessage *""'"); - } - arg1 = (daemon__AnnounceBlocksMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__AnnounceBlocksMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__AnnounceBlocksMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__AnnounceTxnsMessage_Txns_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceTxnsMessage *arg1 = (daemon__AnnounceTxnsMessage *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__AnnounceTxnsMessage_Txns_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceTxnsMessage_Txns_set" "', argument " "1"" of type '" "daemon__AnnounceTxnsMessage *""'"); - } - arg1 = (daemon__AnnounceTxnsMessage *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__AnnounceTxnsMessage_Txns_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__AnnounceTxnsMessage_Txns_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Txns = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__AnnounceTxnsMessage_Txns_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceTxnsMessage *arg1 = (daemon__AnnounceTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__AnnounceTxnsMessage_Txns_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceTxnsMessage_Txns_get" "', argument " "1"" of type '" "daemon__AnnounceTxnsMessage *""'"); - } - arg1 = (daemon__AnnounceTxnsMessage *)(argp1); - result = ((arg1)->Txns); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__AnnounceTxnsMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceTxnsMessage *arg1 = (daemon__AnnounceTxnsMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__AnnounceTxnsMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceTxnsMessage_c_set" "', argument " "1"" of type '" "daemon__AnnounceTxnsMessage *""'"); - } - arg1 = (daemon__AnnounceTxnsMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__AnnounceTxnsMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__AnnounceTxnsMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceTxnsMessage *arg1 = (daemon__AnnounceTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__AnnounceTxnsMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__AnnounceTxnsMessage_c_get" "', argument " "1"" of type '" "daemon__AnnounceTxnsMessage *""'"); - } - arg1 = (daemon__AnnounceTxnsMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__AnnounceTxnsMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceTxnsMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__AnnounceTxnsMessage")) SWIG_fail; - result = (daemon__AnnounceTxnsMessage *)calloc(1, sizeof(daemon__AnnounceTxnsMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__AnnounceTxnsMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__AnnounceTxnsMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__AnnounceTxnsMessage *arg1 = (daemon__AnnounceTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__AnnounceTxnsMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__AnnounceTxnsMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__AnnounceTxnsMessage" "', argument " "1"" of type '" "daemon__AnnounceTxnsMessage *""'"); - } - arg1 = (daemon__AnnounceTxnsMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__AnnounceTxnsMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__AnnounceTxnsMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GetTxnsMessage_Txns_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetTxnsMessage *arg1 = (daemon__GetTxnsMessage *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GetTxnsMessage_Txns_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetTxnsMessage_Txns_set" "', argument " "1"" of type '" "daemon__GetTxnsMessage *""'"); - } - arg1 = (daemon__GetTxnsMessage *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GetTxnsMessage_Txns_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__GetTxnsMessage_Txns_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Txns = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetTxnsMessage_Txns_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetTxnsMessage *arg1 = (daemon__GetTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GetTxnsMessage_Txns_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetTxnsMessage_Txns_get" "', argument " "1"" of type '" "daemon__GetTxnsMessage *""'"); - } - arg1 = (daemon__GetTxnsMessage *)(argp1); - result = ((arg1)->Txns); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetTxnsMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetTxnsMessage *arg1 = (daemon__GetTxnsMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GetTxnsMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetTxnsMessage_c_set" "', argument " "1"" of type '" "daemon__GetTxnsMessage *""'"); - } - arg1 = (daemon__GetTxnsMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GetTxnsMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GetTxnsMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetTxnsMessage *arg1 = (daemon__GetTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GetTxnsMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GetTxnsMessage_c_get" "', argument " "1"" of type '" "daemon__GetTxnsMessage *""'"); - } - arg1 = (daemon__GetTxnsMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GetTxnsMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetTxnsMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GetTxnsMessage")) SWIG_fail; - result = (daemon__GetTxnsMessage *)calloc(1, sizeof(daemon__GetTxnsMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GetTxnsMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GetTxnsMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GetTxnsMessage *arg1 = (daemon__GetTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GetTxnsMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GetTxnsMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GetTxnsMessage" "', argument " "1"" of type '" "daemon__GetTxnsMessage *""'"); - } - arg1 = (daemon__GetTxnsMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GetTxnsMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GetTxnsMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_daemon__GiveTxnsMessage_Txns_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveTxnsMessage *arg1 = (daemon__GiveTxnsMessage *) 0 ; - coin__Transactions arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GiveTxnsMessage_Txns_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveTxnsMessage_Txns_set" "', argument " "1"" of type '" "daemon__GiveTxnsMessage *""'"); - } - arg1 = (daemon__GiveTxnsMessage *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GiveTxnsMessage_Txns_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "daemon__GiveTxnsMessage_Txns_set" "', argument " "2"" of type '" "coin__Transactions""'"); - } else { - arg2 = *((coin__Transactions *)(argp2)); - } - } - if (arg1) (arg1)->Txns = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GiveTxnsMessage_Txns_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveTxnsMessage *arg1 = (daemon__GiveTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - coin__Transactions result; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GiveTxnsMessage_Txns_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveTxnsMessage_Txns_get" "', argument " "1"" of type '" "daemon__GiveTxnsMessage *""'"); - } - arg1 = (daemon__GiveTxnsMessage *)(argp1); - result = ((arg1)->Txns); - resultobj = SWIG_NewPointerObj((coin__Transactions *)memcpy((coin__Transactions *)calloc(1,sizeof(coin__Transactions)),&result,sizeof(coin__Transactions)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GiveTxnsMessage_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveTxnsMessage *arg1 = (daemon__GiveTxnsMessage *) 0 ; - gnet__MessageContext *arg2 = (gnet__MessageContext *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:daemon__GiveTxnsMessage_c_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveTxnsMessage_c_set" "', argument " "1"" of type '" "daemon__GiveTxnsMessage *""'"); - } - arg1 = (daemon__GiveTxnsMessage *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_gnet__MessageContext, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "daemon__GiveTxnsMessage_c_set" "', argument " "2"" of type '" "gnet__MessageContext *""'"); - } - arg2 = (gnet__MessageContext *)(argp2); - if (arg1) (arg1)->c = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_daemon__GiveTxnsMessage_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveTxnsMessage *arg1 = (daemon__GiveTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - gnet__MessageContext *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:daemon__GiveTxnsMessage_c_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveTxnsMessage, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "daemon__GiveTxnsMessage_c_get" "', argument " "1"" of type '" "daemon__GiveTxnsMessage *""'"); - } - arg1 = (daemon__GiveTxnsMessage *)(argp1); - result = (gnet__MessageContext *) ((arg1)->c); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gnet__MessageContext, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_daemon__GiveTxnsMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveTxnsMessage *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_daemon__GiveTxnsMessage")) SWIG_fail; - result = (daemon__GiveTxnsMessage *)calloc(1, sizeof(daemon__GiveTxnsMessage)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__GiveTxnsMessage, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_daemon__GiveTxnsMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - daemon__GiveTxnsMessage *arg1 = (daemon__GiveTxnsMessage *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_daemon__GiveTxnsMessage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_daemon__GiveTxnsMessage, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_daemon__GiveTxnsMessage" "', argument " "1"" of type '" "daemon__GiveTxnsMessage *""'"); - } - arg1 = (daemon__GiveTxnsMessage *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *daemon__GiveTxnsMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_daemon__GiveTxnsMessage, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_webrpc__OutputsResult_Outputs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__OutputsResult *arg1 = (webrpc__OutputsResult *) 0 ; - visor__ReadableOutputSet *arg2 = (visor__ReadableOutputSet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__OutputsResult_Outputs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__OutputsResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__OutputsResult_Outputs_set" "', argument " "1"" of type '" "webrpc__OutputsResult *""'"); - } - arg1 = (webrpc__OutputsResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webrpc__OutputsResult_Outputs_set" "', argument " "2"" of type '" "visor__ReadableOutputSet *""'"); - } - arg2 = (visor__ReadableOutputSet *)(argp2); - if (arg1) (arg1)->Outputs = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__OutputsResult_Outputs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__OutputsResult *arg1 = (webrpc__OutputsResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableOutputSet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__OutputsResult_Outputs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__OutputsResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__OutputsResult_Outputs_get" "', argument " "1"" of type '" "webrpc__OutputsResult *""'"); - } - arg1 = (webrpc__OutputsResult *)(argp1); - result = (visor__ReadableOutputSet *)& ((arg1)->Outputs); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableOutputSet, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_webrpc__OutputsResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__OutputsResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_webrpc__OutputsResult")) SWIG_fail; - result = (webrpc__OutputsResult *)calloc(1, sizeof(webrpc__OutputsResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webrpc__OutputsResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_webrpc__OutputsResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__OutputsResult *arg1 = (webrpc__OutputsResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_webrpc__OutputsResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__OutputsResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webrpc__OutputsResult" "', argument " "1"" of type '" "webrpc__OutputsResult *""'"); - } - arg1 = (webrpc__OutputsResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *webrpc__OutputsResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_webrpc__OutputsResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_Running_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__StatusResult_Running_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_Running_set" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webrpc__StatusResult_Running_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "webrpc__StatusResult_Running_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Running = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_Running_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__StatusResult_Running_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_Running_get" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - result = ((arg1)->Running); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_BlockNum_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__StatusResult_BlockNum_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_BlockNum_set" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "webrpc__StatusResult_BlockNum_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->BlockNum = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_BlockNum_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__StatusResult_BlockNum_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_BlockNum_get" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - result = (GoUint64_) ((arg1)->BlockNum); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_LastBlockHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__StatusResult_LastBlockHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_LastBlockHash_set" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "webrpc__StatusResult_LastBlockHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->LastBlockHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_LastBlockHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__StatusResult_LastBlockHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_LastBlockHash_get" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - result = ((arg1)->LastBlockHash); - 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_webrpc__StatusResult_TimeSinceLastBlock_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__StatusResult_TimeSinceLastBlock_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_TimeSinceLastBlock_set" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "webrpc__StatusResult_TimeSinceLastBlock_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TimeSinceLastBlock = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__StatusResult_TimeSinceLastBlock_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__StatusResult_TimeSinceLastBlock_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__StatusResult_TimeSinceLastBlock_get" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - result = ((arg1)->TimeSinceLastBlock); - 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_webrpc__StatusResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_webrpc__StatusResult")) SWIG_fail; - result = (webrpc__StatusResult *)calloc(1, sizeof(webrpc__StatusResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webrpc__StatusResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_webrpc__StatusResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__StatusResult *arg1 = (webrpc__StatusResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_webrpc__StatusResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__StatusResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webrpc__StatusResult" "', argument " "1"" of type '" "webrpc__StatusResult *""'"); - } - arg1 = (webrpc__StatusResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *webrpc__StatusResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_webrpc__StatusResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_webrpc__TxIDJson_Txid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxIDJson *arg1 = (webrpc__TxIDJson *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__TxIDJson_Txid_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__TxIDJson, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__TxIDJson_Txid_set" "', argument " "1"" of type '" "webrpc__TxIDJson *""'"); - } - arg1 = (webrpc__TxIDJson *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "webrpc__TxIDJson_Txid_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Txid = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__TxIDJson_Txid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxIDJson *arg1 = (webrpc__TxIDJson *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__TxIDJson_Txid_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__TxIDJson, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__TxIDJson_Txid_get" "', argument " "1"" of type '" "webrpc__TxIDJson *""'"); - } - arg1 = (webrpc__TxIDJson *)(argp1); - result = ((arg1)->Txid); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_webrpc__TxIDJson(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxIDJson *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_webrpc__TxIDJson")) SWIG_fail; - result = (webrpc__TxIDJson *)calloc(1, sizeof(webrpc__TxIDJson)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webrpc__TxIDJson, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_webrpc__TxIDJson(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxIDJson *arg1 = (webrpc__TxIDJson *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_webrpc__TxIDJson",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__TxIDJson, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webrpc__TxIDJson" "', argument " "1"" of type '" "webrpc__TxIDJson *""'"); - } - arg1 = (webrpc__TxIDJson *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *webrpc__TxIDJson_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_webrpc__TxIDJson, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_webrpc__TxnResult_Transaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxnResult *arg1 = (webrpc__TxnResult *) 0 ; - daemon__TransactionResult *arg2 = (daemon__TransactionResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__TxnResult_Transaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__TxnResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__TxnResult_Transaction_set" "', argument " "1"" of type '" "webrpc__TxnResult *""'"); - } - arg1 = (webrpc__TxnResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_daemon__TransactionResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webrpc__TxnResult_Transaction_set" "', argument " "2"" of type '" "daemon__TransactionResult *""'"); - } - arg2 = (daemon__TransactionResult *)(argp2); - if (arg1) (arg1)->Transaction = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__TxnResult_Transaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxnResult *arg1 = (webrpc__TxnResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - daemon__TransactionResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__TxnResult_Transaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__TxnResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__TxnResult_Transaction_get" "', argument " "1"" of type '" "webrpc__TxnResult *""'"); - } - arg1 = (webrpc__TxnResult *)(argp1); - result = (daemon__TransactionResult *) ((arg1)->Transaction); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_daemon__TransactionResult, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_webrpc__TxnResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxnResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_webrpc__TxnResult")) SWIG_fail; - result = (webrpc__TxnResult *)calloc(1, sizeof(webrpc__TxnResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webrpc__TxnResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_webrpc__TxnResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__TxnResult *arg1 = (webrpc__TxnResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_webrpc__TxnResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__TxnResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webrpc__TxnResult" "', argument " "1"" of type '" "webrpc__TxnResult *""'"); - } - arg1 = (webrpc__TxnResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *webrpc__TxnResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_webrpc__TxnResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_webrpc__AddrUxoutResult_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__AddrUxoutResult *arg1 = (webrpc__AddrUxoutResult *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__AddrUxoutResult_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__AddrUxoutResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__AddrUxoutResult_Address_set" "', argument " "1"" of type '" "webrpc__AddrUxoutResult *""'"); - } - arg1 = (webrpc__AddrUxoutResult *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "webrpc__AddrUxoutResult_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__AddrUxoutResult_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__AddrUxoutResult *arg1 = (webrpc__AddrUxoutResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__AddrUxoutResult_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__AddrUxoutResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__AddrUxoutResult_Address_get" "', argument " "1"" of type '" "webrpc__AddrUxoutResult *""'"); - } - arg1 = (webrpc__AddrUxoutResult *)(argp1); - result = ((arg1)->Address); - 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_webrpc__AddrUxoutResult_UxOuts_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__AddrUxoutResult *arg1 = (webrpc__AddrUxoutResult *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__AddrUxoutResult_UxOuts_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__AddrUxoutResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__AddrUxoutResult_UxOuts_set" "', argument " "1"" of type '" "webrpc__AddrUxoutResult *""'"); - } - arg1 = (webrpc__AddrUxoutResult *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webrpc__AddrUxoutResult_UxOuts_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "webrpc__AddrUxoutResult_UxOuts_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->UxOuts = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__AddrUxoutResult_UxOuts_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__AddrUxoutResult *arg1 = (webrpc__AddrUxoutResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__AddrUxoutResult_UxOuts_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__AddrUxoutResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__AddrUxoutResult_UxOuts_get" "', argument " "1"" of type '" "webrpc__AddrUxoutResult *""'"); - } - arg1 = (webrpc__AddrUxoutResult *)(argp1); - result = ((arg1)->UxOuts); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_webrpc__AddrUxoutResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__AddrUxoutResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_webrpc__AddrUxoutResult")) SWIG_fail; - result = (webrpc__AddrUxoutResult *)calloc(1, sizeof(webrpc__AddrUxoutResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webrpc__AddrUxoutResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_webrpc__AddrUxoutResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__AddrUxoutResult *arg1 = (webrpc__AddrUxoutResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_webrpc__AddrUxoutResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__AddrUxoutResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webrpc__AddrUxoutResult" "', argument " "1"" of type '" "webrpc__AddrUxoutResult *""'"); - } - arg1 = (webrpc__AddrUxoutResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *webrpc__AddrUxoutResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_webrpc__AddrUxoutResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_webrpc__RPCError_Code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__RPCError_Code_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__RPCError_Code_set" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "webrpc__RPCError_Code_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->Code = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__RPCError_Code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__RPCError_Code_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__RPCError_Code_get" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - result = (GoInt_) ((arg1)->Code); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__RPCError_Message_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__RPCError_Message_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__RPCError_Message_set" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "webrpc__RPCError_Message_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Message = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__RPCError_Message_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__RPCError_Message_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__RPCError_Message_get" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - result = ((arg1)->Message); - 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_webrpc__RPCError_Data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:webrpc__RPCError_Data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__RPCError_Data_set" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "webrpc__RPCError_Data_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_webrpc__RPCError_Data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:webrpc__RPCError_Data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webrpc__RPCError_Data_get" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - result = ((arg1)->Data); - 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_webrpc__RPCError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_webrpc__RPCError")) SWIG_fail; - result = (webrpc__RPCError *)calloc(1, sizeof(webrpc__RPCError)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webrpc__RPCError, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_webrpc__RPCError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - webrpc__RPCError *arg1 = (webrpc__RPCError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_webrpc__RPCError",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webrpc__RPCError, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webrpc__RPCError" "', argument " "1"" of type '" "webrpc__RPCError *""'"); - } - arg1 = (webrpc__RPCError *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *webrpc__RPCError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_webrpc__RPCError, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Balance_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_set" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Balance_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_get" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint64_) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Balance_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_set" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Balance_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_get" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - result = (GoUint64_) ((arg1)->Hours); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Balance")) SWIG_fail; - result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Balance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Balance" "', argument " "1"" of type '" "wallet__Balance *""'"); - } - arg1 = (wallet__Balance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Balance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Balance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__BalancePair_Confirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - if (arg1) (arg1)->Confirmed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - wallet__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__BalancePair_Confirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - result = (wallet__Balance *)& ((arg1)->Confirmed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__BalancePair_Predicted_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "2"" of type '" "wallet__Balance *""'"); - } - arg2 = (wallet__Balance *)(argp2); - if (arg1) (arg1)->Predicted = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - wallet__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__BalancePair_Predicted_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - result = (wallet__Balance *)& ((arg1)->Predicted); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__BalancePair")) SWIG_fail; - result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__BalancePair",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__BalancePair" "', argument " "1"" of type '" "wallet__BalancePair *""'"); - } - arg1 = (wallet__BalancePair *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__BalancePair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__BalancePair, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Entry_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Address_set" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Address_get" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Public_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Public_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Public_set" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Public_set" "', argument " "2"" of type '" "unsigned char [33]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)33; ++ii) *(unsigned char *)&arg1->Public[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Public""' of type '""unsigned char [33]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Public_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Public_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Public_get" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint8_ *) ((arg1)->Public); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Secret_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Secret_set" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Secret_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Secret[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Secret""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Secret_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Secret_get" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - result = (GoUint8_ *) ((arg1)->Secret); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Entry")) SWIG_fail; - result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Entry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Entry",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Entry" "', argument " "1"" of type '" "wallet__Entry *""'"); - } - arg1 = (wallet__Entry *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Entry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Entry, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Note_TxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Note_TxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_TxID_set" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Note_TxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Note_TxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Note_TxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_TxID_get" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - result = ((arg1)->TxID); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Note_Value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Note_Value_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_Value_set" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Note_Value_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Value = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Note_Value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Note_Value_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_Value_get" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - result = ((arg1)->Value); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Note")) SWIG_fail; - result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Note, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Note *arg1 = (wallet__Note *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Note",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Note" "', argument " "1"" of type '" "wallet__Note *""'"); - } - arg1 = (wallet__Note *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Note_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Note, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_TransactionID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableNote_TransactionID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_TransactionID_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__ReadableNote_TransactionID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TransactionID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_TransactionID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableNote_TransactionID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_TransactionID_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - result = ((arg1)->TransactionID); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableNote_ActualNote_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_ActualNote_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__ReadableNote_ActualNote_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ActualNote = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableNote_ActualNote_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_ActualNote_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - result = ((arg1)->ActualNote); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__ReadableNote")) SWIG_fail; - result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__ReadableNote, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__ReadableNote",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__ReadableNote" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); - } - arg1 = (wallet__ReadableNote *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__ReadableNote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__ReadableNote, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__ReadableEntry_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableEntry_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableEntry_Address_set" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__ReadableEntry_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableEntry_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableEntry_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableEntry_Address_get" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - result = ((arg1)->Address); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableEntry_Public_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableEntry_Public_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableEntry_Public_set" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__ReadableEntry_Public_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Public = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableEntry_Public_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableEntry_Public_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableEntry_Public_get" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - result = ((arg1)->Public); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableEntry_Secret_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableEntry_Secret_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableEntry_Secret_set" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__ReadableEntry_Secret_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Secret = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__ReadableEntry_Secret_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableEntry_Secret_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableEntry_Secret_get" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - result = ((arg1)->Secret); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__ReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__ReadableEntry")) SWIG_fail; - result = (wallet__ReadableEntry *)calloc(1, sizeof(wallet__ReadableEntry)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__ReadableEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__ReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__ReadableEntry *arg1 = (wallet__ReadableEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__ReadableEntry",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableEntry, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__ReadableEntry" "', argument " "1"" of type '" "wallet__ReadableEntry *""'"); - } - arg1 = (wallet__ReadableEntry *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__ReadableEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__ReadableEntry, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Config_WalletDir_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Config_WalletDir_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_WalletDir_set" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Config_WalletDir_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->WalletDir = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_WalletDir_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Config_WalletDir_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_WalletDir_get" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - result = ((arg1)->WalletDir); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_CryptoType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Config_CryptoType_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_CryptoType_set" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Config_CryptoType_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->CryptoType = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_CryptoType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Config_CryptoType_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_CryptoType_get" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - result = ((arg1)->CryptoType); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_EnableWalletAPI_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Config_EnableWalletAPI_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_EnableWalletAPI_set" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Config_EnableWalletAPI_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "wallet__Config_EnableWalletAPI_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->EnableWalletAPI = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_EnableWalletAPI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Config_EnableWalletAPI_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_EnableWalletAPI_get" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - result = ((arg1)->EnableWalletAPI); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_EnableSeedAPI_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Config_EnableSeedAPI_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_EnableSeedAPI_set" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Config_EnableSeedAPI_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "wallet__Config_EnableSeedAPI_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->EnableSeedAPI = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Config_EnableSeedAPI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Config_EnableSeedAPI_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Config_EnableSeedAPI_get" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - result = ((arg1)->EnableSeedAPI); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Config")) SWIG_fail; - result = (wallet__Config *)calloc(1, sizeof(wallet__Config)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Config, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Config *arg1 = (wallet__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Config",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Config, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Config" "', argument " "1"" of type '" "wallet__Config *""'"); - } - arg1 = (wallet__Config *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Config_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Config, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Wallet_Meta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoMap_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Wallet_Meta_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Wallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Wallet_Meta_set" "', argument " "1"" of type '" "wallet__Wallet *""'"); - } - arg1 = (wallet__Wallet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoMap_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Wallet_Meta_set" "', argument " "2"" of type '" "GoMap_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "wallet__Wallet_Meta_set" "', argument " "2"" of type '" "GoMap_""'"); - } else { - arg2 = *((GoMap_ *)(argp2)); - } - } - if (arg1) (arg1)->Meta = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Wallet_Meta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoMap_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Wallet_Meta_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Wallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Wallet_Meta_get" "', argument " "1"" of type '" "wallet__Wallet *""'"); - } - arg1 = (wallet__Wallet *)(argp1); - result = ((arg1)->Meta); - resultobj = SWIG_NewPointerObj((GoMap_ *)memcpy((GoMap_ *)calloc(1,sizeof(GoMap_)),&result,sizeof(GoMap_)), SWIGTYPE_p_GoMap_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Wallet_Entries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Wallet_Entries_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Wallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Wallet_Entries_set" "', argument " "1"" of type '" "wallet__Wallet *""'"); - } - arg1 = (wallet__Wallet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Wallet_Entries_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "wallet__Wallet_Entries_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Entries = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Wallet_Entries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Wallet_Entries_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Wallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Wallet_Entries_get" "', argument " "1"" of type '" "wallet__Wallet *""'"); - } - arg1 = (wallet__Wallet *)(argp1); - result = ((arg1)->Entries); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Wallet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Wallet")) SWIG_fail; - result = (wallet__Wallet *)calloc(1, sizeof(wallet__Wallet)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Wallet, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Wallet",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Wallet, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Wallet" "', argument " "1"" of type '" "wallet__Wallet *""'"); - } - arg1 = (wallet__Wallet *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Wallet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Wallet, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__Options_Coin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Options_Coin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Coin_set" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Options_Coin_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coin = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Coin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Options_Coin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Coin_get" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - result = ((arg1)->Coin); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Label_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Options_Label_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Label_set" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Options_Label_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Label = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Label_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Options_Label_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Label_get" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - result = ((arg1)->Label); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Seed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Options_Seed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Seed_set" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Options_Seed_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Seed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Seed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Options_Seed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Seed_get" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - result = ((arg1)->Seed); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Encrypt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Options_Encrypt_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Encrypt_set" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Options_Encrypt_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "wallet__Options_Encrypt_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Encrypt = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Encrypt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Options_Encrypt_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Encrypt_get" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - result = ((arg1)->Encrypt); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Password_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Options_Password_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Password_set" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Options_Password_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "wallet__Options_Password_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Password = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_Password_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Options_Password_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_Password_get" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - result = ((arg1)->Password); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_CryptoType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Options_CryptoType_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_CryptoType_set" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "wallet__Options_CryptoType_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->CryptoType = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__Options_CryptoType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__Options_CryptoType_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Options_CryptoType_get" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - result = ((arg1)->CryptoType); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__Options(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__Options")) SWIG_fail; - result = (wallet__Options *)calloc(1, sizeof(wallet__Options)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Options, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__Options(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__Options *arg1 = (wallet__Options *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Options",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Options, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Options" "', argument " "1"" of type '" "wallet__Options *""'"); - } - arg1 = (wallet__Options *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__Options_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Options, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hash_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__UxBalance_Hash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); - } - arg2 = (unsigned char *)(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Hash[ii] = *((unsigned char *)arg2 + ii); - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Hash""' of type '""unsigned char [32]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hash_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoUint8_ *) ((arg1)->Hash); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_BkSeq_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_BkSeq_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_BkSeq_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->BkSeq = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_BkSeq_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_BkSeq_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->BkSeq); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Address_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__UxBalance_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); - } - arg2 = (cipher__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cipher__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Address_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (cipher__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Coins_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Coins_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->Coins); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hours_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_Hours_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hours_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - result = (GoInt64_) ((arg1)->Hours); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_wallet__UxBalance")) SWIG_fail; - result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__UxBalance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__UxBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__UxBalance" "', argument " "1"" of type '" "wallet__UxBalance *""'"); - } - arg1 = (wallet__UxBalance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *wallet__UxBalance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_wallet__UxBalance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequestWallet_ID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequestWallet_ID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequestWallet_ID_set" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreateTransactionRequestWallet_ID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequestWallet_ID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequestWallet_ID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequestWallet_ID_get" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - result = ((arg1)->ID); - 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__CreateTransactionRequestWallet_Addresses_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequestWallet_Addresses_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequestWallet_Addresses_set" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreateTransactionRequestWallet_Addresses_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__CreateTransactionRequestWallet_Addresses_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Addresses = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequestWallet_Addresses_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequestWallet_Addresses_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequestWallet_Addresses_get" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - result = ((arg1)->Addresses); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequestWallet_Password_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequestWallet_Password_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequestWallet_Password_set" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreateTransactionRequestWallet_Password_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Password = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequestWallet_Password_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequestWallet_Password_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequestWallet_Password_get" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - result = ((arg1)->Password); - 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__CreateTransactionRequestWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__CreateTransactionRequestWallet")) SWIG_fail; - result = (api__CreateTransactionRequestWallet *)calloc(1, sizeof(api__CreateTransactionRequestWallet)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreateTransactionRequestWallet, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__CreateTransactionRequestWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequestWallet *arg1 = (api__CreateTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__CreateTransactionRequestWallet",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequestWallet, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__CreateTransactionRequestWallet" "', argument " "1"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg1 = (api__CreateTransactionRequestWallet *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__CreateTransactionRequestWallet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__CreateTransactionRequestWallet, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__HoursSelection_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__HoursSelection_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__HoursSelection_Type_set" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__HoursSelection_Type_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__HoursSelection_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__HoursSelection_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__HoursSelection_Type_get" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - result = ((arg1)->Type); - 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__HoursSelection_Mode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__HoursSelection_Mode_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__HoursSelection_Mode_set" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__HoursSelection_Mode_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Mode = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__HoursSelection_Mode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__HoursSelection_Mode_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__HoursSelection_Mode_get" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - result = ((arg1)->Mode); - 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__HoursSelection_ShareFactor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__HoursSelection_ShareFactor_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__HoursSelection_ShareFactor_set" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__HoursSelection_ShareFactor_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ShareFactor = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__HoursSelection_ShareFactor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__HoursSelection_ShareFactor_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__HoursSelection_ShareFactor_get" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - result = ((arg1)->ShareFactor); - 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__HoursSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__HoursSelection")) SWIG_fail; - result = (api__HoursSelection *)calloc(1, sizeof(api__HoursSelection)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__HoursSelection, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__HoursSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__HoursSelection *arg1 = (api__HoursSelection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__HoursSelection",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__HoursSelection, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__HoursSelection" "', argument " "1"" of type '" "api__HoursSelection *""'"); - } - arg1 = (api__HoursSelection *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__HoursSelection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__HoursSelection, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__Receiver_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__Receiver_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Receiver_Address_set" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__Receiver_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__Receiver_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__Receiver_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Receiver_Address_get" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - result = ((arg1)->Address); - 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__Receiver_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__Receiver_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Receiver_Coins_set" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__Receiver_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__Receiver_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__Receiver_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Receiver_Coins_get" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - result = ((arg1)->Coins); - 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__Receiver_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__Receiver_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Receiver_Hours_set" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__Receiver_Hours_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__Receiver_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__Receiver_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Receiver_Hours_get" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - result = ((arg1)->Hours); - 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__Receiver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__Receiver")) SWIG_fail; - result = (api__Receiver *)calloc(1, sizeof(api__Receiver)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__Receiver, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__Receiver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Receiver *arg1 = (api__Receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__Receiver",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Receiver, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__Receiver" "', argument " "1"" of type '" "api__Receiver *""'"); - } - arg1 = (api__Receiver *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__Receiver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__Receiver, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__RichlistParams_N_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_N_set" "', argument " "2"" of type '" "GoInt_""'"); - } - arg2 = (GoInt_)(val2); - if (arg1) (arg1)->N = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__RichlistParams_N_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - result = (GoInt_) ((arg1)->N); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__RichlistParams_IncludeDistribution_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->IncludeDistribution = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__RichlistParams_IncludeDistribution_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - result = ((arg1)->IncludeDistribution); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__RichlistParams")) SWIG_fail; - result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__RichlistParams, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__RichlistParams",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__RichlistParams" "', argument " "1"" of type '" "api__RichlistParams *""'"); - } - arg1 = (api__RichlistParams *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__RichlistParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__RichlistParams, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_HoursSelection_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - api__HoursSelection *arg2 = (api__HoursSelection *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequest_HoursSelection_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_HoursSelection_set" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreateTransactionRequest_HoursSelection_set" "', argument " "2"" of type '" "api__HoursSelection *""'"); - } - arg2 = (api__HoursSelection *)(argp2); - if (arg1) (arg1)->HoursSelection = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_HoursSelection_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - api__HoursSelection *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequest_HoursSelection_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_HoursSelection_get" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - result = (api__HoursSelection *)& ((arg1)->HoursSelection); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__HoursSelection, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_Wallet_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - api__CreateTransactionRequestWallet *arg2 = (api__CreateTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequest_Wallet_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_Wallet_set" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreateTransactionRequest_Wallet_set" "', argument " "2"" of type '" "api__CreateTransactionRequestWallet *""'"); - } - arg2 = (api__CreateTransactionRequestWallet *)(argp2); - if (arg1) (arg1)->Wallet = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_Wallet_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - api__CreateTransactionRequestWallet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequest_Wallet_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_Wallet_get" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - result = (api__CreateTransactionRequestWallet *)& ((arg1)->Wallet); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreateTransactionRequestWallet, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_ChangeAddress_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequest_ChangeAddress_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_ChangeAddress_set" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreateTransactionRequest_ChangeAddress_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ChangeAddress = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_ChangeAddress_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequest_ChangeAddress_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_ChangeAddress_get" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - result = ((arg1)->ChangeAddress); - 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__CreateTransactionRequest_To_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionRequest_To_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_To_set" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreateTransactionRequest_To_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__CreateTransactionRequest_To_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->To = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionRequest_To_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionRequest_To_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionRequest_To_get" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - result = ((arg1)->To); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__CreateTransactionRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__CreateTransactionRequest")) SWIG_fail; - result = (api__CreateTransactionRequest *)calloc(1, sizeof(api__CreateTransactionRequest)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreateTransactionRequest, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__CreateTransactionRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionRequest *arg1 = (api__CreateTransactionRequest *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__CreateTransactionRequest",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionRequest, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__CreateTransactionRequest" "', argument " "1"" of type '" "api__CreateTransactionRequest *""'"); - } - arg1 = (api__CreateTransactionRequest *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__CreateTransactionRequest_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__CreateTransactionRequest, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__Richlist_Richlist_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Richlist *arg1 = (api__Richlist *) 0 ; - visor__Richlist arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__Richlist_Richlist_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Richlist, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Richlist_Richlist_set" "', argument " "1"" of type '" "api__Richlist *""'"); - } - arg1 = (api__Richlist *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__Richlist_Richlist_set" "', argument " "2"" of type '" "visor__Richlist""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__Richlist_Richlist_set" "', argument " "2"" of type '" "visor__Richlist""'"); - } else { - arg2 = *((visor__Richlist *)(argp2)); - } - } - if (arg1) (arg1)->Richlist = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__Richlist_Richlist_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Richlist *arg1 = (api__Richlist *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__Richlist result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__Richlist_Richlist_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Richlist, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__Richlist_Richlist_get" "', argument " "1"" of type '" "api__Richlist *""'"); - } - arg1 = (api__Richlist *)(argp1); - result = ((arg1)->Richlist); - resultobj = SWIG_NewPointerObj((visor__Richlist *)memcpy((visor__Richlist *)calloc(1,sizeof(visor__Richlist)),&result,sizeof(visor__Richlist)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Richlist *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__Richlist")) SWIG_fail; - result = (api__Richlist *)calloc(1, sizeof(api__Richlist)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__Richlist, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__Richlist *arg1 = (api__Richlist *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__Richlist",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__Richlist, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__Richlist" "', argument " "1"" of type '" "api__Richlist *""'"); - } - arg1 = (api__Richlist *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__Richlist_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__Richlist, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - visor__TransactionStatus *arg2 = (visor__TransactionStatus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_Status_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Status_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__ReadableTransaction_Status_set" "', argument " "2"" of type '" "visor__TransactionStatus *""'"); - } - arg2 = (visor__TransactionStatus *)(argp2); - if (arg1) (arg1)->Status = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__TransactionStatus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Status_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Status_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = (visor__TransactionStatus *)& ((arg1)->Status); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__TransactionStatus, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_Length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Length_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__ReadableTransaction_Length_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Length_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = (GoUint32_) ((arg1)->Length); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 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:api__ReadableTransaction_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Type_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__ReadableTransaction_Type_set" "', argument " "2"" of type '" "GoUint8_""'"); - } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Type_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = (GoUint8_) ((arg1)->Type); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_Hash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Hash_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__ReadableTransaction_Hash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Hash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Hash_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = ((arg1)->Hash); - 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__ReadableTransaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_InnerHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_InnerHash_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__ReadableTransaction_InnerHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->InnerHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_InnerHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_InnerHash_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = ((arg1)->InnerHash); - 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__ReadableTransaction_Timestamp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_Timestamp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Timestamp_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__ReadableTransaction_Timestamp_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Timestamp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Timestamp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Timestamp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Timestamp_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = (GoUint64_) ((arg1)->Timestamp); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Sigs_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__ReadableTransaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__ReadableTransaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Sigs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Sigs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Sigs_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = ((arg1)->Sigs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_In_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_In_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__ReadableTransaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__ReadableTransaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->In = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_In_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_In_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = ((arg1)->In); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__ReadableTransaction_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Out_set" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__ReadableTransaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__ReadableTransaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Out = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__ReadableTransaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__ReadableTransaction_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__ReadableTransaction_Out_get" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - result = ((arg1)->Out); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__ReadableTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__ReadableTransaction")) SWIG_fail; - result = (api__ReadableTransaction *)calloc(1, sizeof(api__ReadableTransaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__ReadableTransaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__ReadableTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__ReadableTransaction *arg1 = (api__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__ReadableTransaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__ReadableTransaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__ReadableTransaction" "', argument " "1"" of type '" "api__ReadableTransaction *""'"); - } - arg1 = (api__ReadableTransaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__ReadableTransaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__ReadableTransaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoUint32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_Length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Length_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__CreatedTransaction_Length_set" "', argument " "2"" of type '" "GoUint32_""'"); - } - arg2 = (GoUint32_)(val2); - if (arg1) (arg1)->Length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_Length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Length_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = (GoUint32_) ((arg1)->Length); - resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 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:api__CreatedTransaction_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Type_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__CreatedTransaction_Type_set" "', argument " "2"" of type '" "GoUint8_""'"); - } - arg2 = (GoUint8_)(val2); - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint8_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Type_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = (GoUint8_) ((arg1)->Type); - resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_TxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_TxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_TxID_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransaction_TxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_TxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_TxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_TxID_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = ((arg1)->TxID); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_InnerHash_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_InnerHash_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransaction_InnerHash_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->InnerHash = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_InnerHash_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_InnerHash_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = ((arg1)->InnerHash); - 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__CreatedTransaction_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_Fee_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Fee_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransaction_Fee_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Fee = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_Fee_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Fee_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = ((arg1)->Fee); - 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__CreatedTransaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_Sigs_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Sigs_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreatedTransaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__CreatedTransaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Sigs = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_Sigs_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Sigs_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = ((arg1)->Sigs); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_In_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_In_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreatedTransaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__CreatedTransaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->In = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_In_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_In_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = ((arg1)->In); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransaction_Out_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Out_set" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreatedTransaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__CreatedTransaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Out = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransaction_Out_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransaction_Out_get" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - result = ((arg1)->Out); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__CreatedTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__CreatedTransaction")) SWIG_fail; - result = (api__CreatedTransaction *)calloc(1, sizeof(api__CreatedTransaction)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreatedTransaction, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__CreatedTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransaction *arg1 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__CreatedTransaction",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__CreatedTransaction" "', argument " "1"" of type '" "api__CreatedTransaction *""'"); - } - arg1 = (api__CreatedTransaction *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__CreatedTransaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__CreatedTransaction, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionOutput_UxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionOutput_UxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_UxID_set" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionOutput_UxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->UxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionOutput_UxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionOutput_UxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_UxID_get" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - result = ((arg1)->UxID); - 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__CreatedTransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionOutput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_Address_set" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionOutput_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionOutput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_Address_get" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - result = ((arg1)->Address); - 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__CreatedTransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionOutput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_Coins_set" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionOutput_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionOutput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_Coins_get" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - result = ((arg1)->Coins); - 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__CreatedTransactionOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionOutput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_Hours_set" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionOutput_Hours_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionOutput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionOutput_Hours_get" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - result = ((arg1)->Hours); - 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__CreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__CreatedTransactionOutput")) SWIG_fail; - result = (api__CreatedTransactionOutput *)calloc(1, sizeof(api__CreatedTransactionOutput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreatedTransactionOutput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__CreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionOutput *arg1 = (api__CreatedTransactionOutput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__CreatedTransactionOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionOutput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__CreatedTransactionOutput" "', argument " "1"" of type '" "api__CreatedTransactionOutput *""'"); - } - arg1 = (api__CreatedTransactionOutput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__CreatedTransactionOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__CreatedTransactionOutput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_UxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_UxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_UxID_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionInput_UxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->UxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_UxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_UxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_UxID_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = ((arg1)->UxID); - 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__CreatedTransactionInput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Address_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionInput_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Address_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = ((arg1)->Address); - 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__CreatedTransactionInput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Coins_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionInput_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Coins_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = ((arg1)->Coins); - 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__CreatedTransactionInput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Hours_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionInput_Hours_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Hours_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = ((arg1)->Hours); - 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__CreatedTransactionInput_CalculatedHours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_CalculatedHours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_CalculatedHours_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionInput_CalculatedHours_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->CalculatedHours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_CalculatedHours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_CalculatedHours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_CalculatedHours_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = ((arg1)->CalculatedHours); - 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__CreatedTransactionInput_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_Time_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Time_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__CreatedTransactionInput_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Time = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_Time_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Time_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = (GoUint64_) ((arg1)->Time); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_Block_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoUint64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_Block_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Block_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__CreatedTransactionInput_Block_set" "', argument " "2"" of type '" "GoUint64_""'"); - } - arg2 = (GoUint64_)(val2); - if (arg1) (arg1)->Block = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_Block_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoUint64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_Block_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_Block_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = (GoUint64_) ((arg1)->Block); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_TxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreatedTransactionInput_TxID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_TxID_set" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreatedTransactionInput_TxID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->TxID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreatedTransactionInput_TxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreatedTransactionInput_TxID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreatedTransactionInput_TxID_get" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - result = ((arg1)->TxID); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__CreatedTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__CreatedTransactionInput")) SWIG_fail; - result = (api__CreatedTransactionInput *)calloc(1, sizeof(api__CreatedTransactionInput)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreatedTransactionInput, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__CreatedTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreatedTransactionInput *arg1 = (api__CreatedTransactionInput *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__CreatedTransactionInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreatedTransactionInput, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__CreatedTransactionInput" "', argument " "1"" of type '" "api__CreatedTransactionInput *""'"); - } - arg1 = (api__CreatedTransactionInput *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__CreatedTransactionInput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__CreatedTransactionInput, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__createTransactionRequestWallet_ID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__createTransactionRequestWallet_ID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__createTransactionRequestWallet_ID_set" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__createTransactionRequestWallet_ID_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->ID = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__createTransactionRequestWallet_ID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__createTransactionRequestWallet_ID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__createTransactionRequestWallet_ID_get" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - result = ((arg1)->ID); - 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__createTransactionRequestWallet_Addresses_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__createTransactionRequestWallet_Addresses_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__createTransactionRequestWallet_Addresses_set" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__createTransactionRequestWallet_Addresses_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__createTransactionRequestWallet_Addresses_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Addresses = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__createTransactionRequestWallet_Addresses_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__createTransactionRequestWallet_Addresses_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__createTransactionRequestWallet_Addresses_get" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - result = ((arg1)->Addresses); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__createTransactionRequestWallet_Password_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__createTransactionRequestWallet_Password_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__createTransactionRequestWallet_Password_set" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__createTransactionRequestWallet_Password_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Password = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__createTransactionRequestWallet_Password_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__createTransactionRequestWallet_Password_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__createTransactionRequestWallet_Password_get" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - result = ((arg1)->Password); - 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__createTransactionRequestWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__createTransactionRequestWallet")) SWIG_fail; - result = (api__createTransactionRequestWallet *)calloc(1, sizeof(api__createTransactionRequestWallet)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__createTransactionRequestWallet, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__createTransactionRequestWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__createTransactionRequestWallet *arg1 = (api__createTransactionRequestWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__createTransactionRequestWallet",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__createTransactionRequestWallet, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__createTransactionRequestWallet" "', argument " "1"" of type '" "api__createTransactionRequestWallet *""'"); - } - arg1 = (api__createTransactionRequestWallet *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__createTransactionRequestWallet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__createTransactionRequestWallet, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__CreateTransactionResponse_Transaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionResponse *arg1 = (api__CreateTransactionResponse *) 0 ; - api__CreatedTransaction *arg2 = (api__CreatedTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionResponse_Transaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionResponse_Transaction_set" "', argument " "1"" of type '" "api__CreateTransactionResponse *""'"); - } - arg1 = (api__CreateTransactionResponse *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__CreateTransactionResponse_Transaction_set" "', argument " "2"" of type '" "api__CreatedTransaction *""'"); - } - arg2 = (api__CreatedTransaction *)(argp2); - if (arg1) (arg1)->Transaction = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionResponse_Transaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionResponse *arg1 = (api__CreateTransactionResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - api__CreatedTransaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionResponse_Transaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionResponse_Transaction_get" "', argument " "1"" of type '" "api__CreateTransactionResponse *""'"); - } - arg1 = (api__CreateTransactionResponse *)(argp1); - result = (api__CreatedTransaction *)& ((arg1)->Transaction); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreatedTransaction, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionResponse_EncodedTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionResponse *arg1 = (api__CreateTransactionResponse *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__CreateTransactionResponse_EncodedTransaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionResponse_EncodedTransaction_set" "', argument " "1"" of type '" "api__CreateTransactionResponse *""'"); - } - arg1 = (api__CreateTransactionResponse *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__CreateTransactionResponse_EncodedTransaction_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->EncodedTransaction = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__CreateTransactionResponse_EncodedTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionResponse *arg1 = (api__CreateTransactionResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__CreateTransactionResponse_EncodedTransaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__CreateTransactionResponse_EncodedTransaction_get" "', argument " "1"" of type '" "api__CreateTransactionResponse *""'"); - } - arg1 = (api__CreateTransactionResponse *)(argp1); - result = ((arg1)->EncodedTransaction); - 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__CreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionResponse *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__CreateTransactionResponse")) SWIG_fail; - result = (api__CreateTransactionResponse *)calloc(1, sizeof(api__CreateTransactionResponse)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__CreateTransactionResponse, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__CreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__CreateTransactionResponse *arg1 = (api__CreateTransactionResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__CreateTransactionResponse",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__CreateTransactionResponse, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__CreateTransactionResponse" "', argument " "1"" of type '" "api__CreateTransactionResponse *""'"); - } - arg1 = (api__CreateTransactionResponse *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__CreateTransactionResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__CreateTransactionResponse, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__receiver_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - httphelper__Address *arg2 = (httphelper__Address *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__receiver_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__receiver_Address_set" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_httphelper__Address, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__receiver_Address_set" "', argument " "2"" of type '" "httphelper__Address *""'"); - } - arg2 = (httphelper__Address *)(argp2); - if (arg1) (arg1)->Address = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__receiver_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - httphelper__Address *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__receiver_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__receiver_Address_get" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - result = (httphelper__Address *)& ((arg1)->Address); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_httphelper__Address, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__receiver_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - httphelper__Coins arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__receiver_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__receiver_Coins_set" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__receiver_Coins_set" "', argument " "2"" of type '" "httphelper__Coins""'"); - } - arg2 = (httphelper__Coins)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__receiver_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - httphelper__Coins result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__receiver_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__receiver_Coins_get" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - result = (httphelper__Coins) ((arg1)->Coins); - resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__receiver_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - httphelper__Hours *arg2 = (httphelper__Hours *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - httphelper__Hours temp2 ; - int res2 = SWIG_TMPOBJ ; - PyObject * obj0 = 0 ; - - arg2 = &temp2; - if (!PyArg_ParseTuple(args,(char *)"O:api__receiver_Hours_set",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__receiver_Hours_set" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - 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_long_long, new_flags)); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__receiver_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - httphelper__Hours *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__receiver_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__receiver_Hours_get" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - result = (httphelper__Hours *) ((arg1)->Hours); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__receiver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__receiver")) SWIG_fail; - result = (api__receiver *)calloc(1, sizeof(api__receiver)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__receiver, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__receiver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__receiver *arg1 = (api__receiver *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__receiver",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__receiver, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__receiver" "', argument " "1"" of type '" "api__receiver *""'"); - } - arg1 = (api__receiver *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__receiver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__receiver, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__UnconfirmedTxnsResponse_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__UnconfirmedTxnsResponse *arg1 = (api__UnconfirmedTxnsResponse *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__UnconfirmedTxnsResponse_Transactions_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__UnconfirmedTxnsResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__UnconfirmedTxnsResponse_Transactions_set" "', argument " "1"" of type '" "api__UnconfirmedTxnsResponse *""'"); - } - arg1 = (api__UnconfirmedTxnsResponse *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__UnconfirmedTxnsResponse_Transactions_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__UnconfirmedTxnsResponse_Transactions_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Transactions = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__UnconfirmedTxnsResponse_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__UnconfirmedTxnsResponse *arg1 = (api__UnconfirmedTxnsResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__UnconfirmedTxnsResponse_Transactions_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__UnconfirmedTxnsResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__UnconfirmedTxnsResponse_Transactions_get" "', argument " "1"" of type '" "api__UnconfirmedTxnsResponse *""'"); - } - arg1 = (api__UnconfirmedTxnsResponse *)(argp1); - result = ((arg1)->Transactions); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__UnconfirmedTxnsResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__UnconfirmedTxnsResponse *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__UnconfirmedTxnsResponse")) SWIG_fail; - result = (api__UnconfirmedTxnsResponse *)calloc(1, sizeof(api__UnconfirmedTxnsResponse)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__UnconfirmedTxnsResponse, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__UnconfirmedTxnsResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__UnconfirmedTxnsResponse *arg1 = (api__UnconfirmedTxnsResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__UnconfirmedTxnsResponse",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__UnconfirmedTxnsResponse, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__UnconfirmedTxnsResponse" "', argument " "1"" of type '" "api__UnconfirmedTxnsResponse *""'"); - } - arg1 = (api__UnconfirmedTxnsResponse *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__UnconfirmedTxnsResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__UnconfirmedTxnsResponse, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__WalletEntry_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletEntry *arg1 = (api__WalletEntry *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletEntry_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletEntry_Address_set" "', argument " "1"" of type '" "api__WalletEntry *""'"); - } - arg1 = (api__WalletEntry *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletEntry_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletEntry_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletEntry *arg1 = (api__WalletEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletEntry_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletEntry_Address_get" "', argument " "1"" of type '" "api__WalletEntry *""'"); - } - arg1 = (api__WalletEntry *)(argp1); - result = ((arg1)->Address); - 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__WalletEntry_Public_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletEntry *arg1 = (api__WalletEntry *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletEntry_Public_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletEntry_Public_set" "', argument " "1"" of type '" "api__WalletEntry *""'"); - } - arg1 = (api__WalletEntry *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletEntry_Public_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Public = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletEntry_Public_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletEntry *arg1 = (api__WalletEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletEntry_Public_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletEntry_Public_get" "', argument " "1"" of type '" "api__WalletEntry *""'"); - } - arg1 = (api__WalletEntry *)(argp1); - result = ((arg1)->Public); - 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__WalletEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__WalletEntry")) SWIG_fail; - result = (api__WalletEntry *)calloc(1, sizeof(api__WalletEntry)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__WalletEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__WalletEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletEntry *arg1 = (api__WalletEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__WalletEntry",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletEntry, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__WalletEntry" "', argument " "1"" of type '" "api__WalletEntry *""'"); - } - arg1 = (api__WalletEntry *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__WalletEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__WalletEntry, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Coin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Coin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Coin_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletMeta_Coin_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coin = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Coin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Coin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Coin_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->Coin); - 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__WalletMeta_Filename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Filename_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Filename_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletMeta_Filename_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Filename = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Filename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Filename_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Filename_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->Filename); - 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__WalletMeta_Label_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Label_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Label_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletMeta_Label_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Label = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Label_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Label_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Label_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->Label); - 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__WalletMeta_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Type_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletMeta_Type_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Type = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Type_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->Type); - 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__WalletMeta_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Version_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletMeta_Version_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Version_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->Version); - 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__WalletMeta_CryptoType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_CryptoType_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_CryptoType_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletMeta_CryptoType_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->CryptoType = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_CryptoType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_CryptoType_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_CryptoType_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->CryptoType); - 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__WalletMeta_Timestamp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Timestamp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Timestamp_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__WalletMeta_Timestamp_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Timestamp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Timestamp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Timestamp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Timestamp_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = (GoInt64_) ((arg1)->Timestamp); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Encrypted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletMeta_Encrypted_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Encrypted_set" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__WalletMeta_Encrypted_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__WalletMeta_Encrypted_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->Encrypted = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletMeta_Encrypted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletMeta_Encrypted_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletMeta_Encrypted_get" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - result = ((arg1)->Encrypted); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__WalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__WalletMeta")) SWIG_fail; - result = (api__WalletMeta *)calloc(1, sizeof(api__WalletMeta)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__WalletMeta, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__WalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletMeta *arg1 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__WalletMeta",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletMeta, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__WalletMeta" "', argument " "1"" of type '" "api__WalletMeta *""'"); - } - arg1 = (api__WalletMeta *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__WalletMeta_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__WalletMeta, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__WalletResponse_Meta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletResponse *arg1 = (api__WalletResponse *) 0 ; - api__WalletMeta *arg2 = (api__WalletMeta *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletResponse_Meta_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletResponse_Meta_set" "', argument " "1"" of type '" "api__WalletResponse *""'"); - } - arg1 = (api__WalletResponse *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__WalletResponse_Meta_set" "', argument " "2"" of type '" "api__WalletMeta *""'"); - } - arg2 = (api__WalletMeta *)(argp2); - if (arg1) (arg1)->Meta = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletResponse_Meta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletResponse *arg1 = (api__WalletResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - api__WalletMeta *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletResponse_Meta_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletResponse_Meta_get" "', argument " "1"" of type '" "api__WalletResponse *""'"); - } - arg1 = (api__WalletResponse *)(argp1); - result = (api__WalletMeta *)& ((arg1)->Meta); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__WalletMeta, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletResponse_Entries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletResponse *arg1 = (api__WalletResponse *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletResponse_Entries_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletResponse_Entries_set" "', argument " "1"" of type '" "api__WalletResponse *""'"); - } - arg1 = (api__WalletResponse *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__WalletResponse_Entries_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "api__WalletResponse_Entries_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Entries = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletResponse_Entries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletResponse *arg1 = (api__WalletResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletResponse_Entries_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletResponse, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletResponse_Entries_get" "', argument " "1"" of type '" "api__WalletResponse *""'"); - } - arg1 = (api__WalletResponse *)(argp1); - result = ((arg1)->Entries); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_api__WalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletResponse *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__WalletResponse")) SWIG_fail; - result = (api__WalletResponse *)calloc(1, sizeof(api__WalletResponse)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__WalletResponse, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__WalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletResponse *arg1 = (api__WalletResponse *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__WalletResponse",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletResponse, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__WalletResponse" "', argument " "1"" of type '" "api__WalletResponse *""'"); - } - arg1 = (api__WalletResponse *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__WalletResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__WalletResponse, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__WalletFolder_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletFolder *arg1 = (api__WalletFolder *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__WalletFolder_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletFolder, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletFolder_Address_set" "', argument " "1"" of type '" "api__WalletFolder *""'"); - } - arg1 = (api__WalletFolder *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__WalletFolder_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__WalletFolder_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletFolder *arg1 = (api__WalletFolder *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__WalletFolder_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletFolder, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__WalletFolder_Address_get" "', argument " "1"" of type '" "api__WalletFolder *""'"); - } - arg1 = (api__WalletFolder *)(argp1); - result = ((arg1)->Address); - 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__WalletFolder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletFolder *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__WalletFolder")) SWIG_fail; - result = (api__WalletFolder *)calloc(1, sizeof(api__WalletFolder)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__WalletFolder, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__WalletFolder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__WalletFolder *arg1 = (api__WalletFolder *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__WalletFolder",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__WalletFolder, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__WalletFolder" "', argument " "1"" of type '" "api__WalletFolder *""'"); - } - arg1 = (api__WalletFolder *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__WalletFolder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__WalletFolder, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_api__SpendResult_Balance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - wallet__BalancePair *arg2 = (wallet__BalancePair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__SpendResult_Balance_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__SpendResult_Balance_set" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__SpendResult_Balance_set" "', argument " "2"" of type '" "wallet__BalancePair *""'"); - } - arg2 = (wallet__BalancePair *)(argp2); - if (arg1) (arg1)->Balance = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__SpendResult_Balance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - wallet__BalancePair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__SpendResult_Balance_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__SpendResult_Balance_get" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - result = (wallet__BalancePair *) ((arg1)->Balance); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__SpendResult_Transaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - visor__ReadableTransaction *arg2 = (visor__ReadableTransaction *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__SpendResult_Transaction_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__SpendResult_Transaction_set" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_visor__ReadableTransaction, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api__SpendResult_Transaction_set" "', argument " "2"" of type '" "visor__ReadableTransaction *""'"); - } - arg2 = (visor__ReadableTransaction *)(argp2); - if (arg1) (arg1)->Transaction = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__SpendResult_Transaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - visor__ReadableTransaction *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:api__SpendResult_Transaction_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__SpendResult_Transaction_get" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - result = (visor__ReadableTransaction *) ((arg1)->Transaction); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_visor__ReadableTransaction, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__SpendResult_Error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:api__SpendResult_Error_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__SpendResult_Error_set" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "api__SpendResult_Error_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Error = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_api__SpendResult_Error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:api__SpendResult_Error_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__SpendResult_Error_get" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - result = ((arg1)->Error); - 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__SpendResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_api__SpendResult")) SWIG_fail; - result = (api__SpendResult *)calloc(1, sizeof(api__SpendResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__SpendResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_api__SpendResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - api__SpendResult *arg1 = (api__SpendResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_api__SpendResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__SpendResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__SpendResult" "', argument " "1"" of type '" "api__SpendResult *""'"); - } - arg1 = (api__SpendResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *api__SpendResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_api__SpendResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Balance *arg1 = (cli__Balance *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Balance_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Balance_Coins_set" "', argument " "1"" of type '" "cli__Balance *""'"); - } - arg1 = (cli__Balance *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Balance_Coins_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Balance *arg1 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Balance_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Balance_Coins_get" "', argument " "1"" of type '" "cli__Balance *""'"); - } - arg1 = (cli__Balance *)(argp1); - result = ((arg1)->Coins); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Balance *arg1 = (cli__Balance *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Balance_Hours_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Balance_Hours_set" "', argument " "1"" of type '" "cli__Balance *""'"); - } - arg1 = (cli__Balance *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Balance_Hours_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Hours = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Balance *arg1 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Balance_Hours_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Balance_Hours_get" "', argument " "1"" of type '" "cli__Balance *""'"); - } - arg1 = (cli__Balance *)(argp1); - result = ((arg1)->Hours); - 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_cli__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__Balance")) SWIG_fail; - result = (cli__Balance *)calloc(1, sizeof(cli__Balance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Balance *arg1 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__Balance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Balance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__Balance" "', argument " "1"" of type '" "cli__Balance *""'"); - } - arg1 = (cli__Balance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__Balance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__Balance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - cli__Balance *arg2 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__AddressBalance_Confirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Confirmed_set" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__AddressBalance_Confirmed_set" "', argument " "2"" of type '" "cli__Balance *""'"); - } - arg2 = (cli__Balance *)(argp2); - if (arg1) (arg1)->Confirmed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__AddressBalance_Confirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Confirmed_get" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - result = (cli__Balance *)& ((arg1)->Confirmed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Spendable_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - cli__Balance *arg2 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__AddressBalance_Spendable_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Spendable_set" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__AddressBalance_Spendable_set" "', argument " "2"" of type '" "cli__Balance *""'"); - } - arg2 = (cli__Balance *)(argp2); - if (arg1) (arg1)->Spendable = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Spendable_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__AddressBalance_Spendable_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Spendable_get" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - result = (cli__Balance *)& ((arg1)->Spendable); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Expected_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - cli__Balance *arg2 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__AddressBalance_Expected_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Expected_set" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__AddressBalance_Expected_set" "', argument " "2"" of type '" "cli__Balance *""'"); - } - arg2 = (cli__Balance *)(argp2); - if (arg1) (arg1)->Expected = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Expected_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__AddressBalance_Expected_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Expected_get" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - result = (cli__Balance *)& ((arg1)->Expected); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__AddressBalance_Address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Address_set" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__AddressBalance_Address_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__AddressBalance_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__AddressBalance_Address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__AddressBalance_Address_get" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - result = ((arg1)->Address); - 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_cli__AddressBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__AddressBalance")) SWIG_fail; - result = (cli__AddressBalance *)calloc(1, sizeof(cli__AddressBalance)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__AddressBalance, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__AddressBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__AddressBalance *arg1 = (cli__AddressBalance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__AddressBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__AddressBalance, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__AddressBalance" "', argument " "1"" of type '" "cli__AddressBalance *""'"); - } - arg1 = (cli__AddressBalance *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__AddressBalance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__AddressBalance, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - cli__Balance *arg2 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__BalanceResult_Confirmed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Confirmed_set" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__BalanceResult_Confirmed_set" "', argument " "2"" of type '" "cli__Balance *""'"); - } - arg2 = (cli__Balance *)(argp2); - if (arg1) (arg1)->Confirmed = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__BalanceResult_Confirmed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Confirmed_get" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - result = (cli__Balance *)& ((arg1)->Confirmed); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Spendable_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - cli__Balance *arg2 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__BalanceResult_Spendable_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Spendable_set" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__BalanceResult_Spendable_set" "', argument " "2"" of type '" "cli__Balance *""'"); - } - arg2 = (cli__Balance *)(argp2); - if (arg1) (arg1)->Spendable = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Spendable_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__BalanceResult_Spendable_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Spendable_get" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - result = (cli__Balance *)& ((arg1)->Spendable); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Expected_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - cli__Balance *arg2 = (cli__Balance *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__BalanceResult_Expected_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Expected_set" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cli__Balance, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__BalanceResult_Expected_set" "', argument " "2"" of type '" "cli__Balance *""'"); - } - arg2 = (cli__Balance *)(argp2); - if (arg1) (arg1)->Expected = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Expected_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - cli__Balance *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__BalanceResult_Expected_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Expected_get" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - result = (cli__Balance *)& ((arg1)->Expected); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Balance, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Addresses_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - GoSlice_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__BalanceResult_Addresses_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Addresses_set" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__BalanceResult_Addresses_set" "', argument " "2"" of type '" "GoSlice_""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cli__BalanceResult_Addresses_set" "', argument " "2"" of type '" "GoSlice_""'"); - } else { - arg2 = *((GoSlice_ *)(argp2)); - } - } - if (arg1) (arg1)->Addresses = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__BalanceResult_Addresses_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoSlice_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__BalanceResult_Addresses_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__BalanceResult_Addresses_get" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - result = ((arg1)->Addresses); - resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cli__BalanceResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__BalanceResult")) SWIG_fail; - result = (cli__BalanceResult *)calloc(1, sizeof(cli__BalanceResult)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__BalanceResult, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__BalanceResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__BalanceResult *arg1 = (cli__BalanceResult *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__BalanceResult",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__BalanceResult, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__BalanceResult" "', argument " "1"" of type '" "cli__BalanceResult *""'"); - } - arg1 = (cli__BalanceResult *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__BalanceResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__BalanceResult, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__Config_WalletDir_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Config_WalletDir_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_WalletDir_set" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Config_WalletDir_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->WalletDir = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_WalletDir_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Config_WalletDir_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_WalletDir_get" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - result = ((arg1)->WalletDir); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_WalletName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Config_WalletName_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_WalletName_set" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Config_WalletName_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->WalletName = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_WalletName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Config_WalletName_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_WalletName_get" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - result = ((arg1)->WalletName); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_DataDir_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Config_DataDir_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_DataDir_set" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Config_DataDir_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->DataDir = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_DataDir_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Config_DataDir_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_DataDir_get" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - result = ((arg1)->DataDir); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_Coin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Config_Coin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_Coin_set" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Config_Coin_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Coin = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_Coin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Config_Coin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_Coin_get" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - result = ((arg1)->Coin); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_RPCAddress_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Config_RPCAddress_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_RPCAddress_set" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__Config_RPCAddress_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->RPCAddress = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_RPCAddress_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Config_RPCAddress_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_RPCAddress_get" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - result = ((arg1)->RPCAddress); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_UseCSRF_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - BOOL arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__Config_UseCSRF_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_UseCSRF_set" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BOOL, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cli__Config_UseCSRF_set" "', argument " "2"" of type '" "BOOL""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cli__Config_UseCSRF_set" "', argument " "2"" of type '" "BOOL""'"); - } else { - arg2 = *((BOOL *)(argp2)); - } - } - if (arg1) (arg1)->UseCSRF = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__Config_UseCSRF_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BOOL result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__Config_UseCSRF_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__Config_UseCSRF_get" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - result = ((arg1)->UseCSRF); - resultobj = SWIG_NewPointerObj((BOOL *)memcpy((BOOL *)calloc(1,sizeof(BOOL)),&result,sizeof(BOOL)), SWIGTYPE_p_BOOL, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cli__Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__Config")) SWIG_fail; - result = (cli__Config *)calloc(1, sizeof(cli__Config)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__Config, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__Config *arg1 = (cli__Config *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__Config",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__Config, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__Config" "', argument " "1"" of type '" "cli__Config *""'"); - } - arg1 = (cli__Config *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__Config_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__Config, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__WalletLoadError__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletLoadError *arg1 = (cli__WalletLoadError *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__WalletLoadError__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__WalletLoadError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__WalletLoadError__unnamed_set" "', argument " "1"" of type '" "cli__WalletLoadError *""'"); - } - arg1 = (cli__WalletLoadError *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cli__WalletLoadError__unnamed_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->_unnamed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__WalletLoadError__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletLoadError *arg1 = (cli__WalletLoadError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__WalletLoadError__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__WalletLoadError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__WalletLoadError__unnamed_get" "', argument " "1"" of type '" "cli__WalletLoadError *""'"); - } - arg1 = (cli__WalletLoadError *)(argp1); - result = (GoInt32_) ((arg1)->_unnamed); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cli__WalletLoadError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletLoadError *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__WalletLoadError")) SWIG_fail; - result = (cli__WalletLoadError *)calloc(1, sizeof(cli__WalletLoadError)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__WalletLoadError, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__WalletLoadError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletLoadError *arg1 = (cli__WalletLoadError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__WalletLoadError",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__WalletLoadError, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__WalletLoadError" "', argument " "1"" of type '" "cli__WalletLoadError *""'"); - } - arg1 = (cli__WalletLoadError *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__WalletLoadError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__WalletLoadError, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__WalletSaveError__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletSaveError *arg1 = (cli__WalletSaveError *) 0 ; - GoInt32_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__WalletSaveError__unnamed_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__WalletSaveError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__WalletSaveError__unnamed_set" "', argument " "1"" of type '" "cli__WalletSaveError *""'"); - } - arg1 = (cli__WalletSaveError *)(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cli__WalletSaveError__unnamed_set" "', argument " "2"" of type '" "GoInt32_""'"); - } - arg2 = (GoInt32_)(val2); - if (arg1) (arg1)->_unnamed = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__WalletSaveError__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletSaveError *arg1 = (cli__WalletSaveError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt32_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__WalletSaveError__unnamed_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__WalletSaveError, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__WalletSaveError__unnamed_get" "', argument " "1"" of type '" "cli__WalletSaveError *""'"); - } - arg1 = (cli__WalletSaveError *)(argp1); - result = (GoInt32_) ((arg1)->_unnamed); - resultobj = SWIG_From_int((int)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cli__WalletSaveError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletSaveError *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__WalletSaveError")) SWIG_fail; - result = (cli__WalletSaveError *)calloc(1, sizeof(cli__WalletSaveError)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__WalletSaveError, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__WalletSaveError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__WalletSaveError *arg1 = (cli__WalletSaveError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__WalletSaveError",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__WalletSaveError, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__WalletSaveError" "', argument " "1"" of type '" "cli__WalletSaveError *""'"); - } - arg1 = (cli__WalletSaveError *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__WalletSaveError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__WalletSaveError, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_cli__PasswordFromTerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__PasswordFromTerm *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__PasswordFromTerm")) SWIG_fail; - result = (cli__PasswordFromTerm *)calloc(1, sizeof(cli__PasswordFromTerm)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__PasswordFromTerm, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__PasswordFromTerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__PasswordFromTerm *arg1 = (cli__PasswordFromTerm *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__PasswordFromTerm",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__PasswordFromTerm, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__PasswordFromTerm" "', argument " "1"" of type '" "cli__PasswordFromTerm *""'"); - } - arg1 = (cli__PasswordFromTerm *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__PasswordFromTerm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__PasswordFromTerm, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__SendAmount_Addr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - { - char* buffer = 0; - size_t size = 0; - int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cli__SendAmount_Addr_set" "', argument " "2"" of type '" "(TYPEMAP, SIZE)""'"); - } - (&arg2)->p = buffer; - (&arg2)->n = size - 1; - } - if (arg1) (arg1)->Addr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoString_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__SendAmount_Addr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - result = ((arg1)->Addr); - resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoInt64_ arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cli__SendAmount_Coins_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cli__SendAmount_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); - } - arg2 = (GoInt64_)(val2); - if (arg1) (arg1)->Coins = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - GoInt64_ result; - - if (!PyArg_ParseTuple(args,(char *)"O:cli__SendAmount_Coins_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - result = (GoInt64_) ((arg1)->Coins); - resultobj = SWIG_From_long_SS_long((long long)(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_cli__SendAmount")) SWIG_fail; - result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__SendAmount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__SendAmount" "', argument " "1"" of type '" "cli__SendAmount *""'"); - } - arg1 = (cli__SendAmount *)(argp1); - free((char *) arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *cli__SendAmount_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_cli__SendAmount, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed", _wrap_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed, METH_VARARGS, NULL}, - { (char *)"destroy_cipher_SecKeys", _wrap_destroy_cipher_SecKeys, METH_VARARGS, NULL}, - { (char *)"destroy_cipher_PubKeys", _wrap_destroy_cipher_PubKeys, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_data_set", _wrap_cipher_PubKey_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_data_get", _wrap_cipher_PubKey_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_PubKey", _wrap_new_cipher_PubKey, METH_VARARGS, NULL}, - { (char *)"delete_cipher_PubKey", _wrap_delete_cipher_PubKey, METH_VARARGS, NULL}, - { (char *)"cipher_PubKey_swigregister", cipher_PubKey_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_data_set", _wrap_cipher_SecKey_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_data_get", _wrap_cipher_SecKey_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SecKey", _wrap_new_cipher_SecKey, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SecKey", _wrap_delete_cipher_SecKey, METH_VARARGS, NULL}, - { (char *)"cipher_SecKey_swigregister", cipher_SecKey_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_data_set", _wrap_cipher_Ripemd160_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_data_get", _wrap_cipher_Ripemd160_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Ripemd160", _wrap_new_cipher_Ripemd160, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Ripemd160", _wrap_delete_cipher_Ripemd160, METH_VARARGS, NULL}, - { (char *)"cipher_Ripemd160_swigregister", cipher_Ripemd160_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_data_set", _wrap_cipher_Sig_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_data_get", _wrap_cipher_Sig_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Sig", _wrap_new_cipher_Sig, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Sig", _wrap_delete_cipher_Sig, METH_VARARGS, NULL}, - { (char *)"cipher_Sig_swigregister", cipher_Sig_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_data_set", _wrap_cipher_SHA256_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_data_get", _wrap_cipher_SHA256_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SHA256", _wrap_new_cipher_SHA256, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SHA256", _wrap_delete_cipher_SHA256, METH_VARARGS, NULL}, - { (char *)"cipher_SHA256_swigregister", cipher_SHA256_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_data_set", _wrap_cipher_Checksum_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_data_get", _wrap_cipher_Checksum_data_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_Checksum", _wrap_new_cipher_Checksum, METH_VARARGS, NULL}, - { (char *)"delete_cipher_Checksum", _wrap_delete_cipher_Checksum, METH_VARARGS, NULL}, - { (char *)"cipher_Checksum_swigregister", cipher_Checksum_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_getAt", _wrap_cipher_SecKeys_getAt, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_setAt", _wrap_cipher_SecKeys_setAt, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_allocate", _wrap_cipher_SecKeys_allocate, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_release", _wrap_cipher_SecKeys_release, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_data_set", _wrap_cipher_SecKeys_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_data_get", _wrap_cipher_SecKeys_data_get, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_count_set", _wrap_cipher_SecKeys_count_set, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_count_get", _wrap_cipher_SecKeys_count_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_SecKeys", _wrap_new_cipher_SecKeys, METH_VARARGS, NULL}, - { (char *)"delete_cipher_SecKeys", _wrap_delete_cipher_SecKeys, METH_VARARGS, NULL}, - { (char *)"cipher_SecKeys_swigregister", cipher_SecKeys_swigregister, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_getAt", _wrap_cipher_PubKeys_getAt, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_setAt", _wrap_cipher_PubKeys_setAt, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_allocate", _wrap_cipher_PubKeys_allocate, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_release", _wrap_cipher_PubKeys_release, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_data_set", _wrap_cipher_PubKeys_data_set, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_data_get", _wrap_cipher_PubKeys_data_get, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_count_set", _wrap_cipher_PubKeys_count_set, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_count_get", _wrap_cipher_PubKeys_count_get, METH_VARARGS, NULL}, - { (char *)"new_cipher_PubKeys", _wrap_new_cipher_PubKeys, METH_VARARGS, NULL}, - { (char *)"delete_cipher_PubKeys", _wrap_delete_cipher_PubKeys, METH_VARARGS, NULL}, - { (char *)"cipher_PubKeys_swigregister", cipher_PubKeys_swigregister, METH_VARARGS, NULL}, - { (char *)"_GoString__p_set", _wrap__GoString__p_set, METH_VARARGS, NULL}, - { (char *)"_GoString__p_get", _wrap__GoString__p_get, METH_VARARGS, NULL}, - { (char *)"_GoString__n_set", _wrap__GoString__n_set, METH_VARARGS, NULL}, - { (char *)"_GoString__n_get", _wrap__GoString__n_get, METH_VARARGS, NULL}, - { (char *)"new__GoString_", _wrap_new__GoString_, METH_VARARGS, NULL}, - { (char *)"delete__GoString_", _wrap_delete__GoString_, METH_VARARGS, NULL}, - { (char *)"_GoString__swigregister", _GoString__swigregister, METH_VARARGS, NULL}, - { (char *)"GoInterface_t_set", _wrap_GoInterface_t_set, METH_VARARGS, NULL}, - { (char *)"GoInterface_t_get", _wrap_GoInterface_t_get, METH_VARARGS, NULL}, - { (char *)"GoInterface_v_set", _wrap_GoInterface_v_set, METH_VARARGS, NULL}, - { (char *)"GoInterface_v_get", _wrap_GoInterface_v_get, METH_VARARGS, NULL}, - { (char *)"new_GoInterface", _wrap_new_GoInterface, METH_VARARGS, NULL}, - { (char *)"delete_GoInterface", _wrap_delete_GoInterface, METH_VARARGS, NULL}, - { (char *)"GoInterface_swigregister", GoInterface_swigregister, METH_VARARGS, NULL}, - { (char *)"GoSlice_data_set", _wrap_GoSlice_data_set, METH_VARARGS, NULL}, - { (char *)"GoSlice_data_get", _wrap_GoSlice_data_get, METH_VARARGS, NULL}, - { (char *)"GoSlice_len_set", _wrap_GoSlice_len_set, METH_VARARGS, NULL}, - { (char *)"GoSlice_len_get", _wrap_GoSlice_len_get, METH_VARARGS, NULL}, - { (char *)"GoSlice_cap_set", _wrap_GoSlice_cap_set, METH_VARARGS, NULL}, - { (char *)"GoSlice_cap_get", _wrap_GoSlice_cap_get, METH_VARARGS, NULL}, - { (char *)"new_GoSlice", _wrap_new_GoSlice, METH_VARARGS, NULL}, - { (char *)"delete_GoSlice", _wrap_delete_GoSlice, METH_VARARGS, NULL}, - { (char *)"GoSlice_swigregister", GoSlice_swigregister, METH_VARARGS, NULL}, - { (char *)"SKY_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_wallet_NewReadableEntry", _wrap_SKY_wallet_NewReadableEntry, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_LoadReadableEntry", _wrap_SKY_wallet_LoadReadableEntry, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewReadableEntryFromPubkey", _wrap_SKY_wallet_NewReadableEntryFromPubkey, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableEntry_Save", _wrap_SKY_wallet_ReadableEntry_Save, 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_cli_GetWalletOutputsFromFile", _wrap_SKY_cli_GetWalletOutputsFromFile, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetWalletOutputs", _wrap_SKY_cli_GetWalletOutputs, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_String", _wrap_SKY_secp256k1go_Field_String, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Print", _wrap_SKY_secp256k1go_Field_Print, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_SetB32", _wrap_SKY_secp256k1go_Field_SetB32, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_SetBytes", _wrap_SKY_secp256k1go_Field_SetBytes, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_SetHex", _wrap_SKY_secp256k1go_Field_SetHex, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_IsOdd", _wrap_SKY_secp256k1go_Field_IsOdd, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_IsZero", _wrap_SKY_secp256k1go_Field_IsZero, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_SetInt", _wrap_SKY_secp256k1go_Field_SetInt, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Normalize", _wrap_SKY_secp256k1go_Field_Normalize, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_GetB32", _wrap_SKY_secp256k1go_Field_GetB32, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Equals", _wrap_SKY_secp256k1go_Field_Equals, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_SetAdd", _wrap_SKY_secp256k1go_Field_SetAdd, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_MulInt", _wrap_SKY_secp256k1go_Field_MulInt, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Negate", _wrap_SKY_secp256k1go_Field_Negate, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Inv", _wrap_SKY_secp256k1go_Field_Inv, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Sqrt", _wrap_SKY_secp256k1go_Field_Sqrt, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_InvVar", _wrap_SKY_secp256k1go_Field_InvVar, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Mul", _wrap_SKY_secp256k1go_Field_Mul, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Field_Sqr", _wrap_SKY_secp256k1go_Field_Sqr, METH_VARARGS, NULL}, - { (char *)"SKY_api_NewWalletResponse", _wrap_SKY_api_NewWalletResponse, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeySlice_Len", _wrap_SKY_cipher_PubKeySlice_Len, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeySlice_Less", _wrap_SKY_cipher_PubKeySlice_Less, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_PubKeySlice_Swap", _wrap_SKY_cipher_PubKeySlice_Swap, 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_MustPubKeyFromHex", _wrap_SKY_cipher_MustPubKeyFromHex, 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_PubKey_ToAddressHash", _wrap_SKY_cipher_PubKey_ToAddressHash, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_NewSecKey", _wrap_SKY_cipher_NewSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_MustSecKeyFromHex", _wrap_SKY_cipher_MustSecKeyFromHex, 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_MustSigFromHex", _wrap_SKY_cipher_MustSigFromHex, 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_ChkSig", _wrap_SKY_cipher_ChkSig, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_VerifySignedHash", _wrap_SKY_cipher_VerifySignedHash, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_VerifySignature", _wrap_SKY_cipher_VerifySignature, 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_TestSecKey", _wrap_SKY_cipher_TestSecKey, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_TestSecKeyHash", _wrap_SKY_cipher_TestSecKeyHash, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_DecompressPoint", _wrap_SKY_secp256k1go_DecompressPoint, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_RecoverPublicKey", _wrap_SKY_secp256k1go_RecoverPublicKey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Multiply", _wrap_SKY_secp256k1go_Multiply, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_BaseMultiply", _wrap_SKY_secp256k1go_BaseMultiply, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_BaseMultiplyAdd", _wrap_SKY_secp256k1go_BaseMultiplyAdd, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_GeneratePublicKey", _wrap_SKY_secp256k1go_GeneratePublicKey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_SeckeyIsValid", _wrap_SKY_secp256k1go_SeckeyIsValid, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_PubkeyIsValid", _wrap_SKY_secp256k1go_PubkeyIsValid, 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_secp256k1_SumSHA256", _wrap_SKY_secp256k1_SumSHA256, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_RandByte", _wrap_SKY_secp256k1_RandByte, 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_browser_Open", _wrap_SKY_browser_Open, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_DecodeBase58Address", _wrap_SKY_cipher_DecodeBase58Address, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_MustDecodeBase58Address", _wrap_SKY_cipher_MustDecodeBase58Address, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinMustDecodeBase58Address", _wrap_SKY_cipher_BitcoinMustDecodeBase58Address, 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_BitcoinDecodeBase58Address", _wrap_SKY_cipher_BitcoinDecodeBase58Address, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_MustAddressFromBytes", _wrap_SKY_cipher_MustAddressFromBytes, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Bytes", _wrap_SKY_cipher_Address_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Null", _wrap_SKY_cipher_Address_Null, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_BitcoinBytes", _wrap_SKY_cipher_Address_BitcoinBytes, 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_BitcoinString", _wrap_SKY_cipher_Address_BitcoinString, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_Checksum", _wrap_SKY_cipher_Address_Checksum, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_Address_BitcoinChecksum", _wrap_SKY_cipher_Address_BitcoinChecksum, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_BitcoinAddressFromPubkey", _wrap_SKY_cipher_BitcoinAddressFromPubkey, 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_SecKeyFromWalletImportFormat", _wrap_SKY_cipher_SecKeyFromWalletImportFormat, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_MustSecKeyFromWalletImportFormat", _wrap_SKY_cipher_MustSecKeyFromWalletImportFormat, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_RPCError_Error", _wrap_SKY_webrpc_RPCError_Error, METH_VARARGS, NULL}, - { (char *)"SKY_testutil_MakeAddress", _wrap_SKY_testutil_MakeAddress, 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_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_utc_UnixNow", _wrap_SKY_utc_UnixNow, 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_cli_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, - { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_poly1305_Verify", _wrap_SKY_poly1305_Verify, 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_WalletTransactions", _wrap_SKY_api_Client_WalletTransactions, 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_GetWalletSeed", _wrap_SKY_api_Client_GetWalletSeed, 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_NetworkDefaultConnections", _wrap_SKY_api_Client_NetworkDefaultConnections, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkTrustedConnections", _wrap_SKY_api_Client_NetworkTrustedConnections, METH_VARARGS, NULL}, - { (char *)"SKY_api_Client_NetworkExchangeableConnections", _wrap_SKY_api_Client_NetworkExchangeableConnections, 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_JsonEncode_Handle", _wrap_SKY_JsonEncode_Handle, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Progress_GetCurrent", _wrap_SKY_Handle_Progress_GetCurrent, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Block_GetHeadSeq", _wrap_SKY_Handle_Block_GetHeadSeq, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Block_GetHeadHash", _wrap_SKY_Handle_Block_GetHeadHash, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Block_GetPreviousBlockHash", _wrap_SKY_Handle_Block_GetPreviousBlockHash, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Blocks_GetAt", _wrap_SKY_Handle_Blocks_GetAt, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Blocks_GetCount", _wrap_SKY_Handle_Blocks_GetCount, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Connections_GetCount", _wrap_SKY_Handle_Connections_GetCount, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Strings_GetCount", _wrap_SKY_Handle_Strings_GetCount, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Strings_Sort", _wrap_SKY_Handle_Strings_Sort, METH_VARARGS, NULL}, - { (char *)"SKY_Handle_Strings_GetAt", _wrap_SKY_Handle_Strings_GetAt, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletDir", _wrap_SKY_api_Handle_Client_GetWalletDir, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletFileName", _wrap_SKY_api_Handle_Client_GetWalletFileName, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletLabel", _wrap_SKY_api_Handle_Client_GetWalletLabel, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletFullPath", _wrap_SKY_api_Handle_Client_GetWalletFullPath, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletMeta", _wrap_SKY_api_Handle_GetWalletMeta, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletEntriesCount", _wrap_SKY_api_Handle_GetWalletEntriesCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_Client_GetWalletResponseEntriesCount", _wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletGetEntry", _wrap_SKY_api_Handle_WalletGetEntry, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletResponseGetEntry", _wrap_SKY_api_Handle_WalletResponseGetEntry, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletResponseIsEncrypted", _wrap_SKY_api_Handle_WalletResponseIsEncrypted, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletResponseGetCryptoType", _wrap_SKY_api_Handle_WalletResponseGetCryptoType, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletsResponseGetCount", _wrap_SKY_api_Handle_WalletsResponseGetCount, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_WalletsResponseGetAt", _wrap_SKY_api_Handle_WalletsResponseGetAt, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletFolderAddress", _wrap_SKY_api_Handle_GetWalletFolderAddress, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletSeed", _wrap_SKY_api_Handle_GetWalletSeed, METH_VARARGS, NULL}, - { (char *)"SKY_api_Handle_GetWalletLastSeed", _wrap_SKY_api_Handle_GetWalletLastSeed, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_GenerateKeyPair", _wrap_SKY_secp256k1_GenerateKeyPair, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_PubkeyFromSeckey", _wrap_SKY_secp256k1_PubkeyFromSeckey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_UncompressPubkey", _wrap_SKY_secp256k1_UncompressPubkey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_UncompressedPubkeyFromSeckey", _wrap_SKY_secp256k1_UncompressedPubkeyFromSeckey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_Secp256k1Hash", _wrap_SKY_secp256k1_Secp256k1Hash, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_GenerateDeterministicKeyPair", _wrap_SKY_secp256k1_GenerateDeterministicKeyPair, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_DeterministicKeyPairIterator", _wrap_SKY_secp256k1_DeterministicKeyPairIterator, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_Sign", _wrap_SKY_secp256k1_Sign, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_SignDeterministic", _wrap_SKY_secp256k1_SignDeterministic, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_VerifySeckey", _wrap_SKY_secp256k1_VerifySeckey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_VerifyPubkey", _wrap_SKY_secp256k1_VerifyPubkey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_VerifySignatureValidity", _wrap_SKY_secp256k1_VerifySignatureValidity, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_VerifySignature", _wrap_SKY_secp256k1_VerifySignature, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_SignatureErrorString", _wrap_SKY_secp256k1_SignatureErrorString, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_RecoverPubkey", _wrap_SKY_secp256k1_RecoverPubkey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1_ECDH", _wrap_SKY_secp256k1_ECDH, METH_VARARGS, NULL}, - { (char *)"SKY_cert_CreateCertIfNotExists", _wrap_SKY_cert_CreateCertIfNotExists, 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_iputil_LocalhostIP", _wrap_SKY_iputil_LocalhostIP, METH_VARARGS, NULL}, - { (char *)"SKY_iputil_IsLocalhost", _wrap_SKY_iputil_IsLocalhost, METH_VARARGS, NULL}, - { (char *)"SKY_iputil_SplitAddr", _wrap_SKY_iputil_SplitAddr, METH_VARARGS, NULL}, - { (char *)"SKY_cipher_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_MustSumSHA256", _wrap_SKY_cipher_MustSumSHA256, 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_Get_Transaction_Object", _wrap_SKY_coin_Get_Transaction_Object, METH_VARARGS, NULL}, - { (char *)"SKY_coin_Transaction_ResetInputs", _wrap_SKY_coin_Transaction_ResetInputs, 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_MustTransactionDeserialize", _wrap_SKY_coin_MustTransactionDeserialize, 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_Get_Transactions_Object", _wrap_SKY_coin_Get_Transactions_Object, 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_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_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_Sha256Xor_Encrypt", _wrap_SKY_encrypt_Sha256Xor_Encrypt, METH_VARARGS, NULL}, - { (char *)"SKY_encrypt_Sha256Xor_Decrypt", _wrap_SKY_encrypt_Sha256Xor_Decrypt, 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_LoadConfig", _wrap_SKY_cli_LoadConfig, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Config_FullWalletPath", _wrap_SKY_cli_Config_FullWalletPath, METH_VARARGS, NULL}, - { (char *)"SKY_cli_Config_FullDBPath", _wrap_SKY_cli_Config_FullDBPath, METH_VARARGS, NULL}, - { (char *)"SKY_cli_NewApp", _wrap_SKY_cli_NewApp, METH_VARARGS, NULL}, - { (char *)"SKY_cli_RPCClientFromContext", _wrap_SKY_cli_RPCClientFromContext, METH_VARARGS, NULL}, - { (char *)"SKY_cli_ConfigFromContext", _wrap_SKY_cli_ConfigFromContext, METH_VARARGS, NULL}, - { (char *)"SKY_cli_PasswordFromBytes_Password", _wrap_SKY_cli_PasswordFromBytes_Password, METH_VARARGS, NULL}, - { (char *)"SKY_cli_PasswordFromTerm_Password", _wrap_SKY_cli_PasswordFromTerm_Password, METH_VARARGS, NULL}, - { (char *)"SKY_handle_close", _wrap_SKY_handle_close, METH_VARARGS, NULL}, - { (char *)"SKY_encoder_StructField_String", _wrap_SKY_encoder_StructField_String, METH_VARARGS, NULL}, - { (char *)"SKY_encoder_ParseFields", _wrap_SKY_encoder_ParseFields, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxOut_Hash", _wrap_SKY_coin_UxOut_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxOut_SnapshotHash", _wrap_SKY_coin_UxOut_SnapshotHash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxBody_Hash", _wrap_SKY_coin_UxBody_Hash, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxOut_CoinHours", _wrap_SKY_coin_UxOut_CoinHours, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Hashes", _wrap_SKY_coin_UxArray_Hashes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_HasDupes", _wrap_SKY_coin_UxArray_HasDupes, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Sort", _wrap_SKY_coin_UxArray_Sort, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Len", _wrap_SKY_coin_UxArray_Len, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Less", _wrap_SKY_coin_UxArray_Less, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Swap", _wrap_SKY_coin_UxArray_Swap, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Coins", _wrap_SKY_coin_UxArray_Coins, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_CoinHours", _wrap_SKY_coin_UxArray_CoinHours, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Sub", _wrap_SKY_coin_UxArray_Sub, METH_VARARGS, NULL}, - { (char *)"SKY_coin_UxArray_Add", _wrap_SKY_coin_UxArray_Add, METH_VARARGS, NULL}, - { (char *)"SKY_scrypt_Key", _wrap_SKY_scrypt_Key, 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_AddPrivateKey", _wrap_SKY_cli_AddPrivateKey, METH_VARARGS, NULL}, - { (char *)"SKY_cli_AddPrivateKeyToFile", _wrap_SKY_cli_AddPrivateKeyToFile, 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_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_GetUnspentOutputs", _wrap_SKY_webrpc_Client_GetUnspentOutputs, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_InjectTransactionString", _wrap_SKY_webrpc_Client_InjectTransactionString, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_InjectTransaction", _wrap_SKY_webrpc_Client_InjectTransaction, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetStatus", _wrap_SKY_webrpc_Client_GetStatus, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetTransactionByID", _wrap_SKY_webrpc_Client_GetTransactionByID, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetAddressUxOuts", _wrap_SKY_webrpc_Client_GetAddressUxOuts, METH_VARARGS, NULL}, - { (char *)"SKY_webrpc_Client_GetBlocks", _wrap_SKY_webrpc_Client_GetBlocks, 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_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, - { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, 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_secp256k1go_XYZ_Print", _wrap_SKY_secp256k1go_XYZ_Print, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_SetXY", _wrap_SKY_secp256k1go_XYZ_SetXY, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_IsInfinity", _wrap_SKY_secp256k1go_XYZ_IsInfinity, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_IsValid", _wrap_SKY_secp256k1go_XYZ_IsValid, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_Normalize", _wrap_SKY_secp256k1go_XYZ_Normalize, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_Equals", _wrap_SKY_secp256k1go_XYZ_Equals, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_ECmult", _wrap_SKY_secp256k1go_XYZ_ECmult, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_Neg", _wrap_SKY_secp256k1go_XYZ_Neg, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_Double", _wrap_SKY_secp256k1go_XYZ_Double, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_AddXY", _wrap_SKY_secp256k1go_XYZ_AddXY, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XYZ_Add", _wrap_SKY_secp256k1go_XYZ_Add, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_ECmultGen", _wrap_SKY_secp256k1go_ECmultGen, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewNotesFilename", _wrap_SKY_wallet_NewNotesFilename, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_LoadNotes", _wrap_SKY_wallet_LoadNotes, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_LoadReadableNotes", _wrap_SKY_wallet_LoadReadableNotes, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableNotes_Load", _wrap_SKY_wallet_ReadableNotes_Load, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableNotes_ToNotes", _wrap_SKY_wallet_ReadableNotes_ToNotes, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_ReadableNotes_Save", _wrap_SKY_wallet_ReadableNotes_Save, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewReadableNote", _wrap_SKY_wallet_NewReadableNote, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NewReadableNotesFromNotes", _wrap_SKY_wallet_NewReadableNotesFromNotes, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Notes_Save", _wrap_SKY_wallet_Notes_Save, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Notes_SaveNote", _wrap_SKY_wallet_Notes_SaveNote, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_Notes_ToReadable", _wrap_SKY_wallet_Notes_ToReadable, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_NotesFileExist", _wrap_SKY_wallet_NotesFileExist, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_CreateNoteFileIfNotExist", _wrap_SKY_wallet_CreateNoteFileIfNotExist, 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_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_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_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_CreateAddresses", _wrap_SKY_wallet_CreateAddresses, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_GetSkycoinWalletEntry", _wrap_SKY_wallet_GetSkycoinWalletEntry, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_GetBitcoinWalletEntry", _wrap_SKY_wallet_GetBitcoinWalletEntry, METH_VARARGS, NULL}, - { (char *)"SKY_map_get", _wrap_SKY_map_get, METH_VARARGS, NULL}, - { (char *)"SKY_map_has_key", _wrap_SKY_map_has_key, METH_VARARGS, NULL}, - { (char *)"SKY_map_close", _wrap_SKY_map_close, 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_cli_GenerateWallet", _wrap_SKY_cli_GenerateWallet, METH_VARARGS, NULL}, - { (char *)"SKY_cli_MakeAlphanumericSeed", _wrap_SKY_cli_MakeAlphanumericSeed, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Signature_Print", _wrap_SKY_secp256k1go_Signature_Print, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Signature_Verify", _wrap_SKY_secp256k1go_Signature_Verify, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Signature_Recover", _wrap_SKY_secp256k1go_Signature_Recover, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Signature_Sign", _wrap_SKY_secp256k1go_Signature_Sign, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Signature_ParseBytes", _wrap_SKY_secp256k1go_Signature_ParseBytes, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Signature_Bytes", _wrap_SKY_secp256k1go_Signature_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Number_Print", _wrap_SKY_secp256k1go_Number_Print, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Number_SetHex", _wrap_SKY_secp256k1go_Number_SetHex, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_Number_IsOdd", _wrap_SKY_secp256k1go_Number_IsOdd, METH_VARARGS, NULL}, - { (char *)"SKY_wallet_CreateOptionsHandle", _wrap_SKY_wallet_CreateOptionsHandle, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_Print", _wrap_SKY_secp256k1go_XY_Print, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_ParsePubkey", _wrap_SKY_secp256k1go_XY_ParsePubkey, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_Bytes", _wrap_SKY_secp256k1go_XY_Bytes, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_BytesUncompressed", _wrap_SKY_secp256k1go_XY_BytesUncompressed, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_SetXY", _wrap_SKY_secp256k1go_XY_SetXY, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_IsValid", _wrap_SKY_secp256k1go_XY_IsValid, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_SetXYZ", _wrap_SKY_secp256k1go_XY_SetXYZ, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_Neg", _wrap_SKY_secp256k1go_XY_Neg, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_SetXO", _wrap_SKY_secp256k1go_XY_SetXO, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_AddXY", _wrap_SKY_secp256k1go_XY_AddXY, METH_VARARGS, NULL}, - { (char *)"SKY_secp256k1go_XY_GetPublicKey", _wrap_SKY_secp256k1go_XY_GetPublicKey, 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_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, METH_VARARGS, NULL}, - { (char *)"cipher__Address_isEqual", _wrap_cipher__Address_isEqual, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Version_set", _wrap_cipher__Address_Version_set, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Version_get", _wrap_cipher__Address_Version_get, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Key_set", _wrap_cipher__Address_Key_set, METH_VARARGS, NULL}, - { (char *)"cipher__Address_Key_get", _wrap_cipher__Address_Key_get, METH_VARARGS, NULL}, - { (char *)"new_cipher__Address", _wrap_new_cipher__Address, METH_VARARGS, NULL}, - { (char *)"delete_cipher__Address", _wrap_delete_cipher__Address, METH_VARARGS, NULL}, - { (char *)"cipher__Address_swigregister", cipher__Address_swigregister, METH_VARARGS, NULL}, - { (char *)"chacha20poly1305__chacha20poly1305_key_set", _wrap_chacha20poly1305__chacha20poly1305_key_set, METH_VARARGS, NULL}, - { (char *)"chacha20poly1305__chacha20poly1305_key_get", _wrap_chacha20poly1305__chacha20poly1305_key_get, METH_VARARGS, NULL}, - { (char *)"new_chacha20poly1305__chacha20poly1305", _wrap_new_chacha20poly1305__chacha20poly1305, METH_VARARGS, NULL}, - { (char *)"delete_chacha20poly1305__chacha20poly1305", _wrap_delete_chacha20poly1305__chacha20poly1305, METH_VARARGS, NULL}, - { (char *)"chacha20poly1305__chacha20poly1305_swigregister", chacha20poly1305__chacha20poly1305_swigregister, METH_VARARGS, NULL}, - { (char *)"encoder__coder_buf_set", _wrap_encoder__coder_buf_set, METH_VARARGS, NULL}, - { (char *)"encoder__coder_buf_get", _wrap_encoder__coder_buf_get, METH_VARARGS, NULL}, - { (char *)"new_encoder__coder", _wrap_new_encoder__coder, METH_VARARGS, NULL}, - { (char *)"delete_encoder__coder", _wrap_delete_encoder__coder, METH_VARARGS, NULL}, - { (char *)"encoder__coder_swigregister", encoder__coder_swigregister, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Name_set", _wrap_encoder__StructField_Name_set, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Name_get", _wrap_encoder__StructField_Name_get, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Kind_set", _wrap_encoder__StructField_Kind_set, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Kind_get", _wrap_encoder__StructField_Kind_get, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Type_set", _wrap_encoder__StructField_Type_set, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Type_get", _wrap_encoder__StructField_Type_get, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Tag_set", _wrap_encoder__StructField_Tag_set, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_Tag_get", _wrap_encoder__StructField_Tag_get, METH_VARARGS, NULL}, - { (char *)"new_encoder__StructField", _wrap_new_encoder__StructField, METH_VARARGS, NULL}, - { (char *)"delete_encoder__StructField", _wrap_delete_encoder__StructField, METH_VARARGS, NULL}, - { (char *)"encoder__StructField_swigregister", encoder__StructField_swigregister, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_N_set", _wrap_encrypt__ScryptChacha20poly1305_N_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_N_get", _wrap_encrypt__ScryptChacha20poly1305_N_get, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_R_set", _wrap_encrypt__ScryptChacha20poly1305_R_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_R_get", _wrap_encrypt__ScryptChacha20poly1305_R_get, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_P_set", _wrap_encrypt__ScryptChacha20poly1305_P_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_P_get", _wrap_encrypt__ScryptChacha20poly1305_P_get, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_KeyLen_set", _wrap_encrypt__ScryptChacha20poly1305_KeyLen_set, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_KeyLen_get", _wrap_encrypt__ScryptChacha20poly1305_KeyLen_get, METH_VARARGS, NULL}, - { (char *)"new_encrypt__ScryptChacha20poly1305", _wrap_new_encrypt__ScryptChacha20poly1305, METH_VARARGS, NULL}, - { (char *)"delete_encrypt__ScryptChacha20poly1305", _wrap_delete_encrypt__ScryptChacha20poly1305, METH_VARARGS, NULL}, - { (char *)"encrypt__ScryptChacha20poly1305_swigregister", encrypt__ScryptChacha20poly1305_swigregister, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_N_set", _wrap_encrypt__meta_N_set, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_N_get", _wrap_encrypt__meta_N_get, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_R_set", _wrap_encrypt__meta_R_set, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_R_get", _wrap_encrypt__meta_R_get, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_P_set", _wrap_encrypt__meta_P_set, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_P_get", _wrap_encrypt__meta_P_get, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_KeyLen_set", _wrap_encrypt__meta_KeyLen_set, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_KeyLen_get", _wrap_encrypt__meta_KeyLen_get, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_Salt_set", _wrap_encrypt__meta_Salt_set, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_Salt_get", _wrap_encrypt__meta_Salt_get, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_Nonce_set", _wrap_encrypt__meta_Nonce_set, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_Nonce_get", _wrap_encrypt__meta_Nonce_get, METH_VARARGS, NULL}, - { (char *)"new_encrypt__meta", _wrap_new_encrypt__meta, METH_VARARGS, NULL}, - { (char *)"delete_encrypt__meta", _wrap_delete_encrypt__meta, METH_VARARGS, NULL}, - { (char *)"encrypt__meta_swigregister", encrypt__meta_swigregister, METH_VARARGS, NULL}, - { (char *)"new_encrypt__Sha256Xor", _wrap_new_encrypt__Sha256Xor, METH_VARARGS, NULL}, - { (char *)"delete_encrypt__Sha256Xor", _wrap_delete_encrypt__Sha256Xor, METH_VARARGS, NULL}, - { (char *)"encrypt__Sha256Xor_swigregister", encrypt__Sha256Xor_swigregister, METH_VARARGS, NULL}, - { (char *)"secp256k1go__Field_n_set", _wrap_secp256k1go__Field_n_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__Field_n_get", _wrap_secp256k1go__Field_n_get, METH_VARARGS, NULL}, - { (char *)"new_secp256k1go__Field", _wrap_new_secp256k1go__Field, METH_VARARGS, NULL}, - { (char *)"delete_secp256k1go__Field", _wrap_delete_secp256k1go__Field, METH_VARARGS, NULL}, - { (char *)"secp256k1go__Field_swigregister", secp256k1go__Field_swigregister, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_X_set", _wrap_secp256k1go__XY_X_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_X_get", _wrap_secp256k1go__XY_X_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Y_set", _wrap_secp256k1go__XY_Y_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Y_get", _wrap_secp256k1go__XY_Y_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Infinity_set", _wrap_secp256k1go__XY_Infinity_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_Infinity_get", _wrap_secp256k1go__XY_Infinity_get, METH_VARARGS, NULL}, - { (char *)"new_secp256k1go__XY", _wrap_new_secp256k1go__XY, METH_VARARGS, NULL}, - { (char *)"delete_secp256k1go__XY", _wrap_delete_secp256k1go__XY, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XY_swigregister", secp256k1go__XY_swigregister, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_X_set", _wrap_secp256k1go__XYZ_X_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_X_get", _wrap_secp256k1go__XYZ_X_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Y_set", _wrap_secp256k1go__XYZ_Y_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Y_get", _wrap_secp256k1go__XYZ_Y_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Z_set", _wrap_secp256k1go__XYZ_Z_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Z_get", _wrap_secp256k1go__XYZ_Z_get, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Infinity_set", _wrap_secp256k1go__XYZ_Infinity_set, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_Infinity_get", _wrap_secp256k1go__XYZ_Infinity_get, METH_VARARGS, NULL}, - { (char *)"new_secp256k1go__XYZ", _wrap_new_secp256k1go__XYZ, METH_VARARGS, NULL}, - { (char *)"delete_secp256k1go__XYZ", _wrap_delete_secp256k1go__XYZ, METH_VARARGS, NULL}, - { (char *)"secp256k1go__XYZ_swigregister", secp256k1go__XYZ_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_Txns_set", _wrap_coin__SortableTransactions_Txns_set, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_Txns_get", _wrap_coin__SortableTransactions_Txns_get, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_Fees_set", _wrap_coin__SortableTransactions_Fees_set, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_Fees_get", _wrap_coin__SortableTransactions_Fees_get, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_Hashes_set", _wrap_coin__SortableTransactions_Hashes_set, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_Hashes_get", _wrap_coin__SortableTransactions_Hashes_get, METH_VARARGS, NULL}, - { (char *)"new_coin__SortableTransactions", _wrap_new_coin__SortableTransactions, METH_VARARGS, NULL}, - { (char *)"delete_coin__SortableTransactions", _wrap_delete_coin__SortableTransactions, METH_VARARGS, NULL}, - { (char *)"coin__SortableTransactions_swigregister", coin__SortableTransactions_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Length_set", _wrap_coin__Transaction_Length_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Length_get", _wrap_coin__Transaction_Length_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Type_set", _wrap_coin__Transaction_Type_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Type_get", _wrap_coin__Transaction_Type_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_InnerHash_set", _wrap_coin__Transaction_InnerHash_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_InnerHash_get", _wrap_coin__Transaction_InnerHash_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Sigs_set", _wrap_coin__Transaction_Sigs_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Sigs_get", _wrap_coin__Transaction_Sigs_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_In_set", _wrap_coin__Transaction_In_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_In_get", _wrap_coin__Transaction_In_get, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Out_set", _wrap_coin__Transaction_Out_set, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_Out_get", _wrap_coin__Transaction_Out_get, METH_VARARGS, NULL}, - { (char *)"new_coin__Transaction", _wrap_new_coin__Transaction, METH_VARARGS, NULL}, - { (char *)"delete_coin__Transaction", _wrap_delete_coin__Transaction, METH_VARARGS, NULL}, - { (char *)"coin__Transaction_swigregister", coin__Transaction_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Address_set", _wrap_coin__TransactionOutput_Address_set, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Address_get", _wrap_coin__TransactionOutput_Address_get, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Coins_set", _wrap_coin__TransactionOutput_Coins_set, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Coins_get", _wrap_coin__TransactionOutput_Coins_get, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Hours_set", _wrap_coin__TransactionOutput_Hours_set, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_Hours_get", _wrap_coin__TransactionOutput_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_coin__TransactionOutput", _wrap_new_coin__TransactionOutput, METH_VARARGS, NULL}, - { (char *)"delete_coin__TransactionOutput", _wrap_delete_coin__TransactionOutput, METH_VARARGS, NULL}, - { (char *)"coin__TransactionOutput_swigregister", coin__TransactionOutput_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__HashPair_Hash_set", _wrap_coin__HashPair_Hash_set, METH_VARARGS, NULL}, - { (char *)"coin__HashPair_Hash_get", _wrap_coin__HashPair_Hash_get, METH_VARARGS, NULL}, - { (char *)"coin__HashPair_PreHash_set", _wrap_coin__HashPair_PreHash_set, METH_VARARGS, NULL}, - { (char *)"coin__HashPair_PreHash_get", _wrap_coin__HashPair_PreHash_get, METH_VARARGS, NULL}, - { (char *)"new_coin__HashPair", _wrap_new_coin__HashPair, METH_VARARGS, NULL}, - { (char *)"delete_coin__HashPair", _wrap_delete_coin__HashPair, METH_VARARGS, NULL}, - { (char *)"coin__HashPair_swigregister", coin__HashPair_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Version_set", _wrap_coin__BlockHeader_Version_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Version_get", _wrap_coin__BlockHeader_Version_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Time_set", _wrap_coin__BlockHeader_Time_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Time_get", _wrap_coin__BlockHeader_Time_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BkSeq_set", _wrap_coin__BlockHeader_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BkSeq_get", _wrap_coin__BlockHeader_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Fee_set", _wrap_coin__BlockHeader_Fee_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_Fee_get", _wrap_coin__BlockHeader_Fee_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_PrevHash_set", _wrap_coin__BlockHeader_PrevHash_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_PrevHash_get", _wrap_coin__BlockHeader_PrevHash_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BodyHash_set", _wrap_coin__BlockHeader_BodyHash_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_BodyHash_get", _wrap_coin__BlockHeader_BodyHash_get, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_UxHash_set", _wrap_coin__BlockHeader_UxHash_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_UxHash_get", _wrap_coin__BlockHeader_UxHash_get, METH_VARARGS, NULL}, - { (char *)"new_coin__BlockHeader", _wrap_new_coin__BlockHeader, METH_VARARGS, NULL}, - { (char *)"delete_coin__BlockHeader", _wrap_delete_coin__BlockHeader, METH_VARARGS, NULL}, - { (char *)"coin__BlockHeader_swigregister", coin__BlockHeader_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody_Transactions_set", _wrap_coin__BlockBody_Transactions_set, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody_Transactions_get", _wrap_coin__BlockBody_Transactions_get, METH_VARARGS, NULL}, - { (char *)"new_coin__BlockBody", _wrap_new_coin__BlockBody, METH_VARARGS, NULL}, - { (char *)"delete_coin__BlockBody", _wrap_delete_coin__BlockBody, METH_VARARGS, NULL}, - { (char *)"coin__BlockBody_swigregister", coin__BlockBody_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__Block_Head_set", _wrap_coin__Block_Head_set, METH_VARARGS, NULL}, - { (char *)"coin__Block_Head_get", _wrap_coin__Block_Head_get, METH_VARARGS, NULL}, - { (char *)"coin__Block_Body_set", _wrap_coin__Block_Body_set, METH_VARARGS, NULL}, - { (char *)"coin__Block_Body_get", _wrap_coin__Block_Body_get, METH_VARARGS, NULL}, - { (char *)"new_coin__Block", _wrap_new_coin__Block, METH_VARARGS, NULL}, - { (char *)"delete_coin__Block", _wrap_delete_coin__Block, METH_VARARGS, NULL}, - { (char *)"coin__Block_swigregister", coin__Block_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock__unnamed_set", _wrap_coin__SignedBlock__unnamed_set, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock__unnamed_get", _wrap_coin__SignedBlock__unnamed_get, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock_Sig_set", _wrap_coin__SignedBlock_Sig_set, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock_Sig_get", _wrap_coin__SignedBlock_Sig_get, METH_VARARGS, NULL}, - { (char *)"new_coin__SignedBlock", _wrap_new_coin__SignedBlock, METH_VARARGS, NULL}, - { (char *)"delete_coin__SignedBlock", _wrap_delete_coin__SignedBlock, METH_VARARGS, NULL}, - { (char *)"coin__SignedBlock_swigregister", coin__SignedBlock_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_Time_set", _wrap_coin__UxHead_Time_set, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_Time_get", _wrap_coin__UxHead_Time_get, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_BkSeq_set", _wrap_coin__UxHead_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_BkSeq_get", _wrap_coin__UxHead_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"new_coin__UxHead", _wrap_new_coin__UxHead, METH_VARARGS, NULL}, - { (char *)"delete_coin__UxHead", _wrap_delete_coin__UxHead, METH_VARARGS, NULL}, - { (char *)"coin__UxHead_swigregister", coin__UxHead_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_SrcTransaction_set", _wrap_coin__UxBody_SrcTransaction_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_SrcTransaction_get", _wrap_coin__UxBody_SrcTransaction_get, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Address_set", _wrap_coin__UxBody_Address_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Address_get", _wrap_coin__UxBody_Address_get, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Coins_set", _wrap_coin__UxBody_Coins_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Coins_get", _wrap_coin__UxBody_Coins_get, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Hours_set", _wrap_coin__UxBody_Hours_set, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_Hours_get", _wrap_coin__UxBody_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_coin__UxBody", _wrap_new_coin__UxBody, METH_VARARGS, NULL}, - { (char *)"delete_coin__UxBody", _wrap_delete_coin__UxBody, METH_VARARGS, NULL}, - { (char *)"coin__UxBody_swigregister", coin__UxBody_swigregister, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Head_set", _wrap_coin__UxOut_Head_set, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Head_get", _wrap_coin__UxOut_Head_get, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Body_set", _wrap_coin__UxOut_Body_set, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_Body_get", _wrap_coin__UxOut_Body_get, METH_VARARGS, NULL}, - { (char *)"new_coin__UxOut", _wrap_new_coin__UxOut, METH_VARARGS, NULL}, - { (char *)"delete_coin__UxOut", _wrap_delete_coin__UxOut, METH_VARARGS, NULL}, - { (char *)"coin__UxOut_swigregister", coin__UxOut_swigregister, METH_VARARGS, NULL}, - { (char *)"consensus__BlockStatQueue_queue_set", _wrap_consensus__BlockStatQueue_queue_set, METH_VARARGS, NULL}, - { (char *)"consensus__BlockStatQueue_queue_get", _wrap_consensus__BlockStatQueue_queue_get, METH_VARARGS, NULL}, - { (char *)"new_consensus__BlockStatQueue", _wrap_new_consensus__BlockStatQueue, METH_VARARGS, NULL}, - { (char *)"delete_consensus__BlockStatQueue", _wrap_delete_consensus__BlockStatQueue, METH_VARARGS, NULL}, - { (char *)"consensus__BlockStatQueue_swigregister", consensus__BlockStatQueue_swigregister, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_Sig_set", _wrap_consensus__BlockBase_Sig_set, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_Sig_get", _wrap_consensus__BlockBase_Sig_get, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_Hash_set", _wrap_consensus__BlockBase_Hash_set, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_Hash_get", _wrap_consensus__BlockBase_Hash_get, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_Seqno_set", _wrap_consensus__BlockBase_Seqno_set, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_Seqno_get", _wrap_consensus__BlockBase_Seqno_get, METH_VARARGS, NULL}, - { (char *)"new_consensus__BlockBase", _wrap_new_consensus__BlockBase, METH_VARARGS, NULL}, - { (char *)"delete_consensus__BlockBase", _wrap_delete_consensus__BlockBase, METH_VARARGS, NULL}, - { (char *)"consensus__BlockBase_swigregister", consensus__BlockBase_swigregister, METH_VARARGS, NULL}, - { (char *)"httphelper__Address__unnamed_set", _wrap_httphelper__Address__unnamed_set, METH_VARARGS, NULL}, - { (char *)"httphelper__Address__unnamed_get", _wrap_httphelper__Address__unnamed_get, METH_VARARGS, NULL}, - { (char *)"new_httphelper__Address", _wrap_new_httphelper__Address, METH_VARARGS, NULL}, - { (char *)"delete_httphelper__Address", _wrap_delete_httphelper__Address, METH_VARARGS, NULL}, - { (char *)"httphelper__Address_swigregister", httphelper__Address_swigregister, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_InfoLevelStyle_set", _wrap_logging__ColorScheme_InfoLevelStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_InfoLevelStyle_get", _wrap_logging__ColorScheme_InfoLevelStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_WarnLevelStyle_set", _wrap_logging__ColorScheme_WarnLevelStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_WarnLevelStyle_get", _wrap_logging__ColorScheme_WarnLevelStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_ErrorLevelStyle_set", _wrap_logging__ColorScheme_ErrorLevelStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_ErrorLevelStyle_get", _wrap_logging__ColorScheme_ErrorLevelStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_FatalLevelStyle_set", _wrap_logging__ColorScheme_FatalLevelStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_FatalLevelStyle_get", _wrap_logging__ColorScheme_FatalLevelStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_PanicLevelStyle_set", _wrap_logging__ColorScheme_PanicLevelStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_PanicLevelStyle_get", _wrap_logging__ColorScheme_PanicLevelStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_DebugLevelStyle_set", _wrap_logging__ColorScheme_DebugLevelStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_DebugLevelStyle_get", _wrap_logging__ColorScheme_DebugLevelStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_PrefixStyle_set", _wrap_logging__ColorScheme_PrefixStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_PrefixStyle_get", _wrap_logging__ColorScheme_PrefixStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_TimestampStyle_set", _wrap_logging__ColorScheme_TimestampStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_TimestampStyle_get", _wrap_logging__ColorScheme_TimestampStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_CallContextStyle_set", _wrap_logging__ColorScheme_CallContextStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_CallContextStyle_get", _wrap_logging__ColorScheme_CallContextStyle_get, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_CriticalStyle_set", _wrap_logging__ColorScheme_CriticalStyle_set, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_CriticalStyle_get", _wrap_logging__ColorScheme_CriticalStyle_get, METH_VARARGS, NULL}, - { (char *)"new_logging__ColorScheme", _wrap_new_logging__ColorScheme, METH_VARARGS, NULL}, - { (char *)"delete_logging__ColorScheme", _wrap_delete_logging__ColorScheme, METH_VARARGS, NULL}, - { (char *)"logging__ColorScheme_swigregister", logging__ColorScheme_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainConfig_Arbitrating_set", _wrap_visor__BlockchainConfig_Arbitrating_set, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainConfig_Arbitrating_get", _wrap_visor__BlockchainConfig_Arbitrating_get, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainConfig_Pubkey_set", _wrap_visor__BlockchainConfig_Pubkey_set, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainConfig_Pubkey_get", _wrap_visor__BlockchainConfig_Pubkey_get, METH_VARARGS, NULL}, - { (char *)"new_visor__BlockchainConfig", _wrap_new_visor__BlockchainConfig, METH_VARARGS, NULL}, - { (char *)"delete_visor__BlockchainConfig", _wrap_delete_visor__BlockchainConfig, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainConfig_swigregister", visor__BlockchainConfig_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__sigHash_sig_set", _wrap_visor__sigHash_sig_set, METH_VARARGS, NULL}, - { (char *)"visor__sigHash_sig_get", _wrap_visor__sigHash_sig_get, METH_VARARGS, NULL}, - { (char *)"visor__sigHash_hash_set", _wrap_visor__sigHash_hash_set, METH_VARARGS, NULL}, - { (char *)"visor__sigHash_hash_get", _wrap_visor__sigHash_hash_get, METH_VARARGS, NULL}, - { (char *)"new_visor__sigHash", _wrap_new_visor__sigHash, METH_VARARGS, NULL}, - { (char *)"delete_visor__sigHash", _wrap_delete_visor__sigHash, METH_VARARGS, NULL}, - { (char *)"visor__sigHash_swigregister", visor__sigHash_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_Version_set", _wrap_visor__BuildInfo_Version_set, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_Version_get", _wrap_visor__BuildInfo_Version_get, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_Commit_set", _wrap_visor__BuildInfo_Commit_set, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_Commit_get", _wrap_visor__BuildInfo_Commit_get, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_Branch_set", _wrap_visor__BuildInfo_Branch_set, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_Branch_get", _wrap_visor__BuildInfo_Branch_get, METH_VARARGS, NULL}, - { (char *)"new_visor__BuildInfo", _wrap_new_visor__BuildInfo, METH_VARARGS, NULL}, - { (char *)"delete_visor__BuildInfo", _wrap_delete_visor__BuildInfo, METH_VARARGS, NULL}, - { (char *)"visor__BuildInfo_swigregister", visor__BuildInfo_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__addrsFilter_Addrs_set", _wrap_visor__addrsFilter_Addrs_set, METH_VARARGS, NULL}, - { (char *)"visor__addrsFilter_Addrs_get", _wrap_visor__addrsFilter_Addrs_get, METH_VARARGS, NULL}, - { (char *)"new_visor__addrsFilter", _wrap_new_visor__addrsFilter, METH_VARARGS, NULL}, - { (char *)"delete_visor__addrsFilter", _wrap_delete_visor__addrsFilter, METH_VARARGS, NULL}, - { (char *)"visor__addrsFilter_swigregister", visor__addrsFilter_swigregister, METH_VARARGS, NULL}, - { (char *)"blockdb__ErrMissingSignature_b_set", _wrap_blockdb__ErrMissingSignature_b_set, METH_VARARGS, NULL}, - { (char *)"blockdb__ErrMissingSignature_b_get", _wrap_blockdb__ErrMissingSignature_b_get, METH_VARARGS, NULL}, - { (char *)"new_blockdb__ErrMissingSignature", _wrap_new_blockdb__ErrMissingSignature, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__ErrMissingSignature", _wrap_delete_blockdb__ErrMissingSignature, METH_VARARGS, NULL}, - { (char *)"blockdb__ErrMissingSignature_swigregister", blockdb__ErrMissingSignature_swigregister, METH_VARARGS, NULL}, - { (char *)"new_blockdb__blockSigs", _wrap_new_blockdb__blockSigs, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__blockSigs", _wrap_delete_blockdb__blockSigs, METH_VARARGS, NULL}, - { (char *)"blockdb__blockSigs_swigregister", blockdb__blockSigs_swigregister, METH_VARARGS, NULL}, - { (char *)"new_blockdb__blockTree", _wrap_new_blockdb__blockTree, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__blockTree", _wrap_delete_blockdb__blockTree, METH_VARARGS, NULL}, - { (char *)"blockdb__blockTree_swigregister", blockdb__blockTree_swigregister, METH_VARARGS, NULL}, - { (char *)"blockdb__ErrUnspentNotExist_UxID_set", _wrap_blockdb__ErrUnspentNotExist_UxID_set, METH_VARARGS, NULL}, - { (char *)"blockdb__ErrUnspentNotExist_UxID_get", _wrap_blockdb__ErrUnspentNotExist_UxID_get, METH_VARARGS, NULL}, - { (char *)"new_blockdb__ErrUnspentNotExist", _wrap_new_blockdb__ErrUnspentNotExist, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__ErrUnspentNotExist", _wrap_delete_blockdb__ErrUnspentNotExist, METH_VARARGS, NULL}, - { (char *)"blockdb__ErrUnspentNotExist_swigregister", blockdb__ErrUnspentNotExist_swigregister, METH_VARARGS, NULL}, - { (char *)"new_blockdb__unspentMeta", _wrap_new_blockdb__unspentMeta, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__unspentMeta", _wrap_delete_blockdb__unspentMeta, METH_VARARGS, NULL}, - { (char *)"blockdb__unspentMeta_swigregister", blockdb__unspentMeta_swigregister, METH_VARARGS, NULL}, - { (char *)"new_blockdb__pool", _wrap_new_blockdb__pool, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__pool", _wrap_delete_blockdb__pool, METH_VARARGS, NULL}, - { (char *)"blockdb__pool_swigregister", blockdb__pool_swigregister, METH_VARARGS, NULL}, - { (char *)"new_blockdb__poolAddrIndex", _wrap_new_blockdb__poolAddrIndex, METH_VARARGS, NULL}, - { (char *)"delete_blockdb__poolAddrIndex", _wrap_delete_blockdb__poolAddrIndex, METH_VARARGS, NULL}, - { (char *)"blockdb__poolAddrIndex_swigregister", blockdb__poolAddrIndex_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ErrCorruptDB__unnamed_set", _wrap_visor__ErrCorruptDB__unnamed_set, METH_VARARGS, NULL}, - { (char *)"visor__ErrCorruptDB__unnamed_get", _wrap_visor__ErrCorruptDB__unnamed_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ErrCorruptDB", _wrap_new_visor__ErrCorruptDB, METH_VARARGS, NULL}, - { (char *)"delete_visor__ErrCorruptDB", _wrap_delete_visor__ErrCorruptDB, METH_VARARGS, NULL}, - { (char *)"visor__ErrCorruptDB_swigregister", visor__ErrCorruptDB_swigregister, METH_VARARGS, NULL}, - { (char *)"new_historydb__addressTxns", _wrap_new_historydb__addressTxns, METH_VARARGS, NULL}, - { (char *)"delete_historydb__addressTxns", _wrap_delete_historydb__addressTxns, METH_VARARGS, NULL}, - { (char *)"historydb__addressTxns_swigregister", historydb__addressTxns_swigregister, METH_VARARGS, NULL}, - { (char *)"new_historydb__addressUx", _wrap_new_historydb__addressUx, METH_VARARGS, NULL}, - { (char *)"delete_historydb__addressUx", _wrap_delete_historydb__addressUx, METH_VARARGS, NULL}, - { (char *)"historydb__addressUx_swigregister", historydb__addressUx_swigregister, METH_VARARGS, NULL}, - { (char *)"new_historydb__historyMeta", _wrap_new_historydb__historyMeta, METH_VARARGS, NULL}, - { (char *)"delete_historydb__historyMeta", _wrap_delete_historydb__historyMeta, METH_VARARGS, NULL}, - { (char *)"historydb__historyMeta_swigregister", historydb__historyMeta_swigregister, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Uxid_set", _wrap_historydb__UxOutJSON_Uxid_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Uxid_get", _wrap_historydb__UxOutJSON_Uxid_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Time_set", _wrap_historydb__UxOutJSON_Time_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Time_get", _wrap_historydb__UxOutJSON_Time_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SrcBkSeq_set", _wrap_historydb__UxOutJSON_SrcBkSeq_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SrcBkSeq_get", _wrap_historydb__UxOutJSON_SrcBkSeq_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SrcTx_set", _wrap_historydb__UxOutJSON_SrcTx_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SrcTx_get", _wrap_historydb__UxOutJSON_SrcTx_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_OwnerAddress_set", _wrap_historydb__UxOutJSON_OwnerAddress_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_OwnerAddress_get", _wrap_historydb__UxOutJSON_OwnerAddress_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Coins_set", _wrap_historydb__UxOutJSON_Coins_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Coins_get", _wrap_historydb__UxOutJSON_Coins_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Hours_set", _wrap_historydb__UxOutJSON_Hours_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_Hours_get", _wrap_historydb__UxOutJSON_Hours_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SpentBlockSeq_set", _wrap_historydb__UxOutJSON_SpentBlockSeq_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SpentBlockSeq_get", _wrap_historydb__UxOutJSON_SpentBlockSeq_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SpentTxID_set", _wrap_historydb__UxOutJSON_SpentTxID_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_SpentTxID_get", _wrap_historydb__UxOutJSON_SpentTxID_get, METH_VARARGS, NULL}, - { (char *)"new_historydb__UxOutJSON", _wrap_new_historydb__UxOutJSON, METH_VARARGS, NULL}, - { (char *)"delete_historydb__UxOutJSON", _wrap_delete_historydb__UxOutJSON, METH_VARARGS, NULL}, - { (char *)"historydb__UxOutJSON_swigregister", historydb__UxOutJSON_swigregister, METH_VARARGS, NULL}, - { (char *)"new_historydb__UxOuts", _wrap_new_historydb__UxOuts, METH_VARARGS, NULL}, - { (char *)"delete_historydb__UxOuts", _wrap_delete_historydb__UxOuts, METH_VARARGS, NULL}, - { (char *)"historydb__UxOuts_swigregister", historydb__UxOuts_swigregister, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_Out_set", _wrap_historydb__UxOut_Out_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_Out_get", _wrap_historydb__UxOut_Out_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_SpentTxID_set", _wrap_historydb__UxOut_SpentTxID_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_SpentTxID_get", _wrap_historydb__UxOut_SpentTxID_get, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_SpentBlockSeq_set", _wrap_historydb__UxOut_SpentBlockSeq_set, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_SpentBlockSeq_get", _wrap_historydb__UxOut_SpentBlockSeq_get, METH_VARARGS, NULL}, - { (char *)"new_historydb__UxOut", _wrap_new_historydb__UxOut, METH_VARARGS, NULL}, - { (char *)"delete_historydb__UxOut", _wrap_delete_historydb__UxOut, METH_VARARGS, NULL}, - { (char *)"historydb__UxOut_swigregister", historydb__UxOut_swigregister, METH_VARARGS, NULL}, - { (char *)"new_historydb__transactions", _wrap_new_historydb__transactions, METH_VARARGS, NULL}, - { (char *)"delete_historydb__transactions", _wrap_delete_historydb__transactions, METH_VARARGS, NULL}, - { (char *)"historydb__transactions_swigregister", historydb__transactions_swigregister, METH_VARARGS, NULL}, - { (char *)"historydb__Transaction_Tx_set", _wrap_historydb__Transaction_Tx_set, METH_VARARGS, NULL}, - { (char *)"historydb__Transaction_Tx_get", _wrap_historydb__Transaction_Tx_get, METH_VARARGS, NULL}, - { (char *)"historydb__Transaction_BlockSeq_set", _wrap_historydb__Transaction_BlockSeq_set, METH_VARARGS, NULL}, - { (char *)"historydb__Transaction_BlockSeq_get", _wrap_historydb__Transaction_BlockSeq_get, METH_VARARGS, NULL}, - { (char *)"new_historydb__Transaction", _wrap_new_historydb__Transaction, METH_VARARGS, NULL}, - { (char *)"delete_historydb__Transaction", _wrap_delete_historydb__Transaction, METH_VARARGS, NULL}, - { (char *)"historydb__Transaction_swigregister", historydb__Transaction_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Confirmed_set", _wrap_visor__TransactionStatus_Confirmed_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Confirmed_get", _wrap_visor__TransactionStatus_Confirmed_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Unconfirmed_set", _wrap_visor__TransactionStatus_Unconfirmed_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Unconfirmed_get", _wrap_visor__TransactionStatus_Unconfirmed_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Height_set", _wrap_visor__TransactionStatus_Height_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Height_get", _wrap_visor__TransactionStatus_Height_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_BlockSeq_set", _wrap_visor__TransactionStatus_BlockSeq_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_BlockSeq_get", _wrap_visor__TransactionStatus_BlockSeq_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Unknown_set", _wrap_visor__TransactionStatus_Unknown_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_Unknown_get", _wrap_visor__TransactionStatus_Unknown_get, METH_VARARGS, NULL}, - { (char *)"new_visor__TransactionStatus", _wrap_new_visor__TransactionStatus, METH_VARARGS, NULL}, - { (char *)"delete_visor__TransactionStatus", _wrap_delete_visor__TransactionStatus, METH_VARARGS, NULL}, - { (char *)"visor__TransactionStatus_swigregister", visor__TransactionStatus_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Hash_set", _wrap_visor__ReadableTransactionOutput_Hash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Hash_get", _wrap_visor__ReadableTransactionOutput_Hash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Address_set", _wrap_visor__ReadableTransactionOutput_Address_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Address_get", _wrap_visor__ReadableTransactionOutput_Address_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Coins_set", _wrap_visor__ReadableTransactionOutput_Coins_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Coins_get", _wrap_visor__ReadableTransactionOutput_Coins_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Hours_set", _wrap_visor__ReadableTransactionOutput_Hours_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_Hours_get", _wrap_visor__ReadableTransactionOutput_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableTransactionOutput", _wrap_new_visor__ReadableTransactionOutput, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableTransactionOutput", _wrap_delete_visor__ReadableTransactionOutput, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionOutput_swigregister", visor__ReadableTransactionOutput_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Hash_set", _wrap_visor__ReadableTransactionInput_Hash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Hash_get", _wrap_visor__ReadableTransactionInput_Hash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Address_set", _wrap_visor__ReadableTransactionInput_Address_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Address_get", _wrap_visor__ReadableTransactionInput_Address_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Coins_set", _wrap_visor__ReadableTransactionInput_Coins_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Coins_get", _wrap_visor__ReadableTransactionInput_Coins_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Hours_set", _wrap_visor__ReadableTransactionInput_Hours_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_Hours_get", _wrap_visor__ReadableTransactionInput_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableTransactionInput", _wrap_new_visor__ReadableTransactionInput, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableTransactionInput", _wrap_delete_visor__ReadableTransactionInput, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransactionInput_swigregister", visor__ReadableTransactionInput_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Hash_set", _wrap_visor__ReadableOutput_Hash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Hash_get", _wrap_visor__ReadableOutput_Hash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Time_set", _wrap_visor__ReadableOutput_Time_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Time_get", _wrap_visor__ReadableOutput_Time_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_BkSeq_set", _wrap_visor__ReadableOutput_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_BkSeq_get", _wrap_visor__ReadableOutput_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_SourceTransaction_set", _wrap_visor__ReadableOutput_SourceTransaction_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_SourceTransaction_get", _wrap_visor__ReadableOutput_SourceTransaction_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Address_set", _wrap_visor__ReadableOutput_Address_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Address_get", _wrap_visor__ReadableOutput_Address_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Coins_set", _wrap_visor__ReadableOutput_Coins_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Coins_get", _wrap_visor__ReadableOutput_Coins_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Hours_set", _wrap_visor__ReadableOutput_Hours_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_Hours_get", _wrap_visor__ReadableOutput_Hours_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_CalculatedHours_set", _wrap_visor__ReadableOutput_CalculatedHours_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_CalculatedHours_get", _wrap_visor__ReadableOutput_CalculatedHours_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableOutput", _wrap_new_visor__ReadableOutput, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableOutput", _wrap_delete_visor__ReadableOutput, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutput_swigregister", visor__ReadableOutput_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Length_set", _wrap_visor__ReadableTransaction_Length_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Length_get", _wrap_visor__ReadableTransaction_Length_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Type_set", _wrap_visor__ReadableTransaction_Type_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Type_get", _wrap_visor__ReadableTransaction_Type_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Hash_set", _wrap_visor__ReadableTransaction_Hash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Hash_get", _wrap_visor__ReadableTransaction_Hash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_InnerHash_set", _wrap_visor__ReadableTransaction_InnerHash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_InnerHash_get", _wrap_visor__ReadableTransaction_InnerHash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Timestamp_set", _wrap_visor__ReadableTransaction_Timestamp_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Timestamp_get", _wrap_visor__ReadableTransaction_Timestamp_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Sigs_set", _wrap_visor__ReadableTransaction_Sigs_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Sigs_get", _wrap_visor__ReadableTransaction_Sigs_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_In_set", _wrap_visor__ReadableTransaction_In_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_In_get", _wrap_visor__ReadableTransaction_In_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Out_set", _wrap_visor__ReadableTransaction_Out_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_Out_get", _wrap_visor__ReadableTransaction_Out_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableTransaction", _wrap_new_visor__ReadableTransaction, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableTransaction", _wrap_delete_visor__ReadableTransaction, METH_VARARGS, NULL}, - { (char *)"visor__ReadableTransaction_swigregister", visor__ReadableTransaction_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_BkSeq_set", _wrap_visor__ReadableBlockHeader_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_BkSeq_get", _wrap_visor__ReadableBlockHeader_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_BlockHash_set", _wrap_visor__ReadableBlockHeader_BlockHash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_BlockHash_get", _wrap_visor__ReadableBlockHeader_BlockHash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_PreviousBlockHash_set", _wrap_visor__ReadableBlockHeader_PreviousBlockHash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_PreviousBlockHash_get", _wrap_visor__ReadableBlockHeader_PreviousBlockHash_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_Time_set", _wrap_visor__ReadableBlockHeader_Time_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_Time_get", _wrap_visor__ReadableBlockHeader_Time_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_Fee_set", _wrap_visor__ReadableBlockHeader_Fee_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_Fee_get", _wrap_visor__ReadableBlockHeader_Fee_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_Version_set", _wrap_visor__ReadableBlockHeader_Version_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_Version_get", _wrap_visor__ReadableBlockHeader_Version_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_BodyHash_set", _wrap_visor__ReadableBlockHeader_BodyHash_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_BodyHash_get", _wrap_visor__ReadableBlockHeader_BodyHash_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableBlockHeader", _wrap_new_visor__ReadableBlockHeader, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableBlockHeader", _wrap_delete_visor__ReadableBlockHeader, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockHeader_swigregister", visor__ReadableBlockHeader_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockBody_Transactions_set", _wrap_visor__ReadableBlockBody_Transactions_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockBody_Transactions_get", _wrap_visor__ReadableBlockBody_Transactions_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableBlockBody", _wrap_new_visor__ReadableBlockBody, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableBlockBody", _wrap_delete_visor__ReadableBlockBody, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlockBody_swigregister", visor__ReadableBlockBody_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_Head_set", _wrap_visor__ReadableBlock_Head_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_Head_get", _wrap_visor__ReadableBlock_Head_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_Body_set", _wrap_visor__ReadableBlock_Body_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_Body_get", _wrap_visor__ReadableBlock_Body_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_Size_set", _wrap_visor__ReadableBlock_Size_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_Size_get", _wrap_visor__ReadableBlock_Size_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableBlock", _wrap_new_visor__ReadableBlock, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableBlock", _wrap_delete_visor__ReadableBlock, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlock_swigregister", visor__ReadableBlock_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlocks_Blocks_set", _wrap_visor__ReadableBlocks_Blocks_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlocks_Blocks_get", _wrap_visor__ReadableBlocks_Blocks_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableBlocks", _wrap_new_visor__ReadableBlocks, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableBlocks", _wrap_delete_visor__ReadableBlocks, METH_VARARGS, NULL}, - { (char *)"visor__ReadableBlocks_swigregister", visor__ReadableBlocks_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Hash_set", _wrap_visor__TransactionOutputJSON_Hash_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Hash_get", _wrap_visor__TransactionOutputJSON_Hash_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_SourceTransaction_set", _wrap_visor__TransactionOutputJSON_SourceTransaction_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_SourceTransaction_get", _wrap_visor__TransactionOutputJSON_SourceTransaction_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Address_set", _wrap_visor__TransactionOutputJSON_Address_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Address_get", _wrap_visor__TransactionOutputJSON_Address_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Coins_set", _wrap_visor__TransactionOutputJSON_Coins_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Coins_get", _wrap_visor__TransactionOutputJSON_Coins_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Hours_set", _wrap_visor__TransactionOutputJSON_Hours_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_Hours_get", _wrap_visor__TransactionOutputJSON_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_visor__TransactionOutputJSON", _wrap_new_visor__TransactionOutputJSON, METH_VARARGS, NULL}, - { (char *)"delete_visor__TransactionOutputJSON", _wrap_delete_visor__TransactionOutputJSON, METH_VARARGS, NULL}, - { (char *)"visor__TransactionOutputJSON_swigregister", visor__TransactionOutputJSON_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_Hash_set", _wrap_visor__TransactionJSON_Hash_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_Hash_get", _wrap_visor__TransactionJSON_Hash_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_InnerHash_set", _wrap_visor__TransactionJSON_InnerHash_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_InnerHash_get", _wrap_visor__TransactionJSON_InnerHash_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_Sigs_set", _wrap_visor__TransactionJSON_Sigs_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_Sigs_get", _wrap_visor__TransactionJSON_Sigs_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_In_set", _wrap_visor__TransactionJSON_In_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_In_get", _wrap_visor__TransactionJSON_In_get, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_Out_set", _wrap_visor__TransactionJSON_Out_set, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_Out_get", _wrap_visor__TransactionJSON_Out_get, METH_VARARGS, NULL}, - { (char *)"new_visor__TransactionJSON", _wrap_new_visor__TransactionJSON, METH_VARARGS, NULL}, - { (char *)"delete_visor__TransactionJSON", _wrap_delete_visor__TransactionJSON, METH_VARARGS, NULL}, - { (char *)"visor__TransactionJSON_swigregister", visor__TransactionJSON_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_Head_set", _wrap_visor__BlockchainMetadata_Head_set, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_Head_get", _wrap_visor__BlockchainMetadata_Head_get, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_Unspents_set", _wrap_visor__BlockchainMetadata_Unspents_set, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_Unspents_get", _wrap_visor__BlockchainMetadata_Unspents_get, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_Unconfirmed_set", _wrap_visor__BlockchainMetadata_Unconfirmed_set, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_Unconfirmed_get", _wrap_visor__BlockchainMetadata_Unconfirmed_get, METH_VARARGS, NULL}, - { (char *)"new_visor__BlockchainMetadata", _wrap_new_visor__BlockchainMetadata, METH_VARARGS, NULL}, - { (char *)"delete_visor__BlockchainMetadata", _wrap_delete_visor__BlockchainMetadata, METH_VARARGS, NULL}, - { (char *)"visor__BlockchainMetadata_swigregister", visor__BlockchainMetadata_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_HeadOutputs_set", _wrap_visor__ReadableOutputSet_HeadOutputs_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_HeadOutputs_get", _wrap_visor__ReadableOutputSet_HeadOutputs_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_OutgoingOutputs_set", _wrap_visor__ReadableOutputSet_OutgoingOutputs_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_OutgoingOutputs_get", _wrap_visor__ReadableOutputSet_OutgoingOutputs_get, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_IncomingOutputs_set", _wrap_visor__ReadableOutputSet_IncomingOutputs_set, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_IncomingOutputs_get", _wrap_visor__ReadableOutputSet_IncomingOutputs_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ReadableOutputSet", _wrap_new_visor__ReadableOutputSet, METH_VARARGS, NULL}, - { (char *)"delete_visor__ReadableOutputSet", _wrap_delete_visor__ReadableOutputSet, METH_VARARGS, NULL}, - { (char *)"visor__ReadableOutputSet_swigregister", visor__ReadableOutputSet_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Txn_set", _wrap_visor__Transaction_Txn_set, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Txn_get", _wrap_visor__Transaction_Txn_get, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Status_set", _wrap_visor__Transaction_Status_set, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Status_get", _wrap_visor__Transaction_Status_get, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Time_set", _wrap_visor__Transaction_Time_set, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Time_get", _wrap_visor__Transaction_Time_get, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Size_set", _wrap_visor__Transaction_Size_set, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_Size_get", _wrap_visor__Transaction_Size_get, METH_VARARGS, NULL}, - { (char *)"new_visor__Transaction", _wrap_new_visor__Transaction, METH_VARARGS, NULL}, - { (char *)"delete_visor__Transaction", _wrap_delete_visor__Transaction, METH_VARARGS, NULL}, - { (char *)"visor__Transaction_swigregister", visor__Transaction_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_Address_set", _wrap_visor__RichlistBalance_Address_set, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_Address_get", _wrap_visor__RichlistBalance_Address_get, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_Coins_set", _wrap_visor__RichlistBalance_Coins_set, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_Coins_get", _wrap_visor__RichlistBalance_Coins_get, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_Locked_set", _wrap_visor__RichlistBalance_Locked_set, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_Locked_get", _wrap_visor__RichlistBalance_Locked_get, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_coins_set", _wrap_visor__RichlistBalance_coins_set, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_coins_get", _wrap_visor__RichlistBalance_coins_get, METH_VARARGS, NULL}, - { (char *)"new_visor__RichlistBalance", _wrap_new_visor__RichlistBalance, METH_VARARGS, NULL}, - { (char *)"delete_visor__RichlistBalance", _wrap_delete_visor__RichlistBalance, METH_VARARGS, NULL}, - { (char *)"visor__RichlistBalance_swigregister", visor__RichlistBalance_swigregister, METH_VARARGS, NULL}, - { (char *)"new_visor__unconfirmedTxns", _wrap_new_visor__unconfirmedTxns, METH_VARARGS, NULL}, - { (char *)"delete_visor__unconfirmedTxns", _wrap_delete_visor__unconfirmedTxns, METH_VARARGS, NULL}, - { (char *)"visor__unconfirmedTxns_swigregister", visor__unconfirmedTxns_swigregister, METH_VARARGS, NULL}, - { (char *)"new_visor__txUnspents", _wrap_new_visor__txUnspents, METH_VARARGS, NULL}, - { (char *)"delete_visor__txUnspents", _wrap_delete_visor__txUnspents, METH_VARARGS, NULL}, - { (char *)"visor__txUnspents_swigregister", visor__txUnspents_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Txn_set", _wrap_visor__UnconfirmedTxn_Txn_set, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Txn_get", _wrap_visor__UnconfirmedTxn_Txn_get, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Received_set", _wrap_visor__UnconfirmedTxn_Received_set, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Received_get", _wrap_visor__UnconfirmedTxn_Received_get, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Checked_set", _wrap_visor__UnconfirmedTxn_Checked_set, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Checked_get", _wrap_visor__UnconfirmedTxn_Checked_get, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Announced_set", _wrap_visor__UnconfirmedTxn_Announced_set, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_Announced_get", _wrap_visor__UnconfirmedTxn_Announced_get, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_IsValid_set", _wrap_visor__UnconfirmedTxn_IsValid_set, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_IsValid_get", _wrap_visor__UnconfirmedTxn_IsValid_get, METH_VARARGS, NULL}, - { (char *)"new_visor__UnconfirmedTxn", _wrap_new_visor__UnconfirmedTxn, METH_VARARGS, NULL}, - { (char *)"delete_visor__UnconfirmedTxn", _wrap_delete_visor__UnconfirmedTxn, METH_VARARGS, NULL}, - { (char *)"visor__UnconfirmedTxn_swigregister", visor__UnconfirmedTxn_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ErrTxnViolatesHardConstraint_Err_set", _wrap_visor__ErrTxnViolatesHardConstraint_Err_set, METH_VARARGS, NULL}, - { (char *)"visor__ErrTxnViolatesHardConstraint_Err_get", _wrap_visor__ErrTxnViolatesHardConstraint_Err_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ErrTxnViolatesHardConstraint", _wrap_new_visor__ErrTxnViolatesHardConstraint, METH_VARARGS, NULL}, - { (char *)"delete_visor__ErrTxnViolatesHardConstraint", _wrap_delete_visor__ErrTxnViolatesHardConstraint, METH_VARARGS, NULL}, - { (char *)"visor__ErrTxnViolatesHardConstraint_swigregister", visor__ErrTxnViolatesHardConstraint_swigregister, METH_VARARGS, NULL}, - { (char *)"visor__ErrTxnViolatesSoftConstraint_Err_set", _wrap_visor__ErrTxnViolatesSoftConstraint_Err_set, METH_VARARGS, NULL}, - { (char *)"visor__ErrTxnViolatesSoftConstraint_Err_get", _wrap_visor__ErrTxnViolatesSoftConstraint_Err_get, METH_VARARGS, NULL}, - { (char *)"new_visor__ErrTxnViolatesSoftConstraint", _wrap_new_visor__ErrTxnViolatesSoftConstraint, METH_VARARGS, NULL}, - { (char *)"delete_visor__ErrTxnViolatesSoftConstraint", _wrap_delete_visor__ErrTxnViolatesSoftConstraint, METH_VARARGS, NULL}, - { (char *)"visor__ErrTxnViolatesSoftConstraint_swigregister", visor__ErrTxnViolatesSoftConstraint_swigregister, METH_VARARGS, NULL}, - { (char *)"gnet__MessageContext_ConnID_set", _wrap_gnet__MessageContext_ConnID_set, METH_VARARGS, NULL}, - { (char *)"gnet__MessageContext_ConnID_get", _wrap_gnet__MessageContext_ConnID_get, METH_VARARGS, NULL}, - { (char *)"gnet__MessageContext_Addr_set", _wrap_gnet__MessageContext_Addr_set, METH_VARARGS, NULL}, - { (char *)"gnet__MessageContext_Addr_get", _wrap_gnet__MessageContext_Addr_get, METH_VARARGS, NULL}, - { (char *)"new_gnet__MessageContext", _wrap_new_gnet__MessageContext, METH_VARARGS, NULL}, - { (char *)"delete_gnet__MessageContext", _wrap_delete_gnet__MessageContext, METH_VARARGS, NULL}, - { (char *)"gnet__MessageContext_swigregister", gnet__MessageContext_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__MessagesConfig_Messages_set", _wrap_daemon__MessagesConfig_Messages_set, METH_VARARGS, NULL}, - { (char *)"daemon__MessagesConfig_Messages_get", _wrap_daemon__MessagesConfig_Messages_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__MessagesConfig", _wrap_new_daemon__MessagesConfig, METH_VARARGS, NULL}, - { (char *)"delete_daemon__MessagesConfig", _wrap_delete_daemon__MessagesConfig, METH_VARARGS, NULL}, - { (char *)"daemon__MessagesConfig_swigregister", daemon__MessagesConfig_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__Messages_Config_set", _wrap_daemon__Messages_Config_set, METH_VARARGS, NULL}, - { (char *)"daemon__Messages_Config_get", _wrap_daemon__Messages_Config_get, METH_VARARGS, NULL}, - { (char *)"daemon__Messages_Mirror_set", _wrap_daemon__Messages_Mirror_set, METH_VARARGS, NULL}, - { (char *)"daemon__Messages_Mirror_get", _wrap_daemon__Messages_Mirror_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__Messages", _wrap_new_daemon__Messages, METH_VARARGS, NULL}, - { (char *)"delete_daemon__Messages", _wrap_delete_daemon__Messages, METH_VARARGS, NULL}, - { (char *)"daemon__Messages_swigregister", daemon__Messages_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__IPAddr_IP_set", _wrap_daemon__IPAddr_IP_set, METH_VARARGS, NULL}, - { (char *)"daemon__IPAddr_IP_get", _wrap_daemon__IPAddr_IP_get, METH_VARARGS, NULL}, - { (char *)"daemon__IPAddr_Port_set", _wrap_daemon__IPAddr_Port_set, METH_VARARGS, NULL}, - { (char *)"daemon__IPAddr_Port_get", _wrap_daemon__IPAddr_Port_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__IPAddr", _wrap_new_daemon__IPAddr, METH_VARARGS, NULL}, - { (char *)"delete_daemon__IPAddr", _wrap_delete_daemon__IPAddr, METH_VARARGS, NULL}, - { (char *)"daemon__IPAddr_swigregister", daemon__IPAddr_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GetPeersMessage_addr_set", _wrap_daemon__GetPeersMessage_addr_set, METH_VARARGS, NULL}, - { (char *)"daemon__GetPeersMessage_addr_get", _wrap_daemon__GetPeersMessage_addr_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GetPeersMessage", _wrap_new_daemon__GetPeersMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GetPeersMessage", _wrap_delete_daemon__GetPeersMessage, METH_VARARGS, NULL}, - { (char *)"daemon__GetPeersMessage_swigregister", daemon__GetPeersMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"new_daemon__PongMessage", _wrap_new_daemon__PongMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__PongMessage", _wrap_delete_daemon__PongMessage, METH_VARARGS, NULL}, - { (char *)"daemon__PongMessage_swigregister", daemon__PongMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GivePeersMessage_Peers_set", _wrap_daemon__GivePeersMessage_Peers_set, METH_VARARGS, NULL}, - { (char *)"daemon__GivePeersMessage_Peers_get", _wrap_daemon__GivePeersMessage_Peers_get, METH_VARARGS, NULL}, - { (char *)"daemon__GivePeersMessage_c_set", _wrap_daemon__GivePeersMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__GivePeersMessage_c_get", _wrap_daemon__GivePeersMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GivePeersMessage", _wrap_new_daemon__GivePeersMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GivePeersMessage", _wrap_delete_daemon__GivePeersMessage, METH_VARARGS, NULL}, - { (char *)"daemon__GivePeersMessage_swigregister", daemon__GivePeersMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_Mirror_set", _wrap_daemon__IntroductionMessage_Mirror_set, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_Mirror_get", _wrap_daemon__IntroductionMessage_Mirror_get, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_Port_set", _wrap_daemon__IntroductionMessage_Port_set, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_Port_get", _wrap_daemon__IntroductionMessage_Port_get, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_Version_set", _wrap_daemon__IntroductionMessage_Version_set, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_Version_get", _wrap_daemon__IntroductionMessage_Version_get, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_c_set", _wrap_daemon__IntroductionMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_c_get", _wrap_daemon__IntroductionMessage_c_get, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_valid_set", _wrap_daemon__IntroductionMessage_valid_set, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_valid_get", _wrap_daemon__IntroductionMessage_valid_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__IntroductionMessage", _wrap_new_daemon__IntroductionMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__IntroductionMessage", _wrap_delete_daemon__IntroductionMessage, METH_VARARGS, NULL}, - { (char *)"daemon__IntroductionMessage_swigregister", daemon__IntroductionMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__PingMessage_c_set", _wrap_daemon__PingMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__PingMessage_c_get", _wrap_daemon__PingMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__PingMessage", _wrap_new_daemon__PingMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__PingMessage", _wrap_delete_daemon__PingMessage, METH_VARARGS, NULL}, - { (char *)"daemon__PingMessage_swigregister", daemon__PingMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectEvent_Addr_set", _wrap_daemon__ConnectEvent_Addr_set, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectEvent_Addr_get", _wrap_daemon__ConnectEvent_Addr_get, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectEvent_Solicited_set", _wrap_daemon__ConnectEvent_Solicited_set, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectEvent_Solicited_get", _wrap_daemon__ConnectEvent_Solicited_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__ConnectEvent", _wrap_new_daemon__ConnectEvent, METH_VARARGS, NULL}, - { (char *)"delete_daemon__ConnectEvent", _wrap_delete_daemon__ConnectEvent, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectEvent_swigregister", daemon__ConnectEvent_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectionError_Addr_set", _wrap_daemon__ConnectionError_Addr_set, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectionError_Addr_get", _wrap_daemon__ConnectionError_Addr_get, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectionError_Error_set", _wrap_daemon__ConnectionError_Error_set, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectionError_Error_get", _wrap_daemon__ConnectionError_Error_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__ConnectionError", _wrap_new_daemon__ConnectionError, METH_VARARGS, NULL}, - { (char *)"delete_daemon__ConnectionError", _wrap_delete_daemon__ConnectionError, METH_VARARGS, NULL}, - { (char *)"daemon__ConnectionError_swigregister", daemon__ConnectionError_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__DisconnectEvent_Addr_set", _wrap_daemon__DisconnectEvent_Addr_set, METH_VARARGS, NULL}, - { (char *)"daemon__DisconnectEvent_Addr_get", _wrap_daemon__DisconnectEvent_Addr_get, METH_VARARGS, NULL}, - { (char *)"daemon__DisconnectEvent_Reason_set", _wrap_daemon__DisconnectEvent_Reason_set, METH_VARARGS, NULL}, - { (char *)"daemon__DisconnectEvent_Reason_get", _wrap_daemon__DisconnectEvent_Reason_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__DisconnectEvent", _wrap_new_daemon__DisconnectEvent, METH_VARARGS, NULL}, - { (char *)"delete_daemon__DisconnectEvent", _wrap_delete_daemon__DisconnectEvent, METH_VARARGS, NULL}, - { (char *)"daemon__DisconnectEvent_swigregister", daemon__DisconnectEvent_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_BufferSize_set", _wrap_daemon__GatewayConfig_BufferSize_set, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_BufferSize_get", _wrap_daemon__GatewayConfig_BufferSize_get, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_EnableWalletAPI_set", _wrap_daemon__GatewayConfig_EnableWalletAPI_set, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_EnableWalletAPI_get", _wrap_daemon__GatewayConfig_EnableWalletAPI_get, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_EnableGUI_set", _wrap_daemon__GatewayConfig_EnableGUI_set, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_EnableGUI_get", _wrap_daemon__GatewayConfig_EnableGUI_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GatewayConfig", _wrap_new_daemon__GatewayConfig, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GatewayConfig", _wrap_delete_daemon__GatewayConfig, METH_VARARGS, NULL}, - { (char *)"daemon__GatewayConfig_swigregister", daemon__GatewayConfig_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResults_Txns_set", _wrap_daemon__TransactionResults_Txns_set, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResults_Txns_get", _wrap_daemon__TransactionResults_Txns_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__TransactionResults", _wrap_new_daemon__TransactionResults, METH_VARARGS, NULL}, - { (char *)"delete_daemon__TransactionResults", _wrap_delete_daemon__TransactionResults, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResults_swigregister", daemon__TransactionResults_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_Status_set", _wrap_daemon__TransactionResult_Status_set, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_Status_get", _wrap_daemon__TransactionResult_Status_get, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_Time_set", _wrap_daemon__TransactionResult_Time_set, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_Time_get", _wrap_daemon__TransactionResult_Time_get, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_Transaction_set", _wrap_daemon__TransactionResult_Transaction_set, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_Transaction_get", _wrap_daemon__TransactionResult_Transaction_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__TransactionResult", _wrap_new_daemon__TransactionResult, METH_VARARGS, NULL}, - { (char *)"delete_daemon__TransactionResult", _wrap_delete_daemon__TransactionResult, METH_VARARGS, NULL}, - { (char *)"daemon__TransactionResult_swigregister", daemon__TransactionResult_swigregister, METH_VARARGS, NULL}, - { (char *)"pex__Peer_Addr_set", _wrap_pex__Peer_Addr_set, METH_VARARGS, NULL}, - { (char *)"pex__Peer_Addr_get", _wrap_pex__Peer_Addr_get, METH_VARARGS, NULL}, - { (char *)"pex__Peer_LastSeen_set", _wrap_pex__Peer_LastSeen_set, METH_VARARGS, NULL}, - { (char *)"pex__Peer_LastSeen_get", _wrap_pex__Peer_LastSeen_get, METH_VARARGS, NULL}, - { (char *)"pex__Peer_Private_set", _wrap_pex__Peer_Private_set, METH_VARARGS, NULL}, - { (char *)"pex__Peer_Private_get", _wrap_pex__Peer_Private_get, METH_VARARGS, NULL}, - { (char *)"pex__Peer_Trusted_set", _wrap_pex__Peer_Trusted_set, METH_VARARGS, NULL}, - { (char *)"pex__Peer_Trusted_get", _wrap_pex__Peer_Trusted_get, METH_VARARGS, NULL}, - { (char *)"pex__Peer_HasIncomingPort_set", _wrap_pex__Peer_HasIncomingPort_set, METH_VARARGS, NULL}, - { (char *)"pex__Peer_HasIncomingPort_get", _wrap_pex__Peer_HasIncomingPort_get, METH_VARARGS, NULL}, - { (char *)"pex__Peer_RetryTimes_set", _wrap_pex__Peer_RetryTimes_set, METH_VARARGS, NULL}, - { (char *)"pex__Peer_RetryTimes_get", _wrap_pex__Peer_RetryTimes_get, METH_VARARGS, NULL}, - { (char *)"new_pex__Peer", _wrap_new_pex__Peer, METH_VARARGS, NULL}, - { (char *)"delete_pex__Peer", _wrap_delete_pex__Peer, METH_VARARGS, NULL}, - { (char *)"pex__Peer_swigregister", pex__Peer_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_ID_set", _wrap_daemon__Connection_ID_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_ID_get", _wrap_daemon__Connection_ID_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Addr_set", _wrap_daemon__Connection_Addr_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Addr_get", _wrap_daemon__Connection_Addr_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_LastSent_set", _wrap_daemon__Connection_LastSent_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_LastSent_get", _wrap_daemon__Connection_LastSent_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_LastReceived_set", _wrap_daemon__Connection_LastReceived_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_LastReceived_get", _wrap_daemon__Connection_LastReceived_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Outgoing_set", _wrap_daemon__Connection_Outgoing_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Outgoing_get", _wrap_daemon__Connection_Outgoing_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Introduced_set", _wrap_daemon__Connection_Introduced_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Introduced_get", _wrap_daemon__Connection_Introduced_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Mirror_set", _wrap_daemon__Connection_Mirror_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_Mirror_get", _wrap_daemon__Connection_Mirror_get, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_ListenPort_set", _wrap_daemon__Connection_ListenPort_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_ListenPort_get", _wrap_daemon__Connection_ListenPort_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__Connection", _wrap_new_daemon__Connection, METH_VARARGS, NULL}, - { (char *)"delete_daemon__Connection", _wrap_delete_daemon__Connection, METH_VARARGS, NULL}, - { (char *)"daemon__Connection_swigregister", daemon__Connection_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__Connections_Connections_set", _wrap_daemon__Connections_Connections_set, METH_VARARGS, NULL}, - { (char *)"daemon__Connections_Connections_get", _wrap_daemon__Connections_Connections_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__Connections", _wrap_new_daemon__Connections, METH_VARARGS, NULL}, - { (char *)"delete_daemon__Connections", _wrap_delete_daemon__Connections, METH_VARARGS, NULL}, - { (char *)"daemon__Connections_swigregister", daemon__Connections_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_Current_set", _wrap_daemon__BlockchainProgress_Current_set, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_Current_get", _wrap_daemon__BlockchainProgress_Current_get, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_Highest_set", _wrap_daemon__BlockchainProgress_Highest_set, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_Highest_get", _wrap_daemon__BlockchainProgress_Highest_get, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_Peers_set", _wrap_daemon__BlockchainProgress_Peers_set, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_Peers_get", _wrap_daemon__BlockchainProgress_Peers_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__BlockchainProgress", _wrap_new_daemon__BlockchainProgress, METH_VARARGS, NULL}, - { (char *)"delete_daemon__BlockchainProgress", _wrap_delete_daemon__BlockchainProgress, METH_VARARGS, NULL}, - { (char *)"daemon__BlockchainProgress_swigregister", daemon__BlockchainProgress_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__ResendResult_Txids_set", _wrap_daemon__ResendResult_Txids_set, METH_VARARGS, NULL}, - { (char *)"daemon__ResendResult_Txids_get", _wrap_daemon__ResendResult_Txids_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__ResendResult", _wrap_new_daemon__ResendResult, METH_VARARGS, NULL}, - { (char *)"delete_daemon__ResendResult", _wrap_delete_daemon__ResendResult, METH_VARARGS, NULL}, - { (char *)"daemon__ResendResult_swigregister", daemon__ResendResult_swigregister, METH_VARARGS, NULL}, - { (char *)"new_daemon__RPC", _wrap_new_daemon__RPC, METH_VARARGS, NULL}, - { (char *)"delete_daemon__RPC", _wrap_delete_daemon__RPC, METH_VARARGS, NULL}, - { (char *)"daemon__RPC_swigregister", daemon__RPC_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__PeerBlockchainHeight_Address_set", _wrap_daemon__PeerBlockchainHeight_Address_set, METH_VARARGS, NULL}, - { (char *)"daemon__PeerBlockchainHeight_Address_get", _wrap_daemon__PeerBlockchainHeight_Address_get, METH_VARARGS, NULL}, - { (char *)"daemon__PeerBlockchainHeight_Height_set", _wrap_daemon__PeerBlockchainHeight_Height_set, METH_VARARGS, NULL}, - { (char *)"daemon__PeerBlockchainHeight_Height_get", _wrap_daemon__PeerBlockchainHeight_Height_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__PeerBlockchainHeight", _wrap_new_daemon__PeerBlockchainHeight, METH_VARARGS, NULL}, - { (char *)"delete_daemon__PeerBlockchainHeight", _wrap_delete_daemon__PeerBlockchainHeight, METH_VARARGS, NULL}, - { (char *)"daemon__PeerBlockchainHeight_swigregister", daemon__PeerBlockchainHeight_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_LastBlock_set", _wrap_daemon__GetBlocksMessage_LastBlock_set, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_LastBlock_get", _wrap_daemon__GetBlocksMessage_LastBlock_get, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_RequestedBlocks_set", _wrap_daemon__GetBlocksMessage_RequestedBlocks_set, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_RequestedBlocks_get", _wrap_daemon__GetBlocksMessage_RequestedBlocks_get, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_c_set", _wrap_daemon__GetBlocksMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_c_get", _wrap_daemon__GetBlocksMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GetBlocksMessage", _wrap_new_daemon__GetBlocksMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GetBlocksMessage", _wrap_delete_daemon__GetBlocksMessage, METH_VARARGS, NULL}, - { (char *)"daemon__GetBlocksMessage_swigregister", daemon__GetBlocksMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GiveBlocksMessage_Blocks_set", _wrap_daemon__GiveBlocksMessage_Blocks_set, METH_VARARGS, NULL}, - { (char *)"daemon__GiveBlocksMessage_Blocks_get", _wrap_daemon__GiveBlocksMessage_Blocks_get, METH_VARARGS, NULL}, - { (char *)"daemon__GiveBlocksMessage_c_set", _wrap_daemon__GiveBlocksMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__GiveBlocksMessage_c_get", _wrap_daemon__GiveBlocksMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GiveBlocksMessage", _wrap_new_daemon__GiveBlocksMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GiveBlocksMessage", _wrap_delete_daemon__GiveBlocksMessage, METH_VARARGS, NULL}, - { (char *)"daemon__GiveBlocksMessage_swigregister", daemon__GiveBlocksMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceBlocksMessage_MaxBkSeq_set", _wrap_daemon__AnnounceBlocksMessage_MaxBkSeq_set, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceBlocksMessage_MaxBkSeq_get", _wrap_daemon__AnnounceBlocksMessage_MaxBkSeq_get, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceBlocksMessage_c_set", _wrap_daemon__AnnounceBlocksMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceBlocksMessage_c_get", _wrap_daemon__AnnounceBlocksMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__AnnounceBlocksMessage", _wrap_new_daemon__AnnounceBlocksMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__AnnounceBlocksMessage", _wrap_delete_daemon__AnnounceBlocksMessage, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceBlocksMessage_swigregister", daemon__AnnounceBlocksMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceTxnsMessage_Txns_set", _wrap_daemon__AnnounceTxnsMessage_Txns_set, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceTxnsMessage_Txns_get", _wrap_daemon__AnnounceTxnsMessage_Txns_get, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceTxnsMessage_c_set", _wrap_daemon__AnnounceTxnsMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceTxnsMessage_c_get", _wrap_daemon__AnnounceTxnsMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__AnnounceTxnsMessage", _wrap_new_daemon__AnnounceTxnsMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__AnnounceTxnsMessage", _wrap_delete_daemon__AnnounceTxnsMessage, METH_VARARGS, NULL}, - { (char *)"daemon__AnnounceTxnsMessage_swigregister", daemon__AnnounceTxnsMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GetTxnsMessage_Txns_set", _wrap_daemon__GetTxnsMessage_Txns_set, METH_VARARGS, NULL}, - { (char *)"daemon__GetTxnsMessage_Txns_get", _wrap_daemon__GetTxnsMessage_Txns_get, METH_VARARGS, NULL}, - { (char *)"daemon__GetTxnsMessage_c_set", _wrap_daemon__GetTxnsMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__GetTxnsMessage_c_get", _wrap_daemon__GetTxnsMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GetTxnsMessage", _wrap_new_daemon__GetTxnsMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GetTxnsMessage", _wrap_delete_daemon__GetTxnsMessage, METH_VARARGS, NULL}, - { (char *)"daemon__GetTxnsMessage_swigregister", daemon__GetTxnsMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"daemon__GiveTxnsMessage_Txns_set", _wrap_daemon__GiveTxnsMessage_Txns_set, METH_VARARGS, NULL}, - { (char *)"daemon__GiveTxnsMessage_Txns_get", _wrap_daemon__GiveTxnsMessage_Txns_get, METH_VARARGS, NULL}, - { (char *)"daemon__GiveTxnsMessage_c_set", _wrap_daemon__GiveTxnsMessage_c_set, METH_VARARGS, NULL}, - { (char *)"daemon__GiveTxnsMessage_c_get", _wrap_daemon__GiveTxnsMessage_c_get, METH_VARARGS, NULL}, - { (char *)"new_daemon__GiveTxnsMessage", _wrap_new_daemon__GiveTxnsMessage, METH_VARARGS, NULL}, - { (char *)"delete_daemon__GiveTxnsMessage", _wrap_delete_daemon__GiveTxnsMessage, METH_VARARGS, NULL}, - { (char *)"daemon__GiveTxnsMessage_swigregister", daemon__GiveTxnsMessage_swigregister, METH_VARARGS, NULL}, - { (char *)"webrpc__OutputsResult_Outputs_set", _wrap_webrpc__OutputsResult_Outputs_set, METH_VARARGS, NULL}, - { (char *)"webrpc__OutputsResult_Outputs_get", _wrap_webrpc__OutputsResult_Outputs_get, METH_VARARGS, NULL}, - { (char *)"new_webrpc__OutputsResult", _wrap_new_webrpc__OutputsResult, METH_VARARGS, NULL}, - { (char *)"delete_webrpc__OutputsResult", _wrap_delete_webrpc__OutputsResult, METH_VARARGS, NULL}, - { (char *)"webrpc__OutputsResult_swigregister", webrpc__OutputsResult_swigregister, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_Running_set", _wrap_webrpc__StatusResult_Running_set, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_Running_get", _wrap_webrpc__StatusResult_Running_get, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_BlockNum_set", _wrap_webrpc__StatusResult_BlockNum_set, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_BlockNum_get", _wrap_webrpc__StatusResult_BlockNum_get, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_LastBlockHash_set", _wrap_webrpc__StatusResult_LastBlockHash_set, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_LastBlockHash_get", _wrap_webrpc__StatusResult_LastBlockHash_get, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_TimeSinceLastBlock_set", _wrap_webrpc__StatusResult_TimeSinceLastBlock_set, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_TimeSinceLastBlock_get", _wrap_webrpc__StatusResult_TimeSinceLastBlock_get, METH_VARARGS, NULL}, - { (char *)"new_webrpc__StatusResult", _wrap_new_webrpc__StatusResult, METH_VARARGS, NULL}, - { (char *)"delete_webrpc__StatusResult", _wrap_delete_webrpc__StatusResult, METH_VARARGS, NULL}, - { (char *)"webrpc__StatusResult_swigregister", webrpc__StatusResult_swigregister, METH_VARARGS, NULL}, - { (char *)"webrpc__TxIDJson_Txid_set", _wrap_webrpc__TxIDJson_Txid_set, METH_VARARGS, NULL}, - { (char *)"webrpc__TxIDJson_Txid_get", _wrap_webrpc__TxIDJson_Txid_get, METH_VARARGS, NULL}, - { (char *)"new_webrpc__TxIDJson", _wrap_new_webrpc__TxIDJson, METH_VARARGS, NULL}, - { (char *)"delete_webrpc__TxIDJson", _wrap_delete_webrpc__TxIDJson, METH_VARARGS, NULL}, - { (char *)"webrpc__TxIDJson_swigregister", webrpc__TxIDJson_swigregister, METH_VARARGS, NULL}, - { (char *)"webrpc__TxnResult_Transaction_set", _wrap_webrpc__TxnResult_Transaction_set, METH_VARARGS, NULL}, - { (char *)"webrpc__TxnResult_Transaction_get", _wrap_webrpc__TxnResult_Transaction_get, METH_VARARGS, NULL}, - { (char *)"new_webrpc__TxnResult", _wrap_new_webrpc__TxnResult, METH_VARARGS, NULL}, - { (char *)"delete_webrpc__TxnResult", _wrap_delete_webrpc__TxnResult, METH_VARARGS, NULL}, - { (char *)"webrpc__TxnResult_swigregister", webrpc__TxnResult_swigregister, METH_VARARGS, NULL}, - { (char *)"webrpc__AddrUxoutResult_Address_set", _wrap_webrpc__AddrUxoutResult_Address_set, METH_VARARGS, NULL}, - { (char *)"webrpc__AddrUxoutResult_Address_get", _wrap_webrpc__AddrUxoutResult_Address_get, METH_VARARGS, NULL}, - { (char *)"webrpc__AddrUxoutResult_UxOuts_set", _wrap_webrpc__AddrUxoutResult_UxOuts_set, METH_VARARGS, NULL}, - { (char *)"webrpc__AddrUxoutResult_UxOuts_get", _wrap_webrpc__AddrUxoutResult_UxOuts_get, METH_VARARGS, NULL}, - { (char *)"new_webrpc__AddrUxoutResult", _wrap_new_webrpc__AddrUxoutResult, METH_VARARGS, NULL}, - { (char *)"delete_webrpc__AddrUxoutResult", _wrap_delete_webrpc__AddrUxoutResult, METH_VARARGS, NULL}, - { (char *)"webrpc__AddrUxoutResult_swigregister", webrpc__AddrUxoutResult_swigregister, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_Code_set", _wrap_webrpc__RPCError_Code_set, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_Code_get", _wrap_webrpc__RPCError_Code_get, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_Message_set", _wrap_webrpc__RPCError_Message_set, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_Message_get", _wrap_webrpc__RPCError_Message_get, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_Data_set", _wrap_webrpc__RPCError_Data_set, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_Data_get", _wrap_webrpc__RPCError_Data_get, METH_VARARGS, NULL}, - { (char *)"new_webrpc__RPCError", _wrap_new_webrpc__RPCError, METH_VARARGS, NULL}, - { (char *)"delete_webrpc__RPCError", _wrap_delete_webrpc__RPCError, METH_VARARGS, NULL}, - { (char *)"webrpc__RPCError_swigregister", webrpc__RPCError_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Coins_set", _wrap_wallet__Balance_Coins_set, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Coins_get", _wrap_wallet__Balance_Coins_get, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Hours_set", _wrap_wallet__Balance_Hours_set, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_Hours_get", _wrap_wallet__Balance_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Balance", _wrap_new_wallet__Balance, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Balance", _wrap_delete_wallet__Balance, METH_VARARGS, NULL}, - { (char *)"wallet__Balance_swigregister", wallet__Balance_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Confirmed_set", _wrap_wallet__BalancePair_Confirmed_set, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Confirmed_get", _wrap_wallet__BalancePair_Confirmed_get, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Predicted_set", _wrap_wallet__BalancePair_Predicted_set, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_Predicted_get", _wrap_wallet__BalancePair_Predicted_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__BalancePair", _wrap_new_wallet__BalancePair, METH_VARARGS, NULL}, - { (char *)"delete_wallet__BalancePair", _wrap_delete_wallet__BalancePair, METH_VARARGS, NULL}, - { (char *)"wallet__BalancePair_swigregister", wallet__BalancePair_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Address_set", _wrap_wallet__Entry_Address_set, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Address_get", _wrap_wallet__Entry_Address_get, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Public_set", _wrap_wallet__Entry_Public_set, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Public_get", _wrap_wallet__Entry_Public_get, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Secret_set", _wrap_wallet__Entry_Secret_set, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_Secret_get", _wrap_wallet__Entry_Secret_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Entry", _wrap_new_wallet__Entry, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Entry", _wrap_delete_wallet__Entry, METH_VARARGS, NULL}, - { (char *)"wallet__Entry_swigregister", wallet__Entry_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Note_TxID_set", _wrap_wallet__Note_TxID_set, METH_VARARGS, NULL}, - { (char *)"wallet__Note_TxID_get", _wrap_wallet__Note_TxID_get, METH_VARARGS, NULL}, - { (char *)"wallet__Note_Value_set", _wrap_wallet__Note_Value_set, METH_VARARGS, NULL}, - { (char *)"wallet__Note_Value_get", _wrap_wallet__Note_Value_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Note", _wrap_new_wallet__Note, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Note", _wrap_delete_wallet__Note, METH_VARARGS, NULL}, - { (char *)"wallet__Note_swigregister", wallet__Note_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_TransactionID_set", _wrap_wallet__ReadableNote_TransactionID_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_TransactionID_get", _wrap_wallet__ReadableNote_TransactionID_get, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_ActualNote_set", _wrap_wallet__ReadableNote_ActualNote_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_ActualNote_get", _wrap_wallet__ReadableNote_ActualNote_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__ReadableNote", _wrap_new_wallet__ReadableNote, METH_VARARGS, NULL}, - { (char *)"delete_wallet__ReadableNote", _wrap_delete_wallet__ReadableNote, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableNote_swigregister", wallet__ReadableNote_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_Address_set", _wrap_wallet__ReadableEntry_Address_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_Address_get", _wrap_wallet__ReadableEntry_Address_get, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_Public_set", _wrap_wallet__ReadableEntry_Public_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_Public_get", _wrap_wallet__ReadableEntry_Public_get, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_Secret_set", _wrap_wallet__ReadableEntry_Secret_set, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_Secret_get", _wrap_wallet__ReadableEntry_Secret_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__ReadableEntry", _wrap_new_wallet__ReadableEntry, METH_VARARGS, NULL}, - { (char *)"delete_wallet__ReadableEntry", _wrap_delete_wallet__ReadableEntry, METH_VARARGS, NULL}, - { (char *)"wallet__ReadableEntry_swigregister", wallet__ReadableEntry_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Config_WalletDir_set", _wrap_wallet__Config_WalletDir_set, METH_VARARGS, NULL}, - { (char *)"wallet__Config_WalletDir_get", _wrap_wallet__Config_WalletDir_get, METH_VARARGS, NULL}, - { (char *)"wallet__Config_CryptoType_set", _wrap_wallet__Config_CryptoType_set, METH_VARARGS, NULL}, - { (char *)"wallet__Config_CryptoType_get", _wrap_wallet__Config_CryptoType_get, METH_VARARGS, NULL}, - { (char *)"wallet__Config_EnableWalletAPI_set", _wrap_wallet__Config_EnableWalletAPI_set, METH_VARARGS, NULL}, - { (char *)"wallet__Config_EnableWalletAPI_get", _wrap_wallet__Config_EnableWalletAPI_get, METH_VARARGS, NULL}, - { (char *)"wallet__Config_EnableSeedAPI_set", _wrap_wallet__Config_EnableSeedAPI_set, METH_VARARGS, NULL}, - { (char *)"wallet__Config_EnableSeedAPI_get", _wrap_wallet__Config_EnableSeedAPI_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Config", _wrap_new_wallet__Config, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Config", _wrap_delete_wallet__Config, METH_VARARGS, NULL}, - { (char *)"wallet__Config_swigregister", wallet__Config_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Wallet_Meta_set", _wrap_wallet__Wallet_Meta_set, METH_VARARGS, NULL}, - { (char *)"wallet__Wallet_Meta_get", _wrap_wallet__Wallet_Meta_get, METH_VARARGS, NULL}, - { (char *)"wallet__Wallet_Entries_set", _wrap_wallet__Wallet_Entries_set, METH_VARARGS, NULL}, - { (char *)"wallet__Wallet_Entries_get", _wrap_wallet__Wallet_Entries_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Wallet", _wrap_new_wallet__Wallet, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Wallet", _wrap_delete_wallet__Wallet, METH_VARARGS, NULL}, - { (char *)"wallet__Wallet_swigregister", wallet__Wallet_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Coin_set", _wrap_wallet__Options_Coin_set, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Coin_get", _wrap_wallet__Options_Coin_get, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Label_set", _wrap_wallet__Options_Label_set, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Label_get", _wrap_wallet__Options_Label_get, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Seed_set", _wrap_wallet__Options_Seed_set, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Seed_get", _wrap_wallet__Options_Seed_get, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Encrypt_set", _wrap_wallet__Options_Encrypt_set, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Encrypt_get", _wrap_wallet__Options_Encrypt_get, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Password_set", _wrap_wallet__Options_Password_set, METH_VARARGS, NULL}, - { (char *)"wallet__Options_Password_get", _wrap_wallet__Options_Password_get, METH_VARARGS, NULL}, - { (char *)"wallet__Options_CryptoType_set", _wrap_wallet__Options_CryptoType_set, METH_VARARGS, NULL}, - { (char *)"wallet__Options_CryptoType_get", _wrap_wallet__Options_CryptoType_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__Options", _wrap_new_wallet__Options, METH_VARARGS, NULL}, - { (char *)"delete_wallet__Options", _wrap_delete_wallet__Options, METH_VARARGS, NULL}, - { (char *)"wallet__Options_swigregister", wallet__Options_swigregister, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hash_set", _wrap_wallet__UxBalance_Hash_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hash_get", _wrap_wallet__UxBalance_Hash_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_BkSeq_set", _wrap_wallet__UxBalance_BkSeq_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_BkSeq_get", _wrap_wallet__UxBalance_BkSeq_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Address_set", _wrap_wallet__UxBalance_Address_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Address_get", _wrap_wallet__UxBalance_Address_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Coins_set", _wrap_wallet__UxBalance_Coins_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Coins_get", _wrap_wallet__UxBalance_Coins_get, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hours_set", _wrap_wallet__UxBalance_Hours_set, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_Hours_get", _wrap_wallet__UxBalance_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_wallet__UxBalance", _wrap_new_wallet__UxBalance, METH_VARARGS, NULL}, - { (char *)"delete_wallet__UxBalance", _wrap_delete_wallet__UxBalance, METH_VARARGS, NULL}, - { (char *)"wallet__UxBalance_swigregister", wallet__UxBalance_swigregister, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_ID_set", _wrap_api__CreateTransactionRequestWallet_ID_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_ID_get", _wrap_api__CreateTransactionRequestWallet_ID_get, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_Addresses_set", _wrap_api__CreateTransactionRequestWallet_Addresses_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_Addresses_get", _wrap_api__CreateTransactionRequestWallet_Addresses_get, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_Password_set", _wrap_api__CreateTransactionRequestWallet_Password_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_Password_get", _wrap_api__CreateTransactionRequestWallet_Password_get, METH_VARARGS, NULL}, - { (char *)"new_api__CreateTransactionRequestWallet", _wrap_new_api__CreateTransactionRequestWallet, METH_VARARGS, NULL}, - { (char *)"delete_api__CreateTransactionRequestWallet", _wrap_delete_api__CreateTransactionRequestWallet, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequestWallet_swigregister", api__CreateTransactionRequestWallet_swigregister, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_Type_set", _wrap_api__HoursSelection_Type_set, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_Type_get", _wrap_api__HoursSelection_Type_get, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_Mode_set", _wrap_api__HoursSelection_Mode_set, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_Mode_get", _wrap_api__HoursSelection_Mode_get, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_ShareFactor_set", _wrap_api__HoursSelection_ShareFactor_set, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_ShareFactor_get", _wrap_api__HoursSelection_ShareFactor_get, METH_VARARGS, NULL}, - { (char *)"new_api__HoursSelection", _wrap_new_api__HoursSelection, METH_VARARGS, NULL}, - { (char *)"delete_api__HoursSelection", _wrap_delete_api__HoursSelection, METH_VARARGS, NULL}, - { (char *)"api__HoursSelection_swigregister", api__HoursSelection_swigregister, METH_VARARGS, NULL}, - { (char *)"api__Receiver_Address_set", _wrap_api__Receiver_Address_set, METH_VARARGS, NULL}, - { (char *)"api__Receiver_Address_get", _wrap_api__Receiver_Address_get, METH_VARARGS, NULL}, - { (char *)"api__Receiver_Coins_set", _wrap_api__Receiver_Coins_set, METH_VARARGS, NULL}, - { (char *)"api__Receiver_Coins_get", _wrap_api__Receiver_Coins_get, METH_VARARGS, NULL}, - { (char *)"api__Receiver_Hours_set", _wrap_api__Receiver_Hours_set, METH_VARARGS, NULL}, - { (char *)"api__Receiver_Hours_get", _wrap_api__Receiver_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_api__Receiver", _wrap_new_api__Receiver, METH_VARARGS, NULL}, - { (char *)"delete_api__Receiver", _wrap_delete_api__Receiver, METH_VARARGS, NULL}, - { (char *)"api__Receiver_swigregister", api__Receiver_swigregister, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_N_set", _wrap_api__RichlistParams_N_set, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_N_get", _wrap_api__RichlistParams_N_get, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_IncludeDistribution_set", _wrap_api__RichlistParams_IncludeDistribution_set, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_IncludeDistribution_get", _wrap_api__RichlistParams_IncludeDistribution_get, METH_VARARGS, NULL}, - { (char *)"new_api__RichlistParams", _wrap_new_api__RichlistParams, METH_VARARGS, NULL}, - { (char *)"delete_api__RichlistParams", _wrap_delete_api__RichlistParams, METH_VARARGS, NULL}, - { (char *)"api__RichlistParams_swigregister", api__RichlistParams_swigregister, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_HoursSelection_set", _wrap_api__CreateTransactionRequest_HoursSelection_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_HoursSelection_get", _wrap_api__CreateTransactionRequest_HoursSelection_get, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_Wallet_set", _wrap_api__CreateTransactionRequest_Wallet_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_Wallet_get", _wrap_api__CreateTransactionRequest_Wallet_get, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_ChangeAddress_set", _wrap_api__CreateTransactionRequest_ChangeAddress_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_ChangeAddress_get", _wrap_api__CreateTransactionRequest_ChangeAddress_get, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_To_set", _wrap_api__CreateTransactionRequest_To_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_To_get", _wrap_api__CreateTransactionRequest_To_get, METH_VARARGS, NULL}, - { (char *)"new_api__CreateTransactionRequest", _wrap_new_api__CreateTransactionRequest, METH_VARARGS, NULL}, - { (char *)"delete_api__CreateTransactionRequest", _wrap_delete_api__CreateTransactionRequest, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionRequest_swigregister", api__CreateTransactionRequest_swigregister, METH_VARARGS, NULL}, - { (char *)"api__Richlist_Richlist_set", _wrap_api__Richlist_Richlist_set, METH_VARARGS, NULL}, - { (char *)"api__Richlist_Richlist_get", _wrap_api__Richlist_Richlist_get, METH_VARARGS, NULL}, - { (char *)"new_api__Richlist", _wrap_new_api__Richlist, METH_VARARGS, NULL}, - { (char *)"delete_api__Richlist", _wrap_delete_api__Richlist, METH_VARARGS, NULL}, - { (char *)"api__Richlist_swigregister", api__Richlist_swigregister, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Status_set", _wrap_api__ReadableTransaction_Status_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Status_get", _wrap_api__ReadableTransaction_Status_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Length_set", _wrap_api__ReadableTransaction_Length_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Length_get", _wrap_api__ReadableTransaction_Length_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Type_set", _wrap_api__ReadableTransaction_Type_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Type_get", _wrap_api__ReadableTransaction_Type_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Hash_set", _wrap_api__ReadableTransaction_Hash_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Hash_get", _wrap_api__ReadableTransaction_Hash_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_InnerHash_set", _wrap_api__ReadableTransaction_InnerHash_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_InnerHash_get", _wrap_api__ReadableTransaction_InnerHash_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Timestamp_set", _wrap_api__ReadableTransaction_Timestamp_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Timestamp_get", _wrap_api__ReadableTransaction_Timestamp_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Sigs_set", _wrap_api__ReadableTransaction_Sigs_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Sigs_get", _wrap_api__ReadableTransaction_Sigs_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_In_set", _wrap_api__ReadableTransaction_In_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_In_get", _wrap_api__ReadableTransaction_In_get, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Out_set", _wrap_api__ReadableTransaction_Out_set, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_Out_get", _wrap_api__ReadableTransaction_Out_get, METH_VARARGS, NULL}, - { (char *)"new_api__ReadableTransaction", _wrap_new_api__ReadableTransaction, METH_VARARGS, NULL}, - { (char *)"delete_api__ReadableTransaction", _wrap_delete_api__ReadableTransaction, METH_VARARGS, NULL}, - { (char *)"api__ReadableTransaction_swigregister", api__ReadableTransaction_swigregister, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Length_set", _wrap_api__CreatedTransaction_Length_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Length_get", _wrap_api__CreatedTransaction_Length_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Type_set", _wrap_api__CreatedTransaction_Type_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Type_get", _wrap_api__CreatedTransaction_Type_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_TxID_set", _wrap_api__CreatedTransaction_TxID_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_TxID_get", _wrap_api__CreatedTransaction_TxID_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_InnerHash_set", _wrap_api__CreatedTransaction_InnerHash_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_InnerHash_get", _wrap_api__CreatedTransaction_InnerHash_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Fee_set", _wrap_api__CreatedTransaction_Fee_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Fee_get", _wrap_api__CreatedTransaction_Fee_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Sigs_set", _wrap_api__CreatedTransaction_Sigs_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Sigs_get", _wrap_api__CreatedTransaction_Sigs_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_In_set", _wrap_api__CreatedTransaction_In_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_In_get", _wrap_api__CreatedTransaction_In_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Out_set", _wrap_api__CreatedTransaction_Out_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_Out_get", _wrap_api__CreatedTransaction_Out_get, METH_VARARGS, NULL}, - { (char *)"new_api__CreatedTransaction", _wrap_new_api__CreatedTransaction, METH_VARARGS, NULL}, - { (char *)"delete_api__CreatedTransaction", _wrap_delete_api__CreatedTransaction, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransaction_swigregister", api__CreatedTransaction_swigregister, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_UxID_set", _wrap_api__CreatedTransactionOutput_UxID_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_UxID_get", _wrap_api__CreatedTransactionOutput_UxID_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_Address_set", _wrap_api__CreatedTransactionOutput_Address_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_Address_get", _wrap_api__CreatedTransactionOutput_Address_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_Coins_set", _wrap_api__CreatedTransactionOutput_Coins_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_Coins_get", _wrap_api__CreatedTransactionOutput_Coins_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_Hours_set", _wrap_api__CreatedTransactionOutput_Hours_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_Hours_get", _wrap_api__CreatedTransactionOutput_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_api__CreatedTransactionOutput", _wrap_new_api__CreatedTransactionOutput, METH_VARARGS, NULL}, - { (char *)"delete_api__CreatedTransactionOutput", _wrap_delete_api__CreatedTransactionOutput, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionOutput_swigregister", api__CreatedTransactionOutput_swigregister, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_UxID_set", _wrap_api__CreatedTransactionInput_UxID_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_UxID_get", _wrap_api__CreatedTransactionInput_UxID_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Address_set", _wrap_api__CreatedTransactionInput_Address_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Address_get", _wrap_api__CreatedTransactionInput_Address_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Coins_set", _wrap_api__CreatedTransactionInput_Coins_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Coins_get", _wrap_api__CreatedTransactionInput_Coins_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Hours_set", _wrap_api__CreatedTransactionInput_Hours_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Hours_get", _wrap_api__CreatedTransactionInput_Hours_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_CalculatedHours_set", _wrap_api__CreatedTransactionInput_CalculatedHours_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_CalculatedHours_get", _wrap_api__CreatedTransactionInput_CalculatedHours_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Time_set", _wrap_api__CreatedTransactionInput_Time_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Time_get", _wrap_api__CreatedTransactionInput_Time_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Block_set", _wrap_api__CreatedTransactionInput_Block_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_Block_get", _wrap_api__CreatedTransactionInput_Block_get, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_TxID_set", _wrap_api__CreatedTransactionInput_TxID_set, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_TxID_get", _wrap_api__CreatedTransactionInput_TxID_get, METH_VARARGS, NULL}, - { (char *)"new_api__CreatedTransactionInput", _wrap_new_api__CreatedTransactionInput, METH_VARARGS, NULL}, - { (char *)"delete_api__CreatedTransactionInput", _wrap_delete_api__CreatedTransactionInput, METH_VARARGS, NULL}, - { (char *)"api__CreatedTransactionInput_swigregister", api__CreatedTransactionInput_swigregister, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_ID_set", _wrap_api__createTransactionRequestWallet_ID_set, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_ID_get", _wrap_api__createTransactionRequestWallet_ID_get, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_Addresses_set", _wrap_api__createTransactionRequestWallet_Addresses_set, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_Addresses_get", _wrap_api__createTransactionRequestWallet_Addresses_get, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_Password_set", _wrap_api__createTransactionRequestWallet_Password_set, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_Password_get", _wrap_api__createTransactionRequestWallet_Password_get, METH_VARARGS, NULL}, - { (char *)"new_api__createTransactionRequestWallet", _wrap_new_api__createTransactionRequestWallet, METH_VARARGS, NULL}, - { (char *)"delete_api__createTransactionRequestWallet", _wrap_delete_api__createTransactionRequestWallet, METH_VARARGS, NULL}, - { (char *)"api__createTransactionRequestWallet_swigregister", api__createTransactionRequestWallet_swigregister, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionResponse_Transaction_set", _wrap_api__CreateTransactionResponse_Transaction_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionResponse_Transaction_get", _wrap_api__CreateTransactionResponse_Transaction_get, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionResponse_EncodedTransaction_set", _wrap_api__CreateTransactionResponse_EncodedTransaction_set, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionResponse_EncodedTransaction_get", _wrap_api__CreateTransactionResponse_EncodedTransaction_get, METH_VARARGS, NULL}, - { (char *)"new_api__CreateTransactionResponse", _wrap_new_api__CreateTransactionResponse, METH_VARARGS, NULL}, - { (char *)"delete_api__CreateTransactionResponse", _wrap_delete_api__CreateTransactionResponse, METH_VARARGS, NULL}, - { (char *)"api__CreateTransactionResponse_swigregister", api__CreateTransactionResponse_swigregister, METH_VARARGS, NULL}, - { (char *)"api__receiver_Address_set", _wrap_api__receiver_Address_set, METH_VARARGS, NULL}, - { (char *)"api__receiver_Address_get", _wrap_api__receiver_Address_get, METH_VARARGS, NULL}, - { (char *)"api__receiver_Coins_set", _wrap_api__receiver_Coins_set, METH_VARARGS, NULL}, - { (char *)"api__receiver_Coins_get", _wrap_api__receiver_Coins_get, METH_VARARGS, NULL}, - { (char *)"api__receiver_Hours_set", _wrap_api__receiver_Hours_set, METH_VARARGS, NULL}, - { (char *)"api__receiver_Hours_get", _wrap_api__receiver_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_api__receiver", _wrap_new_api__receiver, METH_VARARGS, NULL}, - { (char *)"delete_api__receiver", _wrap_delete_api__receiver, METH_VARARGS, NULL}, - { (char *)"api__receiver_swigregister", api__receiver_swigregister, METH_VARARGS, NULL}, - { (char *)"api__UnconfirmedTxnsResponse_Transactions_set", _wrap_api__UnconfirmedTxnsResponse_Transactions_set, METH_VARARGS, NULL}, - { (char *)"api__UnconfirmedTxnsResponse_Transactions_get", _wrap_api__UnconfirmedTxnsResponse_Transactions_get, METH_VARARGS, NULL}, - { (char *)"new_api__UnconfirmedTxnsResponse", _wrap_new_api__UnconfirmedTxnsResponse, METH_VARARGS, NULL}, - { (char *)"delete_api__UnconfirmedTxnsResponse", _wrap_delete_api__UnconfirmedTxnsResponse, METH_VARARGS, NULL}, - { (char *)"api__UnconfirmedTxnsResponse_swigregister", api__UnconfirmedTxnsResponse_swigregister, METH_VARARGS, NULL}, - { (char *)"api__WalletEntry_Address_set", _wrap_api__WalletEntry_Address_set, METH_VARARGS, NULL}, - { (char *)"api__WalletEntry_Address_get", _wrap_api__WalletEntry_Address_get, METH_VARARGS, NULL}, - { (char *)"api__WalletEntry_Public_set", _wrap_api__WalletEntry_Public_set, METH_VARARGS, NULL}, - { (char *)"api__WalletEntry_Public_get", _wrap_api__WalletEntry_Public_get, METH_VARARGS, NULL}, - { (char *)"new_api__WalletEntry", _wrap_new_api__WalletEntry, METH_VARARGS, NULL}, - { (char *)"delete_api__WalletEntry", _wrap_delete_api__WalletEntry, METH_VARARGS, NULL}, - { (char *)"api__WalletEntry_swigregister", api__WalletEntry_swigregister, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Coin_set", _wrap_api__WalletMeta_Coin_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Coin_get", _wrap_api__WalletMeta_Coin_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Filename_set", _wrap_api__WalletMeta_Filename_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Filename_get", _wrap_api__WalletMeta_Filename_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Label_set", _wrap_api__WalletMeta_Label_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Label_get", _wrap_api__WalletMeta_Label_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Type_set", _wrap_api__WalletMeta_Type_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Type_get", _wrap_api__WalletMeta_Type_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Version_set", _wrap_api__WalletMeta_Version_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Version_get", _wrap_api__WalletMeta_Version_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_CryptoType_set", _wrap_api__WalletMeta_CryptoType_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_CryptoType_get", _wrap_api__WalletMeta_CryptoType_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Timestamp_set", _wrap_api__WalletMeta_Timestamp_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Timestamp_get", _wrap_api__WalletMeta_Timestamp_get, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Encrypted_set", _wrap_api__WalletMeta_Encrypted_set, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_Encrypted_get", _wrap_api__WalletMeta_Encrypted_get, METH_VARARGS, NULL}, - { (char *)"new_api__WalletMeta", _wrap_new_api__WalletMeta, METH_VARARGS, NULL}, - { (char *)"delete_api__WalletMeta", _wrap_delete_api__WalletMeta, METH_VARARGS, NULL}, - { (char *)"api__WalletMeta_swigregister", api__WalletMeta_swigregister, METH_VARARGS, NULL}, - { (char *)"api__WalletResponse_Meta_set", _wrap_api__WalletResponse_Meta_set, METH_VARARGS, NULL}, - { (char *)"api__WalletResponse_Meta_get", _wrap_api__WalletResponse_Meta_get, METH_VARARGS, NULL}, - { (char *)"api__WalletResponse_Entries_set", _wrap_api__WalletResponse_Entries_set, METH_VARARGS, NULL}, - { (char *)"api__WalletResponse_Entries_get", _wrap_api__WalletResponse_Entries_get, METH_VARARGS, NULL}, - { (char *)"new_api__WalletResponse", _wrap_new_api__WalletResponse, METH_VARARGS, NULL}, - { (char *)"delete_api__WalletResponse", _wrap_delete_api__WalletResponse, METH_VARARGS, NULL}, - { (char *)"api__WalletResponse_swigregister", api__WalletResponse_swigregister, METH_VARARGS, NULL}, - { (char *)"api__WalletFolder_Address_set", _wrap_api__WalletFolder_Address_set, METH_VARARGS, NULL}, - { (char *)"api__WalletFolder_Address_get", _wrap_api__WalletFolder_Address_get, METH_VARARGS, NULL}, - { (char *)"new_api__WalletFolder", _wrap_new_api__WalletFolder, METH_VARARGS, NULL}, - { (char *)"delete_api__WalletFolder", _wrap_delete_api__WalletFolder, METH_VARARGS, NULL}, - { (char *)"api__WalletFolder_swigregister", api__WalletFolder_swigregister, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_Balance_set", _wrap_api__SpendResult_Balance_set, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_Balance_get", _wrap_api__SpendResult_Balance_get, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_Transaction_set", _wrap_api__SpendResult_Transaction_set, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_Transaction_get", _wrap_api__SpendResult_Transaction_get, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_Error_set", _wrap_api__SpendResult_Error_set, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_Error_get", _wrap_api__SpendResult_Error_get, METH_VARARGS, NULL}, - { (char *)"new_api__SpendResult", _wrap_new_api__SpendResult, METH_VARARGS, NULL}, - { (char *)"delete_api__SpendResult", _wrap_delete_api__SpendResult, METH_VARARGS, NULL}, - { (char *)"api__SpendResult_swigregister", api__SpendResult_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__Balance_Coins_set", _wrap_cli__Balance_Coins_set, METH_VARARGS, NULL}, - { (char *)"cli__Balance_Coins_get", _wrap_cli__Balance_Coins_get, METH_VARARGS, NULL}, - { (char *)"cli__Balance_Hours_set", _wrap_cli__Balance_Hours_set, METH_VARARGS, NULL}, - { (char *)"cli__Balance_Hours_get", _wrap_cli__Balance_Hours_get, METH_VARARGS, NULL}, - { (char *)"new_cli__Balance", _wrap_new_cli__Balance, METH_VARARGS, NULL}, - { (char *)"delete_cli__Balance", _wrap_delete_cli__Balance, METH_VARARGS, NULL}, - { (char *)"cli__Balance_swigregister", cli__Balance_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Confirmed_set", _wrap_cli__AddressBalance_Confirmed_set, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Confirmed_get", _wrap_cli__AddressBalance_Confirmed_get, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Spendable_set", _wrap_cli__AddressBalance_Spendable_set, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Spendable_get", _wrap_cli__AddressBalance_Spendable_get, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Expected_set", _wrap_cli__AddressBalance_Expected_set, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Expected_get", _wrap_cli__AddressBalance_Expected_get, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Address_set", _wrap_cli__AddressBalance_Address_set, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_Address_get", _wrap_cli__AddressBalance_Address_get, METH_VARARGS, NULL}, - { (char *)"new_cli__AddressBalance", _wrap_new_cli__AddressBalance, METH_VARARGS, NULL}, - { (char *)"delete_cli__AddressBalance", _wrap_delete_cli__AddressBalance, METH_VARARGS, NULL}, - { (char *)"cli__AddressBalance_swigregister", cli__AddressBalance_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Confirmed_set", _wrap_cli__BalanceResult_Confirmed_set, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Confirmed_get", _wrap_cli__BalanceResult_Confirmed_get, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Spendable_set", _wrap_cli__BalanceResult_Spendable_set, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Spendable_get", _wrap_cli__BalanceResult_Spendable_get, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Expected_set", _wrap_cli__BalanceResult_Expected_set, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Expected_get", _wrap_cli__BalanceResult_Expected_get, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Addresses_set", _wrap_cli__BalanceResult_Addresses_set, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_Addresses_get", _wrap_cli__BalanceResult_Addresses_get, METH_VARARGS, NULL}, - { (char *)"new_cli__BalanceResult", _wrap_new_cli__BalanceResult, METH_VARARGS, NULL}, - { (char *)"delete_cli__BalanceResult", _wrap_delete_cli__BalanceResult, METH_VARARGS, NULL}, - { (char *)"cli__BalanceResult_swigregister", cli__BalanceResult_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__Config_WalletDir_set", _wrap_cli__Config_WalletDir_set, METH_VARARGS, NULL}, - { (char *)"cli__Config_WalletDir_get", _wrap_cli__Config_WalletDir_get, METH_VARARGS, NULL}, - { (char *)"cli__Config_WalletName_set", _wrap_cli__Config_WalletName_set, METH_VARARGS, NULL}, - { (char *)"cli__Config_WalletName_get", _wrap_cli__Config_WalletName_get, METH_VARARGS, NULL}, - { (char *)"cli__Config_DataDir_set", _wrap_cli__Config_DataDir_set, METH_VARARGS, NULL}, - { (char *)"cli__Config_DataDir_get", _wrap_cli__Config_DataDir_get, METH_VARARGS, NULL}, - { (char *)"cli__Config_Coin_set", _wrap_cli__Config_Coin_set, METH_VARARGS, NULL}, - { (char *)"cli__Config_Coin_get", _wrap_cli__Config_Coin_get, METH_VARARGS, NULL}, - { (char *)"cli__Config_RPCAddress_set", _wrap_cli__Config_RPCAddress_set, METH_VARARGS, NULL}, - { (char *)"cli__Config_RPCAddress_get", _wrap_cli__Config_RPCAddress_get, METH_VARARGS, NULL}, - { (char *)"cli__Config_UseCSRF_set", _wrap_cli__Config_UseCSRF_set, METH_VARARGS, NULL}, - { (char *)"cli__Config_UseCSRF_get", _wrap_cli__Config_UseCSRF_get, METH_VARARGS, NULL}, - { (char *)"new_cli__Config", _wrap_new_cli__Config, METH_VARARGS, NULL}, - { (char *)"delete_cli__Config", _wrap_delete_cli__Config, METH_VARARGS, NULL}, - { (char *)"cli__Config_swigregister", cli__Config_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__WalletLoadError__unnamed_set", _wrap_cli__WalletLoadError__unnamed_set, METH_VARARGS, NULL}, - { (char *)"cli__WalletLoadError__unnamed_get", _wrap_cli__WalletLoadError__unnamed_get, METH_VARARGS, NULL}, - { (char *)"new_cli__WalletLoadError", _wrap_new_cli__WalletLoadError, METH_VARARGS, NULL}, - { (char *)"delete_cli__WalletLoadError", _wrap_delete_cli__WalletLoadError, METH_VARARGS, NULL}, - { (char *)"cli__WalletLoadError_swigregister", cli__WalletLoadError_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__WalletSaveError__unnamed_set", _wrap_cli__WalletSaveError__unnamed_set, METH_VARARGS, NULL}, - { (char *)"cli__WalletSaveError__unnamed_get", _wrap_cli__WalletSaveError__unnamed_get, METH_VARARGS, NULL}, - { (char *)"new_cli__WalletSaveError", _wrap_new_cli__WalletSaveError, METH_VARARGS, NULL}, - { (char *)"delete_cli__WalletSaveError", _wrap_delete_cli__WalletSaveError, METH_VARARGS, NULL}, - { (char *)"cli__WalletSaveError_swigregister", cli__WalletSaveError_swigregister, METH_VARARGS, NULL}, - { (char *)"new_cli__PasswordFromTerm", _wrap_new_cli__PasswordFromTerm, METH_VARARGS, NULL}, - { (char *)"delete_cli__PasswordFromTerm", _wrap_delete_cli__PasswordFromTerm, METH_VARARGS, NULL}, - { (char *)"cli__PasswordFromTerm_swigregister", cli__PasswordFromTerm_swigregister, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Addr_set", _wrap_cli__SendAmount_Addr_set, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Addr_get", _wrap_cli__SendAmount_Addr_get, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Coins_set", _wrap_cli__SendAmount_Coins_set, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_Coins_get", _wrap_cli__SendAmount_Coins_get, METH_VARARGS, NULL}, - { (char *)"new_cli__SendAmount", _wrap_new_cli__SendAmount, METH_VARARGS, NULL}, - { (char *)"delete_cli__SendAmount", _wrap_delete_cli__SendAmount, METH_VARARGS, NULL}, - { (char *)"cli__SendAmount_swigregister", cli__SendAmount_swigregister, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static swig_type_info _swigt__p_App__Handle = {"_p_App__Handle", "App__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BOOL = {"_p_BOOL", "BOOL *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BlockBody__Handle = {"_p_BlockBody__Handle", "BlockBody__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Block__Handle = {"_p_Block__Handle", "Block__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Client__Handle = {"_p_Client__Handle", "Client__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Config__Handle = {"_p_Config__Handle", "Config__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Context__Handle = {"_p_Context__Handle", "Context__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreateTransactionResponse__Handle = {"_p_CreateTransactionResponse__Handle", "CreateTransactionResponse__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreatedTransactionInput__Handle = {"_p_CreatedTransactionInput__Handle", "CreatedTransactionInput__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CreatedTransaction__Handle = {"_p_CreatedTransaction__Handle", "CreatedTransaction__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoInterface = {"_p_GoInterface", "GoInterface *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoInterface_ = {"_p_GoInterface_", "wallet__Validator *|GoInterface_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoMap_ = {"_p_GoMap_", "GoMap_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoSlice = {"_p_GoSlice", "GoSlice *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoSlice_ = {"_p_GoSlice_", "coin__Transactions *|coin__UxArray *|GoSlice_ *|cli__PasswordFromBytes *|wallet__ReadableNotes *|visor__ReadableOutputs *|wallet__Notes *|visor__Richlist *|consensus__PriorityQueue *|cipher__PubKeySlice *|pex__Peers *|wallet__ReadableEntries *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoStringMap_ = {"_p_GoStringMap_", "GoStringMap_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GoString_ = {"_p_GoString_", "GoString_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Handle = {"_p_Handle", "Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Number = {"_p_Number", "Number *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Options__Handle = {"_p_Options__Handle", "Options__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_PasswordReader__Handle = {"_p_PasswordReader__Handle", "PasswordReader__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ReadableEntry__Handle = {"_p_ReadableEntry__Handle", "ReadableEntry__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ReadableWallet__Handle = {"_p_ReadableWallet__Handle", "ReadableWallet__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Signature = {"_p_Signature", "Signature *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Strings__Handle = {"_p_Strings__Handle", "Strings__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Transaction__Handle = {"_p_Transaction__Handle", "Transaction__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Transactions__Handle = {"_p_Transactions__Handle", "Transactions__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_WalletResponse__Handle = {"_p_WalletResponse__Handle", "WalletResponse__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Wallet__Handle = {"_p_Wallet__Handle", "Wallet__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Wallets__Handle = {"_p_Wallets__Handle", "Wallets__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_WebRpcClient__Handle = {"_p_WebRpcClient__Handle", "WebRpcClient__Handle *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__GoString_ = {"_p__GoString_", "_GoString_ *|GoString *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p___SIZE_TYPE__ = {"_p___SIZE_TYPE__", "__SIZE_TYPE__ *|GoUintptr *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_20__unsigned_char = {"_p_a_20__unsigned_char", "unsigned char (*)[20]|cipher__Ripemd160 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_32__unsigned_char = {"_p_a_32__unsigned_char", "cipher__SecKey *|cipher__SHA256 *|unsigned char (*)[32]", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_33__unsigned_char = {"_p_a_33__unsigned_char", "unsigned char (*)[33]|cipher__PubKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_4__unsigned_char = {"_p_a_4__unsigned_char", "cipher__Checksum *|unsigned char (*)[4]", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_65__unsigned_char = {"_p_a_65__unsigned_char", "unsigned char (*)[65]|cipher__Sig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_sizeof_void_____64_8_1__1__char = {"_p_a_sizeof_void_____64_8_1__1__char", "char (*)[sizeof(void *)==64/8?1:-1]|_check_for_64_bit_pointer_matching_GoInt *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__CreateTransactionRequest = {"_p_api__CreateTransactionRequest", "api__CreateTransactionRequest *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__CreateTransactionRequestWallet = {"_p_api__CreateTransactionRequestWallet", "api__CreateTransactionRequestWallet *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__CreateTransactionResponse = {"_p_api__CreateTransactionResponse", "api__CreateTransactionResponse *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__CreatedTransaction = {"_p_api__CreatedTransaction", "api__CreatedTransaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__CreatedTransactionInput = {"_p_api__CreatedTransactionInput", "api__CreatedTransactionInput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__CreatedTransactionOutput = {"_p_api__CreatedTransactionOutput", "api__CreatedTransactionOutput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__HoursSelection = {"_p_api__HoursSelection", "api__HoursSelection *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__ReadableTransaction = {"_p_api__ReadableTransaction", "api__ReadableTransaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__Receiver = {"_p_api__Receiver", "api__Receiver *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__Richlist = {"_p_api__Richlist", "api__Richlist *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__RichlistParams = {"_p_api__RichlistParams", "api__RichlistParams *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__SpendResult = {"_p_api__SpendResult", "api__SpendResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__UnconfirmedTxnsResponse = {"_p_api__UnconfirmedTxnsResponse", "api__UnconfirmedTxnsResponse *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__WalletEntry = {"_p_api__WalletEntry", "api__WalletEntry *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__WalletFolder = {"_p_api__WalletFolder", "api__WalletFolder *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__WalletMeta = {"_p_api__WalletMeta", "api__WalletMeta *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__WalletResponse = {"_p_api__WalletResponse", "api__WalletResponse *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__createTransactionRequestWallet = {"_p_api__createTransactionRequestWallet", "api__createTransactionRequestWallet *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_api__receiver = {"_p_api__receiver", "api__receiver *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__ErrMissingSignature = {"_p_blockdb__ErrMissingSignature", "blockdb__ErrMissingSignature *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__ErrUnspentNotExist = {"_p_blockdb__ErrUnspentNotExist", "blockdb__ErrUnspentNotExist *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__blockSigs = {"_p_blockdb__blockSigs", "blockdb__blockSigs *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__blockTree = {"_p_blockdb__blockTree", "blockdb__blockTree *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__pool = {"_p_blockdb__pool", "blockdb__pool *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__poolAddrIndex = {"_p_blockdb__poolAddrIndex", "blockdb__poolAddrIndex *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_blockdb__unspentMeta = {"_p_blockdb__unspentMeta", "blockdb__unspentMeta *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_chacha20poly1305__chacha20poly1305 = {"_p_chacha20poly1305__chacha20poly1305", "chacha20poly1305__chacha20poly1305 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Checksum = {"_p_cipher_Checksum", "cipher_Checksum *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_PubKey = {"_p_cipher_PubKey", "cipher_PubKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_PubKeys = {"_p_cipher_PubKeys", "cipher_PubKeys *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Ripemd160 = {"_p_cipher_Ripemd160", "cipher_Ripemd160 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SHA256 = {"_p_cipher_SHA256", "cipher_SHA256 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SecKey = {"_p_cipher_SecKey", "cipher_SecKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_SecKeys = {"_p_cipher_SecKeys", "cipher_SecKeys *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher_Sig = {"_p_cipher_Sig", "cipher_Sig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cipher__Address = {"_p_cipher__Address", "cipher__Address *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__AddressBalance = {"_p_cli__AddressBalance", "cli__AddressBalance *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__Balance = {"_p_cli__Balance", "cli__Balance *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__BalanceResult = {"_p_cli__BalanceResult", "cli__BalanceResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__Config = {"_p_cli__Config", "cli__Config *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__PasswordFromTerm = {"_p_cli__PasswordFromTerm", "cli__PasswordFromTerm *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__SendAmount = {"_p_cli__SendAmount", "cli__SendAmount *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__WalletLoadError = {"_p_cli__WalletLoadError", "cli__WalletLoadError *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_cli__WalletSaveError = {"_p_cli__WalletSaveError", "cli__WalletSaveError *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__Block = {"_p_coin__Block", "coin__Block *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__BlockBody = {"_p_coin__BlockBody", "coin__BlockBody *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__BlockHeader = {"_p_coin__BlockHeader", "coin__BlockHeader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__HashPair = {"_p_coin__HashPair", "coin__HashPair *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__SignedBlock = {"_p_coin__SignedBlock", "coin__SignedBlock *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__SortableTransactions = {"_p_coin__SortableTransactions", "coin__SortableTransactions *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__Transaction = {"_p_coin__Transaction", "coin__Transaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__TransactionOutput = {"_p_coin__TransactionOutput", "coin__TransactionOutput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__UxBody = {"_p_coin__UxBody", "coin__UxBody *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__UxHead = {"_p_coin__UxHead", "coin__UxHead *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_coin__UxOut = {"_p_coin__UxOut", "coin__UxOut *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_consensus__BlockBase = {"_p_consensus__BlockBase", "consensus__BlockBase *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_consensus__BlockStatQueue = {"_p_consensus__BlockStatQueue", "consensus__BlockStatQueue *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__AnnounceBlocksMessage = {"_p_daemon__AnnounceBlocksMessage", "daemon__AnnounceBlocksMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__AnnounceTxnsMessage = {"_p_daemon__AnnounceTxnsMessage", "daemon__AnnounceTxnsMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__BlockchainProgress = {"_p_daemon__BlockchainProgress", "daemon__BlockchainProgress *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__ConnectEvent = {"_p_daemon__ConnectEvent", "daemon__ConnectEvent *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__Connection = {"_p_daemon__Connection", "daemon__Connection *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__ConnectionError = {"_p_daemon__ConnectionError", "daemon__ConnectionError *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__Connections = {"_p_daemon__Connections", "daemon__Connections *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__DisconnectEvent = {"_p_daemon__DisconnectEvent", "daemon__DisconnectEvent *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GatewayConfig = {"_p_daemon__GatewayConfig", "daemon__GatewayConfig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GetBlocksMessage = {"_p_daemon__GetBlocksMessage", "daemon__GetBlocksMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GetPeersMessage = {"_p_daemon__GetPeersMessage", "daemon__GetPeersMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GetTxnsMessage = {"_p_daemon__GetTxnsMessage", "daemon__GetTxnsMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GiveBlocksMessage = {"_p_daemon__GiveBlocksMessage", "daemon__GiveBlocksMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GivePeersMessage = {"_p_daemon__GivePeersMessage", "daemon__GivePeersMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__GiveTxnsMessage = {"_p_daemon__GiveTxnsMessage", "daemon__GiveTxnsMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__IPAddr = {"_p_daemon__IPAddr", "daemon__IPAddr *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__IntroductionMessage = {"_p_daemon__IntroductionMessage", "daemon__IntroductionMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__Messages = {"_p_daemon__Messages", "daemon__Messages *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__MessagesConfig = {"_p_daemon__MessagesConfig", "daemon__MessagesConfig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__PeerBlockchainHeight = {"_p_daemon__PeerBlockchainHeight", "daemon__PeerBlockchainHeight *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__PingMessage = {"_p_daemon__PingMessage", "daemon__PingMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__PongMessage = {"_p_daemon__PongMessage", "daemon__PongMessage *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__RPC = {"_p_daemon__RPC", "daemon__RPC *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__ResendResult = {"_p_daemon__ResendResult", "daemon__ResendResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__TransactionResult = {"_p_daemon__TransactionResult", "daemon__TransactionResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_daemon__TransactionResults = {"_p_daemon__TransactionResults", "daemon__TransactionResults *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_double = {"_p_double", "GoFloat64 *|double *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_encoder__StructField = {"_p_encoder__StructField", "encoder__StructField *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_encoder__coder = {"_p_encoder__coder", "encoder__coder *|encoder__encoder *|encoder__decoder *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_encrypt__ScryptChacha20poly1305 = {"_p_encrypt__ScryptChacha20poly1305", "encrypt__ScryptChacha20poly1305 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_encrypt__Sha256Xor = {"_p_encrypt__Sha256Xor", "encrypt__Sha256Xor *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_encrypt__meta = {"_p_encrypt__meta", "encrypt__meta *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_float = {"_p_float", "float *|GoFloat32 *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_gnet__MessageContext = {"_p_gnet__MessageContext", "gnet__MessageContext *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__Transaction = {"_p_historydb__Transaction", "historydb__Transaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__UxOut = {"_p_historydb__UxOut", "historydb__UxOut *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__UxOutJSON = {"_p_historydb__UxOutJSON", "historydb__UxOutJSON *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__UxOuts = {"_p_historydb__UxOuts", "historydb__UxOuts *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__addressTxns = {"_p_historydb__addressTxns", "historydb__addressTxns *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__addressUx = {"_p_historydb__addressUx", "historydb__addressUx *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__historyMeta = {"_p_historydb__historyMeta", "historydb__historyMeta *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_historydb__transactions = {"_p_historydb__transactions", "historydb__transactions *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_httphelper__Address = {"_p_httphelper__Address", "httphelper__Address *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_int = {"_p_int", "int *|GoInt32 *|gnet__DisconnectReason *|GoInt32_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_logging__ColorScheme = {"_p_logging__ColorScheme", "logging__ColorScheme *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_long_long = {"_p_long_long", "GoInt64 *|GoInt *|long long *|GoInt_ *|GoInt64_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_GoSlice_ = {"_p_p_GoSlice_", "coin__UxArray **|GoSlice_ **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_coin__Block = {"_p_p_coin__Block", "coin__Block **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_coin__Transaction = {"_p_p_coin__Transaction", "coin__Transaction **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pex__Peer = {"_p_pex__Peer", "pex__Peer *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_secp256k1go__Field = {"_p_secp256k1go__Field", "secp256k1go__Field *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_secp256k1go__XY = {"_p_secp256k1go__XY", "secp256k1go__XY *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_secp256k1go__XYZ = {"_p_secp256k1go__XYZ", "secp256k1go__XYZ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_short = {"_p_short", "GoInt16_ *|GoInt16 *|short *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|GoInt8 *|GoInt8_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|GoUint8 *|GoUint8_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "GoUint32 *|unsigned int *|GoUint32_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "httphelper__Coins *|GoUint64 *|GoUint *|unsigned long long *|GoUint_ *|GoUint64_ *|httphelper__Hours *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "GoUint16_ *|GoUint16 *|unsigned short *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__BlockchainConfig = {"_p_visor__BlockchainConfig", "visor__BlockchainConfig *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__BlockchainMetadata = {"_p_visor__BlockchainMetadata", "visor__BlockchainMetadata *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__BuildInfo = {"_p_visor__BuildInfo", "visor__BuildInfo *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ErrCorruptDB = {"_p_visor__ErrCorruptDB", "visor__ErrCorruptDB *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ErrTxnViolatesHardConstraint = {"_p_visor__ErrTxnViolatesHardConstraint", "visor__ErrTxnViolatesHardConstraint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ErrTxnViolatesSoftConstraint = {"_p_visor__ErrTxnViolatesSoftConstraint", "visor__ErrTxnViolatesSoftConstraint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableBlock = {"_p_visor__ReadableBlock", "visor__ReadableBlock *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableBlockBody = {"_p_visor__ReadableBlockBody", "visor__ReadableBlockBody *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableBlockHeader = {"_p_visor__ReadableBlockHeader", "visor__ReadableBlockHeader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableBlocks = {"_p_visor__ReadableBlocks", "visor__ReadableBlocks *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableOutput = {"_p_visor__ReadableOutput", "visor__ReadableOutput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableOutputSet = {"_p_visor__ReadableOutputSet", "visor__ReadableOutputSet *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableTransaction = {"_p_visor__ReadableTransaction", "visor__ReadableTransaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableTransactionInput = {"_p_visor__ReadableTransactionInput", "visor__ReadableTransactionInput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__ReadableTransactionOutput = {"_p_visor__ReadableTransactionOutput", "visor__ReadableTransactionOutput *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__RichlistBalance = {"_p_visor__RichlistBalance", "visor__RichlistBalance *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__Transaction = {"_p_visor__Transaction", "visor__Transaction *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__TransactionJSON = {"_p_visor__TransactionJSON", "visor__TransactionJSON *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__TransactionOutputJSON = {"_p_visor__TransactionOutputJSON", "visor__TransactionOutputJSON *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__TransactionStatus = {"_p_visor__TransactionStatus", "visor__TransactionStatus *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__UnconfirmedTxn = {"_p_visor__UnconfirmedTxn", "visor__UnconfirmedTxn *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__addrsFilter = {"_p_visor__addrsFilter", "visor__addrsFilter *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__sigHash = {"_p_visor__sigHash", "visor__sigHash *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__txUnspents = {"_p_visor__txUnspents", "visor__txUnspents *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_visor__unconfirmedTxns = {"_p_visor__unconfirmedTxns", "visor__unconfirmedTxns *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Balance = {"_p_wallet__Balance", "wallet__Balance *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__BalancePair = {"_p_wallet__BalancePair", "wallet__BalancePair *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Config = {"_p_wallet__Config", "wallet__Config *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Entry = {"_p_wallet__Entry", "wallet__Entry *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Note = {"_p_wallet__Note", "wallet__Note *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Options = {"_p_wallet__Options", "wallet__Options *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__ReadableEntry = {"_p_wallet__ReadableEntry", "wallet__ReadableEntry *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__ReadableNote = {"_p_wallet__ReadableNote", "wallet__ReadableNote *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__UxBalance = {"_p_wallet__UxBalance", "wallet__UxBalance *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wallet__Wallet = {"_p_wallet__Wallet", "wallet__Wallet *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_webrpc__AddrUxoutResult = {"_p_webrpc__AddrUxoutResult", "webrpc__AddrUxoutResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_webrpc__OutputsResult = {"_p_webrpc__OutputsResult", "webrpc__OutputsResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_webrpc__RPCError = {"_p_webrpc__RPCError", "webrpc__RPCError *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_webrpc__StatusResult = {"_p_webrpc__StatusResult", "webrpc__StatusResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_webrpc__TxIDJson = {"_p_webrpc__TxIDJson", "webrpc__TxIDJson *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_webrpc__TxnResult = {"_p_webrpc__TxnResult", "webrpc__TxnResult *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_App__Handle, - &_swigt__p_BOOL, - &_swigt__p_BlockBody__Handle, - &_swigt__p_Block__Handle, - &_swigt__p_Client__Handle, - &_swigt__p_Config__Handle, - &_swigt__p_Context__Handle, - &_swigt__p_CreateTransactionResponse__Handle, - &_swigt__p_CreatedTransactionInput__Handle, - &_swigt__p_CreatedTransaction__Handle, - &_swigt__p_GoInterface, - &_swigt__p_GoInterface_, - &_swigt__p_GoMap_, - &_swigt__p_GoSlice, - &_swigt__p_GoSlice_, - &_swigt__p_GoStringMap_, - &_swigt__p_GoString_, - &_swigt__p_Handle, - &_swigt__p_Number, - &_swigt__p_Options__Handle, - &_swigt__p_PasswordReader__Handle, - &_swigt__p_ReadableEntry__Handle, - &_swigt__p_ReadableWallet__Handle, - &_swigt__p_Signature, - &_swigt__p_Strings__Handle, - &_swigt__p_Transaction__Handle, - &_swigt__p_Transactions__Handle, - &_swigt__p_WalletResponse__Handle, - &_swigt__p_Wallet__Handle, - &_swigt__p_Wallets__Handle, - &_swigt__p_WebRpcClient__Handle, - &_swigt__p__GoString_, - &_swigt__p___SIZE_TYPE__, - &_swigt__p_a_20__unsigned_char, - &_swigt__p_a_32__unsigned_char, - &_swigt__p_a_33__unsigned_char, - &_swigt__p_a_4__unsigned_char, - &_swigt__p_a_65__unsigned_char, - &_swigt__p_a_sizeof_void_____64_8_1__1__char, - &_swigt__p_api__CreateTransactionRequest, - &_swigt__p_api__CreateTransactionRequestWallet, - &_swigt__p_api__CreateTransactionResponse, - &_swigt__p_api__CreatedTransaction, - &_swigt__p_api__CreatedTransactionInput, - &_swigt__p_api__CreatedTransactionOutput, - &_swigt__p_api__HoursSelection, - &_swigt__p_api__ReadableTransaction, - &_swigt__p_api__Receiver, - &_swigt__p_api__Richlist, - &_swigt__p_api__RichlistParams, - &_swigt__p_api__SpendResult, - &_swigt__p_api__UnconfirmedTxnsResponse, - &_swigt__p_api__WalletEntry, - &_swigt__p_api__WalletFolder, - &_swigt__p_api__WalletMeta, - &_swigt__p_api__WalletResponse, - &_swigt__p_api__createTransactionRequestWallet, - &_swigt__p_api__receiver, - &_swigt__p_blockdb__ErrMissingSignature, - &_swigt__p_blockdb__ErrUnspentNotExist, - &_swigt__p_blockdb__blockSigs, - &_swigt__p_blockdb__blockTree, - &_swigt__p_blockdb__pool, - &_swigt__p_blockdb__poolAddrIndex, - &_swigt__p_blockdb__unspentMeta, - &_swigt__p_chacha20poly1305__chacha20poly1305, - &_swigt__p_char, - &_swigt__p_cipher_Checksum, - &_swigt__p_cipher_PubKey, - &_swigt__p_cipher_PubKeys, - &_swigt__p_cipher_Ripemd160, - &_swigt__p_cipher_SHA256, - &_swigt__p_cipher_SecKey, - &_swigt__p_cipher_SecKeys, - &_swigt__p_cipher_Sig, - &_swigt__p_cipher__Address, - &_swigt__p_cli__AddressBalance, - &_swigt__p_cli__Balance, - &_swigt__p_cli__BalanceResult, - &_swigt__p_cli__Config, - &_swigt__p_cli__PasswordFromTerm, - &_swigt__p_cli__SendAmount, - &_swigt__p_cli__WalletLoadError, - &_swigt__p_cli__WalletSaveError, - &_swigt__p_coin__Block, - &_swigt__p_coin__BlockBody, - &_swigt__p_coin__BlockHeader, - &_swigt__p_coin__HashPair, - &_swigt__p_coin__SignedBlock, - &_swigt__p_coin__SortableTransactions, - &_swigt__p_coin__Transaction, - &_swigt__p_coin__TransactionOutput, - &_swigt__p_coin__UxBody, - &_swigt__p_coin__UxHead, - &_swigt__p_coin__UxOut, - &_swigt__p_consensus__BlockBase, - &_swigt__p_consensus__BlockStatQueue, - &_swigt__p_daemon__AnnounceBlocksMessage, - &_swigt__p_daemon__AnnounceTxnsMessage, - &_swigt__p_daemon__BlockchainProgress, - &_swigt__p_daemon__ConnectEvent, - &_swigt__p_daemon__Connection, - &_swigt__p_daemon__ConnectionError, - &_swigt__p_daemon__Connections, - &_swigt__p_daemon__DisconnectEvent, - &_swigt__p_daemon__GatewayConfig, - &_swigt__p_daemon__GetBlocksMessage, - &_swigt__p_daemon__GetPeersMessage, - &_swigt__p_daemon__GetTxnsMessage, - &_swigt__p_daemon__GiveBlocksMessage, - &_swigt__p_daemon__GivePeersMessage, - &_swigt__p_daemon__GiveTxnsMessage, - &_swigt__p_daemon__IPAddr, - &_swigt__p_daemon__IntroductionMessage, - &_swigt__p_daemon__Messages, - &_swigt__p_daemon__MessagesConfig, - &_swigt__p_daemon__PeerBlockchainHeight, - &_swigt__p_daemon__PingMessage, - &_swigt__p_daemon__PongMessage, - &_swigt__p_daemon__RPC, - &_swigt__p_daemon__ResendResult, - &_swigt__p_daemon__TransactionResult, - &_swigt__p_daemon__TransactionResults, - &_swigt__p_double, - &_swigt__p_encoder__StructField, - &_swigt__p_encoder__coder, - &_swigt__p_encrypt__ScryptChacha20poly1305, - &_swigt__p_encrypt__Sha256Xor, - &_swigt__p_encrypt__meta, - &_swigt__p_float, - &_swigt__p_gnet__MessageContext, - &_swigt__p_historydb__Transaction, - &_swigt__p_historydb__UxOut, - &_swigt__p_historydb__UxOutJSON, - &_swigt__p_historydb__UxOuts, - &_swigt__p_historydb__addressTxns, - &_swigt__p_historydb__addressUx, - &_swigt__p_historydb__historyMeta, - &_swigt__p_historydb__transactions, - &_swigt__p_httphelper__Address, - &_swigt__p_int, - &_swigt__p_logging__ColorScheme, - &_swigt__p_long_long, - &_swigt__p_p_GoSlice_, - &_swigt__p_p_coin__Block, - &_swigt__p_p_coin__Transaction, - &_swigt__p_pex__Peer, - &_swigt__p_secp256k1go__Field, - &_swigt__p_secp256k1go__XY, - &_swigt__p_secp256k1go__XYZ, - &_swigt__p_short, - &_swigt__p_signed_char, - &_swigt__p_unsigned_char, - &_swigt__p_unsigned_int, - &_swigt__p_unsigned_long_long, - &_swigt__p_unsigned_short, - &_swigt__p_visor__BlockchainConfig, - &_swigt__p_visor__BlockchainMetadata, - &_swigt__p_visor__BuildInfo, - &_swigt__p_visor__ErrCorruptDB, - &_swigt__p_visor__ErrTxnViolatesHardConstraint, - &_swigt__p_visor__ErrTxnViolatesSoftConstraint, - &_swigt__p_visor__ReadableBlock, - &_swigt__p_visor__ReadableBlockBody, - &_swigt__p_visor__ReadableBlockHeader, - &_swigt__p_visor__ReadableBlocks, - &_swigt__p_visor__ReadableOutput, - &_swigt__p_visor__ReadableOutputSet, - &_swigt__p_visor__ReadableTransaction, - &_swigt__p_visor__ReadableTransactionInput, - &_swigt__p_visor__ReadableTransactionOutput, - &_swigt__p_visor__RichlistBalance, - &_swigt__p_visor__Transaction, - &_swigt__p_visor__TransactionJSON, - &_swigt__p_visor__TransactionOutputJSON, - &_swigt__p_visor__TransactionStatus, - &_swigt__p_visor__UnconfirmedTxn, - &_swigt__p_visor__addrsFilter, - &_swigt__p_visor__sigHash, - &_swigt__p_visor__txUnspents, - &_swigt__p_visor__unconfirmedTxns, - &_swigt__p_void, - &_swigt__p_wallet__Balance, - &_swigt__p_wallet__BalancePair, - &_swigt__p_wallet__Config, - &_swigt__p_wallet__Entry, - &_swigt__p_wallet__Note, - &_swigt__p_wallet__Options, - &_swigt__p_wallet__ReadableEntry, - &_swigt__p_wallet__ReadableNote, - &_swigt__p_wallet__UxBalance, - &_swigt__p_wallet__Wallet, - &_swigt__p_webrpc__AddrUxoutResult, - &_swigt__p_webrpc__OutputsResult, - &_swigt__p_webrpc__RPCError, - &_swigt__p_webrpc__StatusResult, - &_swigt__p_webrpc__TxIDJson, - &_swigt__p_webrpc__TxnResult, -}; - -static swig_cast_info _swigc__p_App__Handle[] = { {&_swigt__p_App__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BOOL[] = { {&_swigt__p_BOOL, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BlockBody__Handle[] = { {&_swigt__p_BlockBody__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Block__Handle[] = { {&_swigt__p_Block__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Client__Handle[] = { {&_swigt__p_Client__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Config__Handle[] = { {&_swigt__p_Config__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Context__Handle[] = { {&_swigt__p_Context__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreateTransactionResponse__Handle[] = { {&_swigt__p_CreateTransactionResponse__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreatedTransactionInput__Handle[] = { {&_swigt__p_CreatedTransactionInput__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CreatedTransaction__Handle[] = { {&_swigt__p_CreatedTransaction__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoInterface[] = { {&_swigt__p_GoInterface, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoInterface_[] = { {&_swigt__p_GoInterface_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoMap_[] = { {&_swigt__p_GoMap_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoSlice[] = { {&_swigt__p_GoSlice, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoSlice_[] = { {&_swigt__p_GoSlice_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoStringMap_[] = { {&_swigt__p_GoStringMap_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GoString_[] = { {&_swigt__p_GoString_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Handle[] = { {&_swigt__p_Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Number[] = { {&_swigt__p_Number, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Options__Handle[] = { {&_swigt__p_Options__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_PasswordReader__Handle[] = { {&_swigt__p_PasswordReader__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ReadableEntry__Handle[] = { {&_swigt__p_ReadableEntry__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ReadableWallet__Handle[] = { {&_swigt__p_ReadableWallet__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Signature[] = { {&_swigt__p_Signature, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Strings__Handle[] = { {&_swigt__p_Strings__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Transaction__Handle[] = { {&_swigt__p_Transaction__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Transactions__Handle[] = { {&_swigt__p_Transactions__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_WalletResponse__Handle[] = { {&_swigt__p_WalletResponse__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Wallet__Handle[] = { {&_swigt__p_Wallet__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Wallets__Handle[] = { {&_swigt__p_Wallets__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_WebRpcClient__Handle[] = { {&_swigt__p_WebRpcClient__Handle, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__GoString_[] = { {&_swigt__p__GoString_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p___SIZE_TYPE__[] = { {&_swigt__p___SIZE_TYPE__, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_20__unsigned_char[] = { {&_swigt__p_a_20__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_32__unsigned_char[] = { {&_swigt__p_a_32__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_33__unsigned_char[] = { {&_swigt__p_a_33__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_4__unsigned_char[] = { {&_swigt__p_a_4__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_65__unsigned_char[] = { {&_swigt__p_a_65__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_sizeof_void_____64_8_1__1__char[] = { {&_swigt__p_a_sizeof_void_____64_8_1__1__char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__CreateTransactionRequest[] = { {&_swigt__p_api__CreateTransactionRequest, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__CreateTransactionRequestWallet[] = { {&_swigt__p_api__CreateTransactionRequestWallet, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__CreateTransactionResponse[] = { {&_swigt__p_api__CreateTransactionResponse, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__CreatedTransaction[] = { {&_swigt__p_api__CreatedTransaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__CreatedTransactionInput[] = { {&_swigt__p_api__CreatedTransactionInput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__CreatedTransactionOutput[] = { {&_swigt__p_api__CreatedTransactionOutput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__HoursSelection[] = { {&_swigt__p_api__HoursSelection, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__ReadableTransaction[] = { {&_swigt__p_api__ReadableTransaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__Receiver[] = { {&_swigt__p_api__Receiver, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__Richlist[] = { {&_swigt__p_api__Richlist, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__RichlistParams[] = { {&_swigt__p_api__RichlistParams, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__SpendResult[] = { {&_swigt__p_api__SpendResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__UnconfirmedTxnsResponse[] = { {&_swigt__p_api__UnconfirmedTxnsResponse, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__WalletEntry[] = { {&_swigt__p_api__WalletEntry, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__WalletFolder[] = { {&_swigt__p_api__WalletFolder, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__WalletMeta[] = { {&_swigt__p_api__WalletMeta, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__WalletResponse[] = { {&_swigt__p_api__WalletResponse, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__createTransactionRequestWallet[] = { {&_swigt__p_api__createTransactionRequestWallet, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_api__receiver[] = { {&_swigt__p_api__receiver, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__ErrMissingSignature[] = { {&_swigt__p_blockdb__ErrMissingSignature, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__ErrUnspentNotExist[] = { {&_swigt__p_blockdb__ErrUnspentNotExist, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__blockSigs[] = { {&_swigt__p_blockdb__blockSigs, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__blockTree[] = { {&_swigt__p_blockdb__blockTree, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__pool[] = { {&_swigt__p_blockdb__pool, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__poolAddrIndex[] = { {&_swigt__p_blockdb__poolAddrIndex, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_blockdb__unspentMeta[] = { {&_swigt__p_blockdb__unspentMeta, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_chacha20poly1305__chacha20poly1305[] = { {&_swigt__p_chacha20poly1305__chacha20poly1305, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Checksum[] = { {&_swigt__p_cipher_Checksum, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_PubKey[] = { {&_swigt__p_cipher_PubKey, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_PubKeys[] = { {&_swigt__p_cipher_PubKeys, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Ripemd160[] = { {&_swigt__p_cipher_Ripemd160, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SHA256[] = { {&_swigt__p_cipher_SHA256, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SecKey[] = { {&_swigt__p_cipher_SecKey, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_SecKeys[] = { {&_swigt__p_cipher_SecKeys, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher_Sig[] = { {&_swigt__p_cipher_Sig, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cipher__Address[] = { {&_swigt__p_cipher__Address, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__AddressBalance[] = { {&_swigt__p_cli__AddressBalance, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__Balance[] = { {&_swigt__p_cli__Balance, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__BalanceResult[] = { {&_swigt__p_cli__BalanceResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__Config[] = { {&_swigt__p_cli__Config, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__PasswordFromTerm[] = { {&_swigt__p_cli__PasswordFromTerm, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__SendAmount[] = { {&_swigt__p_cli__SendAmount, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__WalletLoadError[] = { {&_swigt__p_cli__WalletLoadError, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_cli__WalletSaveError[] = { {&_swigt__p_cli__WalletSaveError, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__Block[] = { {&_swigt__p_coin__Block, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__BlockBody[] = { {&_swigt__p_coin__BlockBody, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__BlockHeader[] = { {&_swigt__p_coin__BlockHeader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__HashPair[] = { {&_swigt__p_coin__HashPair, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__SignedBlock[] = { {&_swigt__p_coin__SignedBlock, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__SortableTransactions[] = { {&_swigt__p_coin__SortableTransactions, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__Transaction[] = { {&_swigt__p_coin__Transaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__TransactionOutput[] = { {&_swigt__p_coin__TransactionOutput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__UxBody[] = { {&_swigt__p_coin__UxBody, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__UxHead[] = { {&_swigt__p_coin__UxHead, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_coin__UxOut[] = { {&_swigt__p_coin__UxOut, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_consensus__BlockBase[] = { {&_swigt__p_consensus__BlockBase, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_consensus__BlockStatQueue[] = { {&_swigt__p_consensus__BlockStatQueue, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__AnnounceBlocksMessage[] = { {&_swigt__p_daemon__AnnounceBlocksMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__AnnounceTxnsMessage[] = { {&_swigt__p_daemon__AnnounceTxnsMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__BlockchainProgress[] = { {&_swigt__p_daemon__BlockchainProgress, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__ConnectEvent[] = { {&_swigt__p_daemon__ConnectEvent, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__Connection[] = { {&_swigt__p_daemon__Connection, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__ConnectionError[] = { {&_swigt__p_daemon__ConnectionError, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__Connections[] = { {&_swigt__p_daemon__Connections, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__DisconnectEvent[] = { {&_swigt__p_daemon__DisconnectEvent, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GatewayConfig[] = { {&_swigt__p_daemon__GatewayConfig, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GetBlocksMessage[] = { {&_swigt__p_daemon__GetBlocksMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GetPeersMessage[] = { {&_swigt__p_daemon__GetPeersMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GetTxnsMessage[] = { {&_swigt__p_daemon__GetTxnsMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GiveBlocksMessage[] = { {&_swigt__p_daemon__GiveBlocksMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GivePeersMessage[] = { {&_swigt__p_daemon__GivePeersMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__GiveTxnsMessage[] = { {&_swigt__p_daemon__GiveTxnsMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__IPAddr[] = { {&_swigt__p_daemon__IPAddr, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__IntroductionMessage[] = { {&_swigt__p_daemon__IntroductionMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__Messages[] = { {&_swigt__p_daemon__Messages, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__MessagesConfig[] = { {&_swigt__p_daemon__MessagesConfig, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__PeerBlockchainHeight[] = { {&_swigt__p_daemon__PeerBlockchainHeight, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__PingMessage[] = { {&_swigt__p_daemon__PingMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__PongMessage[] = { {&_swigt__p_daemon__PongMessage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__RPC[] = { {&_swigt__p_daemon__RPC, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__ResendResult[] = { {&_swigt__p_daemon__ResendResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__TransactionResult[] = { {&_swigt__p_daemon__TransactionResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_daemon__TransactionResults[] = { {&_swigt__p_daemon__TransactionResults, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_encoder__StructField[] = { {&_swigt__p_encoder__StructField, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_encoder__coder[] = { {&_swigt__p_encoder__coder, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_encrypt__ScryptChacha20poly1305[] = { {&_swigt__p_encrypt__ScryptChacha20poly1305, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_encrypt__Sha256Xor[] = { {&_swigt__p_encrypt__Sha256Xor, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_encrypt__meta[] = { {&_swigt__p_encrypt__meta, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_gnet__MessageContext[] = { {&_swigt__p_gnet__MessageContext, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__Transaction[] = { {&_swigt__p_historydb__Transaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__UxOut[] = { {&_swigt__p_historydb__UxOut, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__UxOutJSON[] = { {&_swigt__p_historydb__UxOutJSON, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__UxOuts[] = { {&_swigt__p_historydb__UxOuts, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__addressTxns[] = { {&_swigt__p_historydb__addressTxns, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__addressUx[] = { {&_swigt__p_historydb__addressUx, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__historyMeta[] = { {&_swigt__p_historydb__historyMeta, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_historydb__transactions[] = { {&_swigt__p_historydb__transactions, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_httphelper__Address[] = { {&_swigt__p_httphelper__Address, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_logging__ColorScheme[] = { {&_swigt__p_logging__ColorScheme, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_GoSlice_[] = { {&_swigt__p_p_GoSlice_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_coin__Block[] = { {&_swigt__p_p_coin__Block, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_coin__Transaction[] = { {&_swigt__p_p_coin__Transaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pex__Peer[] = { {&_swigt__p_pex__Peer, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_secp256k1go__Field[] = { {&_swigt__p_secp256k1go__Field, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_secp256k1go__XY[] = { {&_swigt__p_secp256k1go__XY, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_secp256k1go__XYZ[] = { {&_swigt__p_secp256k1go__XYZ, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__BlockchainConfig[] = { {&_swigt__p_visor__BlockchainConfig, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__BlockchainMetadata[] = { {&_swigt__p_visor__BlockchainMetadata, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__BuildInfo[] = { {&_swigt__p_visor__BuildInfo, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ErrCorruptDB[] = { {&_swigt__p_visor__ErrCorruptDB, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ErrTxnViolatesHardConstraint[] = { {&_swigt__p_visor__ErrTxnViolatesHardConstraint, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ErrTxnViolatesSoftConstraint[] = { {&_swigt__p_visor__ErrTxnViolatesSoftConstraint, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableBlock[] = { {&_swigt__p_visor__ReadableBlock, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableBlockBody[] = { {&_swigt__p_visor__ReadableBlockBody, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableBlockHeader[] = { {&_swigt__p_visor__ReadableBlockHeader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableBlocks[] = { {&_swigt__p_visor__ReadableBlocks, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableOutput[] = { {&_swigt__p_visor__ReadableOutput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableOutputSet[] = { {&_swigt__p_visor__ReadableOutputSet, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableTransaction[] = { {&_swigt__p_visor__ReadableTransaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableTransactionInput[] = { {&_swigt__p_visor__ReadableTransactionInput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__ReadableTransactionOutput[] = { {&_swigt__p_visor__ReadableTransactionOutput, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__RichlistBalance[] = { {&_swigt__p_visor__RichlistBalance, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__Transaction[] = { {&_swigt__p_visor__Transaction, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__TransactionJSON[] = { {&_swigt__p_visor__TransactionJSON, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__TransactionOutputJSON[] = { {&_swigt__p_visor__TransactionOutputJSON, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__TransactionStatus[] = { {&_swigt__p_visor__TransactionStatus, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__UnconfirmedTxn[] = { {&_swigt__p_visor__UnconfirmedTxn, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__addrsFilter[] = { {&_swigt__p_visor__addrsFilter, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__sigHash[] = { {&_swigt__p_visor__sigHash, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__txUnspents[] = { {&_swigt__p_visor__txUnspents, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_visor__unconfirmedTxns[] = { {&_swigt__p_visor__unconfirmedTxns, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Balance[] = { {&_swigt__p_wallet__Balance, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__BalancePair[] = { {&_swigt__p_wallet__BalancePair, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Config[] = { {&_swigt__p_wallet__Config, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Entry[] = { {&_swigt__p_wallet__Entry, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Note[] = { {&_swigt__p_wallet__Note, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Options[] = { {&_swigt__p_wallet__Options, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__ReadableEntry[] = { {&_swigt__p_wallet__ReadableEntry, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__ReadableNote[] = { {&_swigt__p_wallet__ReadableNote, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__UxBalance[] = { {&_swigt__p_wallet__UxBalance, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wallet__Wallet[] = { {&_swigt__p_wallet__Wallet, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_webrpc__AddrUxoutResult[] = { {&_swigt__p_webrpc__AddrUxoutResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_webrpc__OutputsResult[] = { {&_swigt__p_webrpc__OutputsResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_webrpc__RPCError[] = { {&_swigt__p_webrpc__RPCError, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_webrpc__StatusResult[] = { {&_swigt__p_webrpc__StatusResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_webrpc__TxIDJson[] = { {&_swigt__p_webrpc__TxIDJson, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_webrpc__TxnResult[] = { {&_swigt__p_webrpc__TxnResult, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_App__Handle, - _swigc__p_BOOL, - _swigc__p_BlockBody__Handle, - _swigc__p_Block__Handle, - _swigc__p_Client__Handle, - _swigc__p_Config__Handle, - _swigc__p_Context__Handle, - _swigc__p_CreateTransactionResponse__Handle, - _swigc__p_CreatedTransactionInput__Handle, - _swigc__p_CreatedTransaction__Handle, - _swigc__p_GoInterface, - _swigc__p_GoInterface_, - _swigc__p_GoMap_, - _swigc__p_GoSlice, - _swigc__p_GoSlice_, - _swigc__p_GoStringMap_, - _swigc__p_GoString_, - _swigc__p_Handle, - _swigc__p_Number, - _swigc__p_Options__Handle, - _swigc__p_PasswordReader__Handle, - _swigc__p_ReadableEntry__Handle, - _swigc__p_ReadableWallet__Handle, - _swigc__p_Signature, - _swigc__p_Strings__Handle, - _swigc__p_Transaction__Handle, - _swigc__p_Transactions__Handle, - _swigc__p_WalletResponse__Handle, - _swigc__p_Wallet__Handle, - _swigc__p_Wallets__Handle, - _swigc__p_WebRpcClient__Handle, - _swigc__p__GoString_, - _swigc__p___SIZE_TYPE__, - _swigc__p_a_20__unsigned_char, - _swigc__p_a_32__unsigned_char, - _swigc__p_a_33__unsigned_char, - _swigc__p_a_4__unsigned_char, - _swigc__p_a_65__unsigned_char, - _swigc__p_a_sizeof_void_____64_8_1__1__char, - _swigc__p_api__CreateTransactionRequest, - _swigc__p_api__CreateTransactionRequestWallet, - _swigc__p_api__CreateTransactionResponse, - _swigc__p_api__CreatedTransaction, - _swigc__p_api__CreatedTransactionInput, - _swigc__p_api__CreatedTransactionOutput, - _swigc__p_api__HoursSelection, - _swigc__p_api__ReadableTransaction, - _swigc__p_api__Receiver, - _swigc__p_api__Richlist, - _swigc__p_api__RichlistParams, - _swigc__p_api__SpendResult, - _swigc__p_api__UnconfirmedTxnsResponse, - _swigc__p_api__WalletEntry, - _swigc__p_api__WalletFolder, - _swigc__p_api__WalletMeta, - _swigc__p_api__WalletResponse, - _swigc__p_api__createTransactionRequestWallet, - _swigc__p_api__receiver, - _swigc__p_blockdb__ErrMissingSignature, - _swigc__p_blockdb__ErrUnspentNotExist, - _swigc__p_blockdb__blockSigs, - _swigc__p_blockdb__blockTree, - _swigc__p_blockdb__pool, - _swigc__p_blockdb__poolAddrIndex, - _swigc__p_blockdb__unspentMeta, - _swigc__p_chacha20poly1305__chacha20poly1305, - _swigc__p_char, - _swigc__p_cipher_Checksum, - _swigc__p_cipher_PubKey, - _swigc__p_cipher_PubKeys, - _swigc__p_cipher_Ripemd160, - _swigc__p_cipher_SHA256, - _swigc__p_cipher_SecKey, - _swigc__p_cipher_SecKeys, - _swigc__p_cipher_Sig, - _swigc__p_cipher__Address, - _swigc__p_cli__AddressBalance, - _swigc__p_cli__Balance, - _swigc__p_cli__BalanceResult, - _swigc__p_cli__Config, - _swigc__p_cli__PasswordFromTerm, - _swigc__p_cli__SendAmount, - _swigc__p_cli__WalletLoadError, - _swigc__p_cli__WalletSaveError, - _swigc__p_coin__Block, - _swigc__p_coin__BlockBody, - _swigc__p_coin__BlockHeader, - _swigc__p_coin__HashPair, - _swigc__p_coin__SignedBlock, - _swigc__p_coin__SortableTransactions, - _swigc__p_coin__Transaction, - _swigc__p_coin__TransactionOutput, - _swigc__p_coin__UxBody, - _swigc__p_coin__UxHead, - _swigc__p_coin__UxOut, - _swigc__p_consensus__BlockBase, - _swigc__p_consensus__BlockStatQueue, - _swigc__p_daemon__AnnounceBlocksMessage, - _swigc__p_daemon__AnnounceTxnsMessage, - _swigc__p_daemon__BlockchainProgress, - _swigc__p_daemon__ConnectEvent, - _swigc__p_daemon__Connection, - _swigc__p_daemon__ConnectionError, - _swigc__p_daemon__Connections, - _swigc__p_daemon__DisconnectEvent, - _swigc__p_daemon__GatewayConfig, - _swigc__p_daemon__GetBlocksMessage, - _swigc__p_daemon__GetPeersMessage, - _swigc__p_daemon__GetTxnsMessage, - _swigc__p_daemon__GiveBlocksMessage, - _swigc__p_daemon__GivePeersMessage, - _swigc__p_daemon__GiveTxnsMessage, - _swigc__p_daemon__IPAddr, - _swigc__p_daemon__IntroductionMessage, - _swigc__p_daemon__Messages, - _swigc__p_daemon__MessagesConfig, - _swigc__p_daemon__PeerBlockchainHeight, - _swigc__p_daemon__PingMessage, - _swigc__p_daemon__PongMessage, - _swigc__p_daemon__RPC, - _swigc__p_daemon__ResendResult, - _swigc__p_daemon__TransactionResult, - _swigc__p_daemon__TransactionResults, - _swigc__p_double, - _swigc__p_encoder__StructField, - _swigc__p_encoder__coder, - _swigc__p_encrypt__ScryptChacha20poly1305, - _swigc__p_encrypt__Sha256Xor, - _swigc__p_encrypt__meta, - _swigc__p_float, - _swigc__p_gnet__MessageContext, - _swigc__p_historydb__Transaction, - _swigc__p_historydb__UxOut, - _swigc__p_historydb__UxOutJSON, - _swigc__p_historydb__UxOuts, - _swigc__p_historydb__addressTxns, - _swigc__p_historydb__addressUx, - _swigc__p_historydb__historyMeta, - _swigc__p_historydb__transactions, - _swigc__p_httphelper__Address, - _swigc__p_int, - _swigc__p_logging__ColorScheme, - _swigc__p_long_long, - _swigc__p_p_GoSlice_, - _swigc__p_p_coin__Block, - _swigc__p_p_coin__Transaction, - _swigc__p_pex__Peer, - _swigc__p_secp256k1go__Field, - _swigc__p_secp256k1go__XY, - _swigc__p_secp256k1go__XYZ, - _swigc__p_short, - _swigc__p_signed_char, - _swigc__p_unsigned_char, - _swigc__p_unsigned_int, - _swigc__p_unsigned_long_long, - _swigc__p_unsigned_short, - _swigc__p_visor__BlockchainConfig, - _swigc__p_visor__BlockchainMetadata, - _swigc__p_visor__BuildInfo, - _swigc__p_visor__ErrCorruptDB, - _swigc__p_visor__ErrTxnViolatesHardConstraint, - _swigc__p_visor__ErrTxnViolatesSoftConstraint, - _swigc__p_visor__ReadableBlock, - _swigc__p_visor__ReadableBlockBody, - _swigc__p_visor__ReadableBlockHeader, - _swigc__p_visor__ReadableBlocks, - _swigc__p_visor__ReadableOutput, - _swigc__p_visor__ReadableOutputSet, - _swigc__p_visor__ReadableTransaction, - _swigc__p_visor__ReadableTransactionInput, - _swigc__p_visor__ReadableTransactionOutput, - _swigc__p_visor__RichlistBalance, - _swigc__p_visor__Transaction, - _swigc__p_visor__TransactionJSON, - _swigc__p_visor__TransactionOutputJSON, - _swigc__p_visor__TransactionStatus, - _swigc__p_visor__UnconfirmedTxn, - _swigc__p_visor__addrsFilter, - _swigc__p_visor__sigHash, - _swigc__p_visor__txUnspents, - _swigc__p_visor__unconfirmedTxns, - _swigc__p_void, - _swigc__p_wallet__Balance, - _swigc__p_wallet__BalancePair, - _swigc__p_wallet__Config, - _swigc__p_wallet__Entry, - _swigc__p_wallet__Note, - _swigc__p_wallet__Options, - _swigc__p_wallet__ReadableEntry, - _swigc__p_wallet__ReadableNote, - _swigc__p_wallet__UxBalance, - _swigc__p_wallet__Wallet, - _swigc__p_webrpc__AddrUxoutResult, - _swigc__p_webrpc__OutputsResult, - _swigc__p_webrpc__RPCError, - _swigc__p_webrpc__StatusResult, - _swigc__p_webrpc__TxIDJson, - _swigc__p_webrpc__TxnResult, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif -/* ----------------------------------------------------------------------------- - * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to - * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of - * swig_module, and does all the lookup, filling in the swig_module.types - * array with the correct data and linking the correct swig_cast_info - * structures together. - * - * The generated swig_type_info structures are assigned statically to an initial - * array. We just loop through that array, and handle each type individually. - * First we lookup if this type has been already loaded, and if so, use the - * loaded structure instead of the generated one. Then we have to fill in the - * cast linked list. The cast data is initially stored in something like a - * two-dimensional array. Each row corresponds to a type (there are the same - * number of rows as there are in the swig_type_initial array). Each entry in - * a column is one of the swig_cast_info structures for that type. - * The cast_initial array is actually an array of arrays, because each row has - * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it - * adding the casts to the list. The one last trick we need to do is making - * sure the type pointer in the swig_cast_info struct is correct. - * - * First off, we lookup the cast->type name to see if it is already loaded. - * There are three cases to handle: - * 1) If the cast->type has already been loaded AND the type we are adding - * casting info to has not been loaded (it is in this module), THEN we - * replace the cast->type pointer with the type pointer that has already - * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the - * cast->type) are loaded, THEN the cast info has already been loaded by - * the previous module so we just ignore it. - * 3) Finally, if cast->type has not already been loaded, then we add that - * swig_cast_info to the linked list (because the cast->type) pointer will - * be correct. - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* c-mode */ -#endif -#endif - -#if 0 -#define SWIGRUNTIME_DEBUG -#endif - - -SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { - size_t i; - swig_module_info *module_head, *iter; - int init; - - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } - - /* Try and load any already created modules */ - module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - iter=module_head; - do { - if (iter==&swig_module) { - /* Our module is already in the list, so there's nothing more to do. */ - return; - } - iter=iter->next; - } while (iter!= module_head); - - /* otherwise we must add our module into the list */ - swig_module.next = module_head->next; - module_head->next = &swig_module; - } - - /* When multiple interpreters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - - /* Now work on filling in swig_module.types */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: size %d\n", swig_module.size); -#endif - for (i = 0; i < swig_module.size; ++i) { - swig_type_info *type = 0; - swig_type_info *ret; - swig_cast_info *cast; - -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); -#endif - - /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { - type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); - } - if (type) { - /* Overwrite clientdata field */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found type %s\n", type->name); -#endif - if (swig_module.type_initial[i]->clientdata) { - type->clientdata = swig_module.type_initial[i]->clientdata; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); -#endif - } - } else { - type = swig_module.type_initial[i]; - } - - /* Insert casting types */ - cast = swig_module.cast_initial[i]; - while (cast->type) { - /* Don't need to add information already in the list */ - ret = 0; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); -#endif - if (swig_module.next != &swig_module) { - ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); -#ifdef SWIGRUNTIME_DEBUG - if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); -#endif - } - if (ret) { - if (type == swig_module.type_initial[i]) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: skip old type %s\n", ret->name); -#endif - cast->type = ret; - ret = 0; - } else { - /* Check for casting already in the list */ - swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); -#ifdef SWIGRUNTIME_DEBUG - if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); -#endif - if (!ocast) ret = 0; - } - } - - if (!ret) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); -#endif - if (type->cast) { - type->cast->prev = cast; - cast->next = type->cast; - } - type->cast = cast; - } - cast++; - } - /* Set entry in modules->types array equal to the type */ - swig_module.types[i] = type; - } - swig_module.types[i] = 0; - -#ifdef SWIGRUNTIME_DEBUG - printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { - int j = 0; - swig_cast_info *cast = swig_module.cast_initial[i]; - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { - printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); - cast++; - ++j; - } - printf("---- Total casts: %d\n",j); - } - printf("**** SWIG_InitializeModule: Cast List ******\n"); -#endif -} - -/* This function will propagate the clientdata field of type to -* any new swig_type_info structures that have been added into the list -* of equivalent types. It is like calling -* SWIG_TypeClientData(type, clientdata) a second time. -*/ -SWIGRUNTIME void -SWIG_PropagateClientData(void) { - size_t i; - swig_cast_info *equiv; - static int init_run = 0; - - if (init_run) return; - init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { - equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { - if (equiv->type && !equiv->type->clientdata) - SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); - } - equiv = equiv->next; - } - } - } -} - -#ifdef __cplusplus -#if 0 -{ - /* c-mode */ -#endif -} -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - char *tmp; - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"swigvarlink", /* tp_name */ - sizeof(swig_varlinkobject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor) swig_varlink_dealloc, /* tp_dealloc */ - (printfunc) swig_varlink_print, /* tp_print */ - (getattrfunc) swig_varlink_getattr, /* tp_getattr */ - (setattrfunc) swig_varlink_setattr, /* tp_setattr */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version_tag */ -#endif -#if PY_VERSION_HEX >= 0x03040000 - 0, /* tp_finalize */ -#endif -#ifdef COUNT_ALLOCS - 0, /* tp_allocs */ - 0, /* tp_frees */ - 0, /* tp_maxalloc */ -#if PY_VERSION_HEX >= 0x02050000 - 0, /* tp_prev */ -#endif - 0 /* tp_next */ -#endif - }; - varlink_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - varlink_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&varlink_type) < 0) - return NULL; -#endif - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (!c) continue; - c = strstr(c, "swig_ptr: "); - if (c) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d, *md; -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { -# if PY_VERSION_HEX >= 0x03020000 - PyModuleDef_HEAD_INIT, -# else - { - PyObject_HEAD_INIT(NULL) - NULL, /* m_init */ - 0, /* m_index */ - NULL, /* m_copy */ - }, -# endif - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; -#endif - -#if defined(SWIGPYTHON_BUILTIN) - static SwigPyClientData SwigPyObject_clientdata = { - 0, 0, 0, 0, 0, 0, 0 - }; - static PyGetSetDef this_getset_def = { - (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL - }; - static SwigPyGetSet thisown_getset_closure = { - (PyCFunction) SwigPyObject_own, - (PyCFunction) SwigPyObject_own - }; - static PyGetSetDef thisown_getset_def = { - (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure - }; - PyTypeObject *builtin_pytype; - int builtin_base_count; - swig_type_info *builtin_basetype; - PyObject *tuple; - PyGetSetDescrObject *static_getset; - PyTypeObject *metatype; - PyTypeObject *swigpyobject; - SwigPyClientData *cd; - PyObject *public_interface, *public_symbol; - PyObject *this_descr; - PyObject *thisown_descr; - PyObject *self = 0; - int i; - - (void)builtin_pytype; - (void)builtin_base_count; - (void)builtin_basetype; - (void)tuple; - (void)static_getset; - (void)self; - - /* Metaclass is used to implement static member variables */ - metatype = SwigPyObjectType(); - assert(metatype); -#endif - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); - -#if PY_VERSION_HEX >= 0x03000000 - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - - md = d = PyModule_GetDict(m); - (void)md; - - SWIG_InitializeModule(0); - -#ifdef SWIGPYTHON_BUILTIN - swigpyobject = SwigPyObject_TypeOnce(); - - SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - if (!cd) { - SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; - SwigPyObject_clientdata.pytype = swigpyobject; - } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) { - PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); -# if PY_VERSION_HEX >= 0x03000000 - return NULL; -# else - return; -# endif - } - - /* All objects have a 'this' attribute */ - this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); - (void)this_descr; - - /* All objects have a 'thisown' attribute */ - thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); - (void)thisown_descr; - - public_interface = PyList_New(0); - public_symbol = 0; - (void)public_symbol; - - PyDict_SetItemString(md, "__all__", public_interface); - Py_DECREF(public_interface); - for (i = 0; SwigMethods[i].ml_name != NULL; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); - for (i = 0; swig_const_table[i].name != 0; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); -#endif - - SWIG_InstallConstants(d,swig_const_table); - -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - diff --git a/tox.ini b/tox.ini index 033a8dc7..9d069d48 100644 --- a/tox.ini +++ b/tox.ini @@ -26,7 +26,7 @@ deps = flake8 pytest commands = - check-manifest --ignore tox.ini,tests* + check-manifest --ignore tox.ini,tests*,swig # python setup.py check -m -s # flake8 . py.test -v tests